forked from joomla/Component-Builder
Added another PHP field to the admin views, improved the custom code methods in the compiler, and fixed some permissional errors.
This commit is contained in:
parent
675ecece84
commit
a7e641b499
10
README.md
10
README.md
@ -1,4 +1,4 @@
|
|||||||
# Component Builder (2.1.16)
|
# Component Builder (2.1.17)
|
||||||
|
|
||||||
This is a [Joomla 3.x] (http://www.joomla.org/) component.
|
This is a [Joomla 3.x] (http://www.joomla.org/) component.
|
||||||
|
|
||||||
@ -32,12 +32,12 @@ Would you require more help please open and issue here on [gitHub today](https:/
|
|||||||
+ *Author*: [Llewellyn van der Merwe] (mailto:info@vdm.io)
|
+ *Author*: [Llewellyn van der Merwe] (mailto:info@vdm.io)
|
||||||
+ *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*: 29th August, 2016
|
+ *Last Build*: 3rd September, 2016
|
||||||
+ *Version*: 2.1.16
|
+ *Version*: 2.1.17
|
||||||
+ *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
|
||||||
+ *Line count*: **83199**
|
+ *Line count*: **83550**
|
||||||
+ *File count*: **509**
|
+ *File count*: **510**
|
||||||
+ *Folder count*: **98**
|
+ *Folder count*: **98**
|
||||||
|
|
||||||
> This **component** was build with a Joomla [Automated Component Builder] (https://www.vdm.io/joomla-component-builder).
|
> This **component** was build with a Joomla [Automated Component Builder] (https://www.vdm.io/joomla-component-builder).
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage admin.css
|
@subpackage admin.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage admin_view.css
|
@subpackage admin_view.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage admin_views.css
|
@subpackage admin_views.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage component.css
|
@subpackage component.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage components.css
|
@subpackage components.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_admin_view.css
|
@subpackage custom_admin_view.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_admin_views.css
|
@subpackage custom_admin_views.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage dashboard.css
|
@subpackage dashboard.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage dynamic_get.css
|
@subpackage dynamic_get.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage dynamic_gets.css
|
@subpackage dynamic_gets.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage field.css
|
@subpackage field.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage fields.css
|
@subpackage fields.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage fieldtype.css
|
@subpackage fieldtype.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage fieldtypes.css
|
@subpackage fieldtypes.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage help_document.css
|
@subpackage help_document.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage help_documents.css
|
@subpackage help_documents.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage layout.css
|
@subpackage layout.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage layouts.css
|
@subpackage layouts.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage site_view.css
|
@subpackage site_view.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage site_views.css
|
@subpackage site_views.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage snippet.css
|
@subpackage snippet.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage snippets.css
|
@subpackage snippets.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage template.css
|
@subpackage template.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage templates.css
|
@subpackage templates.css
|
||||||
|
@ -95,7 +95,7 @@ class ###Component###Model###Views### extends JModelList
|
|||||||
public function getItems()
|
public function getItems()
|
||||||
{###LICENSE_LOCKED_CHECK### ###CHECKINCALL###
|
{###LICENSE_LOCKED_CHECK### ###CHECKINCALL###
|
||||||
// load parent items
|
// load parent items
|
||||||
$items = parent::getItems();###GET_ITEMS_METHOD_STRING_FIX### ###SELECTIONTRANSLATIONFIX###
|
$items = parent::getItems();###GET_ITEMS_METHOD_STRING_FIX### ###SELECTIONTRANSLATIONFIX### ###GET_ITEMS_METHOD_AFTER_ALL###
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage componentbuilder.php
|
@subpackage componentbuilder.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage controller.php
|
@subpackage controller.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage admin_view.php
|
@subpackage admin_view.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage admin_views.php
|
@subpackage admin_views.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage ajax.json.php
|
@subpackage ajax.json.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage compiler.php
|
@subpackage compiler.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage component.php
|
@subpackage component.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage componentbuilder.php
|
@subpackage componentbuilder.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage components.php
|
@subpackage components.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_admin_view.php
|
@subpackage custom_admin_view.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_admin_views.php
|
@subpackage custom_admin_views.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage dynamic_get.php
|
@subpackage dynamic_get.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage dynamic_gets.php
|
@subpackage dynamic_gets.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage field.php
|
@subpackage field.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage fields.php
|
@subpackage fields.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage fieldtype.php
|
@subpackage fieldtype.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage fieldtypes.php
|
@subpackage fieldtypes.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage help.php
|
@subpackage help.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage help_document.php
|
@subpackage help_document.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage help_documents.php
|
@subpackage help_documents.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage import.php
|
@subpackage import.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage layout.php
|
@subpackage layout.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage layouts.php
|
@subpackage layouts.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage site_view.php
|
@subpackage site_view.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage site_views.php
|
@subpackage site_views.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage snippet.php
|
@subpackage snippet.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage snippets.php
|
@subpackage snippets.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage template.php
|
@subpackage template.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage templates.php
|
@subpackage templates.php
|
||||||
|
@ -83,6 +83,23 @@ class Compiler extends Infusion
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the line number in comments
|
||||||
|
*
|
||||||
|
* @param int $nr The line number
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private function setLine($nr)
|
||||||
|
{
|
||||||
|
if ($this->loadLineNr)
|
||||||
|
{
|
||||||
|
return ' [Compiler '.$nr.']';
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
protected function updateFiles()
|
protected function updateFiles()
|
||||||
{
|
{
|
||||||
if (isset($this->newFiles['static']) && ComponentbuilderHelper::checkArray($this->newFiles['static']) && isset($this->newFiles['dynamic']) && ComponentbuilderHelper::checkArray($this->newFiles['dynamic']))
|
if (isset($this->newFiles['static']) && ComponentbuilderHelper::checkArray($this->newFiles['static']) && isset($this->newFiles['dynamic']) && ComponentbuilderHelper::checkArray($this->newFiles['dynamic']))
|
||||||
|
@ -332,6 +332,23 @@ class Get
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the line number in comments
|
||||||
|
*
|
||||||
|
* @param int $nr The line number
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private function setLine($nr)
|
||||||
|
{
|
||||||
|
if ($this->loadLineNr)
|
||||||
|
{
|
||||||
|
return ' [Get '.$nr.']';
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get all Component Data
|
* get all Component Data
|
||||||
*
|
*
|
||||||
@ -1055,7 +1072,7 @@ class Get
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// add_php
|
// add_php
|
||||||
$addArrayP = 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');
|
$addArrayP = array('php_getitem','php_save','php_postsavehook','php_getitems','php_getitems_after_all','php_getlistquery','php_allowedit','php_before_delete','php_after_delete','php_batchcopy','php_batchmove','php_document');
|
||||||
foreach ($addArrayP as $scripter)
|
foreach ($addArrayP as $scripter)
|
||||||
{
|
{
|
||||||
if (isset($view->{'add_'.$scripter}) && $view->{'add_'.$scripter} == 1)
|
if (isset($view->{'add_'.$scripter}) && $view->{'add_'.$scripter} == 1)
|
||||||
|
@ -189,6 +189,23 @@ class Structure extends Get
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the line number in comments
|
||||||
|
*
|
||||||
|
* @param int $nr The line number
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private function setLine($nr)
|
||||||
|
{
|
||||||
|
if ($this->loadLineNr)
|
||||||
|
{
|
||||||
|
return ' [Structure '.$nr.']';
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build the Initial Folders
|
* Build the Initial Folders
|
||||||
*
|
*
|
||||||
|
@ -335,6 +335,23 @@ class Fields extends Structure
|
|||||||
*/
|
*/
|
||||||
public $movedPublishingFields = array();
|
public $movedPublishingFields = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the line number in comments
|
||||||
|
*
|
||||||
|
* @param int $nr The line number
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private function setLine($nr)
|
||||||
|
{
|
||||||
|
if ($this->loadLineNr)
|
||||||
|
{
|
||||||
|
return ' [Fields '.$nr.']';
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* set the Field set of a view
|
* set the Field set of a view
|
||||||
*
|
*
|
||||||
@ -657,12 +674,14 @@ class Fields extends Structure
|
|||||||
{
|
{
|
||||||
if (isset($field['settings']) && ComponentbuilderHelper::checkObject($field['settings']))
|
if (isset($field['settings']) && ComponentbuilderHelper::checkObject($field['settings']))
|
||||||
{
|
{
|
||||||
|
// reset some values
|
||||||
$name = ComponentbuilderHelper::safeString($field['settings']->name);
|
$name = ComponentbuilderHelper::safeString($field['settings']->name);
|
||||||
$typeName = ComponentbuilderHelper::safeString($field['settings']->type_name);
|
$typeName = ComponentbuilderHelper::safeString($field['settings']->type_name);
|
||||||
$multiple = false;
|
$multiple = false;
|
||||||
$langLabel = '';
|
$langLabel = '';
|
||||||
$taber = '';
|
$taber = '';
|
||||||
$fieldSet = '';
|
$fieldSet = '';
|
||||||
|
$fieldAttributes = array();
|
||||||
// set field attributes
|
// set field attributes
|
||||||
$fieldAttributes = $this->setFieldAttributes($field, $viewType, $name, $typeName, $multiple, $langLabel, $langView, $spacerCounter, $listViewName, $viewName, $placeholders);
|
$fieldAttributes = $this->setFieldAttributes($field, $viewType, $name, $typeName, $multiple, $langLabel, $langView, $spacerCounter, $listViewName, $viewName, $placeholders);
|
||||||
// check if values were set
|
// check if values were set
|
||||||
@ -928,6 +947,7 @@ class Fields extends Structure
|
|||||||
foreach ($fieldsSets as $fieldId)
|
foreach ($fieldsSets as $fieldId)
|
||||||
{
|
{
|
||||||
// get the field data
|
// get the field data
|
||||||
|
$fieldData = array();
|
||||||
$fieldData['settings'] = $this->getFieldData($fieldId, $viewName);
|
$fieldData['settings'] = $this->getFieldData($fieldId, $viewName);
|
||||||
if (ComponentbuilderHelper::checkObject($fieldData['settings']))
|
if (ComponentbuilderHelper::checkObject($fieldData['settings']))
|
||||||
{
|
{
|
||||||
@ -935,8 +955,6 @@ class Fields extends Structure
|
|||||||
$r_typeName = ComponentbuilderHelper::safeString($fieldData['settings']->type_name);
|
$r_typeName = ComponentbuilderHelper::safeString($fieldData['settings']->type_name);
|
||||||
$r_multiple = false;
|
$r_multiple = false;
|
||||||
$r_langLabel = '';
|
$r_langLabel = '';
|
||||||
// make sure that these fields are not required
|
|
||||||
$fieldData['settings']->xml = str_replace('required="', 'requirenot="', $fieldData['settings']->xml);
|
|
||||||
// add the tabs needed
|
// add the tabs needed
|
||||||
$taber = "\t\t\t";
|
$taber = "\t\t\t";
|
||||||
// get field values
|
// get field values
|
||||||
@ -1308,6 +1326,11 @@ class Fields extends Structure
|
|||||||
// dont load the button to repeatable
|
// dont load the button to repeatable
|
||||||
$xmlValue = 'false';
|
$xmlValue = 'false';
|
||||||
}
|
}
|
||||||
|
elseif ($property['name'] == 'required' && $repeatable)
|
||||||
|
{
|
||||||
|
// dont load the required to repeatable
|
||||||
|
$xmlValue = 'false';
|
||||||
|
}
|
||||||
elseif ($viewType == 2 && ($property['name'] == 'readonly' || $property['name'] == 'disabled'))
|
elseif ($viewType == 2 && ($property['name'] == 'readonly' || $property['name'] == 'disabled'))
|
||||||
{
|
{
|
||||||
// set read only
|
// set read only
|
||||||
@ -1315,7 +1338,7 @@ class Fields extends Structure
|
|||||||
}
|
}
|
||||||
elseif ($property['name'] == 'multiple')
|
elseif ($property['name'] == 'multiple')
|
||||||
{
|
{
|
||||||
$xmlValue = ComponentbuilderHelper::getBetween($field['settings']->xml, $property['name'] . '="', '"');
|
$xmlValue = (string) ComponentbuilderHelper::getBetween($field['settings']->xml, $property['name'] . '="', '"');
|
||||||
// add the multipal
|
// add the multipal
|
||||||
if ('true' == $xmlValue)
|
if ('true' == $xmlValue)
|
||||||
{
|
{
|
||||||
@ -1342,7 +1365,7 @@ class Fields extends Structure
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// set the rest of the fields
|
// set the rest of the fields
|
||||||
$xmlValue = ComponentbuilderHelper::getBetween($field['settings']->xml, $property['name'] . '="', '"');
|
$xmlValue = (string) ComponentbuilderHelper::getBetween($field['settings']->xml, $property['name'] . '="', '"');
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if translatable
|
// check if translatable
|
||||||
@ -1471,23 +1494,29 @@ class Fields extends Structure
|
|||||||
$field['settings']->datadefault = '0';
|
$field['settings']->datadefault = '0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// build the query values
|
|
||||||
$this->queryBuilder[$viewName][$name] = array(
|
|
||||||
'type' => $field['settings']->datatype,
|
|
||||||
'lenght' => $field['settings']->datalenght,
|
|
||||||
'lenght_other' => $field['settings']->datalenght_other,
|
|
||||||
'default' => $field['settings']->datadefault,
|
|
||||||
'other' => $field['settings']->datadefault_other,
|
|
||||||
'null_switch' => $field['settings']->null_switch);
|
|
||||||
// don't use these as index or uniqe keys
|
// don't use these as index or uniqe keys
|
||||||
$notKeys = array('TEXT', 'TINYTEXT', 'MEDIUMTEXT', 'LONGTEXT', 'BLOB', 'TINYBLOB', 'MEDIUMBLOB', 'LONGBLOB');
|
$textKeys = array('TEXT', 'TINYTEXT', 'MEDIUMTEXT', 'LONGTEXT', 'BLOB', 'TINYBLOB', 'MEDIUMBLOB', 'LONGBLOB');
|
||||||
|
// build the query values
|
||||||
|
$this->queryBuilder[$viewName][$name]['type'] = $field['settings']->datatype;
|
||||||
|
if (!in_array($field['settings']->datatype, $textKeys))
|
||||||
|
{
|
||||||
|
$this->queryBuilder[$viewName][$name]['lenght'] = $field['settings']->datalenght;
|
||||||
|
$this->queryBuilder[$viewName][$name]['lenght_other'] = $field['settings']->datalenght_other;
|
||||||
|
$this->queryBuilder[$viewName][$name]['default'] = $field['settings']->datadefault;
|
||||||
|
$this->queryBuilder[$viewName][$name]['other'] = $field['settings']->datadefault_other;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->queryBuilder[$viewName][$name]['default'] = 'EMPTY';
|
||||||
|
}
|
||||||
|
$this->queryBuilder[$viewName][$name]['null_switch'] = $field['settings']->null_switch;
|
||||||
// set index types
|
// set index types
|
||||||
if ($field['settings']->indexes == 1 && !in_array($field['settings']->datatype, $notKeys))
|
if ($field['settings']->indexes == 1 && !in_array($field['settings']->datatype, $textKeys))
|
||||||
{
|
{
|
||||||
// build unique keys of this view for db
|
// build unique keys of this view for db
|
||||||
$this->dbUniqueKeys[$viewName][] = $name;
|
$this->dbUniqueKeys[$viewName][] = $name;
|
||||||
}
|
}
|
||||||
elseif (($field['settings']->indexes == 2 || $field['alias'] || $field['title'] || $typeName == 'category') && !in_array($field['settings']->datatype, $notKeys))
|
elseif (($field['settings']->indexes == 2 || $field['alias'] || $field['title'] || $typeName == 'category') && !in_array($field['settings']->datatype, $textKeys))
|
||||||
{
|
{
|
||||||
// build keys of this view for db
|
// build keys of this view for db
|
||||||
$this->dbKeys[$viewName][] = $name;
|
$this->dbKeys[$viewName][] = $name;
|
||||||
|
@ -81,11 +81,11 @@ class Interpretation extends Fields
|
|||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function setLine($nr)
|
private function setLine($nr)
|
||||||
{
|
{
|
||||||
if ($this->loadLineNr)
|
if ($this->loadLineNr)
|
||||||
{
|
{
|
||||||
return ' ['.__CLASS__.' '.$nr.']';
|
return ' [Interpretation '.$nr.']';
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
@ -2285,6 +2285,32 @@ class Interpretation extends Fields
|
|||||||
return $method;
|
return $method;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getCustomScriptBuilder($first, $second, $prefix = '', $note = null, $unset = null, $default = null, $sufix = '')
|
||||||
|
{
|
||||||
|
// check if there is any custom script
|
||||||
|
$script = '';
|
||||||
|
if (isset($this->customScriptBuilder[$first][$second]) && ComponentbuilderHelper::checkString($this->customScriptBuilder[$first][$second]))
|
||||||
|
{
|
||||||
|
// add not if set
|
||||||
|
if ($note)
|
||||||
|
{
|
||||||
|
$script .= $note;
|
||||||
|
}
|
||||||
|
$script .= $prefix . str_replace( array_keys($this->placeholders), array_values($this->placeholders), $this->customScriptBuilder[$first][$second]) . $sufix;
|
||||||
|
// clear some memory
|
||||||
|
if ($unset)
|
||||||
|
{
|
||||||
|
unset($this->customScriptBuilder[$first][$second]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// if not found return default
|
||||||
|
if ($default)
|
||||||
|
{
|
||||||
|
return $default;
|
||||||
|
}
|
||||||
|
return $script;
|
||||||
|
}
|
||||||
|
|
||||||
public function setCustomViewListQuery(&$get,$code,$return = true)
|
public function setCustomViewListQuery(&$get,$code,$return = true)
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkObject($get))
|
if (ComponentbuilderHelper::checkObject($get))
|
||||||
@ -2303,13 +2329,7 @@ class Interpretation extends Fields
|
|||||||
$getItem .= "\n\n\t\t//".$this->setLine(__LINE__)." Create a new query object.";
|
$getItem .= "\n\n\t\t//".$this->setLine(__LINE__)." Create a new query object.";
|
||||||
$getItem .= "\n\t\t\$query = \$db->getQuery(true);";
|
$getItem .= "\n\t\t\$query = \$db->getQuery(true);";
|
||||||
// check if there is any custom script
|
// check if there is any custom script
|
||||||
if (isset($this->customScriptBuilder[$this->target.'_php_getlistquery'][$code]) && ComponentbuilderHelper::checkString($this->customScriptBuilder[$this->target.'_php_getlistquery'][$code]))
|
$getItem .= $this->getCustomScriptBuilder($this->target.'_php_getlistquery', $code, '', "\n\n\t\t//".$this->setLine(__LINE__)." Filtering.", true);
|
||||||
{
|
|
||||||
$getItem .= "\n\n\t\t//".$this->setLine(__LINE__)." Filtering.";
|
|
||||||
$getItem .= str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder[$this->target.'_php_getlistquery'][$code]);
|
|
||||||
// clear some memory
|
|
||||||
unset($this->customScriptBuilder[$this->target.'_php_getlistquery'][$code]);
|
|
||||||
}
|
|
||||||
// set main get query
|
// set main get query
|
||||||
$getItem .= $this->setCustomViewQuery($get->main_get,$code);
|
$getItem .= $this->setCustomViewQuery($get->main_get,$code);
|
||||||
// setup filters
|
// setup filters
|
||||||
@ -3352,10 +3372,7 @@ class Interpretation extends Fields
|
|||||||
}
|
}
|
||||||
|
|
||||||
// add custom php to getitem method
|
// add custom php to getitem method
|
||||||
if (isset($this->customScriptBuilder['php_getitem'][$view]) && ComponentbuilderHelper::checkString($this->customScriptBuilder['php_getitem'][$view]))
|
$script .= $this->getCustomScriptBuilder('php_getitem', $view, "\n\n");
|
||||||
{
|
|
||||||
$script .= "\n\n".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_getitem'][$view]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $script;
|
return $script;
|
||||||
}
|
}
|
||||||
@ -3459,44 +3476,10 @@ class Interpretation extends Fields
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// add custom PHP to the save method
|
// add custom PHP to the save method
|
||||||
if(isset($this->customScriptBuilder['php_save'][$view]) && ComponentbuilderHelper::checkString($this->customScriptBuilder['php_save'][$view]))
|
$script .= $this->getCustomScriptBuilder('php_save', $view, "\n\n");
|
||||||
{
|
|
||||||
$script .= "\n\n" . str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_save'][$view]);
|
|
||||||
}
|
|
||||||
return $script;
|
return $script;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setJmodelAdminBeforeDelete($view)
|
|
||||||
{
|
|
||||||
// add custom PHP to the delete Method
|
|
||||||
if(isset($this->customScriptBuilder['php_before_delete'][$view]) && ComponentbuilderHelper::checkString($this->customScriptBuilder['php_before_delete'][$view]))
|
|
||||||
{
|
|
||||||
return "\n".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_before_delete'][$view]);
|
|
||||||
}
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setJmodelAdminAfterDelete($view)
|
|
||||||
{
|
|
||||||
// add custom PHP to the delete Method
|
|
||||||
if(isset($this->customScriptBuilder['php_after_delete'][$view]) && ComponentbuilderHelper::checkString($this->customScriptBuilder['php_after_delete'][$view]))
|
|
||||||
{
|
|
||||||
return "\n\n".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_after_delete'][$view]);
|
|
||||||
}
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setPostSaveHook($view)
|
|
||||||
{
|
|
||||||
// add custom PHP to the post save hook Method
|
|
||||||
if(isset($this->customScriptBuilder['php_postsavehook'][$view]) && ComponentbuilderHelper::checkString($this->customScriptBuilder['php_postsavehook'][$view]))
|
|
||||||
{
|
|
||||||
return "\n".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_postsavehook'][$view])."\n\n\t\treturn;";
|
|
||||||
}
|
|
||||||
return "\n\t\treturn;";
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setJtableConstructor($view)
|
public function setJtableConstructor($view)
|
||||||
{
|
{
|
||||||
// reset
|
// reset
|
||||||
@ -4068,14 +4051,7 @@ class Interpretation extends Fields
|
|||||||
$title = $this->titleBuilder[$viewName_single];
|
$title = $this->titleBuilder[$viewName_single];
|
||||||
}
|
}
|
||||||
// prepare custom script
|
// prepare custom script
|
||||||
if (isset($this->customScriptBuilder['php_batchmove'][$viewName_single]) && ComponentbuilderHelper::checkString($this->customScriptBuilder['php_batchmove'][$viewName_single]))
|
$customScript = $this->getCustomScriptBuilder('php_batchmove', $viewName_single, "\n\n", null, true);
|
||||||
{
|
|
||||||
$customScript = "\n\n".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_batchmove'][$viewName_single]);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$customScript = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
$batchmove[] = "\n\t/**";
|
$batchmove[] = "\n\t/**";
|
||||||
$batchmove[] = "\t * Batch move items to a new category";
|
$batchmove[] = "\t * Batch move items to a new category";
|
||||||
@ -4265,14 +4241,7 @@ class Interpretation extends Fields
|
|||||||
$title = $this->titleBuilder[$viewName_single];
|
$title = $this->titleBuilder[$viewName_single];
|
||||||
}
|
}
|
||||||
// prepare custom script
|
// prepare custom script
|
||||||
if (isset($this->customScriptBuilder['php_batchcopy'][$viewName_single]) && ComponentbuilderHelper::checkString($this->customScriptBuilder['php_batchcopy'][$viewName_single]))
|
$customScript = $this->getCustomScriptBuilder('php_batchcopy', $viewName_single, "\n\n", null, true);
|
||||||
{
|
|
||||||
$customScript = "\n\n".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_batchcopy'][$viewName_single]);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$customScript = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
$batchcopy[] = "\n\t/**";
|
$batchcopy[] = "\n\t/**";
|
||||||
$batchcopy[] = "\t * Batch copy items to a new category or current.";
|
$batchcopy[] = "\t * Batch copy items to a new category or current.";
|
||||||
@ -4672,7 +4641,11 @@ class Interpretation extends Fields
|
|||||||
{
|
{
|
||||||
$default = $data['other'];
|
$default = $data['other'];
|
||||||
}
|
}
|
||||||
if ($default == 'DATETIME' || $default == 'CURRENT_TIMESTAMP')
|
if ($default == 'EMPTY')
|
||||||
|
{
|
||||||
|
$default = $data['null_switch'];
|
||||||
|
}
|
||||||
|
elseif ($default == 'DATETIME' || $default == 'CURRENT_TIMESTAMP')
|
||||||
{
|
{
|
||||||
$default = $default.' '.$data['null_switch'];
|
$default = $default.' '.$data['null_switch'];
|
||||||
}
|
}
|
||||||
@ -4690,7 +4663,7 @@ class Interpretation extends Fields
|
|||||||
}
|
}
|
||||||
// set the lenght
|
// set the lenght
|
||||||
$lenght = '';
|
$lenght = '';
|
||||||
if ($data['lenght'] == 'Other' && isset($data['lenght_other']) && $data['lenght_other'] > 0)
|
if (isset($data['lenght']) && $data['lenght'] == 'Other' && isset($data['lenght_other']) && $data['lenght_other'] > 0)
|
||||||
{
|
{
|
||||||
$lenght = '('.$data['lenght_other'].')';
|
$lenght = '('.$data['lenght_other'].')';
|
||||||
}
|
}
|
||||||
@ -4704,7 +4677,7 @@ class Interpretation extends Fields
|
|||||||
// check if default field was over written
|
// check if default field was over written
|
||||||
if (!isset($this->fieldsNames[$view]['params']))
|
if (!isset($this->fieldsNames[$view]['params']))
|
||||||
{
|
{
|
||||||
$db .= "\n\t`params` TEXT NOT NULL DEFAULT '',";
|
$db .= "\n\t`params` TEXT NOT NULL,";
|
||||||
}
|
}
|
||||||
// check if default field was over written
|
// check if default field was over written
|
||||||
if (!isset($this->fieldsNames[$view]['published']))
|
if (!isset($this->fieldsNames[$view]['published']))
|
||||||
@ -5250,7 +5223,7 @@ class Interpretation extends Fields
|
|||||||
$coreLoadLink = true;
|
$coreLoadLink = true;
|
||||||
}
|
}
|
||||||
// check if the item has permissions.
|
// check if the item has permissions.
|
||||||
if ($coreLoadLink && isset($this->permissionBuilder[$coreLink['core.edit']]) && ComponentbuilderHelper::checkArray($this->permissionBuilder[$coreLink['core.edit']]) && in_array($item['custom']['view'],$this->permissionBuilder[$coreLink['core.edit']]))
|
if ($coreLoadLink && (isset($coreLink['core.edit']) && isset($this->permissionBuilder[$coreLink['core.edit']])) && ComponentbuilderHelper::checkArray($this->permissionBuilder[$coreLink['core.edit']]) && in_array($item['custom']['view'],$this->permissionBuilder[$coreLink['core.edit']]))
|
||||||
{
|
{
|
||||||
$accessCheck = "\$this->user->authorise('".$coreLink['core.edit']."', 'com_".$this->fileContentStatic['###component###'].".".$item['custom']['view'].".' . (int)\$item->".$item['id'].")";
|
$accessCheck = "\$this->user->authorise('".$coreLink['core.edit']."', 'com_".$this->fileContentStatic['###component###'].".".$item['custom']['view'].".' . (int)\$item->".$item['id'].")";
|
||||||
}
|
}
|
||||||
@ -6690,10 +6663,7 @@ class Interpretation extends Fields
|
|||||||
$query .= "\n\t\t\$query->join('LEFT', \$db->quoteName('#__categories', 'c') . ' ON (' . \$db->quoteName('a.".$categoryCodeName."') . ' = ' . \$db->quoteName('c.id') . ')');";
|
$query .= "\n\t\t\$query->join('LEFT', \$db->quoteName('#__categories', 'c') . ' ON (' . \$db->quoteName('a.".$categoryCodeName."') . ' = ' . \$db->quoteName('c.id') . ')');";
|
||||||
}
|
}
|
||||||
// add custom filtering php
|
// add custom filtering php
|
||||||
if (isset($this->customScriptBuilder['php_getlistquery'][$viewName_single]) && ComponentbuilderHelper::checkString($this->customScriptBuilder['php_getlistquery'][$viewName_single]))
|
$query .= $this->getCustomScriptBuilder('php_getlistquery', $viewName_single, "\n\n");
|
||||||
{
|
|
||||||
$query .= "\n\n".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_getlistquery'][$viewName_single]);
|
|
||||||
}
|
|
||||||
// add the custom fields query
|
// add the custom fields query
|
||||||
$query .= $this->setCustomQuery($viewName_list, $viewName_single);
|
$query .= $this->setCustomQuery($viewName_list, $viewName_single);
|
||||||
if ($key && strpos($key,'-R>') === false && strpos($key,'-A>') === false && strpos($parentKey,'-R>') === false && strpos($parentKey,'-A>') === false)
|
if ($key && strpos($key,'-R>') === false && strpos($key,'-A>') === false && strpos($parentKey,'-R>') === false && strpos($parentKey,'-A>') === false)
|
||||||
@ -6742,7 +6712,6 @@ class Interpretation extends Fields
|
|||||||
$query .= $this->setGetItemsMethodStringFix($viewName_single,$this->fileContentStatic['###Component###'],"\t");
|
$query .= $this->setGetItemsMethodStringFix($viewName_single,$this->fileContentStatic['###Component###'],"\t");
|
||||||
// ###SELECTIONTRANSLATIONFIX### <<<DYNAMIC>>>
|
// ###SELECTIONTRANSLATIONFIX### <<<DYNAMIC>>>
|
||||||
$query .= $this->setSelectionTranslationFix($viewName_list,$this->fileContentStatic['###Component###'],"\t");
|
$query .= $this->setSelectionTranslationFix($viewName_list,$this->fileContentStatic['###Component###'],"\t");
|
||||||
|
|
||||||
// filter by child repetable field values
|
// filter by child repetable field values
|
||||||
if ($key && strpos($key,'-R>') !== false && strpos($key,'-A>') === false)
|
if ($key && strpos($key,'-R>') !== false && strpos($key,'-A>') === false)
|
||||||
{
|
{
|
||||||
@ -6846,6 +6815,8 @@ class Interpretation extends Fields
|
|||||||
$query .= "\n\t\t\t\treturn false;";
|
$query .= "\n\t\t\t\treturn false;";
|
||||||
$query .= "\n\t\t\t}";
|
$query .= "\n\t\t\t}";
|
||||||
}
|
}
|
||||||
|
// add custom php to getitems method after all
|
||||||
|
$query .= $this->getCustomScriptBuilder('php_getitems_after_all', $viewName_single, "\n\n\t");
|
||||||
|
|
||||||
$query .= "\n\t\t\treturn \$items;";
|
$query .= "\n\t\t\treturn \$items;";
|
||||||
$query .= "\n\t\t}";
|
$query .= "\n\t\t}";
|
||||||
@ -6972,10 +6943,8 @@ class Interpretation extends Fields
|
|||||||
$query .= "\n\t\t\t\$query->from(\$db->quoteName('#__".$this->fileContentStatic['###component###']."_".$viewName_single."', 'a'));";
|
$query .= "\n\t\t\t\$query->from(\$db->quoteName('#__".$this->fileContentStatic['###component###']."_".$viewName_single."', 'a'));";
|
||||||
$query .= "\n\t\t\t\$query->where('a.id IN (' . implode(',',\$pks) . ')');";
|
$query .= "\n\t\t\t\$query->where('a.id IN (' . implode(',',\$pks) . ')');";
|
||||||
// add custom filtering php
|
// add custom filtering php
|
||||||
if (isset($this->customScriptBuilder['php_getlistquery'][$viewName_single]) && ComponentbuilderHelper::checkString($this->customScriptBuilder['php_getlistquery'][$viewName_single]))
|
$query .= $this->getCustomScriptBuilder('php_getlistquery', $viewName_single, "\n\n\t");
|
||||||
{
|
|
||||||
$query .= "\n\n\t".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_getlistquery'][$viewName_single]);
|
|
||||||
}
|
|
||||||
if (isset($this->accessBuilder[$viewName_single]) && ComponentbuilderHelper::checkString($this->accessBuilder[$viewName_single]))
|
if (isset($this->accessBuilder[$viewName_single]) && ComponentbuilderHelper::checkString($this->accessBuilder[$viewName_single]))
|
||||||
{
|
{
|
||||||
$query .= "\n\t\t\t//".$this->setLine(__LINE__)." Implement View Level Access";
|
$query .= "\n\t\t\t//".$this->setLine(__LINE__)." Implement View Level Access";
|
||||||
@ -6994,6 +6963,8 @@ class Interpretation extends Fields
|
|||||||
$query .= "\n\t\t\t{";
|
$query .= "\n\t\t\t{";
|
||||||
$query .= "\n\t\t\t\t\$items = \$db->loadObjectList();";
|
$query .= "\n\t\t\t\t\$items = \$db->loadObjectList();";
|
||||||
$query .= $this->setGetItemsMethodStringFix($viewName_single,$this->fileContentStatic['###Component###'],"\t\t",true);
|
$query .= $this->setGetItemsMethodStringFix($viewName_single,$this->fileContentStatic['###Component###'],"\t\t",true);
|
||||||
|
// add custom php to getitems method after all
|
||||||
|
$query .= $this->getCustomScriptBuilder('php_getitems_after_all', $viewName_single, "\n\n\t\t");
|
||||||
$query .= "\n\t\t\t\treturn \$items;";
|
$query .= "\n\t\t\t\treturn \$items;";
|
||||||
$query .= "\n\t\t\t}";
|
$query .= "\n\t\t\t}";
|
||||||
$query .= "\n\t\t}";
|
$query .= "\n\t\t}";
|
||||||
@ -7169,36 +7140,17 @@ class Interpretation extends Fields
|
|||||||
$target = array('admin' => 'import_'.$viewName_list);
|
$target = array('admin' => 'import_'.$viewName_list);
|
||||||
$this->buildDynamique($target,'customimport');
|
$this->buildDynamique($target,'customimport');
|
||||||
// load the custom script to the files
|
// load the custom script to the files
|
||||||
if (isset($this->customScriptBuilder['php_import_display']['import_'.$viewName_list]))
|
// ###IMPORT_DISPLAY_METHOD_CUSTOM### <<<DYNAMIC>>>
|
||||||
{
|
$this->fileContentDynamic['import_'.$viewName_list]['###IMPORT_DISPLAY_METHOD_CUSTOM###'] = $this->getCustomScriptBuilder('php_import_display', 'import_'.$viewName_list, "\n", null, true);
|
||||||
// ###IMPORT_DISPLAY_METHOD_CUSTOM### <<<DYNAMIC>>>
|
// ###IMPORT_SETDATE_METHOD_CUSTOM### <<<DYNAMIC>>>
|
||||||
$this->fileContentDynamic['import_'.$viewName_list]['###IMPORT_DISPLAY_METHOD_CUSTOM###'] = "\n".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_import_display']['import_'.$viewName_list]);
|
$this->fileContentDynamic['import_'.$viewName_list]['###IMPORT_SETDATE_METHOD_CUSTOM###'] = $this->getCustomScriptBuilder('php_import_setdata', 'import_'.$viewName_list, "\n", null, true);
|
||||||
unset($this->customScriptBuilder['php_import_display']['import_'.$viewName_list]);
|
// ###IMPORT_METHOD_CUSTOM### <<<DYNAMIC>>>
|
||||||
}
|
$this->fileContentDynamic['import_'.$viewName_list]['###IMPORT_METHOD_CUSTOM###'] = $this->getCustomScriptBuilder('php_import', 'import_'.$viewName_list, "\n", null, true);
|
||||||
if (isset($this->customScriptBuilder['php_import_setdata']['import_'.$viewName_list]))
|
// ###IMPORT_SAVE_METHOD_CUSTOM### <<<DYNAMIC>>>
|
||||||
{
|
$this->fileContentDynamic['import_'.$viewName_list]['###IMPORT_SAVE_METHOD_CUSTOM###'] = $this->getCustomScriptBuilder('php_import_save', 'import_'.$viewName_list, "\n", null, true);
|
||||||
// ###IMPORT_SETDATE_METHOD_CUSTOM### <<<DYNAMIC>>>
|
// ###IMPORT_DEFAULT_VIEW_CUSTOM### <<<DYNAMIC>>>
|
||||||
$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]);
|
$this->fileContentDynamic['import_'.$viewName_list]['###IMPORT_DEFAULT_VIEW_CUSTOM###'] = $this->getCustomScriptBuilder('html_import_view', 'import_'.$viewName_list, "\n", null, true);
|
||||||
unset($this->customScriptBuilder['php_import_setdata']['import_'.$viewName_list]);
|
|
||||||
}
|
|
||||||
if (isset($this->customScriptBuilder['php_import']['import_'.$viewName_list]))
|
|
||||||
{
|
|
||||||
// ###IMPORT_METHOD_CUSTOM### <<<DYNAMIC>>>
|
|
||||||
$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_METHOD_CUSTOM### <<<DYNAMIC>>>
|
|
||||||
$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]))
|
|
||||||
{
|
|
||||||
// ###IMPORT_DEFAULT_VIEW_CUSTOM### <<<DYNAMIC>>>
|
|
||||||
$this->fileContentDynamic['import_'.$viewName_list]['###IMPORT_DEFAULT_VIEW_CUSTOM###'] = "\n".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['html_import_view']['import_'.$viewName_list]);
|
|
||||||
unset($this->customScriptBuilder['html_import_view']['import_'.$viewName_list]);
|
|
||||||
}
|
|
||||||
// insure we have the view placeholders setup
|
// insure we have the view placeholders setup
|
||||||
$this->fileContentDynamic['import_'.$viewName_list]['###VIEW###'] = 'IMPORT_'.$this->placeholders['###VIEWS###'];
|
$this->fileContentDynamic['import_'.$viewName_list]['###VIEW###'] = 'IMPORT_'.$this->placeholders['###VIEWS###'];
|
||||||
$this->fileContentDynamic['import_'.$viewName_list]['###View###'] = 'Import_'.$this->placeholders['###views###'];
|
$this->fileContentDynamic['import_'.$viewName_list]['###View###'] = 'Import_'.$this->placeholders['###views###'];
|
||||||
@ -7241,10 +7193,7 @@ class Interpretation extends Fields
|
|||||||
$query .= "\n\t\t\$query->join('LEFT', \$db->quoteName('#__categories', 'c') . ' ON (' . \$db->quoteName('a.".$categoryCodeName."') . ' = ' . \$db->quoteName('c.id') . ')');";
|
$query .= "\n\t\t\$query->join('LEFT', \$db->quoteName('#__categories', 'c') . ' ON (' . \$db->quoteName('a.".$categoryCodeName."') . ' = ' . \$db->quoteName('c.id') . ')');";
|
||||||
}
|
}
|
||||||
// add custom filtering php
|
// add custom filtering php
|
||||||
if (isset($this->customScriptBuilder['php_getlistquery'][$viewName_single]) && ComponentbuilderHelper::checkString($this->customScriptBuilder['php_getlistquery'][$viewName_single]))
|
$query .= $this->getCustomScriptBuilder('php_getlistquery', $viewName_single, "\n\n");
|
||||||
{
|
|
||||||
$query .= "\n\n".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_getlistquery'][$viewName_single]);
|
|
||||||
}
|
|
||||||
// add the custom fields query
|
// add the custom fields query
|
||||||
$query .= $this->setCustomQuery($viewName_list, $viewName_single);
|
$query .= $this->setCustomQuery($viewName_list, $viewName_single);
|
||||||
$query .= "\n\n\t\t//".$this->setLine(__LINE__)." Filter by published state";
|
$query .= "\n\n\t\t//".$this->setLine(__LINE__)." Filter by published state";
|
||||||
@ -9133,14 +9082,7 @@ class Interpretation extends Fields
|
|||||||
// set component name
|
// set component name
|
||||||
$component = ComponentbuilderHelper::safeString($this->componentData->name_code);
|
$component = ComponentbuilderHelper::safeString($this->componentData->name_code);
|
||||||
// prepare custom permission script
|
// prepare custom permission script
|
||||||
if (isset($this->customScriptBuilder['php_allowedit'][$viewName_single]) && ComponentbuilderHelper::checkString($this->customScriptBuilder['php_allowedit'][$viewName_single]))
|
$customAllow = $this->getCustomScriptBuilder('php_allowedit', $viewName_single, null, true);
|
||||||
{
|
|
||||||
$customAllow = str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_allowedit'][$viewName_single]);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$customAllow = '';
|
|
||||||
}
|
|
||||||
// setup correct core target
|
// setup correct core target
|
||||||
$coreLoad = false;
|
$coreLoad = false;
|
||||||
if (isset($this->permissionCore[$viewName_single]))
|
if (isset($this->permissionCore[$viewName_single]))
|
||||||
@ -9565,14 +9507,7 @@ class Interpretation extends Fields
|
|||||||
// set component name
|
// set component name
|
||||||
$component = ComponentbuilderHelper::safeString($this->componentData->name_code);
|
$component = ComponentbuilderHelper::safeString($this->componentData->name_code);
|
||||||
// prepare custom permission script
|
// prepare custom permission script
|
||||||
if (isset($this->customScriptBuilder['php_allowedit'][$viewName_single]) && ComponentbuilderHelper::checkString($this->customScriptBuilder['php_allowedit'][$viewName_single]))
|
$customAllow = $this->getCustomScriptBuilder('php_allowedit', $viewName_single, "\t\t\$recordId\t= (int) isset(\$data[\$key]) ? \$data[\$key] : 0;\n");
|
||||||
{
|
|
||||||
$customAllow = "\t\t\$recordId\t= (int) isset(\$data[\$key]) ? \$data[\$key] : 0;\n".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_allowedit'][$viewName_single]);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$customAllow = '';
|
|
||||||
}
|
|
||||||
// setup correct core target
|
// setup correct core target
|
||||||
$coreLoad = false;
|
$coreLoad = false;
|
||||||
if (isset($this->permissionCore[$viewName_single]))
|
if (isset($this->permissionCore[$viewName_single]))
|
||||||
@ -9668,7 +9603,7 @@ class Interpretation extends Fields
|
|||||||
$allow[] = "\t\t\t\treturn;";
|
$allow[] = "\t\t\t\treturn;";
|
||||||
$allow[] = "\t\t\t}";
|
$allow[] = "\t\t\t}";
|
||||||
// check if the item has permissions.
|
// check if the item has permissions.
|
||||||
if ($coreLoad && isset($this->permissionBuilder[$core['core.delete']]) && ComponentbuilderHelper::checkArray($this->permissionBuilder[$core['core.delete']]) && in_array($viewName_single,$this->permissionBuilder[$core['core.delete']]))
|
if ($coreLoad && (isset($core['core.delete']) && isset($this->permissionBuilder[$core['core.delete']])) && ComponentbuilderHelper::checkArray($this->permissionBuilder[$core['core.delete']]) && in_array($viewName_single,$this->permissionBuilder[$core['core.delete']]))
|
||||||
{
|
{
|
||||||
$allow[] = "\n\t\t\t\$user = JFactory::getUser();";
|
$allow[] = "\n\t\t\t\$user = JFactory::getUser();";
|
||||||
$allow[] = "\t\t\t//".$this->setLine(__LINE__)." The record has been set. Check the record permissions.";
|
$allow[] = "\t\t\t//".$this->setLine(__LINE__)." The record has been set. Check the record permissions.";
|
||||||
@ -10163,14 +10098,28 @@ class Interpretation extends Fields
|
|||||||
$toolBar .= "\n\t\t\t\t\t\tJToolBarHelper::custom('".$viewName.".save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);";
|
$toolBar .= "\n\t\t\t\t\t\tJToolBarHelper::custom('".$viewName.".save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);";
|
||||||
$toolBar .= "\n\t\t\t\t\t}";
|
$toolBar .= "\n\t\t\t\t\t}";
|
||||||
$toolBar .= "\n\t\t\t\t}";
|
$toolBar .= "\n\t\t\t\t}";
|
||||||
if ($coreLoad && isset($this->historyBuilder[$viewName]) && ComponentbuilderHelper::checkString($this->historyBuilder[$viewName]))
|
if ($coreLoad && isset($core['core.edit']) && isset($this->permissionBuilder['global'][$core['core.edit']]) && ComponentbuilderHelper::checkArray($this->permissionBuilder['global'][$core['core.edit']]) && in_array($viewName,$this->permissionBuilder['global'][$core['core.edit']]))
|
||||||
{
|
{
|
||||||
$toolBar .= "\n\t\t\t\t\$canVersion = (\$this->canDo->get('core.version') && \$this->canDo->get('".$core['core.version']."'));";
|
if ($coreLoad && isset($this->historyBuilder[$viewName]) && ComponentbuilderHelper::checkString($this->historyBuilder[$viewName]))
|
||||||
$toolBar .= "\n\t\t\t\tif (\$this->state->params->get('save_history', 1) && \$this->canDo->get('".$core['core.edit']."') && \$canVersion)";
|
{
|
||||||
$toolBar .= "\n\t\t\t\t{";
|
$toolBar .= "\n\t\t\t\t\$canVersion = (\$this->canDo->get('core.version') && \$this->canDo->get('".$core['core.version']."'));";
|
||||||
$toolBar .= "\n\t\t\t\t\tJToolbarHelper::versions('com_".$this->fileContentStatic['###component###'].".".$viewName."', \$this->item->id);";
|
$toolBar .= "\n\t\t\t\tif (\$this->state->params->get('save_history', 1) && \$this->canDo->get('".$core['core.edit']."') && \$canVersion)";
|
||||||
$toolBar .= "\n\t\t\t\t}";
|
$toolBar .= "\n\t\t\t\t{";
|
||||||
}
|
$toolBar .= "\n\t\t\t\t\tJToolbarHelper::versions('com_".$this->fileContentStatic['###component###'].".".$viewName."', \$this->item->id);";
|
||||||
|
$toolBar .= "\n\t\t\t\t}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ($coreLoad && isset($this->historyBuilder[$viewName]) && ComponentbuilderHelper::checkString($this->historyBuilder[$viewName]))
|
||||||
|
{
|
||||||
|
$toolBar .= "\n\t\t\t\t\$canVersion = (\$this->canDo->get('core.version') && \$this->canDo->get('".$core['core.version']."'));";
|
||||||
|
$toolBar .= "\n\t\t\t\tif (\$this->state->params->get('save_history', 1) && \$this->canDo->get('core.edit') && \$canVersion)";
|
||||||
|
$toolBar .= "\n\t\t\t\t{";
|
||||||
|
$toolBar .= "\n\t\t\t\t\tJToolbarHelper::versions('com_".$this->fileContentStatic['###component###'].".".$viewName."', \$this->item->id);";
|
||||||
|
$toolBar .= "\n\t\t\t\t}";
|
||||||
|
}
|
||||||
|
}
|
||||||
if ($coreLoad && isset($core['core.create']) && isset($this->permissionBuilder['global'][$core['core.create']]) && ComponentbuilderHelper::checkArray($this->permissionBuilder['global'][$core['core.create']]) && in_array($viewName,$this->permissionBuilder['global'][$core['core.create']]))
|
if ($coreLoad && isset($core['core.create']) && isset($this->permissionBuilder['global'][$core['core.create']]) && ComponentbuilderHelper::checkArray($this->permissionBuilder['global'][$core['core.create']]) && in_array($viewName,$this->permissionBuilder['global'][$core['core.create']]))
|
||||||
{
|
{
|
||||||
$toolBar .= "\n\t\t\t\tif (\$this->canDo->get('".$core['core.create']."'))";
|
$toolBar .= "\n\t\t\t\tif (\$this->canDo->get('".$core['core.create']."'))";
|
||||||
@ -10662,10 +10611,7 @@ class Interpretation extends Fields
|
|||||||
}
|
}
|
||||||
|
|
||||||
// add custom php to getitems method
|
// add custom php to getitems method
|
||||||
if (isset($this->customScriptBuilder['php_getitems'][$view]) && ComponentbuilderHelper::checkString($this->customScriptBuilder['php_getitems'][$view]))
|
$fix .= $this->getCustomScriptBuilder('php_getitems', $view, "\n\n".$tab);
|
||||||
{
|
|
||||||
$fix .= "\n\n".$tab."".str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['php_getitems'][$view]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($basicCrypt)
|
if ($basicCrypt)
|
||||||
{
|
{
|
||||||
@ -12756,7 +12702,7 @@ for developing fast and powerful web interfaces. For more info visit <a href=\"h
|
|||||||
// menucontroller
|
// menucontroller
|
||||||
$menucontrollerView['action'] = $targetView_.$menuController;
|
$menucontrollerView['action'] = $targetView_.$menuController;
|
||||||
$menucontrollerView['implementation'] = '2';
|
$menucontrollerView['implementation'] = '2';
|
||||||
if (ComponentbuilderHelper::checkArray($view['settings']->permissions))
|
if (isset($view['settings']->permissions) && ComponentbuilderHelper::checkArray($view['settings']->permissions))
|
||||||
{
|
{
|
||||||
array_push($view['settings']->permissions,$menucontrollerView);
|
array_push($view['settings']->permissions,$menucontrollerView);
|
||||||
}
|
}
|
||||||
|
@ -50,6 +50,23 @@ class Infusion extends Interpretation
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the line number in comments
|
||||||
|
*
|
||||||
|
* @param int $nr The line number
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private function setLine($nr)
|
||||||
|
{
|
||||||
|
if ($this->loadLineNr)
|
||||||
|
{
|
||||||
|
return ' [Infusion '.$nr.']';
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build the content for the structure
|
* Build the content for the structure
|
||||||
*
|
*
|
||||||
@ -293,10 +310,10 @@ class Infusion extends Interpretation
|
|||||||
$this->fileContentDynamic[$viewName_single]['###LINKEDVIEWMETHODS###'] = '';
|
$this->fileContentDynamic[$viewName_single]['###LINKEDVIEWMETHODS###'] = '';
|
||||||
|
|
||||||
// ###JMODELADMIN_BEFORE_DELETE### <<<DYNAMIC>>>
|
// ###JMODELADMIN_BEFORE_DELETE### <<<DYNAMIC>>>
|
||||||
$this->fileContentDynamic[$viewName_single]['###JMODELADMIN_BEFORE_DELETE###'] = $this->setJmodelAdminBeforeDelete($viewName_single);
|
$this->fileContentDynamic[$viewName_single]['###JMODELADMIN_BEFORE_DELETE###'] = $this->getCustomScriptBuilder('php_before_delete', $viewName_single, "\n");
|
||||||
|
|
||||||
// ###JMODELADMIN_AFTER_DELETE### <<<DYNAMIC>>>
|
// ###JMODELADMIN_AFTER_DELETE### <<<DYNAMIC>>>
|
||||||
$this->fileContentDynamic[$viewName_single]['###JMODELADMIN_AFTER_DELETE###'] = $this->setJmodelAdminAfterDelete($viewName_single);
|
$this->fileContentDynamic[$viewName_single]['###JMODELADMIN_AFTER_DELETE###'] = $this->getCustomScriptBuilder('php_after_delete', $viewName_single, "\n\n");
|
||||||
|
|
||||||
// ###CHECKBOX_SAVE### <<<DYNAMIC>>>
|
// ###CHECKBOX_SAVE### <<<DYNAMIC>>>
|
||||||
$this->fileContentDynamic[$viewName_single]['###CHECKBOX_SAVE###'] = $this->setCheckboxSave($viewName_single);
|
$this->fileContentDynamic[$viewName_single]['###CHECKBOX_SAVE###'] = $this->setCheckboxSave($viewName_single);
|
||||||
@ -305,7 +322,7 @@ class Infusion extends Interpretation
|
|||||||
$this->fileContentDynamic[$viewName_single]['###METHOD_ITEM_SAVE###'] = $this->setMethodItemSave($viewName_single);
|
$this->fileContentDynamic[$viewName_single]['###METHOD_ITEM_SAVE###'] = $this->setMethodItemSave($viewName_single);
|
||||||
|
|
||||||
// ###POSTSAVEHOOK### <<<DYNAMIC>>>
|
// ###POSTSAVEHOOK### <<<DYNAMIC>>>
|
||||||
$this->fileContentDynamic[$viewName_single]['###POSTSAVEHOOK###'] = $this->setPostSaveHook($viewName_single);
|
$this->fileContentDynamic[$viewName_single]['###POSTSAVEHOOK###'] = $this->getCustomScriptBuilder('php_postsavehook', $viewName_single, "\n", null, true, "\n\t\treturn;", "\n\n\t\treturn;");
|
||||||
|
|
||||||
if (isset($this->customScriptBuilder['css_view'][$viewName_single]) && ComponentbuilderHelper::checkString($this->customScriptBuilder['css_view'][$viewName_single]))
|
if (isset($this->customScriptBuilder['css_view'][$viewName_single]) && ComponentbuilderHelper::checkString($this->customScriptBuilder['css_view'][$viewName_single]))
|
||||||
{
|
{
|
||||||
@ -383,9 +400,12 @@ class Infusion extends Interpretation
|
|||||||
$this->fileContentDynamic[$viewName_list]['###CHECKINCALL###'] = '';
|
$this->fileContentDynamic[$viewName_list]['###CHECKINCALL###'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
// ###STORE_METHOD_FIX### <<<DYNAMIC>>>
|
// ###GET_ITEMS_METHOD_STRING_FIX### <<<DYNAMIC>>>
|
||||||
$this->fileContentDynamic[$viewName_list]['###GET_ITEMS_METHOD_STRING_FIX###'] = $this->setGetItemsMethodStringFix($viewName_single,$this->fileContentStatic['###Component###']);
|
$this->fileContentDynamic[$viewName_list]['###GET_ITEMS_METHOD_STRING_FIX###'] = $this->setGetItemsMethodStringFix($viewName_single,$this->fileContentStatic['###Component###']);
|
||||||
|
|
||||||
|
// ###GET_ITEMS_METHOD_AFTER_ALL### <<<DYNAMIC>>>
|
||||||
|
$this->fileContentDynamic[$viewName_list]['###GET_ITEMS_METHOD_AFTER_ALL###'] = $this->getCustomScriptBuilder('php_getitems_after_all', $viewName_single, "\n");
|
||||||
|
|
||||||
// ###SELECTIONTRANSLATIONFIX### <<<DYNAMIC>>>
|
// ###SELECTIONTRANSLATIONFIX### <<<DYNAMIC>>>
|
||||||
$this->fileContentDynamic[$viewName_list]['###SELECTIONTRANSLATIONFIX###'] = $this->setSelectionTranslationFix($viewName_list,$this->fileContentStatic['###Component###']);
|
$this->fileContentDynamic[$viewName_list]['###SELECTIONTRANSLATIONFIX###'] = $this->setSelectionTranslationFix($viewName_list,$this->fileContentStatic['###Component###']);
|
||||||
|
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage componentbuilder.php
|
@subpackage componentbuilder.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage batch_.php
|
@subpackage batch_.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage indenter.php
|
@subpackage indenter.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage js.php
|
@subpackage js.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage minify.php
|
@subpackage minify.php
|
||||||
|
@ -103,7 +103,9 @@ 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_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_AFTER_ALL="Add Php Getitems After All"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEMS_AFTER_ALL_LABEL="Add PHP (getItems Method - after all)"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEMS_LABEL="Add PHP (getItems Method - before translation fix & decryption)"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEM_LABEL="Add PHP (getItem Method)"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEM_LABEL="Add PHP (getItem Method)"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETLISTQUERY="Add Php Getlistquery"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETLISTQUERY="Add Php Getlistquery"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETLISTQUERY_LABEL="Add PHP (getListQuery - JModelList)"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETLISTQUERY_LABEL="Add PHP (getListQuery - JModelList)"
|
||||||
@ -312,6 +314,10 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT_HINT="// add custom PHP script to t
|
|||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT_LABEL="Custom Script (Document)"
|
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_AFTER_ALL="Php Getitems After All"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_AFTER_ALL_DESCRIPTION="Add your PHP here! [Do not add the php tags]"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_AFTER_ALL_HINT="// PHP Here that should run in the getItems Method (array) $items is where all values are"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_AFTER_ALL_LABEL="PHP"
|
||||||
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]"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_HINT="// PHP Here that should run in the getItems Method (array) $items is where all values are"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_HINT="// PHP Here that should run in the getItems Method (array) $items is where all values are"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_LABEL="PHP"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_LABEL="PHP"
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage css_fullwidth.php
|
@subpackage css_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_import_fullwidth.php
|
@subpackage custom_import_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage fields_fullwidth.php
|
@subpackage fields_fullwidth.php
|
||||||
@ -29,7 +29,7 @@
|
|||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->vxffields;
|
$items = $displayData->vxgfields;
|
||||||
$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";
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage javascript_fullwidth.php
|
@subpackage javascript_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage mysql_fullwidth.php
|
@subpackage mysql_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage mysql_left.php
|
@subpackage mysql_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage php_fullwidth.php
|
@subpackage php_fullwidth.php
|
||||||
@ -38,6 +38,8 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'php_getitem',
|
'php_getitem',
|
||||||
'add_php_getitems',
|
'add_php_getitems',
|
||||||
'php_getitems',
|
'php_getitems',
|
||||||
|
'add_php_getitems_after_all',
|
||||||
|
'php_getitems_after_all',
|
||||||
'add_php_getlistquery',
|
'add_php_getlistquery',
|
||||||
'php_getlistquery',
|
'php_getlistquery',
|
||||||
'add_php_save',
|
'add_php_save',
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage settings_above.php
|
@subpackage settings_above.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage settings_left.php
|
@subpackage settings_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage settings_right.php
|
@subpackage settings_right.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage settings_under.php
|
@subpackage settings_under.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage batchselection.php
|
@subpackage batchselection.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage admin_views_fullwidth.php
|
@subpackage admin_views_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_under.php
|
@subpackage details_under.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage ftp_servers_fullwidth.php
|
@subpackage ftp_servers_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage readme_left.php
|
@subpackage readme_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage readme_right.php
|
@subpackage readme_right.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage scripts_fullwidth.php
|
@subpackage scripts_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage settings_left.php
|
@subpackage settings_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage settings_right.php
|
@subpackage settings_right.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage site_views_fullwidth.php
|
@subpackage site_views_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_buttons_fullwidth.php
|
@subpackage custom_buttons_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_buttons_left.php
|
@subpackage custom_buttons_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_script_fullwidth.php
|
@subpackage custom_script_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.1.16
|
@version 2.1.17
|
||||||
@build 29th August, 2016
|
@build 3rd September, 2016
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_fullwidth.php
|
@subpackage details_fullwidth.php
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user