Further gh-53 implementation of the export and import of complete components as JCB packages. Fixes gh-56

This commit is contained in:
2017-03-27 14:38:51 +02:00
parent 63b1bac955
commit 8b522f44d9
243 changed files with 4548 additions and 2296 deletions

View File

@ -111,7 +111,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getVzzfields()
public function getWaafields()
{
// Get the user object.
$user = JFactory::getUser();
@ -195,13 +195,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
foreach ($items as $nr => &$item)
{
// convert datatype
$item->datatype = $this->selectionTranslationVzzfields($item->datatype, 'datatype');
$item->datatype = $this->selectionTranslationWaafields($item->datatype, 'datatype');
// convert indexes
$item->indexes = $this->selectionTranslationVzzfields($item->indexes, 'indexes');
$item->indexes = $this->selectionTranslationWaafields($item->indexes, 'indexes');
// convert null_switch
$item->null_switch = $this->selectionTranslationVzzfields($item->null_switch, 'null_switch');
$item->null_switch = $this->selectionTranslationWaafields($item->null_switch, 'null_switch');
// convert store
$item->store = $this->selectionTranslationVzzfields($item->store, 'store');
$item->store = $this->selectionTranslationWaafields($item->store, 'store');
}
}
@ -215,7 +215,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return translatable string
*/
public function selectionTranslationVzzfields($value,$name)
public function selectionTranslationWaafields($value,$name)
{
// Array of datatype language strings
if ($name === 'datatype')