Added another field to admin_view to add custom script to document method of component admin views.

This commit is contained in:
Llewellyn van der Merwe 2016-04-22 22:32:02 +01:00
parent 6871bfd9a2
commit 57bf464111
368 changed files with 2332 additions and 2215 deletions

View File

@ -1,4 +1,4 @@
# Component Builder (2.1.3) # Component Builder (2.1.4)
This is a [Joomla 3.x] (http://www.joomla.org/) component. This is a [Joomla 3.x] (http://www.joomla.org/) component.
@ -33,7 +33,7 @@ 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) + *Name*: [Component Builder] (https://www.vdm.io/joomla-component-builder)
+ *First Build*: 30th April, 2015 + *First Build*: 30th April, 2015
+ *Last Build*: 22nd April, 2016 + *Last Build*: 22nd April, 2016
+ *Version*: 2.1.3 + *Version*: 2.1.4
+ *Copyright*: Copyright (C) 2015. All Rights Reserved + *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
@ -45,8 +45,8 @@ due to [Automated Component Builder] (https://www.vdm.io/joomla-component-builde
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**, > (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.) > never making one mistake or taking any coffee break.)
+ *Line count*: **80585** + *Line count*: **80706**
+ *File count*: **495** + *File count*: **496**
+ *Folder count*: **98** + *Folder count*: **98**
**148 Hours** or **19 Eight Hour Days** (the actual time the author spent) **148 Hours** or **19 Eight Hour Days** (the actual time the author spent)
@ -54,8 +54,8 @@ due to [Automated Component Builder] (https://www.vdm.io/joomla-component-builde
> (with the following break down: > (with the following break down:
> **debugging @56hours** = codingtime / 4; > **debugging @56hours** = codingtime / 4;
> **planning @32hours** = codingtime / 7; > **planning @32hours** = codingtime / 7;
> **mapping @22hours** = codingtime / 10; > **mapping @23hours** = codingtime / 10;
> **office @37hours** = codingtime / 6;) > **office @38hours** = codingtime / 6;)
**373 Hours** or **47 Eight Hour Days** **373 Hours** or **47 Eight Hour Days**
(a total of the realistic time frame for this project) (a total of the realistic time frame for this project)

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -9,7 +9,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -122,7 +122,7 @@ class ###Component###View###View### extends JViewLegacy
$document->setTitle(JText::_($isNew ? 'COM_###COMPONENT###_###VIEW###_NEW' : 'COM_###COMPONENT###_###VIEW###_EDIT')); $document->setTitle(JText::_($isNew ? 'COM_###COMPONENT###_###VIEW###_NEW' : 'COM_###COMPONENT###_###VIEW###_EDIT'));
$document->addStyleSheet(JURI::root() . "administrator/components/com_###component###/assets/css/###view###.css");###AJAXTOKE### ###LINKEDVIEWTABLESCRIPTS### $document->addStyleSheet(JURI::root() . "administrator/components/com_###component###/assets/css/###view###.css");###AJAXTOKE### ###LINKEDVIEWTABLESCRIPTS###
$document->addScript(JURI::root() . $this->script); $document->addScript(JURI::root() . $this->script);
$document->addScript(JURI::root() . "administrator/components/com_###component###/views/###view###/submitbutton.js"); $document->addScript(JURI::root() . "administrator/components/com_###component###/views/###view###/submitbutton.js"); ###DOCUMENT_CUSTOM_PHP###
JText::script('view not acceptable. Error'); JText::script('view not acceptable. Error');
} }
} }

View File

