diff --git a/README.md b/README.md
index 73a9d4d1b..8c48412c4 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Component Builder (2.1.6)
+# Component Builder (2.1.7)
This is a [Joomla 3.x] (http://www.joomla.org/) component.
@@ -33,31 +33,31 @@ Would you require more help VDM.io has a number of support plans available [visi
+ *Name*: [Component Builder] (https://www.vdm.io/joomla-component-builder)
+ *First Build*: 30th April, 2015
+ *Last Build*: 4th May, 2016
-+ *Version*: 2.1.6
++ *Version*: 2.1.7
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
## Build Time
-**227 Hours** or **28 Eight Hour Days** (actual time the author saved -
+**228 Hours** or **29 Eight Hour Days** (actual time the author saved -
due to [Automated Component Builder] (https://www.vdm.io/joomla-component-builder))
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
> never making one mistake or taking any coffee break.)
-+ *Line count*: **81589**
-+ *File count*: **499**
++ *Line count*: **81816**
++ *File count*: **500**
+ *Folder count*: **98**
-**150 Hours** or **19 Eight Hour Days** (the actual time the author spent)
+**151 Hours** or **18 Eight Hour Days** (the actual time the author spent)
> (with the following break down:
> **debugging @57hours** = codingtime / 4;
-> **planning @32hours** = codingtime / 7;
+> **planning @33hours** = codingtime / 7;
> **mapping @23hours** = codingtime / 10;
> **office @38hours** = codingtime / 6;)
-**377 Hours** or **47 Eight Hour Days**
+**379 Hours** or **47 Eight Hour Days**
(a total of the realistic time frame for this project)
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
diff --git a/admin/assets/css/admin.css b/admin/assets/css/admin.css
index 6e051985a..64161b970 100644
--- a/admin/assets/css/admin.css
+++ b/admin/assets/css/admin.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/admin_view.css b/admin/assets/css/admin_view.css
index f81c7ff7b..6cb0ca841 100644
--- a/admin/assets/css/admin_view.css
+++ b/admin/assets/css/admin_view.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/admin_views.css b/admin/assets/css/admin_views.css
index 036bd2965..c46b02541 100644
--- a/admin/assets/css/admin_views.css
+++ b/admin/assets/css/admin_views.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/component.css b/admin/assets/css/component.css
index 1d5bb4b2a..7184b1aa9 100644
--- a/admin/assets/css/component.css
+++ b/admin/assets/css/component.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/components.css b/admin/assets/css/components.css
index 6aad79b95..25a44c1a2 100644
--- a/admin/assets/css/components.css
+++ b/admin/assets/css/components.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/custom_admin_view.css b/admin/assets/css/custom_admin_view.css
index 7965f4964..9d5a4cd34 100644
--- a/admin/assets/css/custom_admin_view.css
+++ b/admin/assets/css/custom_admin_view.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/custom_admin_views.css b/admin/assets/css/custom_admin_views.css
index de4e3cbe4..20ade4bac 100644
--- a/admin/assets/css/custom_admin_views.css
+++ b/admin/assets/css/custom_admin_views.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/dashboard.css b/admin/assets/css/dashboard.css
index a871257ad..8b374a859 100644
--- a/admin/assets/css/dashboard.css
+++ b/admin/assets/css/dashboard.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/dynamic_get.css b/admin/assets/css/dynamic_get.css
index d5bdd074e..5b48a68df 100644
--- a/admin/assets/css/dynamic_get.css
+++ b/admin/assets/css/dynamic_get.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/dynamic_gets.css b/admin/assets/css/dynamic_gets.css
index 5601eca4d..4f2ade3a8 100644
--- a/admin/assets/css/dynamic_gets.css
+++ b/admin/assets/css/dynamic_gets.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/field.css b/admin/assets/css/field.css
index 8ac0d0040..7252b50f9 100644
--- a/admin/assets/css/field.css
+++ b/admin/assets/css/field.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/fields.css b/admin/assets/css/fields.css
index 290b80c8e..40f1b92b3 100644
--- a/admin/assets/css/fields.css
+++ b/admin/assets/css/fields.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/fieldtype.css b/admin/assets/css/fieldtype.css
index 0130d4775..2cd79781d 100644
--- a/admin/assets/css/fieldtype.css
+++ b/admin/assets/css/fieldtype.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/fieldtypes.css b/admin/assets/css/fieldtypes.css
index 24169c602..b4ac8d054 100644
--- a/admin/assets/css/fieldtypes.css
+++ b/admin/assets/css/fieldtypes.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/help_document.css b/admin/assets/css/help_document.css
index 6c00c78b2..f16cced67 100644
--- a/admin/assets/css/help_document.css
+++ b/admin/assets/css/help_document.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/help_documents.css b/admin/assets/css/help_documents.css
index 2835b6804..6b3ae4d3c 100644
--- a/admin/assets/css/help_documents.css
+++ b/admin/assets/css/help_documents.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/layout.css b/admin/assets/css/layout.css
index 43c00b232..95186a070 100644
--- a/admin/assets/css/layout.css
+++ b/admin/assets/css/layout.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/layouts.css b/admin/assets/css/layouts.css
index 81ff0c7ab..f5975729f 100644
--- a/admin/assets/css/layouts.css
+++ b/admin/assets/css/layouts.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/site_view.css b/admin/assets/css/site_view.css
index 1f5554057..e6d581be4 100644
--- a/admin/assets/css/site_view.css
+++ b/admin/assets/css/site_view.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/site_views.css b/admin/assets/css/site_views.css
index e6b99efd7..d31d9eb2a 100644
--- a/admin/assets/css/site_views.css
+++ b/admin/assets/css/site_views.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/snippet.css b/admin/assets/css/snippet.css
index 5a4e163e3..dcc367fe8 100644
--- a/admin/assets/css/snippet.css
+++ b/admin/assets/css/snippet.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/snippets.css b/admin/assets/css/snippets.css
index cbb048748..b0e343e02 100644
--- a/admin/assets/css/snippets.css
+++ b/admin/assets/css/snippets.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/template.css b/admin/assets/css/template.css
index eea80a644..12b9c2326 100644
--- a/admin/assets/css/template.css
+++ b/admin/assets/css/template.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/assets/css/templates.css b/admin/assets/css/templates.css
index 4a54fe1c8..756dc1a08 100644
--- a/admin/assets/css/templates.css
+++ b/admin/assets/css/templates.css
@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/compiler/joomla_3/JModelLegacy_import.php b/admin/compiler/joomla_3/JModelLegacy_import.php
index 11f0b4883..2422a1840 100644
--- a/admin/compiler/joomla_3/JModelLegacy_import.php
+++ b/admin/compiler/joomla_3/JModelLegacy_import.php
@@ -55,7 +55,7 @@ class ###Component###ModelImport extends JModelLegacy
* Import Settings
*/
protected $getType = NULL;
- protected $dataType = NULL;
+ protected $dataType = NULL;
/**
* Method to auto-populate the model state.
diff --git a/admin/compiler/joomla_3/JModelLegacy_import_custom.php b/admin/compiler/joomla_3/JModelLegacy_import_custom.php
index 93504ff17..5825f9083 100644
--- a/admin/compiler/joomla_3/JModelLegacy_import_custom.php
+++ b/admin/compiler/joomla_3/JModelLegacy_import_custom.php
@@ -55,7 +55,7 @@ class ###Component###Model###View### extends JModelLegacy
* Import Settings
*/
protected $getType = NULL;
- protected $dataType = NULL;
+ protected $dataType = NULL;
/**
* Method to auto-populate the model state.
@@ -81,117 +81,7 @@ class ###Component###Model###View### extends JModelLegacy
$this->safeFileOptions = array();
parent::populateState();
}
-
- /**
- * Import an spreadsheet from either folder, url or upload.
- *
- * @return boolean result of import
- *
- */
- public function import()
- {
- $this->setState('action', 'import');
- $app = JFactory::getApplication();
- $session = JFactory::getSession();
- $package = null;
- $continue = false;
- // get import type
- $this->getType = $app->input->getString('gettype', NULL);
- // get import type
- $this->dataType = $session->get('dataType_VDM_IMPORTINTO', NULL);
-
- if ($package === null)
- {
- switch ($this->getType)
- {
- case 'folder':
- // Remember the 'Import from Directory' path.
- $app->getUserStateFromRequest($this->_context . '.import_directory', 'import_directory');
- $package = $this->_getPackageFromFolder();
- break;
-
- case 'upload':
- $package = $this->_getPackageFromUpload();
- break;
-
- case 'url':
- $package = $this->_getPackageFromUrl();
- break;
-
- case 'continue':
- $continue = true;
- $package = $session->get('package', null);
- $package = json_decode($package, true);
- // clear session
- $session->clear('package');
- $session->clear('dataType');
- $session->clear('hasPackage');
- break;
-
- default:
- $app->setUserState('com_###component###.message', JText::_('COM_###COMPONENT###_IMPORT_NO_IMPORT_TYPE_FOUND'));
-
- return false;
- break;
- }
- }
- // Was the package valid?
- if (!$package || !$package['type'])
- {
- if (in_array($this->getType, array('upload', 'url')))
- {
- $this->remove($package['packagename']);
- }
-
- $app->setUserState('com_###component###.message', JText::_('COM_###COMPONENT###_IMPORT_UNABLE_TO_FIND_IMPORT_PACKAGE'));
- return false;
- }
-
- // first link data to table headers
- if(!$continue){
- $package = json_encode($package);
- $session->set('package', $package);
- $session->set('dataType', $this->dataType);
- $session->set('hasPackage', true);
- return true;
- }
-
- // set the data
- $headerList = json_decode($session->get($this->dataType.'_VDM_IMPORTHEADERS', false), true);
- if (!$this->setData($package,$this->dataType,$headerList))
- {
- // There was an error importing the package
- $msg = JText::_('COM_###COMPONENT###_IMPORT_ERROR');
- $back = $session->get('backto_VDM_IMPORT', NULL);
- if ($back)
- {
- $app->setUserState('com_###component###.redirect_url', 'index.php?option=com_###component###&view='.$back);
- $session->clear('backto_VDM_IMPORT');
- }
- $result = false;
- }
- else
- {
- // Package imported sucessfully
- $msg = JText::sprintf('COM_###COMPONENT###_IMPORT_SUCCESS', $package['packagename']);
- $back = $session->get('backto_VDM_IMPORT', NULL);
- if ($back)
- {
- $app->setUserState('com_###component###.redirect_url', 'index.php?option=com_###component###&view='.$back);
- $session->clear('backto_VDM_IMPORT');
- }
- $result = true;
- }
-
- // Set some model state values
- $app->enqueueMessage($msg);
-
- // remove file after import
- $this->remove($package['packagename']);
- $session->clear($this->getType.'_VDM_IMPORTHEADERS');
-
- return $result;
- }
+ ###IMPORT_METHOD_CUSTOM###
/**
* Works out an importation spreadsheet from a HTTP upload
@@ -406,30 +296,8 @@ class ###Component###Model###View### extends JModelLegacy
JFile::delete(JPath::clean($package));
}
}
-
- /**
- * Set the data from the spreadsheet to the database
- *
- * @param string $package Paths to the uploaded package file
- *
- * @return boolean false on failure
- *
- **/
- protected function setData($package,$table,$target_headers)
- {###IMPORT_SETDATE_METOD_CUSTOM###
- }
-
- /**
- * Save the data from the file to the database
- *
- * @param string $package Paths to the uploaded package file
- *
- * @return boolean false on failure
- *
- **/
- protected function save($data,$table)
- {###IMPORT_SAVE_METOD_CUSTOM###
- }
+ ###IMPORT_SETDATE_METHOD_CUSTOM###
+ ###IMPORT_SAVE_METHOD_CUSTOM###
protected function getAlias($name,$type = false)
{
diff --git a/admin/compiler/joomla_3/default_import.php b/admin/compiler/joomla_3/default_import.php
index 84830af73..e888680ae 100644
--- a/admin/compiler/joomla_3/default_import.php
+++ b/admin/compiler/joomla_3/default_import.php
@@ -34,8 +34,7 @@ JHtml::_('bootstrap.tooltip');
JHtml::_('script', 'system/core.js', false, true);
?>
@@ -148,89 +147,87 @@ JHtml::_('script', 'system/core.js', false, true);
-
- hasPackage && ###Component###Helper::checkArray($this->headerList) && ###Component###Helper::checkArray($this->headers)) : ?>
-
-
-
+
+ hasPackage && ###Component###Helper::checkArray($this->headerList) && ###Component###Helper::checkArray($this->headers)) : ?>
+
+
+
'upload')); ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
+
\ No newline at end of file
diff --git a/admin/componentbuilder.php b/admin/componentbuilder.php
index 7b727d1ff..43a7e1362 100644
--- a/admin/componentbuilder.php
+++ b/admin/componentbuilder.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controller.php b/admin/controller.php
index 36102432e..59b29c6a1 100644
--- a/admin/controller.php
+++ b/admin/controller.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/admin_view.php b/admin/controllers/admin_view.php
index 4397c1c07..6cb3cc9d1 100644
--- a/admin/controllers/admin_view.php
+++ b/admin/controllers/admin_view.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/admin_views.php b/admin/controllers/admin_views.php
index 3d04f7c43..231133d5a 100644
--- a/admin/controllers/admin_views.php
+++ b/admin/controllers/admin_views.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/ajax.json.php b/admin/controllers/ajax.json.php
index 3c8154bd5..92119684f 100644
--- a/admin/controllers/ajax.json.php
+++ b/admin/controllers/ajax.json.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/compiler.php b/admin/controllers/compiler.php
index 524f1feca..645d4ea5f 100644
--- a/admin/controllers/compiler.php
+++ b/admin/controllers/compiler.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/component.php b/admin/controllers/component.php
index e4d4bf721..1f30625cb 100644
--- a/admin/controllers/component.php
+++ b/admin/controllers/component.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/componentbuilder.php b/admin/controllers/componentbuilder.php
index 3d826b5bd..48c5896ae 100644
--- a/admin/controllers/componentbuilder.php
+++ b/admin/controllers/componentbuilder.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/components.php b/admin/controllers/components.php
index d0d936180..37f77b8f9 100644
--- a/admin/controllers/components.php
+++ b/admin/controllers/components.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/custom_admin_view.php b/admin/controllers/custom_admin_view.php
index e791cfd07..af94439a6 100644
--- a/admin/controllers/custom_admin_view.php
+++ b/admin/controllers/custom_admin_view.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/custom_admin_views.php b/admin/controllers/custom_admin_views.php
index 170d69b57..04a6a56ec 100644
--- a/admin/controllers/custom_admin_views.php
+++ b/admin/controllers/custom_admin_views.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/dynamic_get.php b/admin/controllers/dynamic_get.php
index 8f064a710..75fa44503 100644
--- a/admin/controllers/dynamic_get.php
+++ b/admin/controllers/dynamic_get.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/dynamic_gets.php b/admin/controllers/dynamic_gets.php
index 04fca5cfb..24abfca39 100644
--- a/admin/controllers/dynamic_gets.php
+++ b/admin/controllers/dynamic_gets.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/field.php b/admin/controllers/field.php
index e6d38cc70..7fc5ebb2e 100644
--- a/admin/controllers/field.php
+++ b/admin/controllers/field.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/fields.php b/admin/controllers/fields.php
index 352ad95bb..01c7e2676 100644
--- a/admin/controllers/fields.php
+++ b/admin/controllers/fields.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/fieldtype.php b/admin/controllers/fieldtype.php
index 46f7f38f2..4298f171e 100644
--- a/admin/controllers/fieldtype.php
+++ b/admin/controllers/fieldtype.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/fieldtypes.php b/admin/controllers/fieldtypes.php
index 6243d2576..8f6fd4c9a 100644
--- a/admin/controllers/fieldtypes.php
+++ b/admin/controllers/fieldtypes.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/help.php b/admin/controllers/help.php
index 9cef3566b..5e72b00b7 100644
--- a/admin/controllers/help.php
+++ b/admin/controllers/help.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/help_document.php b/admin/controllers/help_document.php
index 655ce1b88..3b34ba0f4 100644
--- a/admin/controllers/help_document.php
+++ b/admin/controllers/help_document.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/help_documents.php b/admin/controllers/help_documents.php
index 7e9bb7fd4..af5fa4922 100644
--- a/admin/controllers/help_documents.php
+++ b/admin/controllers/help_documents.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/import.php b/admin/controllers/import.php
index 7c95f0745..78e2b4458 100644
--- a/admin/controllers/import.php
+++ b/admin/controllers/import.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/layout.php b/admin/controllers/layout.php
index 0ca2ede9b..a741f5b6a 100644
--- a/admin/controllers/layout.php
+++ b/admin/controllers/layout.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/layouts.php b/admin/controllers/layouts.php
index 6caf9d933..a1109540b 100644
--- a/admin/controllers/layouts.php
+++ b/admin/controllers/layouts.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/site_view.php b/admin/controllers/site_view.php
index ef244b4dd..06f3ec140 100644
--- a/admin/controllers/site_view.php
+++ b/admin/controllers/site_view.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/site_views.php b/admin/controllers/site_views.php
index eb2237772..0eac7c823 100644
--- a/admin/controllers/site_views.php
+++ b/admin/controllers/site_views.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/snippet.php b/admin/controllers/snippet.php
index 7cc723afb..e9ae59f96 100644
--- a/admin/controllers/snippet.php
+++ b/admin/controllers/snippet.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/snippets.php b/admin/controllers/snippets.php
index d41638fed..71227848f 100644
--- a/admin/controllers/snippets.php
+++ b/admin/controllers/snippets.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/template.php b/admin/controllers/template.php
index 713cff724..3250ebbd7 100644
--- a/admin/controllers/template.php
+++ b/admin/controllers/template.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/controllers/templates.php b/admin/controllers/templates.php
index 28c2cd9a5..babb7e1a8 100644
--- a/admin/controllers/templates.php
+++ b/admin/controllers/templates.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/helpers/compiler/a_Get.php b/admin/helpers/compiler/a_Get.php
index d7a46f2d9..544e8c408 100644
--- a/admin/helpers/compiler/a_Get.php
+++ b/admin/helpers/compiler/a_Get.php
@@ -1089,7 +1089,7 @@ class Get
// set custom import scripts
if (isset($view->add_custom_import) && $view->add_custom_import == 1)
{
- $addImportArray = array('php_import_setdata','php_import_save','html_import_view');
+ $addImportArray = array('php_import','php_import_setdata','php_import_save','html_import_view');
foreach ($addImportArray as $importScripter)
{
if (isset($view->$importScripter) && strlen($view->$importScripter) > 0)
diff --git a/admin/helpers/compiler/e_Interpretation.php b/admin/helpers/compiler/e_Interpretation.php
index 6ce693bb9..7db3c1b79 100644
--- a/admin/helpers/compiler/e_Interpretation.php
+++ b/admin/helpers/compiler/e_Interpretation.php
@@ -6904,14 +6904,20 @@ class Interpretation extends Fields
// load the custom script to the files
if (isset($this->customScriptBuilder['php_import_setdata']['import_'.$viewName_list]))
{
- // ###IMPORT_SETDATE_METOD_CUSTOM### <<>>
- $this->fileContentDynamic['import_'.$viewName_list]['###IMPORT_SETDATE_METOD_CUSTOM###'] = "\n".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_import_setdata']['import_'.$viewName_list]);
+ // ###IMPORT_SETDATE_METHOD_CUSTOM### <<>>
+ $this->fileContentDynamic['import_'.$viewName_list]['###IMPORT_SETDATE_METHOD_CUSTOM###'] = "\n".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_import_setdata']['import_'.$viewName_list]);
unset($this->customScriptBuilder['php_import_setdata']['import_'.$viewName_list]);
}
+ if (isset($this->customScriptBuilder['php_import']['import_'.$viewName_list]))
+ {
+ // ###IMPORT_METHOD_CUSTOM### <<>>
+ $this->fileContentDynamic['import_'.$viewName_list]['###IMPORT_METHOD_CUSTOM###'] = "\n".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_import']['import_'.$viewName_list]);
+ unset($this->customScriptBuilder['php_import']['import_'.$viewName_list]);
+ }
if (isset($this->customScriptBuilder['php_import_save']['import_'.$viewName_list]))
{
- // ###IMPORT_SAVE_METOD_CUSTOM### <<>>
- $this->fileContentDynamic['import_'.$viewName_list]['###IMPORT_SAVE_METOD_CUSTOM###'] = "\n".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_import_save']['import_'.$viewName_list]);
+ // ###IMPORT_SAVE_METHOD_CUSTOM### <<>>
+ $this->fileContentDynamic['import_'.$viewName_list]['###IMPORT_SAVE_METHOD_CUSTOM###'] = "\n".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_import_save']['import_'.$viewName_list]);
unset($this->customScriptBuilder['php_import_save']['import_'.$viewName_list]);
}
if (isset($this->customScriptBuilder['html_import_view']['import_'.$viewName_list]))
diff --git a/admin/helpers/componentbuilder.php b/admin/helpers/componentbuilder.php
index 56561b80c..2f8655944 100644
--- a/admin/helpers/componentbuilder.php
+++ b/admin/helpers/componentbuilder.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/helpers/html/batch_.php b/admin/helpers/html/batch_.php
index 2983bc083..d1b3e8371 100644
--- a/admin/helpers/html/batch_.php
+++ b/admin/helpers/html/batch_.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/helpers/indenter.php b/admin/helpers/indenter.php
index 9764e2fce..d4b78ecc9 100644
--- a/admin/helpers/indenter.php
+++ b/admin/helpers/indenter.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/helpers/js.php b/admin/helpers/js.php
index c0c4e3a9f..a34169416 100644
--- a/admin/helpers/js.php
+++ b/admin/helpers/js.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/helpers/minify.php b/admin/helpers/minify.php
index e7b761d4e..3dd4de3bf 100644
--- a/admin/helpers/minify.php
+++ b/admin/helpers/minify.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.ini b/admin/language/en-GB/en-GB.com_componentbuilder.ini
index 05205ab90..0a77c0ae2 100644
--- a/admin/language/en-GB/en-GB.com_componentbuilder.ini
+++ b/admin/language/en-GB/en-GB.com_componentbuilder.ini
@@ -314,6 +314,10 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETLISTQUERY="Php Getlistquery"
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETLISTQUERY_DESCRIPTION="Add your PHP here! [Do not add the php tags]"
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETLISTQUERY_HINT="// PHP Here that should run in the getlistquery Method (to add custom filtering)"
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETLISTQUERY_LABEL="PHP"
+COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT="Php Import"
+COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_DESCRIPTION="Add your PHP here! [Do not add the php tags]"
+COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_HINT="// PHP Here that should run in the import Method."
+COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_LABEL="Import Method PHP"
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SAVE="Php Import Save"
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SAVE_DESCRIPTION="Add your PHP here! [Do not add the php tags]"
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SAVE_HINT="// PHP Here that should run in the save Method, $data, $table"
diff --git a/admin/layouts/admin_view/css_fullwidth.php b/admin/layouts/admin_view/css_fullwidth.php
index 13e725805..1abe2500b 100644
--- a/admin/layouts/admin_view/css_fullwidth.php
+++ b/admin/layouts/admin_view/css_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/admin_view/custom_import_fullwidth.php b/admin/layouts/admin_view/custom_import_fullwidth.php
index 2e3123bed..1bf4fdb0b 100644
--- a/admin/layouts/admin_view/custom_import_fullwidth.php
+++ b/admin/layouts/admin_view/custom_import_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@@ -36,7 +36,8 @@ $fields = $displayData->get('fields') ?: array(
'add_custom_import',
'html_import_view',
'php_import_setdata',
- 'php_import_save'
+ 'php_import_save',
+ 'php_import'
);
?>
diff --git a/admin/layouts/admin_view/fields_fullwidth.php b/admin/layouts/admin_view/fields_fullwidth.php
index aa4bfec4e..067aa1008 100644
--- a/admin/layouts/admin_view/fields_fullwidth.php
+++ b/admin/layouts/admin_view/fields_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@@ -29,7 +29,7 @@
defined('_JEXEC') or die('Restricted access');
// set the defaults
-$items = $displayData->vxdfields;
+$items = $displayData->vxefields;
$user = JFactory::getUser();
$id = $displayData->item->id;
$edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit";
diff --git a/admin/layouts/admin_view/javascript_fullwidth.php b/admin/layouts/admin_view/javascript_fullwidth.php
index 57d1f66b6..9f136bae8 100644
--- a/admin/layouts/admin_view/javascript_fullwidth.php
+++ b/admin/layouts/admin_view/javascript_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/admin_view/mysql_fullwidth.php b/admin/layouts/admin_view/mysql_fullwidth.php
index 63c66b0cd..858ff6309 100644
--- a/admin/layouts/admin_view/mysql_fullwidth.php
+++ b/admin/layouts/admin_view/mysql_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/admin_view/mysql_left.php b/admin/layouts/admin_view/mysql_left.php
index 488554eed..f722dc9d3 100644
--- a/admin/layouts/admin_view/mysql_left.php
+++ b/admin/layouts/admin_view/mysql_left.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/admin_view/php_fullwidth.php b/admin/layouts/admin_view/php_fullwidth.php
index a139d64d8..7984954d1 100644
--- a/admin/layouts/admin_view/php_fullwidth.php
+++ b/admin/layouts/admin_view/php_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/admin_view/publishing.php b/admin/layouts/admin_view/publishing.php
index c741e0680..73ad5578d 100644
--- a/admin/layouts/admin_view/publishing.php
+++ b/admin/layouts/admin_view/publishing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/admin_view/publlshing.php b/admin/layouts/admin_view/publlshing.php
index b2c46664a..2f2f4e7e1 100644
--- a/admin/layouts/admin_view/publlshing.php
+++ b/admin/layouts/admin_view/publlshing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/admin_view/settings_above.php b/admin/layouts/admin_view/settings_above.php
index 0cf984ddf..60c26d3dc 100644
--- a/admin/layouts/admin_view/settings_above.php
+++ b/admin/layouts/admin_view/settings_above.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/admin_view/settings_left.php b/admin/layouts/admin_view/settings_left.php
index 31ec967bf..1352fd30b 100644
--- a/admin/layouts/admin_view/settings_left.php
+++ b/admin/layouts/admin_view/settings_left.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/admin_view/settings_right.php b/admin/layouts/admin_view/settings_right.php
index 40e581aed..f83e2b769 100644
--- a/admin/layouts/admin_view/settings_right.php
+++ b/admin/layouts/admin_view/settings_right.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/admin_view/settings_under.php b/admin/layouts/admin_view/settings_under.php
index c57810921..60f541e32 100644
--- a/admin/layouts/admin_view/settings_under.php
+++ b/admin/layouts/admin_view/settings_under.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/batchselection.php b/admin/layouts/batchselection.php
index 30faee2bc..adfef67ba 100644
--- a/admin/layouts/batchselection.php
+++ b/admin/layouts/batchselection.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/component/admin_views_fullwidth.php b/admin/layouts/component/admin_views_fullwidth.php
index 65fa8c2ef..6b28d8968 100644
--- a/admin/layouts/component/admin_views_fullwidth.php
+++ b/admin/layouts/component/admin_views_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/component/details_above.php b/admin/layouts/component/details_above.php
index df4477c77..7bc696487 100644
--- a/admin/layouts/component/details_above.php
+++ b/admin/layouts/component/details_above.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/component/details_left.php b/admin/layouts/component/details_left.php
index ab5ed3dd0..ae960a74d 100644
--- a/admin/layouts/component/details_left.php
+++ b/admin/layouts/component/details_left.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/component/details_right.php b/admin/layouts/component/details_right.php
index 36d8907e6..9ef0853ba 100644
--- a/admin/layouts/component/details_right.php
+++ b/admin/layouts/component/details_right.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/component/details_under.php b/admin/layouts/component/details_under.php
index eefe37d18..5efd990f5 100644
--- a/admin/layouts/component/details_under.php
+++ b/admin/layouts/component/details_under.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/component/ftp_servers_fullwidth.php b/admin/layouts/component/ftp_servers_fullwidth.php
index 7a1fea511..a2fbae040 100644
--- a/admin/layouts/component/ftp_servers_fullwidth.php
+++ b/admin/layouts/component/ftp_servers_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/component/publishing.php b/admin/layouts/component/publishing.php
index c741e0680..73ad5578d 100644
--- a/admin/layouts/component/publishing.php
+++ b/admin/layouts/component/publishing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/component/publlshing.php b/admin/layouts/component/publlshing.php
index b2c46664a..2f2f4e7e1 100644
--- a/admin/layouts/component/publlshing.php
+++ b/admin/layouts/component/publlshing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/component/readme_left.php b/admin/layouts/component/readme_left.php
index f650e5678..4e75a084a 100644
--- a/admin/layouts/component/readme_left.php
+++ b/admin/layouts/component/readme_left.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/component/readme_right.php b/admin/layouts/component/readme_right.php
index 50b7963d6..7724da8db 100644
--- a/admin/layouts/component/readme_right.php
+++ b/admin/layouts/component/readme_right.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/component/scripts_fullwidth.php b/admin/layouts/component/scripts_fullwidth.php
index 4d0df678f..fd0201a17 100644
--- a/admin/layouts/component/scripts_fullwidth.php
+++ b/admin/layouts/component/scripts_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/component/settings_left.php b/admin/layouts/component/settings_left.php
index 4a44adf52..2525618b8 100644
--- a/admin/layouts/component/settings_left.php
+++ b/admin/layouts/component/settings_left.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/component/settings_right.php b/admin/layouts/component/settings_right.php
index 075ab5ea4..9909121e1 100644
--- a/admin/layouts/component/settings_right.php
+++ b/admin/layouts/component/settings_right.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/component/site_views_fullwidth.php b/admin/layouts/component/site_views_fullwidth.php
index da5892b61..795d7e931 100644
--- a/admin/layouts/component/site_views_fullwidth.php
+++ b/admin/layouts/component/site_views_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php b/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php
index e421bfd70..28828b419 100644
--- a/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php
+++ b/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/custom_admin_view/custom_buttons_left.php b/admin/layouts/custom_admin_view/custom_buttons_left.php
index ac613ff2d..32c560d70 100644
--- a/admin/layouts/custom_admin_view/custom_buttons_left.php
+++ b/admin/layouts/custom_admin_view/custom_buttons_left.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/custom_admin_view/custom_script_fullwidth.php b/admin/layouts/custom_admin_view/custom_script_fullwidth.php
index a250840c5..c23cd7d22 100644
--- a/admin/layouts/custom_admin_view/custom_script_fullwidth.php
+++ b/admin/layouts/custom_admin_view/custom_script_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/custom_admin_view/details_above.php b/admin/layouts/custom_admin_view/details_above.php
index df4477c77..7bc696487 100644
--- a/admin/layouts/custom_admin_view/details_above.php
+++ b/admin/layouts/custom_admin_view/details_above.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/custom_admin_view/details_fullwidth.php b/admin/layouts/custom_admin_view/details_fullwidth.php
index 898f0d326..7c226801c 100644
--- a/admin/layouts/custom_admin_view/details_fullwidth.php
+++ b/admin/layouts/custom_admin_view/details_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/custom_admin_view/details_left.php b/admin/layouts/custom_admin_view/details_left.php
index 0d649af21..9ac821ff4 100644
--- a/admin/layouts/custom_admin_view/details_left.php
+++ b/admin/layouts/custom_admin_view/details_left.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/custom_admin_view/details_right.php b/admin/layouts/custom_admin_view/details_right.php
index 9adc0b43e..f4e6c9be4 100644
--- a/admin/layouts/custom_admin_view/details_right.php
+++ b/admin/layouts/custom_admin_view/details_right.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/custom_admin_view/details_rightside.php b/admin/layouts/custom_admin_view/details_rightside.php
index 886e16c0d..7f25b1687 100644
--- a/admin/layouts/custom_admin_view/details_rightside.php
+++ b/admin/layouts/custom_admin_view/details_rightside.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/custom_admin_view/details_under.php b/admin/layouts/custom_admin_view/details_under.php
index eefe37d18..5efd990f5 100644
--- a/admin/layouts/custom_admin_view/details_under.php
+++ b/admin/layouts/custom_admin_view/details_under.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/custom_admin_view/publishing.php b/admin/layouts/custom_admin_view/publishing.php
index c741e0680..73ad5578d 100644
--- a/admin/layouts/custom_admin_view/publishing.php
+++ b/admin/layouts/custom_admin_view/publishing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/custom_admin_view/publlshing.php b/admin/layouts/custom_admin_view/publlshing.php
index b2c46664a..2f2f4e7e1 100644
--- a/admin/layouts/custom_admin_view/publlshing.php
+++ b/admin/layouts/custom_admin_view/publlshing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/dynamic_get/abacus_fullwidth.php b/admin/layouts/dynamic_get/abacus_fullwidth.php
index 546398f09..f79baccc0 100644
--- a/admin/layouts/dynamic_get/abacus_fullwidth.php
+++ b/admin/layouts/dynamic_get/abacus_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/dynamic_get/abacus_left.php b/admin/layouts/dynamic_get/abacus_left.php
index 95690a4b6..ae8ae53e7 100644
--- a/admin/layouts/dynamic_get/abacus_left.php
+++ b/admin/layouts/dynamic_get/abacus_left.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/dynamic_get/custom_script_fullwidth.php b/admin/layouts/dynamic_get/custom_script_fullwidth.php
index 41e49e001..00540b1d6 100644
--- a/admin/layouts/dynamic_get/custom_script_fullwidth.php
+++ b/admin/layouts/dynamic_get/custom_script_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/dynamic_get/gettable_above.php b/admin/layouts/dynamic_get/gettable_above.php
index cb4b449d4..77062c75a 100644
--- a/admin/layouts/dynamic_get/gettable_above.php
+++ b/admin/layouts/dynamic_get/gettable_above.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/dynamic_get/gettable_fullwidth.php b/admin/layouts/dynamic_get/gettable_fullwidth.php
index a3433dcf6..aec4d8616 100644
--- a/admin/layouts/dynamic_get/gettable_fullwidth.php
+++ b/admin/layouts/dynamic_get/gettable_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/dynamic_get/gettable_left.php b/admin/layouts/dynamic_get/gettable_left.php
index 20beec182..17ede6e9a 100644
--- a/admin/layouts/dynamic_get/gettable_left.php
+++ b/admin/layouts/dynamic_get/gettable_left.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/dynamic_get/gettable_right.php b/admin/layouts/dynamic_get/gettable_right.php
index 99b9ec8d8..e0fc3c0ea 100644
--- a/admin/layouts/dynamic_get/gettable_right.php
+++ b/admin/layouts/dynamic_get/gettable_right.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/dynamic_get/gettable_under.php b/admin/layouts/dynamic_get/gettable_under.php
index 7a82b2d28..7d01b217d 100644
--- a/admin/layouts/dynamic_get/gettable_under.php
+++ b/admin/layouts/dynamic_get/gettable_under.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/dynamic_get/publishing.php b/admin/layouts/dynamic_get/publishing.php
index c741e0680..73ad5578d 100644
--- a/admin/layouts/dynamic_get/publishing.php
+++ b/admin/layouts/dynamic_get/publishing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/dynamic_get/publlshing.php b/admin/layouts/dynamic_get/publlshing.php
index b2c46664a..2f2f4e7e1 100644
--- a/admin/layouts/dynamic_get/publlshing.php
+++ b/admin/layouts/dynamic_get/publlshing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/field/details_fullwidth.php b/admin/layouts/field/details_fullwidth.php
index c06d62003..a4a697e3a 100644
--- a/admin/layouts/field/details_fullwidth.php
+++ b/admin/layouts/field/details_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/field/details_left.php b/admin/layouts/field/details_left.php
index 64ed33af5..eec376cdb 100644
--- a/admin/layouts/field/details_left.php
+++ b/admin/layouts/field/details_left.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/field/details_right.php b/admin/layouts/field/details_right.php
index 074c8cc1b..3dfd401d4 100644
--- a/admin/layouts/field/details_right.php
+++ b/admin/layouts/field/details_right.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/field/details_under.php b/admin/layouts/field/details_under.php
index eefe37d18..5efd990f5 100644
--- a/admin/layouts/field/details_under.php
+++ b/admin/layouts/field/details_under.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/field/publishing.php b/admin/layouts/field/publishing.php
index c741e0680..73ad5578d 100644
--- a/admin/layouts/field/publishing.php
+++ b/admin/layouts/field/publishing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/field/publlshing.php b/admin/layouts/field/publlshing.php
index b2c46664a..2f2f4e7e1 100644
--- a/admin/layouts/field/publlshing.php
+++ b/admin/layouts/field/publlshing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/field/scripts_left.php b/admin/layouts/field/scripts_left.php
index 3b5bcb8ce..bb82b26a2 100644
--- a/admin/layouts/field/scripts_left.php
+++ b/admin/layouts/field/scripts_left.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/field/scripts_right.php b/admin/layouts/field/scripts_right.php
index 6fc57af9a..137c0be70 100644
--- a/admin/layouts/field/scripts_right.php
+++ b/admin/layouts/field/scripts_right.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/fieldtype/details_left.php b/admin/layouts/fieldtype/details_left.php
index 279df6d61..83cc3e7dd 100644
--- a/admin/layouts/fieldtype/details_left.php
+++ b/admin/layouts/fieldtype/details_left.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/fieldtype/details_right.php b/admin/layouts/fieldtype/details_right.php
index cec6f222f..2845f35de 100644
--- a/admin/layouts/fieldtype/details_right.php
+++ b/admin/layouts/fieldtype/details_right.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/fieldtype/fields_fullwidth.php b/admin/layouts/fieldtype/fields_fullwidth.php
index 3381a4944..bbf72c115 100644
--- a/admin/layouts/fieldtype/fields_fullwidth.php
+++ b/admin/layouts/fieldtype/fields_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@@ -29,7 +29,7 @@
defined('_JEXEC') or die('Restricted access');
// set the defaults
-$items = $displayData->vyyfields;
+$items = $displayData->vyzfields;
$user = JFactory::getUser();
$id = $displayData->item->id;
$edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit";
diff --git a/admin/layouts/fieldtype/publishing.php b/admin/layouts/fieldtype/publishing.php
index c741e0680..73ad5578d 100644
--- a/admin/layouts/fieldtype/publishing.php
+++ b/admin/layouts/fieldtype/publishing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/fieldtype/publlshing.php b/admin/layouts/fieldtype/publlshing.php
index b2c46664a..2f2f4e7e1 100644
--- a/admin/layouts/fieldtype/publlshing.php
+++ b/admin/layouts/fieldtype/publlshing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/help_document/details_above.php b/admin/layouts/help_document/details_above.php
index c6ed84a94..4175e0407 100644
--- a/admin/layouts/help_document/details_above.php
+++ b/admin/layouts/help_document/details_above.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/help_document/details_fullwidth.php b/admin/layouts/help_document/details_fullwidth.php
index 21279e5d5..72fc36907 100644
--- a/admin/layouts/help_document/details_fullwidth.php
+++ b/admin/layouts/help_document/details_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/help_document/details_left.php b/admin/layouts/help_document/details_left.php
index fc8438826..8a9a8f9ca 100644
--- a/admin/layouts/help_document/details_left.php
+++ b/admin/layouts/help_document/details_left.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/help_document/details_right.php b/admin/layouts/help_document/details_right.php
index cc87d71bd..d495b1a3c 100644
--- a/admin/layouts/help_document/details_right.php
+++ b/admin/layouts/help_document/details_right.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/help_document/details_under.php b/admin/layouts/help_document/details_under.php
index eefe37d18..5efd990f5 100644
--- a/admin/layouts/help_document/details_under.php
+++ b/admin/layouts/help_document/details_under.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/help_document/publishing.php b/admin/layouts/help_document/publishing.php
index c741e0680..73ad5578d 100644
--- a/admin/layouts/help_document/publishing.php
+++ b/admin/layouts/help_document/publishing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/help_document/publlshing.php b/admin/layouts/help_document/publlshing.php
index 8084b77fa..839c2b7a9 100644
--- a/admin/layouts/help_document/publlshing.php
+++ b/admin/layouts/help_document/publlshing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/layout/custom_script_fullwidth.php b/admin/layouts/layout/custom_script_fullwidth.php
index 09d3aa84b..3d9e27b2e 100644
--- a/admin/layouts/layout/custom_script_fullwidth.php
+++ b/admin/layouts/layout/custom_script_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/layout/details_fullwidth.php b/admin/layouts/layout/details_fullwidth.php
index f51c0b5f0..df1ffd5e6 100644
--- a/admin/layouts/layout/details_fullwidth.php
+++ b/admin/layouts/layout/details_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/layout/details_left.php b/admin/layouts/layout/details_left.php
index 0d649af21..9ac821ff4 100644
--- a/admin/layouts/layout/details_left.php
+++ b/admin/layouts/layout/details_left.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/layout/details_right.php b/admin/layouts/layout/details_right.php
index 9adc0b43e..f4e6c9be4 100644
--- a/admin/layouts/layout/details_right.php
+++ b/admin/layouts/layout/details_right.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/layout/details_rightside.php b/admin/layouts/layout/details_rightside.php
index 85ebb8b6e..c63d82015 100644
--- a/admin/layouts/layout/details_rightside.php
+++ b/admin/layouts/layout/details_rightside.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/layout/details_under.php b/admin/layouts/layout/details_under.php
index eefe37d18..5efd990f5 100644
--- a/admin/layouts/layout/details_under.php
+++ b/admin/layouts/layout/details_under.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/layout/publishing.php b/admin/layouts/layout/publishing.php
index c741e0680..73ad5578d 100644
--- a/admin/layouts/layout/publishing.php
+++ b/admin/layouts/layout/publishing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/layout/publlshing.php b/admin/layouts/layout/publlshing.php
index b2c46664a..2f2f4e7e1 100644
--- a/admin/layouts/layout/publlshing.php
+++ b/admin/layouts/layout/publlshing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/site_view/custom_buttons_fullwidth.php b/admin/layouts/site_view/custom_buttons_fullwidth.php
index ad78c75ff..c37562842 100644
--- a/admin/layouts/site_view/custom_buttons_fullwidth.php
+++ b/admin/layouts/site_view/custom_buttons_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/site_view/details_above.php b/admin/layouts/site_view/details_above.php
index df4477c77..7bc696487 100644
--- a/admin/layouts/site_view/details_above.php
+++ b/admin/layouts/site_view/details_above.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/site_view/details_fullwidth.php b/admin/layouts/site_view/details_fullwidth.php
index 898f0d326..7c226801c 100644
--- a/admin/layouts/site_view/details_fullwidth.php
+++ b/admin/layouts/site_view/details_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/site_view/details_left.php b/admin/layouts/site_view/details_left.php
index 0d649af21..9ac821ff4 100644
--- a/admin/layouts/site_view/details_left.php
+++ b/admin/layouts/site_view/details_left.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/site_view/details_right.php b/admin/layouts/site_view/details_right.php
index 9adc0b43e..f4e6c9be4 100644
--- a/admin/layouts/site_view/details_right.php
+++ b/admin/layouts/site_view/details_right.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/site_view/details_rightside.php b/admin/layouts/site_view/details_rightside.php
index 886e16c0d..7f25b1687 100644
--- a/admin/layouts/site_view/details_rightside.php
+++ b/admin/layouts/site_view/details_rightside.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/site_view/details_under.php b/admin/layouts/site_view/details_under.php
index eefe37d18..5efd990f5 100644
--- a/admin/layouts/site_view/details_under.php
+++ b/admin/layouts/site_view/details_under.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/site_view/javascript_css_fullwidth.php b/admin/layouts/site_view/javascript_css_fullwidth.php
index a91610b0f..8dbcf51cb 100644
--- a/admin/layouts/site_view/javascript_css_fullwidth.php
+++ b/admin/layouts/site_view/javascript_css_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/site_view/php_fullwidth.php b/admin/layouts/site_view/php_fullwidth.php
index 21b8d410b..c55b70a12 100644
--- a/admin/layouts/site_view/php_fullwidth.php
+++ b/admin/layouts/site_view/php_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/site_view/publishing.php b/admin/layouts/site_view/publishing.php
index c741e0680..73ad5578d 100644
--- a/admin/layouts/site_view/publishing.php
+++ b/admin/layouts/site_view/publishing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/site_view/publlshing.php b/admin/layouts/site_view/publlshing.php
index b2c46664a..2f2f4e7e1 100644
--- a/admin/layouts/site_view/publlshing.php
+++ b/admin/layouts/site_view/publlshing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/snippet/details_above.php b/admin/layouts/snippet/details_above.php
index a0ece3f97..3f013367d 100644
--- a/admin/layouts/snippet/details_above.php
+++ b/admin/layouts/snippet/details_above.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/snippet/details_left.php b/admin/layouts/snippet/details_left.php
index 77cf7d7fd..cbbba122e 100644
--- a/admin/layouts/snippet/details_left.php
+++ b/admin/layouts/snippet/details_left.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/snippet/details_right.php b/admin/layouts/snippet/details_right.php
index 78898c313..8ccf02215 100644
--- a/admin/layouts/snippet/details_right.php
+++ b/admin/layouts/snippet/details_right.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/snippet/publishing.php b/admin/layouts/snippet/publishing.php
index c741e0680..73ad5578d 100644
--- a/admin/layouts/snippet/publishing.php
+++ b/admin/layouts/snippet/publishing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/snippet/publlshing.php b/admin/layouts/snippet/publlshing.php
index b2c46664a..2f2f4e7e1 100644
--- a/admin/layouts/snippet/publlshing.php
+++ b/admin/layouts/snippet/publlshing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/template/custom_script_fullwidth.php b/admin/layouts/template/custom_script_fullwidth.php
index 09d3aa84b..3d9e27b2e 100644
--- a/admin/layouts/template/custom_script_fullwidth.php
+++ b/admin/layouts/template/custom_script_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/template/details_fullwidth.php b/admin/layouts/template/details_fullwidth.php
index db3e684c8..5e2b9a8fd 100644
--- a/admin/layouts/template/details_fullwidth.php
+++ b/admin/layouts/template/details_fullwidth.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/template/details_left.php b/admin/layouts/template/details_left.php
index 0d649af21..9ac821ff4 100644
--- a/admin/layouts/template/details_left.php
+++ b/admin/layouts/template/details_left.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/template/details_right.php b/admin/layouts/template/details_right.php
index 9adc0b43e..f4e6c9be4 100644
--- a/admin/layouts/template/details_right.php
+++ b/admin/layouts/template/details_right.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/template/details_rightside.php b/admin/layouts/template/details_rightside.php
index 85ebb8b6e..c63d82015 100644
--- a/admin/layouts/template/details_rightside.php
+++ b/admin/layouts/template/details_rightside.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/template/details_under.php b/admin/layouts/template/details_under.php
index eefe37d18..5efd990f5 100644
--- a/admin/layouts/template/details_under.php
+++ b/admin/layouts/template/details_under.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/template/publishing.php b/admin/layouts/template/publishing.php
index c741e0680..73ad5578d 100644
--- a/admin/layouts/template/publishing.php
+++ b/admin/layouts/template/publishing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/layouts/template/publlshing.php b/admin/layouts/template/publlshing.php
index b2c46664a..2f2f4e7e1 100644
--- a/admin/layouts/template/publlshing.php
+++ b/admin/layouts/template/publlshing.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
diff --git a/admin/models/admin_view.php b/admin/models/admin_view.php
index b640201e1..a161d3835 100644
--- a/admin/models/admin_view.php
+++ b/admin/models/admin_view.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@@ -96,40 +96,16 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$item->metadata = $registry->toArray();
}
- if (!empty($item->php_before_delete))
+ if (!empty($item->php_import_setdata))
{
- // base64 Decode php_before_delete.
- $item->php_before_delete = base64_decode($item->php_before_delete);
+ // base64 Decode php_import_setdata.
+ $item->php_import_setdata = base64_decode($item->php_import_setdata);
}
- if (!empty($item->php_postsavehook))
+ if (!empty($item->php_import))
{
- // base64 Decode php_postsavehook.
- $item->php_postsavehook = base64_decode($item->php_postsavehook);
- }
-
- if (!empty($item->sql))
- {
- // base64 Decode sql.
- $item->sql = base64_decode($item->sql);
- }
-
- if (!empty($item->php_getlistquery))
- {
- // base64 Decode php_getlistquery.
- $item->php_getlistquery = base64_decode($item->php_getlistquery);
- }
-
- if (!empty($item->php_batchcopy))
- {
- // base64 Decode php_batchcopy.
- $item->php_batchcopy = base64_decode($item->php_batchcopy);
- }
-
- if (!empty($item->php_document))
- {
- // base64 Decode php_document.
- $item->php_document = base64_decode($item->php_document);
+ // base64 Decode php_import.
+ $item->php_import = base64_decode($item->php_import);
}
if (!empty($item->php_getitem))
@@ -138,94 +114,124 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$item->php_getitem = base64_decode($item->php_getitem);
}
- if (!empty($item->html_import_view))
- {
- // base64 Decode html_import_view.
- $item->html_import_view = base64_decode($item->html_import_view);
- }
-
if (!empty($item->php_getitems))
{
// base64 Decode php_getitems.
$item->php_getitems = base64_decode($item->php_getitems);
}
- if (!empty($item->php_save))
- {
- // base64 Decode php_save.
- $item->php_save = base64_decode($item->php_save);
- }
-
- if (!empty($item->php_allowedit))
- {
- // base64 Decode php_allowedit.
- $item->php_allowedit = base64_decode($item->php_allowedit);
- }
-
- if (!empty($item->php_batchmove))
- {
- // base64 Decode php_batchmove.
- $item->php_batchmove = base64_decode($item->php_batchmove);
- }
-
- if (!empty($item->php_after_delete))
- {
- // base64 Decode php_after_delete.
- $item->php_after_delete = base64_decode($item->php_after_delete);
- }
-
- if (!empty($item->php_import_save))
- {
- // base64 Decode php_import_save.
- $item->php_import_save = base64_decode($item->php_import_save);
- }
-
if (!empty($item->css_view))
{
// base64 Decode css_view.
$item->css_view = base64_decode($item->css_view);
}
+ if (!empty($item->php_getlistquery))
+ {
+ // base64 Decode php_getlistquery.
+ $item->php_getlistquery = base64_decode($item->php_getlistquery);
+ }
+
+ if (!empty($item->php_save))
+ {
+ // base64 Decode php_save.
+ $item->php_save = base64_decode($item->php_save);
+ }
+
if (!empty($item->css_views))
{
// base64 Decode css_views.
$item->css_views = base64_decode($item->css_views);
}
+ if (!empty($item->php_postsavehook))
+ {
+ // base64 Decode php_postsavehook.
+ $item->php_postsavehook = base64_decode($item->php_postsavehook);
+ }
+
+ if (!empty($item->php_allowedit))
+ {
+ // base64 Decode php_allowedit.
+ $item->php_allowedit = base64_decode($item->php_allowedit);
+ }
+
if (!empty($item->javascript_view_file))
{
// base64 Decode javascript_view_file.
$item->javascript_view_file = base64_decode($item->javascript_view_file);
}
+ if (!empty($item->php_batchcopy))
+ {
+ // base64 Decode php_batchcopy.
+ $item->php_batchcopy = base64_decode($item->php_batchcopy);
+ }
+
+ if (!empty($item->php_batchmove))
+ {
+ // base64 Decode php_batchmove.
+ $item->php_batchmove = base64_decode($item->php_batchmove);
+ }
+
if (!empty($item->javascript_view_footer))
{
// base64 Decode javascript_view_footer.
$item->javascript_view_footer = base64_decode($item->javascript_view_footer);
}
+ if (!empty($item->php_before_delete))
+ {
+ // base64 Decode php_before_delete.
+ $item->php_before_delete = base64_decode($item->php_before_delete);
+ }
+
+ if (!empty($item->php_after_delete))
+ {
+ // base64 Decode php_after_delete.
+ $item->php_after_delete = base64_decode($item->php_after_delete);
+ }
+
if (!empty($item->javascript_views_file))
{
// base64 Decode javascript_views_file.
$item->javascript_views_file = base64_decode($item->javascript_views_file);
}
+ if (!empty($item->php_document))
+ {
+ // base64 Decode php_document.
+ $item->php_document = base64_decode($item->php_document);
+ }
+
if (!empty($item->javascript_views_footer))
{
// base64 Decode javascript_views_footer.
$item->javascript_views_footer = base64_decode($item->javascript_views_footer);
}
+ if (!empty($item->sql))
+ {
+ // base64 Decode sql.
+ $item->sql = base64_decode($item->sql);
+ }
+
if (!empty($item->php_ajaxmethod))
{
// base64 Decode php_ajaxmethod.
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
}
- if (!empty($item->php_import_setdata))
+ if (!empty($item->html_import_view))
{
- // base64 Decode php_import_setdata.
- $item->php_import_setdata = base64_decode($item->php_import_setdata);
+ // base64 Decode html_import_view.
+ $item->html_import_view = base64_decode($item->html_import_view);
+ }
+
+ if (!empty($item->php_import_save))
+ {
+ // base64 Decode php_import_save.
+ $item->php_import_save = base64_decode($item->php_import_save);
}
if (!empty($item->id))
@@ -244,7 +250,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
- public function getVxdfields()
+ public function getVxefields()
{
// Get the user object.
$user = JFactory::getUser();
@@ -313,13 +319,13 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
foreach ($items as $nr => &$item)
{
// convert datatype
- $item->datatype = $this->selectionTranslationVxdfields($item->datatype, 'datatype');
+ $item->datatype = $this->selectionTranslationVxefields($item->datatype, 'datatype');
// convert indexes
- $item->indexes = $this->selectionTranslationVxdfields($item->indexes, 'indexes');
+ $item->indexes = $this->selectionTranslationVxefields($item->indexes, 'indexes');
// convert null_switch
- $item->null_switch = $this->selectionTranslationVxdfields($item->null_switch, 'null_switch');
+ $item->null_switch = $this->selectionTranslationVxefields($item->null_switch, 'null_switch');
// convert store
- $item->store = $this->selectionTranslationVxdfields($item->store, 'store');
+ $item->store = $this->selectionTranslationVxefields($item->store, 'store');
}
}
@@ -354,7 +360,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
*
* @return translatable string
*/
- public function selectionTranslationVxdfields($value,$name)
+ public function selectionTranslationVxefields($value,$name)
{
// Array of datatype language strings
if ($name == 'datatype')
@@ -1117,40 +1123,16 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$data['metadata'] = (string) $metadata;
}
- // Set the php_before_delete string to base64 string.
- if (isset($data['php_before_delete']))
+ // Set the php_import_setdata string to base64 string.
+ if (isset($data['php_import_setdata']))
{
- $data['php_before_delete'] = base64_encode($data['php_before_delete']);
+ $data['php_import_setdata'] = base64_encode($data['php_import_setdata']);
}
- // Set the php_postsavehook string to base64 string.
- if (isset($data['php_postsavehook']))
+ // Set the php_import string to base64 string.
+ if (isset($data['php_import']))
{
- $data['php_postsavehook'] = base64_encode($data['php_postsavehook']);
- }
-
- // Set the sql string to base64 string.
- if (isset($data['sql']))
- {
- $data['sql'] = base64_encode($data['sql']);
- }
-
- // Set the php_getlistquery string to base64 string.
- if (isset($data['php_getlistquery']))
- {
- $data['php_getlistquery'] = base64_encode($data['php_getlistquery']);
- }
-
- // Set the php_batchcopy string to base64 string.
- if (isset($data['php_batchcopy']))
- {
- $data['php_batchcopy'] = base64_encode($data['php_batchcopy']);
- }
-
- // Set the php_document string to base64 string.
- if (isset($data['php_document']))
- {
- $data['php_document'] = base64_encode($data['php_document']);
+ $data['php_import'] = base64_encode($data['php_import']);
}
// Set the php_getitem string to base64 string.
@@ -1159,94 +1141,124 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$data['php_getitem'] = base64_encode($data['php_getitem']);
}
- // Set the html_import_view string to base64 string.
- if (isset($data['html_import_view']))
- {
- $data['html_import_view'] = base64_encode($data['html_import_view']);
- }
-
// Set the php_getitems string to base64 string.
if (isset($data['php_getitems']))
{
$data['php_getitems'] = base64_encode($data['php_getitems']);
}
- // Set the php_save string to base64 string.
- if (isset($data['php_save']))
- {
- $data['php_save'] = base64_encode($data['php_save']);
- }
-
- // Set the php_allowedit string to base64 string.
- if (isset($data['php_allowedit']))
- {
- $data['php_allowedit'] = base64_encode($data['php_allowedit']);
- }
-
- // Set the php_batchmove string to base64 string.
- if (isset($data['php_batchmove']))
- {
- $data['php_batchmove'] = base64_encode($data['php_batchmove']);
- }
-
- // Set the php_after_delete string to base64 string.
- if (isset($data['php_after_delete']))
- {
- $data['php_after_delete'] = base64_encode($data['php_after_delete']);
- }
-
- // Set the php_import_save string to base64 string.
- if (isset($data['php_import_save']))
- {
- $data['php_import_save'] = base64_encode($data['php_import_save']);
- }
-
// Set the css_view string to base64 string.
if (isset($data['css_view']))
{
$data['css_view'] = base64_encode($data['css_view']);
}
+ // Set the php_getlistquery string to base64 string.
+ if (isset($data['php_getlistquery']))
+ {
+ $data['php_getlistquery'] = base64_encode($data['php_getlistquery']);
+ }
+
+ // Set the php_save string to base64 string.
+ if (isset($data['php_save']))
+ {
+ $data['php_save'] = base64_encode($data['php_save']);
+ }
+
// Set the css_views string to base64 string.
if (isset($data['css_views']))
{
$data['css_views'] = base64_encode($data['css_views']);
}
+ // Set the php_postsavehook string to base64 string.
+ if (isset($data['php_postsavehook']))
+ {
+ $data['php_postsavehook'] = base64_encode($data['php_postsavehook']);
+ }
+
+ // Set the php_allowedit string to base64 string.
+ if (isset($data['php_allowedit']))
+ {
+ $data['php_allowedit'] = base64_encode($data['php_allowedit']);
+ }
+
// Set the javascript_view_file string to base64 string.
if (isset($data['javascript_view_file']))
{
$data['javascript_view_file'] = base64_encode($data['javascript_view_file']);
}
+ // Set the php_batchcopy string to base64 string.
+ if (isset($data['php_batchcopy']))
+ {
+ $data['php_batchcopy'] = base64_encode($data['php_batchcopy']);
+ }
+
+ // Set the php_batchmove string to base64 string.
+ if (isset($data['php_batchmove']))
+ {
+ $data['php_batchmove'] = base64_encode($data['php_batchmove']);
+ }
+
// Set the javascript_view_footer string to base64 string.
if (isset($data['javascript_view_footer']))
{
$data['javascript_view_footer'] = base64_encode($data['javascript_view_footer']);
}
+ // Set the php_before_delete string to base64 string.
+ if (isset($data['php_before_delete']))
+ {
+ $data['php_before_delete'] = base64_encode($data['php_before_delete']);
+ }
+
+ // Set the php_after_delete string to base64 string.
+ if (isset($data['php_after_delete']))
+ {
+ $data['php_after_delete'] = base64_encode($data['php_after_delete']);
+ }
+
// Set the javascript_views_file string to base64 string.
if (isset($data['javascript_views_file']))
{
$data['javascript_views_file'] = base64_encode($data['javascript_views_file']);
}
+ // Set the php_document string to base64 string.
+ if (isset($data['php_document']))
+ {
+ $data['php_document'] = base64_encode($data['php_document']);
+ }
+
// Set the javascript_views_footer string to base64 string.
if (isset($data['javascript_views_footer']))
{
$data['javascript_views_footer'] = base64_encode($data['javascript_views_footer']);
}
+ // Set the sql string to base64 string.
+ if (isset($data['sql']))
+ {
+ $data['sql'] = base64_encode($data['sql']);
+ }
+
// Set the php_ajaxmethod string to base64 string.
if (isset($data['php_ajaxmethod']))
{
$data['php_ajaxmethod'] = base64_encode($data['php_ajaxmethod']);
}
- // Set the php_import_setdata string to base64 string.
- if (isset($data['php_import_setdata']))
+ // Set the html_import_view string to base64 string.
+ if (isset($data['html_import_view']))
{
- $data['php_import_setdata'] = base64_encode($data['php_import_setdata']);
+ $data['html_import_view'] = base64_encode($data['html_import_view']);
+ }
+
+ // Set the php_import_save string to base64 string.
+ if (isset($data['php_import_save']))
+ {
+ $data['php_import_save'] = base64_encode($data['php_import_save']);
}
// Set the Params Items to data
diff --git a/admin/models/admin_views.php b/admin/models/admin_views.php
index 676b0ad96..6e80e63df 100644
--- a/admin/models/admin_views.php
+++ b/admin/models/admin_views.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@@ -261,50 +261,52 @@ class ComponentbuilderModelAdmin_views extends JModelList
continue;
}
- // decode php_before_delete
- $item->php_before_delete = base64_decode($item->php_before_delete);
- // decode php_postsavehook
- $item->php_postsavehook = base64_decode($item->php_postsavehook);
- // decode sql
- $item->sql = base64_decode($item->sql);
- // decode php_getlistquery
- $item->php_getlistquery = base64_decode($item->php_getlistquery);
- // decode php_batchcopy
- $item->php_batchcopy = base64_decode($item->php_batchcopy);
- // decode php_document
- $item->php_document = base64_decode($item->php_document);
- // decode php_getitem
- $item->php_getitem = base64_decode($item->php_getitem);
- // decode html_import_view
- $item->html_import_view = base64_decode($item->html_import_view);
- // decode php_getitems
- $item->php_getitems = base64_decode($item->php_getitems);
- // decode php_save
- $item->php_save = base64_decode($item->php_save);
- // decode php_allowedit
- $item->php_allowedit = base64_decode($item->php_allowedit);
- // decode php_batchmove
- $item->php_batchmove = base64_decode($item->php_batchmove);
- // decode php_after_delete
- $item->php_after_delete = base64_decode($item->php_after_delete);
- // decode php_import_save
- $item->php_import_save = base64_decode($item->php_import_save);
- // decode css_view
- $item->css_view = base64_decode($item->css_view);
- // decode css_views
- $item->css_views = base64_decode($item->css_views);
- // decode javascript_view_file
- $item->javascript_view_file = base64_decode($item->javascript_view_file);
- // decode javascript_view_footer
- $item->javascript_view_footer = base64_decode($item->javascript_view_footer);
- // decode javascript_views_file
- $item->javascript_views_file = base64_decode($item->javascript_views_file);
- // decode javascript_views_footer
- $item->javascript_views_footer = base64_decode($item->javascript_views_footer);
- // decode php_ajaxmethod
- $item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
// decode php_import_setdata
$item->php_import_setdata = base64_decode($item->php_import_setdata);
+ // decode php_import
+ $item->php_import = base64_decode($item->php_import);
+ // decode php_getitem
+ $item->php_getitem = base64_decode($item->php_getitem);
+ // decode php_getitems
+ $item->php_getitems = base64_decode($item->php_getitems);
+ // decode css_view
+ $item->css_view = base64_decode($item->css_view);
+ // decode php_getlistquery
+ $item->php_getlistquery = base64_decode($item->php_getlistquery);
+ // decode php_save
+ $item->php_save = base64_decode($item->php_save);
+ // decode css_views
+ $item->css_views = base64_decode($item->css_views);
+ // decode php_postsavehook
+ $item->php_postsavehook = base64_decode($item->php_postsavehook);
+ // decode php_allowedit
+ $item->php_allowedit = base64_decode($item->php_allowedit);
+ // decode javascript_view_file
+ $item->javascript_view_file = base64_decode($item->javascript_view_file);
+ // decode php_batchcopy
+ $item->php_batchcopy = base64_decode($item->php_batchcopy);
+ // decode php_batchmove
+ $item->php_batchmove = base64_decode($item->php_batchmove);
+ // decode javascript_view_footer
+ $item->javascript_view_footer = base64_decode($item->javascript_view_footer);
+ // decode php_before_delete
+ $item->php_before_delete = base64_decode($item->php_before_delete);
+ // decode php_after_delete
+ $item->php_after_delete = base64_decode($item->php_after_delete);
+ // decode javascript_views_file
+ $item->javascript_views_file = base64_decode($item->javascript_views_file);
+ // decode php_document
+ $item->php_document = base64_decode($item->php_document);
+ // decode javascript_views_footer
+ $item->javascript_views_footer = base64_decode($item->javascript_views_footer);
+ // decode sql
+ $item->sql = base64_decode($item->sql);
+ // decode php_ajaxmethod
+ $item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
+ // decode html_import_view
+ $item->html_import_view = base64_decode($item->html_import_view);
+ // decode php_import_save
+ $item->php_import_save = base64_decode($item->php_import_save);
// unset the values we don't want exported.
unset($item->asset_id);
unset($item->checked_out);
diff --git a/admin/models/ajax.php b/admin/models/ajax.php
index 5c0df6c23..5be1684a6 100644
--- a/admin/models/ajax.php
+++ b/admin/models/ajax.php
@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.1.6
+ @version 2.1.7
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@@ -52,6 +52,16 @@ class ComponentbuilderModelAjax extends JModelList
{
// set the setdata script
$script['setdata'] = array();
+ $script['setdata'][] = "\t/**";
+ $script['setdata'][] = "\t* Set the data from the spreadsheet to the database";
+ $script['setdata'][] = "\t*";
+ $script['setdata'][] = "\t* @param string \$package Paths to the uploaded package file";
+ $script['setdata'][] = "\t*";
+ $script['setdata'][] = "\t* @return boolean false on failure";
+ $script['setdata'][] = "\t*";
+ $script['setdata'][] = "\t**/";
+ $script['setdata'][] = "\tprotected function setData(\$package,\$table,\$target_headers)";
+ $script['setdata'][] = "\t{";
$script['setdata'][] = "\t\tif (###-#-#-Component###Helper::checkArray(\$target_headers))";
$script['setdata'][] = "\t\t{";
$script['setdata'][] = "\t\t\t// make sure the file is loaded\t\t";
@@ -75,9 +85,21 @@ class ComponentbuilderModelAjax extends JModelList
$script['setdata'][] = "\t\t\t}";
$script['setdata'][] = "\t\t}";
$script['setdata'][] = "\t\treturn false;";
+ $script['setdata'][] = "\t}";
}
elseif ('save' == $type)
{
+ $script['save'] = array();
+ $script['save'][] = "\t/**";
+ $script['save'][] = "\t* Save the data from the file to the database";
+ $script['save'][] = "\t*";
+ $script['save'][] = "\t* @param string \$package Paths to the uploaded package file";
+ $script['save'][] = "\t*";
+ $script['save'][] = "\t* @return boolean false on failure";
+ $script['save'][] = "\t*";
+ $script['save'][] = "\t**/";
+ $script['save'][] = "\tprotected function save(\$data,\$table)";
+ $script['save'][] = "\t{";
$script['save'][] = "\t\t// import the data if there is any";
$script['save'][] = "\t\tif(###-#-#-Component###Helper::checkArray(\$data['array']))";
$script['save'][] = "\t\t{";
@@ -286,11 +308,13 @@ class ComponentbuilderModelAjax extends JModelList
$script['save'][] = "\t\t\t}";
$script['save'][] = "\t\t}";
$script['save'][] = "\t\treturn false;";
+ $script['save'][] = "\t}";
}
elseif ('view' == $type)
{
+ $script['view'] = array();
$script['view'][] = "";
+ $script['view'][] = "";
$script['view'][] = "\n";
- $script['view'][] = "