added interface of the new decoupled libraries concept gh-92

This commit is contained in:
2017-11-26 02:29:08 +02:00
parent 9760ac86a3
commit 82df61aa4a
174 changed files with 11626 additions and 1094 deletions

View File

@ -79,7 +79,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
{
if ($item = parent::getItem($pk))
{
if (!empty($item->params))
if (!empty($item->params) && !is_array($item->params))
{
// Convert the params field to an array.
$registry = new Registry;
@ -139,7 +139,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getVzufields()
public function getVzwfields()
{
// Get the user object.
$user = JFactory::getUser();
@ -223,13 +223,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
foreach ($items as $nr => &$item)
{
// convert datatype
$item->datatype = $this->selectionTranslationVzufields($item->datatype, 'datatype');
$item->datatype = $this->selectionTranslationVzwfields($item->datatype, 'datatype');
// convert indexes
$item->indexes = $this->selectionTranslationVzufields($item->indexes, 'indexes');
$item->indexes = $this->selectionTranslationVzwfields($item->indexes, 'indexes');
// convert null_switch
$item->null_switch = $this->selectionTranslationVzufields($item->null_switch, 'null_switch');
$item->null_switch = $this->selectionTranslationVzwfields($item->null_switch, 'null_switch');
// convert store
$item->store = $this->selectionTranslationVzufields($item->store, 'store');
$item->store = $this->selectionTranslationVzwfields($item->store, 'store');
}
}
@ -243,7 +243,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return translatable string
*/
public function selectionTranslationVzufields($value,$name)
public function selectionTranslationVzwfields($value,$name)
{
// Array of datatype language strings
if ($name === 'datatype')