@ -131,7 +131,7 @@ class ###Component###View###View### extends JViewLegacy
$document->addStyleSheet(JURI::root()."components/com_###component###/assets/css/###view###.css");###AJAXTOKE### ###LINKEDVIEWTABLESCRIPTS### $document->addStyleSheet(JURI::root()."components/com_###component###/assets/css/###view###.css");###AJAXTOKE### ###LINKEDVIEWTABLESCRIPTS###
// default javascript of this view // default javascript of this view
$document->addScript(JURI::root().$this->script); $document->addScript(JURI::root().$this->script);
$document->addScript(JURI::root(). "components/com_###component###/views/###view###/submitbutton.js"); $document->addScript(JURI::root(). "components/com_###component###/views/###view###/submitbutton.js"); ###DOCUMENT_CUSTOM_PHP###
JText::script('view not acceptable. Error'); JText::script('view not acceptable. Error');
} }
} }

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -1076,7 +1076,7 @@ class Get
} }
$this->lang = 'admin'; $this->lang = 'admin';
$addArray = array('php_getitem','php_save','php_postsavehook','php_getitems','php_getlistquery','php_allowedit','php_before_delete','php_after_delete','php_batchcopy','php_batchmove'); $addArray = array('php_getitem','php_save','php_postsavehook','php_getitems','php_getlistquery','php_allowedit','php_before_delete','php_after_delete','php_batchcopy','php_batchmove','php_document');
foreach ($addArray as $scripter) foreach ($addArray as $scripter)
{ {
if (isset($view->{'add_'.$scripter}) && $view->{'add_'.$scripter} == 1) if (isset($view->{'add_'.$scripter}) && $view->{'add_'.$scripter} == 1)

View File

@ -256,6 +256,19 @@ class Infusion extends Interpretation
// ###AJAXTOKE### <<<DYNAMIC>>> // ###AJAXTOKE### <<<DYNAMIC>>>
$this->fileContentDynamic[$viewName_single]['###AJAXTOKE###'] = $this->setAjaxToke($viewName_single); $this->fileContentDynamic[$viewName_single]['###AJAXTOKE###'] = $this->setAjaxToke($viewName_single);
if (isset($this->customScriptBuilder['php_document'][$viewName_single]) && ComponentbuilderHelper::checkString($this->customScriptBuilder['php_document'][$viewName_single]))
{
// ###DOCUMENT_CUSTOM_PHP### <<<DYNAMIC>>>
$this->fileContentDynamic[$viewName_single]['###DOCUMENT_CUSTOM_PHP###']
= str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_document'][$viewName_single]);
// clear some memory
unset($this->customScriptBuilder['php_document'][$viewName_single]);
}
else
{
$this->fileContentDynamic[$viewName_single]['###DOCUMENT_CUSTOM_PHP###'] = '';
}
// ###LINKEDVIEWTABLESCRIPTS### <<<DYNAMIC>>> // ###LINKEDVIEWTABLESCRIPTS### <<<DYNAMIC>>>
$this->fileContentDynamic[$viewName_single]['###LINKEDVIEWTABLESCRIPTS###'] = ''; $this->fileContentDynamic[$viewName_single]['###LINKEDVIEWTABLESCRIPTS###'] = '';

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -92,6 +92,8 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_BATCHMOVE="Add Php Batchmove"
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_BATCHMOVE_LABEL="Add PHP (batchMove Method)" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_BATCHMOVE_LABEL="Add PHP (batchMove Method)"
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_BEFORE_DELETE="Add Php Before Delete" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_BEFORE_DELETE="Add Php Before Delete"
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_BEFORE_DELETE_LABEL="Add PHP (script - before delete)" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_BEFORE_DELETE_LABEL="Add PHP (script - before delete)"
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_DOCUMENT="Add Php Document"
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_DOCUMENT_LABEL="Add PHP (custom document script)"
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEM="Add Php Getitem" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEM="Add Php Getitem"
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEMS="Add Php Getitems" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEMS="Add Php Getitems"
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEMS_LABEL="Add PHP (getItems Method)" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEMS_LABEL="Add PHP (getItems Method)"
@ -284,6 +286,10 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE="Php Before Delete"
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE_DESCRIPTION="Add your PHP here! [Do not add the php tags]" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE_DESCRIPTION="Add your PHP here! [Do not add the php tags]"
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE_HINT="// PHP Here that should run in the delete Method before items are deleted. Array $pks is an array of record primary keys." COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE_HINT="// PHP Here that should run in the delete Method before items are deleted. Array $pks is an array of record primary keys."
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE_LABEL="PHP" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE_LABEL="PHP"
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT="Php Document"
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION="PHP script to the document method."
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT_HINT="// add custom PHP script to the document method."
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT_LABEL="Custom Script (Document)"
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM="Php Getitem" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM="Php Getitem"
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS="Php Getitems" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS="Php Getitems"
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_DESCRIPTION="Add your PHP here! [Do not add the php tags]" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_DESCRIPTION="Add your PHP here! [Do not add the php tags]"

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder
@ -29,7 +29,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->vwzfields; $items = $displayData->vxafields;
$user = JFactory::getUser(); $user = JFactory::getUser();
$id = $displayData->item->id; $id = $displayData->item->id;
$edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit"; $edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit";

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder
@ -53,7 +53,9 @@ $fields = $displayData->get('fields') ?: array(
'add_php_before_delete', 'add_php_before_delete',
'php_before_delete', 'php_before_delete',
'add_php_after_delete', 'add_php_after_delete',
'php_after_delete' 'php_after_delete',
'add_php_document',
'php_document'
); );
?> ?>

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

View File

@ -10,7 +10,7 @@
|_| |_|
/-------------------------------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3 @version 2.1.4
@build 22nd April, 2016 @build 22nd April, 2016
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder

Some files were not shown because too many files have changed in this diff Show More