diff --git a/README.md b/README.md index eebc011f2..4cce98539 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,11 @@ This is a [Joomla 3.x](https://extensions.joomla.org/extension/component-builder ![Component Builder image](https://raw.githubusercontent.com/vdm-io/Joomla-Component-Builder/master/admin/assets/images/vdm-component.jpg "The Component Builder") -The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) that is highly advanced, truly able to build extremely complex components in a fraction of the time. +The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time. Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.5.6) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.5.8) with **ALL** its features and **ALL** concepts totally open-source and free! > Watch Quick Build of a Hello World component in [JCB on Youtube](https://youtu.be/1KBBtQUxMTc) @@ -110,13 +110,13 @@ Component Builder is mapped as a component in itself on my local development env + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Name*: [Component Builder](http://vdm.bz/component-builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 6th October, 2017 -+ *Version*: 2.5.6 ++ *Last Build*: 20th October, 2017 ++ *Version*: 2.5.8 + *Copyright*: Copyright (C) 2015. All Rights Reserved + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html -+ *Line count*: **120884** -+ *File count*: **702** -+ *Folder count*: **121** ++ *Line count*: **125744** ++ *File count*: **742** ++ *Folder count*: **129** > This **component** was build with a Joomla [Automated Component Builder](http://vdm.bz/component-builder). > Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io) diff --git a/admin/README.txt b/admin/README.txt index eebc011f2..4cce98539 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -5,11 +5,11 @@ This is a [Joomla 3.x](https://extensions.joomla.org/extension/component-builder ![Component Builder image](https://raw.githubusercontent.com/vdm-io/Joomla-Component-Builder/master/admin/assets/images/vdm-component.jpg "The Component Builder") -The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) that is highly advanced, truly able to build extremely complex components in a fraction of the time. +The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time. Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.5.6) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.5.8) with **ALL** its features and **ALL** concepts totally open-source and free! > Watch Quick Build of a Hello World component in [JCB on Youtube](https://youtu.be/1KBBtQUxMTc) @@ -110,13 +110,13 @@ Component Builder is mapped as a component in itself on my local development env + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Name*: [Component Builder](http://vdm.bz/component-builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 6th October, 2017 -+ *Version*: 2.5.6 ++ *Last Build*: 20th October, 2017 ++ *Version*: 2.5.8 + *Copyright*: Copyright (C) 2015. All Rights Reserved + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html -+ *Line count*: **120884** -+ *File count*: **702** -+ *Folder count*: **121** ++ *Line count*: **125744** ++ *File count*: **742** ++ *Folder count*: **129** > This **component** was build with a Joomla [Automated Component Builder](http://vdm.bz/component-builder). > Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io) diff --git a/admin/access.xml b/admin/access.xml index cc6bd0863..20bd779a2 100644 --- a/admin/access.xml +++ b/admin/access.xml @@ -17,89 +17,39 @@ + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -203,88 +153,16 @@ + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - - - - @@ -345,171 +223,25 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + +
- - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -639,6 +371,28 @@
+
+ + + + + + + + + +
+
+ + + + + + + + + +
diff --git a/admin/assets/css/admin.css b/admin/assets/css/admin.css index f2fba667c..bfd5d74e8 100644 --- a/admin/assets/css/admin.css +++ b/admin/assets/css/admin.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin.css diff --git a/admin/assets/css/admin_fields.css b/admin/assets/css/admin_fields.css new file mode 100644 index 000000000..6d27b7d74 --- /dev/null +++ b/admin/assets/css/admin_fields.css @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/ + __ __ _ _____ _ _ __ __ _ _ _ + \ \ / / | | | __ \ | | | | | \/ | | | | | | | + \ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| | + \ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` | + \ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| | + \/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_| + | | + |_| +/-------------------------------------------------------------------------------------------------------------------------------/ + + @version @update number 23 of this MVC + @build 16th October, 2017 + @created 12th October, 2017 + @package Component Builder + @subpackage admin_fields.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/admin/assets/css/admin_fields_conditions.css b/admin/assets/css/admin_fields_conditions.css new file mode 100644 index 000000000..480e4cd30 --- /dev/null +++ b/admin/assets/css/admin_fields_conditions.css @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/ + __ __ _ _____ _ _ __ __ _ _ _ + \ \ / / | | | __ \ | | | | | \/ | | | | | | | + \ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| | + \ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` | + \ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| | + \/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_| + | | + |_| +/-------------------------------------------------------------------------------------------------------------------------------/ + + @version @update number 16 of this MVC + @build 16th October, 2017 + @created 12th October, 2017 + @package Component Builder + @subpackage admin_fields_conditions.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/admin/assets/css/admin_view.css b/admin/assets/css/admin_view.css index 1c20b341e..297130ece 100644 --- a/admin/assets/css/admin_view.css +++ b/admin/assets/css/admin_view.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 114 of this MVC - @build 28th August, 2017 + @version @update number 192 of this MVC + @build 16th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin_view.css diff --git a/admin/assets/css/admin_views.css b/admin/assets/css/admin_views.css index e23ed7a2b..0d32c4016 100644 --- a/admin/assets/css/admin_views.css +++ b/admin/assets/css/admin_views.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 114 of this MVC - @build 28th August, 2017 + @version @update number 192 of this MVC + @build 16th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin_views.css diff --git a/admin/assets/css/admins_fields.css b/admin/assets/css/admins_fields.css new file mode 100644 index 000000000..6509e2410 --- /dev/null +++ b/admin/assets/css/admins_fields.css @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/ + __ __ _ _____ _ _ __ __ _ _ _ + \ \ / / | | | __ \ | | | | | \/ | | | | | | | + \ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| | + \ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` | + \ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| | + \/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_| + | | + |_| +/-------------------------------------------------------------------------------------------------------------------------------/ + + @version @update number 23 of this MVC + @build 16th October, 2017 + @created 12th October, 2017 + @package Component Builder + @subpackage admins_fields.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/admin/assets/css/admins_fields_conditions.css b/admin/assets/css/admins_fields_conditions.css new file mode 100644 index 000000000..1c56a1ca3 --- /dev/null +++ b/admin/assets/css/admins_fields_conditions.css @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/ + __ __ _ _____ _ _ __ __ _ _ _ + \ \ / / | | | __ \ | | | | | \/ | | | | | | | + \ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| | + \ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` | + \ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| | + \/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_| + | | + |_| +/-------------------------------------------------------------------------------------------------------------------------------/ + + @version @update number 16 of this MVC + @build 16th October, 2017 + @created 12th October, 2017 + @package Component Builder + @subpackage admins_fields_conditions.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/admin/assets/css/compiler.css b/admin/assets/css/compiler.css index b549c2665..28b0cf82f 100644 --- a/admin/assets/css/compiler.css +++ b/admin/assets/css/compiler.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 55 of this MVC - @build 13th September, 2017 + @version @update number 57 of this MVC + @build 13th October, 2017 @created 1st February, 2017 @package Component Builder @subpackage compiler.css diff --git a/admin/assets/css/custom_admin_view.css b/admin/assets/css/custom_admin_view.css index 28bf6fdb1..22ffc7e4d 100644 --- a/admin/assets/css/custom_admin_view.css +++ b/admin/assets/css/custom_admin_view.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 27 of this MVC - @build 27th September, 2017 + @version @update number 32 of this MVC + @build 20th October, 2017 @created 13th August, 2015 @package Component Builder @subpackage custom_admin_view.css diff --git a/admin/assets/css/custom_admin_views.css b/admin/assets/css/custom_admin_views.css index c1fcdbc4d..c82eee70b 100644 --- a/admin/assets/css/custom_admin_views.css +++ b/admin/assets/css/custom_admin_views.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 27 of this MVC - @build 27th September, 2017 + @version @update number 32 of this MVC + @build 20th October, 2017 @created 13th August, 2015 @package Component Builder @subpackage custom_admin_views.css diff --git a/admin/assets/css/custom_code.css b/admin/assets/css/custom_code.css index 9412cd741..ae473d1e1 100644 --- a/admin/assets/css/custom_code.css +++ b/admin/assets/css/custom_code.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 82 of this MVC - @build 4th October, 2017 + @version @update number 84 of this MVC + @build 13th October, 2017 @created 11th October, 2016 @package Component Builder @subpackage custom_code.css diff --git a/admin/assets/css/custom_codes.css b/admin/assets/css/custom_codes.css index 9b6860038..4664ad2be 100644 --- a/admin/assets/css/custom_codes.css +++ b/admin/assets/css/custom_codes.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 82 of this MVC - @build 4th October, 2017 + @version @update number 84 of this MVC + @build 13th October, 2017 @created 11th October, 2016 @package Component Builder @subpackage custom_codes.css diff --git a/admin/assets/css/dashboard.css b/admin/assets/css/dashboard.css index 3017e9999..21790800d 100644 --- a/admin/assets/css/dashboard.css +++ b/admin/assets/css/dashboard.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage dashboard.css diff --git a/admin/assets/css/dynamic_get.css b/admin/assets/css/dynamic_get.css index f7eba633c..46879470f 100644 --- a/admin/assets/css/dynamic_get.css +++ b/admin/assets/css/dynamic_get.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 94 of this MVC - @build 27th September, 2017 + @version @update number 98 of this MVC + @build 20th October, 2017 @created 21st May, 2015 @package Component Builder @subpackage dynamic_get.css diff --git a/admin/assets/css/dynamic_gets.css b/admin/assets/css/dynamic_gets.css index 2be1ec746..aa575fae5 100644 --- a/admin/assets/css/dynamic_gets.css +++ b/admin/assets/css/dynamic_gets.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 94 of this MVC - @build 27th September, 2017 + @version @update number 98 of this MVC + @build 20th October, 2017 @created 21st May, 2015 @package Component Builder @subpackage dynamic_gets.css diff --git a/admin/assets/css/field.css b/admin/assets/css/field.css index 34e250e11..475a1a58d 100644 --- a/admin/assets/css/field.css +++ b/admin/assets/css/field.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 38 of this MVC - @build 28th May, 2017 + @version @update number 40 of this MVC + @build 18th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage field.css diff --git a/admin/assets/css/fields.css b/admin/assets/css/fields.css index ef91a124a..a4bd0d41b 100644 --- a/admin/assets/css/fields.css +++ b/admin/assets/css/fields.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 38 of this MVC - @build 28th May, 2017 + @version @update number 40 of this MVC + @build 18th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage fields.css diff --git a/admin/assets/css/fieldtype.css b/admin/assets/css/fieldtype.css index 334a1105b..7d37a18ee 100644 --- a/admin/assets/css/fieldtype.css +++ b/admin/assets/css/fieldtype.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 15 of this MVC - @build 17th September, 2017 + @version @update number 16 of this MVC + @build 13th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage fieldtype.css diff --git a/admin/assets/css/fieldtypes.css b/admin/assets/css/fieldtypes.css index 57fae74b4..53685eb51 100644 --- a/admin/assets/css/fieldtypes.css +++ b/admin/assets/css/fieldtypes.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 15 of this MVC - @build 17th September, 2017 + @version @update number 16 of this MVC + @build 13th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage fieldtypes.css diff --git a/admin/assets/css/ftp.css b/admin/assets/css/ftp.css index aa5b07198..9584a45fd 100644 --- a/admin/assets/css/ftp.css +++ b/admin/assets/css/ftp.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 10 of this MVC - @build 24th August, 2017 + @version @update number 11 of this MVC + @build 16th October, 2017 @created 23rd August, 2017 @package Component Builder @subpackage ftp.css diff --git a/admin/assets/css/ftps.css b/admin/assets/css/ftps.css index 8e597f403..0578cdc23 100644 --- a/admin/assets/css/ftps.css +++ b/admin/assets/css/ftps.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 10 of this MVC - @build 24th August, 2017 + @version @update number 11 of this MVC + @build 16th October, 2017 @created 23rd August, 2017 @package Component Builder @subpackage ftps.css diff --git a/admin/assets/css/joomla_component.css b/admin/assets/css/joomla_component.css index 71c18b527..3ffeda6e0 100644 --- a/admin/assets/css/joomla_component.css +++ b/admin/assets/css/joomla_component.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 385 of this MVC - @build 6th October, 2017 + @version @update number 473 of this MVC + @build 20th October, 2017 @created 6th May, 2015 @package Component Builder @subpackage joomla_component.css diff --git a/admin/assets/css/joomla_components.css b/admin/assets/css/joomla_components.css index df288513e..a2f003053 100644 --- a/admin/assets/css/joomla_components.css +++ b/admin/assets/css/joomla_components.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 385 of this MVC - @build 6th October, 2017 + @version @update number 473 of this MVC + @build 20th October, 2017 @created 6th May, 2015 @package Component Builder @subpackage joomla_components.css diff --git a/admin/assets/css/language_translation.css b/admin/assets/css/language_translation.css index dc0e1a579..8e547802b 100644 --- a/admin/assets/css/language_translation.css +++ b/admin/assets/css/language_translation.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 43 of this MVC - @build 16th September, 2017 + @version @update number 45 of this MVC + @build 14th October, 2017 @created 3rd April, 2017 @package Component Builder @subpackage language_translation.css diff --git a/admin/assets/css/language_translations.css b/admin/assets/css/language_translations.css index 6729ed30b..51d06adfc 100644 --- a/admin/assets/css/language_translations.css +++ b/admin/assets/css/language_translations.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 43 of this MVC - @build 16th September, 2017 + @version @update number 45 of this MVC + @build 14th October, 2017 @created 3rd April, 2017 @package Component Builder @subpackage language_translations.css diff --git a/admin/assets/css/site_view.css b/admin/assets/css/site_view.css index 181e85452..c4130729a 100644 --- a/admin/assets/css/site_view.css +++ b/admin/assets/css/site_view.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 54 of this MVC - @build 27th September, 2017 + @version @update number 63 of this MVC + @build 20th October, 2017 @created 29th May, 2015 @package Component Builder @subpackage site_view.css diff --git a/admin/assets/css/site_views.css b/admin/assets/css/site_views.css index 4ec2c50c7..8a73448ff 100644 --- a/admin/assets/css/site_views.css +++ b/admin/assets/css/site_views.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 54 of this MVC - @build 27th September, 2017 + @version @update number 63 of this MVC + @build 20th October, 2017 @created 29th May, 2015 @package Component Builder @subpackage site_views.css diff --git a/admin/assets/js/admin.js b/admin/assets/js/admin.js index 5c409af9b..e365d231c 100644 --- a/admin/assets/js/admin.js +++ b/admin/assets/js/admin.js @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin.js diff --git a/admin/compiler/joomla_3/DASHJViewLagacy.php b/admin/compiler/joomla_3/DASHJViewLagacy.php index aa2a624bd..6e6bc3e7f 100644 --- a/admin/compiler/joomla_3/DASHJViewLagacy.php +++ b/admin/compiler/joomla_3/DASHJViewLagacy.php @@ -43,12 +43,6 @@ class ###Component###View###Component### extends JViewLegacy */ function display($tpl = null) { - // Check for errors. - if (count($errors = $this->get('Errors'))) - { - JError::raiseError(500, implode('
', $errors)); - return false; - }; // Assign data to the view $this->icons = $this->get('Icons'); $this->contributors = ###Component###Helper::getContributors();###DASH_GET_CUSTOM_DATA### @@ -58,6 +52,12 @@ class ###Component###View###Component### extends JViewLegacy // Set the toolbar $this->addToolBar(); + + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + throw new Exception(implode("\n", $errors), 500); + } // Display the template parent::display($tpl); diff --git a/admin/compiler/joomla_3/JViewLegacy_edit.php b/admin/compiler/joomla_3/JViewLegacy_edit.php index c4fc3f474..02c368cea 100644 --- a/admin/compiler/joomla_3/JViewLegacy_edit.php +++ b/admin/compiler/joomla_3/JViewLegacy_edit.php @@ -43,13 +43,6 @@ class ###Component###View###View### extends JViewLegacy */ public function display($tpl = null) { - // Check for errors. - if (count($errors = $this->get('Errors'))) - { - JError::raiseError(500, implode('
', $errors)); - return false; - } - // Assign the variables $this->form = $this->get('Form'); $this->item = $this->get('Item'); @@ -75,6 +68,12 @@ class ###Component###View###View### extends JViewLegacy // Set the toolbar $this->addToolBar(); + + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + throw new Exception(implode("\n", $errors), 500); + } // Display the template parent::display($tpl); diff --git a/admin/compiler/joomla_3/JViewLegacy_edit_site.php b/admin/compiler/joomla_3/JViewLegacy_edit_site.php index 26c1dcbca..349a82e43 100644 --- a/admin/compiler/joomla_3/JViewLegacy_edit_site.php +++ b/admin/compiler/joomla_3/JViewLegacy_edit_site.php @@ -43,13 +43,6 @@ class ###Component###View###View### extends JViewLegacy */ public function display($tpl = null) { - // Check for errors. - if (count($errors = $this->get('Errors'))) - { - JError::raiseError(500, implode('
', $errors)); - return false; - } - // Assign the variables $this->form = $this->get('Form'); $this->item = $this->get('Item'); @@ -75,6 +68,12 @@ class ###Component###View###View### extends JViewLegacy // Set the toolbar $this->addToolBar(); + + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + throw new Exception(implode("\n", $errors), 500); + } // Display the template parent::display($tpl); diff --git a/admin/compiler/joomla_3/JViewLegacy_import.php b/admin/compiler/joomla_3/JViewLegacy_import.php index 42ed0f5bd..833072364 100644 --- a/admin/compiler/joomla_3/JViewLegacy_import.php +++ b/admin/compiler/joomla_3/JViewLegacy_import.php @@ -44,20 +44,13 @@ class ###Component###ViewImport extends JViewLegacy protected $dataType; public function display($tpl = null) - { + { if ($this->getLayout() !== 'modal') { // Include helper submenu ###Component###Helper::addSubmenu('import'); } - // Check for errors. - if (count($errors = $this->get('Errors'))) - { - JError::raiseError(500, implode('
', $errors)); - return false; - } - $paths = new stdClass; $paths->first = ''; $state = $this->get('state'); @@ -86,6 +79,12 @@ class ###Component###ViewImport extends JViewLegacy // clear the data type $session->clear('dataType'); } + + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + throw new Exception(implode("\n", $errors), 500); + } // Display the template parent::display($tpl); diff --git a/admin/compiler/joomla_3/JViewLegacy_list.php b/admin/compiler/joomla_3/JViewLegacy_list.php index e5673e48c..72dd08795 100644 --- a/admin/compiler/joomla_3/JViewLegacy_list.php +++ b/admin/compiler/joomla_3/JViewLegacy_list.php @@ -49,13 +49,6 @@ class ###Component###View###Views### extends JViewLegacy ###Component###Helper::addSubmenu('###views###'); } - // Check for errors. - if (count($errors = $this->get('Errors'))) - { - JError::raiseError(500, implode('
', $errors)); - return false; - } - // Assign data to the view $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); @@ -78,6 +71,12 @@ class ###Component###View###Views### extends JViewLegacy $this->batchDisplay = JHtmlBatch_::render(); } } + + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + throw new Exception(implode("\n", $errors), 500); + } // Display the template parent::display($tpl); diff --git a/admin/compiler/joomla_3/JViewLegacy_list_site.php b/admin/compiler/joomla_3/JViewLegacy_list_site.php index 8a40e709a..c1e5c7823 100644 --- a/admin/compiler/joomla_3/JViewLegacy_list_site.php +++ b/admin/compiler/joomla_3/JViewLegacy_list_site.php @@ -39,7 +39,7 @@ class ###Component###View###SViews### extends JViewLegacy { // Overwriting JView display method function display($tpl = null) - { + { // get combined params of both component and menu $this->app = JFactory::getApplication(); $this->params = $this->app->getParams(); diff --git a/admin/compiler/joomla_3/JViewLegacy_site.php b/admin/compiler/joomla_3/JViewLegacy_site.php index fd3d54590..851377023 100644 --- a/admin/compiler/joomla_3/JViewLegacy_site.php +++ b/admin/compiler/joomla_3/JViewLegacy_site.php @@ -39,7 +39,7 @@ class ###Component###View###SView### extends JViewLegacy { // Overwriting JView display method function display($tpl = null) - { + { // get combined params of both component and menu $this->app = JFactory::getApplication(); $this->params = $this->app->getParams(); diff --git a/admin/componentbuilder.php b/admin/componentbuilder.php index 3e9373f28..6838233b8 100644 --- a/admin/componentbuilder.php +++ b/admin/componentbuilder.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage componentbuilder.php diff --git a/admin/controller.php b/admin/controller.php index d15dd6dbd..1a6c50d24 100644 --- a/admin/controller.php +++ b/admin/controller.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage controller.php @@ -102,7 +102,9 @@ class ComponentbuilderController extends JControllerLegacy 'language_translation' => 'language_translations', 'language' => 'languages', 'ftp' => 'ftps', - 'help_document' => 'help_documents' + 'help_document' => 'help_documents', + 'admin_fields' => 'admins_fields', + 'admin_fields_conditions' => 'admins_fields_conditions' ); // check if this is a list view if (in_array($view,$views)) diff --git a/admin/controllers/admin_fields.php b/admin/controllers/admin_fields.php new file mode 100644 index 000000000..d5bc469b6 --- /dev/null +++ b/admin/controllers/admin_fields.php @@ -0,0 +1,326 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controllerform library +jimport('joomla.application.component.controllerform'); + +/** + * Admin_fields Controller + */ +class ComponentbuilderControllerAdmin_fields extends JControllerForm +{ + /** + * Current or most recently performed task. + * + * @var string + * @since 12.2 + * @note Replaces _task. + */ + protected $task; + + public function __construct($config = array()) + { + $this->view_list = 'Admins_fields'; // safeguard for setting the return view listing to the main view. + parent::__construct($config); + } + + /** + * Method override to check if you can add a new record. + * + * @param array $data An array of input data. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowAdd($data = array()) + { + // Access check. + $access = JFactory::getUser()->authorise('admin_fields.access', 'com_componentbuilder'); + if (!$access) + { + return false; + } + // In the absense of better information, revert to the component permissions. + return JFactory::getUser()->authorise('admin_fields.create', $this->option); + } + + /** + * Method override to check if you can edit an existing record. + * + * @param array $data An array of input data. + * @param string $key The name of the key for the primary key. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowEdit($data = array(), $key = 'id') + { + // get user object. + $user = JFactory::getUser(); + // get record id. + $recordId = (int) isset($data[$key]) ? $data[$key] : 0; + + + // Access check. + $access = ($user->authorise('admin_fields.access', 'com_componentbuilder.admin_fields.' . (int) $recordId) && $user->authorise('admin_fields.access', 'com_componentbuilder')); + if (!$access) + { + return false; + } + + if ($recordId) + { + // The record has been set. Check the record permissions. + $permission = $user->authorise('admin_fields.edit', 'com_componentbuilder.admin_fields.' . (int) $recordId); + if (!$permission) + { + if ($user->authorise('admin_fields.edit.own', 'com_componentbuilder.admin_fields.' . $recordId)) + { + // Now test the owner is the user. + $ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0; + if (empty($ownerId)) + { + // Need to do a lookup from the model. + $record = $this->getModel()->getItem($recordId); + + if (empty($record)) + { + return false; + } + $ownerId = $record->created_by; + } + + // If the owner matches 'me' then allow. + if ($ownerId == $user->id) + { + if ($user->authorise('admin_fields.edit.own', 'com_componentbuilder')) + { + return true; + } + } + } + return false; + } + } + // Since there is no permission, revert to the component permissions. + return $user->authorise('admin_fields.edit', $this->option); + } + + /** + * Gets the URL arguments to append to an item redirect. + * + * @param integer $recordId The primary key id for the item. + * @param string $urlVar The name of the URL variable for the id. + * + * @return string The arguments to append to the redirect URL. + * + * @since 12.2 + */ + protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') + { + $tmpl = $this->input->get('tmpl'); + $layout = $this->input->get('layout', 'edit', 'string'); + + $ref = $this->input->get('ref', 0, 'string'); + $refid = $this->input->get('refid', 0, 'int'); + + // Setup redirect info. + + $append = ''; + + if ($refid) + { + $append .= '&ref='.(string)$ref.'&refid='.(int)$refid; + } + elseif ($ref) + { + $append .= '&ref='.(string)$ref; + } + + if ($tmpl) + { + $append .= '&tmpl=' . $tmpl; + } + + if ($layout) + { + $append .= '&layout=' . $layout; + } + + if ($recordId) + { + $append .= '&' . $urlVar . '=' . $recordId; + } + + return $append; + } + + /** + * Method to run batch operations. + * + * @param object $model The model. + * + * @return boolean True if successful, false otherwise and internal error is set. + * + * @since 2.5 + */ + public function batch($model = null) + { + JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); + + // Set the model + $model = $this->getModel('Admin_fields', '', array()); + + // Preset the redirect + $this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=admins_fields' . $this->getRedirectToListAppend(), false)); + + return parent::batch($model); + } + + /** + * Method to cancel an edit. + * + * @param string $key The name of the primary key of the URL variable. + * + * @return boolean True if access level checks pass, false otherwise. + * + * @since 12.2 + */ + public function cancel($key = null) + { + // get the referal details + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + $cancel = parent::cancel($key); + + if ($cancel) + { + if ($this->refid) + { + $redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref) + { + $redirect = '&view='.(string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + } + else + { + // Redirect to the items screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . '&view=' . $this->view_list, false + ) + ); + } + return $cancel; + } + + /** + * Method to save a record. + * + * @param string $key The name of the primary key of the URL variable. + * @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). + * + * @return boolean True if successful, false otherwise. + * + * @since 12.2 + */ + public function save($key = null, $urlVar = null) + { + // get the referal details + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + if ($this->ref || $this->refid) + { + // to make sure the item is checkedin on redirect + $this->task = 'save'; + } + + $saved = parent::save($key, $urlVar); + + if ($this->refid && $saved) + { + $redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref && $saved) + { + $redirect = '&view='.(string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + return $saved; + } + + /** + * Function that allows child controller access to model data + * after the data has been saved. + * + * @param JModel &$model The data model object. + * @param array $validData The validated data. + * + * @return void + * + * @since 11.1 + */ + protected function postSaveHook(JModelLegacy $model, $validData = array()) + { + return; + } + +} diff --git a/admin/controllers/admin_fields_conditions.php b/admin/controllers/admin_fields_conditions.php new file mode 100644 index 000000000..8d4156209 --- /dev/null +++ b/admin/controllers/admin_fields_conditions.php @@ -0,0 +1,326 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controllerform library +jimport('joomla.application.component.controllerform'); + +/** + * Admin_fields_conditions Controller + */ +class ComponentbuilderControllerAdmin_fields_conditions extends JControllerForm +{ + /** + * Current or most recently performed task. + * + * @var string + * @since 12.2 + * @note Replaces _task. + */ + protected $task; + + public function __construct($config = array()) + { + $this->view_list = 'Admins_fields_conditions'; // safeguard for setting the return view listing to the main view. + parent::__construct($config); + } + + /** + * Method override to check if you can add a new record. + * + * @param array $data An array of input data. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowAdd($data = array()) + { + // Access check. + $access = JFactory::getUser()->authorise('admin_fields_conditions.access', 'com_componentbuilder'); + if (!$access) + { + return false; + } + // In the absense of better information, revert to the component permissions. + return JFactory::getUser()->authorise('admin_fields_conditions.create', $this->option); + } + + /** + * Method override to check if you can edit an existing record. + * + * @param array $data An array of input data. + * @param string $key The name of the key for the primary key. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowEdit($data = array(), $key = 'id') + { + // get user object. + $user = JFactory::getUser(); + // get record id. + $recordId = (int) isset($data[$key]) ? $data[$key] : 0; + + + // Access check. + $access = ($user->authorise('admin_fields_conditions.access', 'com_componentbuilder.admin_fields_conditions.' . (int) $recordId) && $user->authorise('admin_fields_conditions.access', 'com_componentbuilder')); + if (!$access) + { + return false; + } + + if ($recordId) + { + // The record has been set. Check the record permissions. + $permission = $user->authorise('admin_fields_conditions.edit', 'com_componentbuilder.admin_fields_conditions.' . (int) $recordId); + if (!$permission) + { + if ($user->authorise('admin_fields_conditions.edit.own', 'com_componentbuilder.admin_fields_conditions.' . $recordId)) + { + // Now test the owner is the user. + $ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0; + if (empty($ownerId)) + { + // Need to do a lookup from the model. + $record = $this->getModel()->getItem($recordId); + + if (empty($record)) + { + return false; + } + $ownerId = $record->created_by; + } + + // If the owner matches 'me' then allow. + if ($ownerId == $user->id) + { + if ($user->authorise('admin_fields_conditions.edit.own', 'com_componentbuilder')) + { + return true; + } + } + } + return false; + } + } + // Since there is no permission, revert to the component permissions. + return $user->authorise('admin_fields_conditions.edit', $this->option); + } + + /** + * Gets the URL arguments to append to an item redirect. + * + * @param integer $recordId The primary key id for the item. + * @param string $urlVar The name of the URL variable for the id. + * + * @return string The arguments to append to the redirect URL. + * + * @since 12.2 + */ + protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') + { + $tmpl = $this->input->get('tmpl'); + $layout = $this->input->get('layout', 'edit', 'string'); + + $ref = $this->input->get('ref', 0, 'string'); + $refid = $this->input->get('refid', 0, 'int'); + + // Setup redirect info. + + $append = ''; + + if ($refid) + { + $append .= '&ref='.(string)$ref.'&refid='.(int)$refid; + } + elseif ($ref) + { + $append .= '&ref='.(string)$ref; + } + + if ($tmpl) + { + $append .= '&tmpl=' . $tmpl; + } + + if ($layout) + { + $append .= '&layout=' . $layout; + } + + if ($recordId) + { + $append .= '&' . $urlVar . '=' . $recordId; + } + + return $append; + } + + /** + * Method to run batch operations. + * + * @param object $model The model. + * + * @return boolean True if successful, false otherwise and internal error is set. + * + * @since 2.5 + */ + public function batch($model = null) + { + JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); + + // Set the model + $model = $this->getModel('Admin_fields_conditions', '', array()); + + // Preset the redirect + $this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=admins_fields_conditions' . $this->getRedirectToListAppend(), false)); + + return parent::batch($model); + } + + /** + * Method to cancel an edit. + * + * @param string $key The name of the primary key of the URL variable. + * + * @return boolean True if access level checks pass, false otherwise. + * + * @since 12.2 + */ + public function cancel($key = null) + { + // get the referal details + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + $cancel = parent::cancel($key); + + if ($cancel) + { + if ($this->refid) + { + $redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref) + { + $redirect = '&view='.(string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + } + else + { + // Redirect to the items screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . '&view=' . $this->view_list, false + ) + ); + } + return $cancel; + } + + /** + * Method to save a record. + * + * @param string $key The name of the primary key of the URL variable. + * @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). + * + * @return boolean True if successful, false otherwise. + * + * @since 12.2 + */ + public function save($key = null, $urlVar = null) + { + // get the referal details + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + if ($this->ref || $this->refid) + { + // to make sure the item is checkedin on redirect + $this->task = 'save'; + } + + $saved = parent::save($key, $urlVar); + + if ($this->refid && $saved) + { + $redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref && $saved) + { + $redirect = '&view='.(string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + return $saved; + } + + /** + * Function that allows child controller access to model data + * after the data has been saved. + * + * @param JModel &$model The data model object. + * @param array $validData The validated data. + * + * @return void + * + * @since 11.1 + */ + protected function postSaveHook(JModelLegacy $model, $validData = array()) + { + return; + } + +} diff --git a/admin/controllers/admin_view.php b/admin/controllers/admin_view.php index 4ecc91914..cbd3e05ba 100644 --- a/admin/controllers/admin_view.php +++ b/admin/controllers/admin_view.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 114 of this MVC - @build 28th August, 2017 + @version @update number 192 of this MVC + @build 16th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin_view.php @@ -67,7 +67,7 @@ class ComponentbuilderControllerAdmin_view extends JControllerForm return false; } // In the absense of better information, revert to the component permissions. - return parent::allowAdd($data); + return JFactory::getUser()->authorise('admin_view.create', $this->option); } /** @@ -98,10 +98,10 @@ class ComponentbuilderControllerAdmin_view extends JControllerForm if ($recordId) { // The record has been set. Check the record permissions. - $permission = $user->authorise('core.edit', 'com_componentbuilder.admin_view.' . (int) $recordId); + $permission = $user->authorise('admin_view.edit', 'com_componentbuilder.admin_view.' . (int) $recordId); if (!$permission) { - if ($user->authorise('core.edit.own', 'com_componentbuilder.admin_view.' . $recordId)) + if ($user->authorise('admin_view.edit.own', 'com_componentbuilder.admin_view.' . $recordId)) { // Now test the owner is the user. $ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0; @@ -120,7 +120,7 @@ class ComponentbuilderControllerAdmin_view extends JControllerForm // If the owner matches 'me' then allow. if ($ownerId == $user->id) { - if ($user->authorise('core.edit.own', 'com_componentbuilder')) + if ($user->authorise('admin_view.edit.own', 'com_componentbuilder')) { return true; } @@ -130,7 +130,7 @@ class ComponentbuilderControllerAdmin_view extends JControllerForm } } // Since there is no permission, revert to the component permissions. - return parent::allowEdit($data, $key); + return $user->authorise('admin_view.edit', $this->option); } /** diff --git a/admin/controllers/admin_views.php b/admin/controllers/admin_views.php index 39672aac5..01b6a263c 100644 --- a/admin/controllers/admin_views.php +++ b/admin/controllers/admin_views.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 114 of this MVC - @build 28th August, 2017 + @version @update number 192 of this MVC + @build 16th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin_views.php diff --git a/admin/controllers/admins_fields.php b/admin/controllers/admins_fields.php new file mode 100644 index 000000000..d50e85990 --- /dev/null +++ b/admin/controllers/admins_fields.php @@ -0,0 +1,48 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controlleradmin library +jimport('joomla.application.component.controlleradmin'); + +/** + * Admins_fields Controller + */ +class ComponentbuilderControllerAdmins_fields extends JControllerAdmin +{ + protected $text_prefix = 'COM_COMPONENTBUILDER_ADMINS_FIELDS'; + /** + * Proxy for getModel. + * @since 2.5 + */ + public function getModel($name = 'Admin_fields', $prefix = 'ComponentbuilderModel', $config = array()) + { + $model = parent::getModel($name, $prefix, array('ignore_request' => true)); + + return $model; + } +} diff --git a/admin/controllers/admins_fields_conditions.php b/admin/controllers/admins_fields_conditions.php new file mode 100644 index 000000000..eff76ef36 --- /dev/null +++ b/admin/controllers/admins_fields_conditions.php @@ -0,0 +1,48 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controlleradmin library +jimport('joomla.application.component.controlleradmin'); + +/** + * Admins_fields_conditions Controller + */ +class ComponentbuilderControllerAdmins_fields_conditions extends JControllerAdmin +{ + protected $text_prefix = 'COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS'; + /** + * Proxy for getModel. + * @since 2.5 + */ + public function getModel($name = 'Admin_fields_conditions', $prefix = 'ComponentbuilderModel', $config = array()) + { + $model = parent::getModel($name, $prefix, array('ignore_request' => true)); + + return $model; + } +} diff --git a/admin/controllers/ajax.json.php b/admin/controllers/ajax.json.php index d9650fdcc..349e822a2 100644 --- a/admin/controllers/ajax.json.php +++ b/admin/controllers/ajax.json.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage ajax.json.php @@ -49,6 +49,9 @@ class ComponentbuilderControllerAjax extends JControllerLegacy $this->registerTask('tableColumns', 'ajax'); $this->registerTask('fieldSelectOptions', 'ajax'); $this->registerTask('getImportScripts', 'ajax'); + $this->registerTask('getButton', 'ajax'); + $this->registerTask('getButtonID', 'ajax'); + $this->registerTask('getFieldsDisplay', 'ajax'); $this->registerTask('templateDetails', 'ajax'); $this->registerTask('getLayoutDetails', 'ajax'); $this->registerTask('dbTableColumns', 'ajax'); @@ -57,8 +60,7 @@ class ComponentbuilderControllerAjax extends JControllerLegacy $this->registerTask('checkFunctionName', 'ajax'); $this->registerTask('usedin', 'ajax'); $this->registerTask('snippetDetails', 'ajax'); - $this->registerTask('fieldOptions', 'ajax'); - $this->registerTask('getButton', 'ajax'); + $this->registerTask('fieldOptions', 'ajax'); } public function ajax() @@ -339,6 +341,121 @@ class ComponentbuilderControllerAjax extends JControllerLegacy } } break; + case 'getButton': + try + { + $returnRaw = $jinput->get('raw', false, 'BOOLEAN'); + $typeValue = $jinput->get('type', NULL, 'WORD'); + if($typeValue && $user->id != 0) + { + $result = $this->getModel('ajax')->getButton($typeValue); + } + else + { + $result = false; + } + if($callback = $jinput->get('callback', null, 'CMD')) + { + echo $callback . "(".json_encode($result).");"; + } + elseif($returnRaw) + { + echo json_encode($result); + } + else + { + echo "(".json_encode($result).");"; + } + } + catch(Exception $e) + { + if($callback = $jinput->get('callback', null, 'CMD')) + { + echo $callback."(".json_encode($e).");"; + } + else + { + echo "(".json_encode($e).");"; + } + } + break; + case 'getButtonID': + try + { + $returnRaw = $jinput->get('raw', false, 'BOOLEAN'); + $typeValue = $jinput->get('type', NULL, 'WORD'); + $sizeValue = $jinput->get('size', NULL, 'INT'); + if($typeValue && $sizeValue && $user->id != 0) + { + $result = $this->getModel('ajax')->getButtonID($typeValue, $sizeValue); + } + else + { + $result = false; + } + if($callback = $jinput->get('callback', null, 'CMD')) + { + echo $callback . "(".json_encode($result).");"; + } + elseif($returnRaw) + { + echo json_encode($result); + } + else + { + echo "(".json_encode($result).");"; + } + } + catch(Exception $e) + { + if($callback = $jinput->get('callback', null, 'CMD')) + { + echo $callback."(".json_encode($e).");"; + } + else + { + echo "(".json_encode($e).");"; + } + } + break; + case 'getFieldsDisplay': + try + { + $returnRaw = $jinput->get('raw', false, 'BOOLEAN'); + $typeValue = $jinput->get('type', NULL, 'WORD'); + if($typeValue && $user->id != 0) + { + $result = $this->getModel('ajax')->getFieldsDisplay($typeValue); + } + else + { + $result = false; + } + if($callback = $jinput->get('callback', null, 'CMD')) + { + echo $callback . "(".json_encode($result).");"; + } + elseif($returnRaw) + { + echo json_encode($result); + } + else + { + echo "(".json_encode($result).");"; + } + } + catch(Exception $e) + { + if($callback = $jinput->get('callback', null, 'CMD')) + { + echo $callback."(".json_encode($e).");"; + } + else + { + echo "(".json_encode($e).");"; + } + } + break; case 'templateDetails': try { @@ -688,44 +805,6 @@ class ComponentbuilderControllerAjax extends JControllerLegacy echo "(".json_encode($e).");"; } } - break; - case 'getButton': - try - { - $returnRaw = $jinput->get('raw', false, 'BOOLEAN'); - $typeValue = $jinput->get('type', NULL, 'WORD'); - if($typeValue && $user->id != 0) - { - $result = $this->getModel('ajax')->getButton($typeValue); - } - else - { - $result = false; - } - if($callback = $jinput->get('callback', null, 'CMD')) - { - echo $callback . "(".json_encode($result).");"; - } - elseif($returnRaw) - { - echo json_encode($result); - } - else - { - echo "(".json_encode($result).");"; - } - } - catch(Exception $e) - { - if($callback = $jinput->get('callback', null, 'CMD')) - { - echo $callback."(".json_encode($e).");"; - } - else - { - echo "(".json_encode($e).");"; - } - } break; } } diff --git a/admin/controllers/compiler.php b/admin/controllers/compiler.php index 8e1b02880..3bc7cc077 100644 --- a/admin/controllers/compiler.php +++ b/admin/controllers/compiler.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 55 of this MVC - @build 13th September, 2017 + @version @update number 57 of this MVC + @build 13th October, 2017 @created 1st February, 2017 @package Component Builder @subpackage compiler.php diff --git a/admin/controllers/componentbuilder.php b/admin/controllers/componentbuilder.php index 7c8da43c1..e8c6ffc16 100644 --- a/admin/controllers/componentbuilder.php +++ b/admin/controllers/componentbuilder.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage componentbuilder.php diff --git a/admin/controllers/custom_admin_view.php b/admin/controllers/custom_admin_view.php index 69febd3ea..c7bd3893a 100644 --- a/admin/controllers/custom_admin_view.php +++ b/admin/controllers/custom_admin_view.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 27 of this MVC - @build 27th September, 2017 + @version @update number 32 of this MVC + @build 20th October, 2017 @created 13th August, 2015 @package Component Builder @subpackage custom_admin_view.php diff --git a/admin/controllers/custom_admin_views.php b/admin/controllers/custom_admin_views.php index df2120fde..e164ff3bd 100644 --- a/admin/controllers/custom_admin_views.php +++ b/admin/controllers/custom_admin_views.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 27 of this MVC - @build 27th September, 2017 + @version @update number 32 of this MVC + @build 20th October, 2017 @created 13th August, 2015 @package Component Builder @subpackage custom_admin_views.php diff --git a/admin/controllers/custom_code.php b/admin/controllers/custom_code.php index 72811145f..698ebb87d 100644 --- a/admin/controllers/custom_code.php +++ b/admin/controllers/custom_code.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 82 of this MVC - @build 4th October, 2017 + @version @update number 84 of this MVC + @build 13th October, 2017 @created 11th October, 2016 @package Component Builder @subpackage custom_code.php diff --git a/admin/controllers/custom_codes.php b/admin/controllers/custom_codes.php index 3f6aae561..794b7ea7c 100644 --- a/admin/controllers/custom_codes.php +++ b/admin/controllers/custom_codes.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 82 of this MVC - @build 4th October, 2017 + @version @update number 84 of this MVC + @build 13th October, 2017 @created 11th October, 2016 @package Component Builder @subpackage custom_codes.php diff --git a/admin/controllers/dynamic_get.php b/admin/controllers/dynamic_get.php index b38450731..6d799bfbd 100644 --- a/admin/controllers/dynamic_get.php +++ b/admin/controllers/dynamic_get.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 94 of this MVC - @build 27th September, 2017 + @version @update number 98 of this MVC + @build 20th October, 2017 @created 21st May, 2015 @package Component Builder @subpackage dynamic_get.php diff --git a/admin/controllers/dynamic_gets.php b/admin/controllers/dynamic_gets.php index 7a396212e..81c77b8e8 100644 --- a/admin/controllers/dynamic_gets.php +++ b/admin/controllers/dynamic_gets.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 94 of this MVC - @build 27th September, 2017 + @version @update number 98 of this MVC + @build 20th October, 2017 @created 21st May, 2015 @package Component Builder @subpackage dynamic_gets.php diff --git a/admin/controllers/field.php b/admin/controllers/field.php index 711349549..b3d4c57cd 100644 --- a/admin/controllers/field.php +++ b/admin/controllers/field.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 38 of this MVC - @build 28th May, 2017 + @version @update number 40 of this MVC + @build 18th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage field.php diff --git a/admin/controllers/fields.php b/admin/controllers/fields.php index c3e0de702..cf0526115 100644 --- a/admin/controllers/fields.php +++ b/admin/controllers/fields.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 38 of this MVC - @build 28th May, 2017 + @version @update number 40 of this MVC + @build 18th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage fields.php diff --git a/admin/controllers/fieldtype.php b/admin/controllers/fieldtype.php index 553fb377c..151ffbe0d 100644 --- a/admin/controllers/fieldtype.php +++ b/admin/controllers/fieldtype.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 15 of this MVC - @build 17th September, 2017 + @version @update number 16 of this MVC + @build 13th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage fieldtype.php diff --git a/admin/controllers/fieldtypes.php b/admin/controllers/fieldtypes.php index 1612f8b9e..82b2b25f5 100644 --- a/admin/controllers/fieldtypes.php +++ b/admin/controllers/fieldtypes.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 15 of this MVC - @build 17th September, 2017 + @version @update number 16 of this MVC + @build 13th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage fieldtypes.php diff --git a/admin/controllers/ftp.php b/admin/controllers/ftp.php index e27df64cc..eb1a1b4a0 100644 --- a/admin/controllers/ftp.php +++ b/admin/controllers/ftp.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 10 of this MVC - @build 24th August, 2017 + @version @update number 11 of this MVC + @build 16th October, 2017 @created 23rd August, 2017 @package Component Builder @subpackage ftp.php diff --git a/admin/controllers/ftps.php b/admin/controllers/ftps.php index 9cc9583ec..398d1b67b 100644 --- a/admin/controllers/ftps.php +++ b/admin/controllers/ftps.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 10 of this MVC - @build 24th August, 2017 + @version @update number 11 of this MVC + @build 16th October, 2017 @created 23rd August, 2017 @package Component Builder @subpackage ftps.php diff --git a/admin/controllers/help.php b/admin/controllers/help.php index 271856a08..fc73a9b6f 100644 --- a/admin/controllers/help.php +++ b/admin/controllers/help.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage help.php diff --git a/admin/controllers/import.php b/admin/controllers/import.php index ea2dff640..e9735891e 100644 --- a/admin/controllers/import.php +++ b/admin/controllers/import.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage import.php diff --git a/admin/controllers/import_joomla_components.php b/admin/controllers/import_joomla_components.php index 71c3df898..fbdc1be7f 100644 --- a/admin/controllers/import_joomla_components.php +++ b/admin/controllers/import_joomla_components.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage import_joomla_components.php diff --git a/admin/controllers/joomla_component.php b/admin/controllers/joomla_component.php index f95a37f18..e3fbb2369 100644 --- a/admin/controllers/joomla_component.php +++ b/admin/controllers/joomla_component.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 385 of this MVC - @build 6th October, 2017 + @version @update number 473 of this MVC + @build 20th October, 2017 @created 6th May, 2015 @package Component Builder @subpackage joomla_component.php @@ -67,7 +67,7 @@ class ComponentbuilderControllerJoomla_component extends JControllerForm return false; } // In the absense of better information, revert to the component permissions. - return parent::allowAdd($data); + return JFactory::getUser()->authorise('joomla_component.create', $this->option); } /** @@ -88,13 +88,20 @@ class ComponentbuilderControllerJoomla_component extends JControllerForm $recordId = (int) isset($data[$key]) ? $data[$key] : 0; + // Access check. + $access = ($user->authorise('joomla_component.access', 'com_componentbuilder.joomla_component.' . (int) $recordId) && $user->authorise('joomla_component.access', 'com_componentbuilder')); + if (!$access) + { + return false; + } + if ($recordId) { // The record has been set. Check the record permissions. - $permission = $user->authorise('core.edit', 'com_componentbuilder.joomla_component.' . (int) $recordId); + $permission = $user->authorise('joomla_component.edit', 'com_componentbuilder.joomla_component.' . (int) $recordId); if (!$permission) { - if ($user->authorise('core.edit.own', 'com_componentbuilder.joomla_component.' . $recordId)) + if ($user->authorise('joomla_component.edit.own', 'com_componentbuilder.joomla_component.' . $recordId)) { // Now test the owner is the user. $ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0; @@ -113,7 +120,7 @@ class ComponentbuilderControllerJoomla_component extends JControllerForm // If the owner matches 'me' then allow. if ($ownerId == $user->id) { - if ($user->authorise('core.edit.own', 'com_componentbuilder')) + if ($user->authorise('joomla_component.edit.own', 'com_componentbuilder')) { return true; } @@ -123,7 +130,7 @@ class ComponentbuilderControllerJoomla_component extends JControllerForm } } // Since there is no permission, revert to the component permissions. - return parent::allowEdit($data, $key); + return $user->authorise('joomla_component.edit', $this->option); } /** diff --git a/admin/controllers/joomla_components.php b/admin/controllers/joomla_components.php index 04e3792ba..a379ac037 100644 --- a/admin/controllers/joomla_components.php +++ b/admin/controllers/joomla_components.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 385 of this MVC - @build 6th October, 2017 + @version @update number 473 of this MVC + @build 20th October, 2017 @created 6th May, 2015 @package Component Builder @subpackage joomla_components.php diff --git a/admin/controllers/language_translation.php b/admin/controllers/language_translation.php index 4ce80c8e4..fa7d30e3a 100644 --- a/admin/controllers/language_translation.php +++ b/admin/controllers/language_translation.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 43 of this MVC - @build 16th September, 2017 + @version @update number 45 of this MVC + @build 14th October, 2017 @created 3rd April, 2017 @package Component Builder @subpackage language_translation.php diff --git a/admin/controllers/language_translations.php b/admin/controllers/language_translations.php index 262dbcdfc..a2a011e17 100644 --- a/admin/controllers/language_translations.php +++ b/admin/controllers/language_translations.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 43 of this MVC - @build 16th September, 2017 + @version @update number 45 of this MVC + @build 14th October, 2017 @created 3rd April, 2017 @package Component Builder @subpackage language_translations.php diff --git a/admin/controllers/site_view.php b/admin/controllers/site_view.php index d85d70d0c..28de35c78 100644 --- a/admin/controllers/site_view.php +++ b/admin/controllers/site_view.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 54 of this MVC - @build 27th September, 2017 + @version @update number 63 of this MVC + @build 20th October, 2017 @created 29th May, 2015 @package Component Builder @subpackage site_view.php diff --git a/admin/controllers/site_views.php b/admin/controllers/site_views.php index 2677a9cb4..4e7bee7b9 100644 --- a/admin/controllers/site_views.php +++ b/admin/controllers/site_views.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 54 of this MVC - @build 27th September, 2017 + @version @update number 63 of this MVC + @build 20th October, 2017 @created 29th May, 2015 @package Component Builder @subpackage site_views.php diff --git a/admin/helpers/compiler/a_Get.php b/admin/helpers/compiler/a_Get.php index d74c9c519..64e040c4f 100644 --- a/admin/helpers/compiler/a_Get.php +++ b/admin/helpers/compiler/a_Get.php @@ -1184,11 +1184,12 @@ class Get // Load the results as a list of stdClass objects (see later for more options on retrieving data). $view = $this->db->loadObject(); - // reset fields - $view->fields = array(); // setup view name to use in storing the data $name_single = ComponentbuilderHelper::safeString($view->name_single); $name_list = ComponentbuilderHelper::safeString($view->name_list); + // be sure to update the value in the db + $objectUpdate = new stdClass(); + $objectUpdate->id = (int) $id; // setup token check if (!isset($this->customScriptBuilder['token'])) { @@ -1208,28 +1209,151 @@ class Get $this->placeholders['[[[View]]]'] = $this->placeholders['###View###']; $this->placeholders['[[[Views]]]'] = $this->placeholders['###Views###']; $this->placeholders['[[[VIEW]]]'] = $this->placeholders['###VIEW###']; - $this->placeholders['[[[VIEWS]]]'] = $this->placeholders['###VIEWS###']; - // load the values form params - $permissions = json_decode($view->addpermissions,true); - unset($view->addpermissions); - $tabs = json_decode($view->addtabs,true); - unset($view->addtabs); - $fields = json_decode($view->addfields,true); - unset($view->addfields); - $conditions = json_decode($view->addconditions,true); - unset($view->addconditions); - $linked_views = json_decode($view->addlinked_views,true); - unset($view->addlinked_views); - $tables = json_decode($view->addtables,true); + $this->placeholders['[[[VIEWS]]]'] = $this->placeholders['###VIEWS###']; + // add the tables + $view->addtables = json_decode($view->addtables,true); + // check what type of table array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($view->addtables['table'])) + { + $bucket = array(); + foreach($view->addtables as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket['addtables'.$nr][$option] = $value; + } + } + $view->addtables = $bucket; + $objectUpdate->addtables = json_encode($bucket); + } + if (ComponentbuilderHelper::checkArray($view->addtables)) + { + $view->tables = array_values($view->addtables); + } unset($view->addtables); + // add the tabs + $view->addtabs = json_decode($view->addtabs,true); + // check what type of tabs array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($view->addtabs['name'])) + { + $bucket = array(); + foreach($view->addtabs as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket['addtabs'.$nr][$option] = $value; + } + } + $view->addtabs = $bucket; + $objectUpdate->addtabs = json_encode($bucket); + } + if (ComponentbuilderHelper::checkArray($view->addtabs)) + { + $nr = 1; + foreach ($view->addtabs as $tab) + { + $view->tabs[$nr] = $tab['name']; + $nr++; + } + } + unset($view->addtabs); + // add permissions + $view->addpermissions = json_decode($view->addpermissions,true); + // check what type of permissions array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($view->addpermissions['action'])) + { + $bucket = array(); + foreach($view->addpermissions as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket['addpermissions'.$nr][$option] = $value; + } + } + $view->addpermissions = $bucket; + $objectUpdate->addpermissions = json_encode($bucket); + } + if (ComponentbuilderHelper::checkArray($view->addpermissions)) + { + $view->permissions = array_values($view->addpermissions); + } + unset($view->addpermissions); + // reset fields + $view->fields = array(); + // set fields + if ($addfields = ComponentbuilderHelper::getVar('admin_fields', $id, 'admin_view', 'addfields')) + { + $view->addfields = json_decode($addfields,true); + // get the admin fields id + $fieldID = ComponentbuilderHelper::getVar('admin_fields', $id, 'admin_view', 'id'); + // check what type of field array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($view->addfields['field'])) + { + $bucket = array(); + foreach($view->addfields as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket['addfields'.$nr][$option] = $value; + } + } + $view->addfields = $bucket; + // update the fields + $fieldsUpdate = new stdClass(); + $fieldsUpdate->id = (int) $fieldID; + $fieldsUpdate->addfields = json_encode($bucket); + $this->db->updateObject('#__componentbuilder_admin_fields', $fieldsUpdate, 'id'); + } + // build update SQL + if ($old_view = $this->getHistoryWatch('admin_fields', $fieldID)) + { + // add new fields were added + if (isset($old_view->addfields) && ComponentbuilderHelper::checkJson($old_view->addfields)) + { + $this->setUpdateSQL(json_decode($old_view->addfields, true), $view->addfields, 'field', $name_single); + } + // clear this data + unset($old_view); + } + if (ComponentbuilderHelper::checkArray($view->addfields)) + { + $view->fields = array_values($view->addfields); + // sort the fields acording to order + usort($view->fields, function($a, $b) + { + if (isset($a['order_list']) && isset($b['order_list'])) + { + if ($a['order_list'] != 0 && $b['order_list'] != 0) + { + return $a['order_list'] - $b['order_list']; + } + elseif ($b['order_list'] != 0 && $a['order_list'] == 0) + { + return 1; + } + elseif ($a['order_list'] != 0 && $b['order_list'] == 0) + { + return 0; + } + return 1; + } + return 0; + }); + // load the field data + foreach ($view->fields as $key => &$field) + { + $field['settings'] = $this->getFieldData($field['field'], $name_single, $name_list); + } + } + unset($view->addfields); + } // build update SQL if ($old_view = $this->getHistoryWatch('admin_view', $id)) { - // add new fields were added - if (isset($old_view->addfields) && ComponentbuilderHelper::checkJson($old_view->addfields)) - { - $this->setUpdateSQL(json_decode($old_view->addfields, true), $fields, 'field', $name_single); - } // check if the view name changed if (ComponentbuilderHelper::checkString($old_view->name_single)) { @@ -1237,116 +1361,76 @@ class Get } // clear this data unset($old_view); - } - // sort the values - if (ComponentbuilderHelper::checkArray($tables)) + } + // set the conditions + if ($addconditions = ComponentbuilderHelper::getVar('admin_fields_conditions', $id, 'admin_view', 'addconditions')) { - foreach ($tables as $option => $values) + $view->addconditions = json_decode($addconditions,true); + // get the admin fields id + $conditionsID = ComponentbuilderHelper::getVar('admin_fields_conditions', $id, 'admin_view', 'id'); + // check what type of conditions array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($view->addconditions['target_field'])) { - foreach ($values as $nr => $value) + $bucket = array(); + foreach($view->addconditions as $option => $values) { - $view->tables[$nr][$option] = $value; - } - } - } - if (ComponentbuilderHelper::checkArray($tabs)) - { - foreach ($tabs as $option => $values) - { - foreach ($values as $nr => $value) - { - $fix = $nr+1; - $view->tabs[$fix] = $value; - } - } - } - if (ComponentbuilderHelper::checkArray($permissions)) - { - foreach ($permissions as $option => $values) - { - foreach ($values as $nr => $value) - { - $view->permissions[$nr][$option] = $value; - } - } - } - if (ComponentbuilderHelper::checkArray($fields)) - { - foreach ($fields as $option => $values) - { - foreach ($values as $nr => $value) - { - $view->fields[$nr][$option] = (int) $value; - } - } - // sort the fields acording to order - usort($view->fields, function($a, $b) - { - if ($a['order_list'] != 0 && $b['order_list'] != 0) - { - return $a['order_list'] - $b['order_list']; - } - elseif ($b['order_list'] != 0 && $a['order_list'] == 0) - { - return 1; - } - elseif ($a['order_list'] != 0 && $b['order_list'] == 0) - { - return 0; - } - return 1; - }); - // load the field data - foreach ($view->fields as $key => &$field) - { - $field['settings'] = $this->getFieldData($field['field'],$name_single,$name_list); - } - } - if (ComponentbuilderHelper::checkArray($conditions)) - { - foreach ($conditions as $condition => $conditionValues) - { - foreach ($conditionValues as $nr => $conditionValue) - { - if ($condition === 'target_field') + foreach($values as $nr => $value) { - if (ComponentbuilderHelper::checkArray($conditionValue) && ComponentbuilderHelper::checkArray($view->fields)) + $bucket['addconditions'.$nr][$option] = $value; + } + } + $view->addconditions = $bucket; + // update the fields + $conditionsUpdate = new stdClass(); + $conditionsUpdate->id = (int) $conditionsID; + $conditionsUpdate->addconditions = json_encode($bucket); + $this->db->updateObject('#__componentbuilder_admin_fields_conditions', $conditionsUpdate, 'id'); + } + if (ComponentbuilderHelper::checkArray($view->addconditions)) + { + $view->conditions = array(); + $ne = 0; + foreach ($view->addconditions as $nr => $conditionValue) + { + if (ComponentbuilderHelper::checkArray($conditionValue['target_field']) && ComponentbuilderHelper::checkArray($view->fields)) + { + foreach ($conditionValue['target_field'] as $fieldKey => $fieldId) { - foreach ($conditionValue as $fieldKey => $fieldId) + foreach ($view->fields as $fieldValues) { - foreach ($view->fields as $fieldValues) + if ((int) $fieldValues['field'] == (int) $fieldId) { - if ((int) $fieldValues['field'] == (int) $fieldId) - { - // load the field details - $required = ComponentbuilderHelper::getBetween($fieldValues['settings']->xml,'required="','"'); - $required = ($required == true) ? 'yes' : 'no'; - $filter = ComponentbuilderHelper::getBetween($fieldValues['settings']->xml,'filter="','"'); - $filter = ComponentbuilderHelper::checkString($filter) ? $filter : 'none'; - // get name - $name = ComponentbuilderHelper::getBetween($fieldValues['settings']->xml,'name="','"'); - $name = ComponentbuilderHelper::checkString($name) ? $name : $fieldValues['settings']->name; - // get type - $type = ComponentbuilderHelper::getBetween($fieldValues['settings']->xml,'type="','"'); - $type = ComponentbuilderHelper::checkString($type) ? $type : $fieldValues['settings']->type_name; - // set the field name - $conditionValue[$fieldKey] = array( - 'name' => ComponentbuilderHelper::safeString($name), - 'type' => ComponentbuilderHelper::safeString($type), - 'required' => $required, - 'filter' => $filter - ); - break; - } + // load the field details + $required = ComponentbuilderHelper::getBetween($fieldValues['settings']->xml,'required="','"'); + $required = ($required == true) ? 'yes' : 'no'; + $filter = ComponentbuilderHelper::getBetween($fieldValues['settings']->xml,'filter="','"'); + $filter = ComponentbuilderHelper::checkString($filter) ? $filter : 'none'; + // get name + $name = ComponentbuilderHelper::getBetween($fieldValues['settings']->xml,'name="','"'); + $name = ComponentbuilderHelper::checkString($name) ? $name : $fieldValues['settings']->name; + // get type + $type = ComponentbuilderHelper::getBetween($fieldValues['settings']->xml,'type="','"'); + $type = ComponentbuilderHelper::checkString($type) ? $type : $fieldValues['settings']->type_name; + // set the field name + $conditionValue['target_field'][$fieldKey] = array( + 'name' => ComponentbuilderHelper::safeString($name), + 'type' => ComponentbuilderHelper::safeString($type), + 'required' => $required, + 'filter' => $filter + ); + break; } } } } - if ($condition === 'match_field') + + // load match field + if (ComponentbuilderHelper::checkArray($view->fields) && isset($conditionValue['match_field'])) { foreach ($view->fields as $fieldValue) { - if ((int) $fieldValue['field'] == (int) $conditionValue) + if ((int) $fieldValue['field'] == (int) $conditionValue['match_field']) { // get name $name = ComponentbuilderHelper::getBetween($fieldValue['settings']->xml,'name="','"'); @@ -1355,44 +1439,53 @@ class Get $type = ComponentbuilderHelper::getBetween($fieldValue['settings']->xml,'type="','"'); $type = ComponentbuilderHelper::checkString($type) ? $type : $fieldValue['settings']->type_name; // set the field details - $view->conditions[$nr]['match_name'] = ComponentbuilderHelper::safeString($name); - $view->conditions[$nr]['match_type'] = ComponentbuilderHelper::safeString($type); - $view->conditions[$nr]['match_xml'] = $fieldValue['settings']->xml; + $conditionValue['match_name'] = ComponentbuilderHelper::safeString($name); + $conditionValue['match_type'] = ComponentbuilderHelper::safeString($type); + $conditionValue['match_xml'] = $fieldValue['settings']->xml; // if custom field load field being extended if (!ComponentbuilderHelper::typeField($type)) { - $view->conditions[$nr]['match_extends'] = ComponentbuilderHelper::getBetween($fieldValue['settings']->xml,'extends="','"'); + $conditionValue['match_extends'] = ComponentbuilderHelper::getBetween($fieldValue['settings']->xml,'extends="','"'); } else { - $view->conditions[$nr]['match_extends'] = ''; + $conditionValue['match_extends'] = ''; } break; } } } // set condition values - $view->conditions[$nr][$condition] = $conditionValue; + $view->conditions[$ne] = $conditionValue; + $ne++; } } + unset($view->addconditions); } // set linked views - $linked_views_sorted = null; - if (ComponentbuilderHelper::checkArray($linked_views)) + $this->linkedAdminViews[$name_single] = null; + $view->addlinked_views = json_decode($view->addlinked_views,true); + // check what type of linked_views array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($view->addlinked_views['adminview'])) { - $linked_views_sorted = array(); - foreach ($linked_views as $option => $values) + $bucket = array(); + foreach($view->addlinked_views as $option => $values) { - foreach ($values as $nr => $value) + foreach($values as $nr => $value) { - $linked_views_sorted[$nr][$option] = $value; + $bucket['addlinked_views'.$nr][$option] = $value; } } + $view->addlinked_views = $bucket; + $objectUpdate->addlinked_views = json_encode($bucket); } - unset($linked_views); - // setup linked views to global data sets - $this->linkedAdminViews[$name_single] = $linked_views_sorted; - unset($linked_views_sorted); + if (ComponentbuilderHelper::checkArray($view->addlinked_views)) + { + // setup linked views to global data sets + $this->linkedAdminViews[$name_single] = array_values($view->addlinked_views); + } + unset($view->addlinked_views); // set the lang target $this->lang = 'admin'; // add_javascript @@ -1468,19 +1561,28 @@ class Get $view->php_controller_list = $this->setDynamicValues(base64_decode($view->php_controller_list)); } // set the button array - $buttons = json_decode($view->custom_button,true); - unset($view->custom_button); + $view->custom_button = json_decode($view->custom_button,true); + // check what type of custom_button array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($view->custom_button['name'])) + { + $bucket = array(); + foreach($view->custom_button as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket['custom_button'.$nr][$option] = $value; + } + } + $view->custom_button = $bucket; + $objectUpdate->custom_button = json_encode($bucket); + } // sort the values - if (ComponentbuilderHelper::checkArray($buttons)) + if (ComponentbuilderHelper::checkArray($view->custom_button)) { - foreach ($buttons as $option => $values) - { - foreach ($values as $nr => $value) - { - $view->custom_buttons[$nr][$option] = $value; - } - } + $view->custom_buttons = array_values($view->custom_button); } + unset($view->custom_button); } // set custom import scripts if (isset($view->add_custom_import) && $view->add_custom_import == 1) @@ -1517,20 +1619,29 @@ class Get } } // check if controller input as been set - $ajax_input = json_decode($view->ajax_input,true); - if (ComponentbuilderHelper::checkArray($ajax_input)) + $view->ajax_input = json_decode($view->ajax_input,true); + // check what type of ajax_input array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($view->ajax_input['value_name'])) { - foreach ($ajax_input as $option => $values) + $bucket = array(); + foreach($view->ajax_input as $option => $values) { - foreach ($values as $nr => $value) + foreach($values as $nr => $value) { - if ($addAjaxSite) - { - $this->customScriptBuilder['site']['ajax_controller'][$name_single][$nr][$option] = $value; - } - $this->customScriptBuilder['admin']['ajax_controller'][$name_single][$nr][$option] = $value; + $bucket['ajax_input'.$nr][$option] = $value; } } + $view->ajax_input = $bucket; + $objectUpdate->ajax_input = json_encode($bucket); + } + if (ComponentbuilderHelper::checkArray($view->ajax_input)) + { + if ($addAjaxSite) + { + $this->customScriptBuilder['site']['ajax_controller'][$name_single] = array_values($view->ajax_input); + } + $this->customScriptBuilder['admin']['ajax_controller'][$name_single] = array_values($view->ajax_input); $this->addAjax = true; unset($view->ajax_input); } @@ -1552,7 +1663,7 @@ class Get if ($view->source == 1 && isset($view->tables)) { // build and add the SQL dump - $this->customScriptBuilder['sql'][$name_single] = $this->buildSqlDump($view->tables,$name_single, $id); + $this->customScriptBuilder['sql'][$name_single] = $this->buildSqlDump($view->tables, $name_single, $id); unset($view->tables); } elseif ($view->source == 2 && isset($view->sql)) @@ -1577,6 +1688,11 @@ class Get unset($this->placeholders['[[[VIEWS]]]']); // store this view to class object $this->_adminViewData[$id] = $view; + // be sure to update the table if we found repeatable fields that are still not converted + if (count((array) $objectUpdate) > 1) + { + $this->db->updateObject('#__componentbuilder_admin_view', $objectUpdate, 'id'); + } } // return the found view data return $this->_adminViewData[$id]; @@ -1587,7 +1703,7 @@ class Get * * @param int $id The view ID * @param string $table The view table - * + * * @return oject The view data * */ @@ -1613,6 +1729,9 @@ class Get { $this->lang = 'admin'; } + // be sure to update the value in the db + $objectUpdate = new stdClass(); + $objectUpdate->id = (int) $id; // set the default data $view->default = $this->setDynamicValues(base64_decode($view->default)); // fix alias to use in code @@ -1721,16 +1840,25 @@ class Get if (isset($view->add_php_ajax) && $view->add_php_ajax == 1) { // check if controller input as been set - $ajax_input = json_decode($view->ajax_input,true); - if (ComponentbuilderHelper::checkArray($ajax_input)) + $view->ajax_input = json_decode($view->ajax_input,true); + // check what type of ajax_input array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($view->ajax_input['value_name'])) { - foreach ($ajax_input as $option => $values) + $bucket = array(); + foreach($view->ajax_input as $option => $values) { - foreach ($values as $nr => $value) + foreach($values as $nr => $value) { - $this->customScriptBuilder[$this->target]['ajax_controller'][$view->code][$nr][$option] = $value; + $bucket['ajax_input'.$nr][$option] = $value; } } + $view->ajax_input = $bucket; + $objectUpdate->ajax_input = json_encode($bucket); + } + if (ComponentbuilderHelper::checkArray($view->ajax_input)) + { + $this->customScriptBuilder[$this->target]['ajax_controller'][$view->code] = array_values($view->ajax_input); $this->addSiteAjax = true; unset($view->ajax_input); } @@ -1754,19 +1882,33 @@ class Get $view->php_controller = base64_decode($view->php_controller); $view->php_controller = $this->setDynamicValues($view->php_controller); // set the button array - $buttons = json_decode($view->custom_button,true); - unset($view->custom_button); - // sort the values - if (ComponentbuilderHelper::checkArray($buttons)) + $view->custom_button = json_decode($view->custom_button,true); + // check what type of custom_button array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($view->custom_button['name'])) { - foreach ($buttons as $option => $values) + $bucket = array(); + foreach($view->custom_button as $option => $values) { - foreach ($values as $nr => $value) + foreach($values as $nr => $value) { - $view->custom_buttons[$nr][$option] = $value; + $bucket['custom_button'.$nr][$option] = $value; } } + $view->custom_button = array_values($bucket); + $objectUpdate->custom_button = json_encode($bucket); } + // sort the values + if (ComponentbuilderHelper::checkArray($view->custom_button)) + { + $view->custom_buttons = array_values($view->custom_button); + } + unset($view->custom_button); + } + // be sure to update the table if we found repeatable fields that are still not converted + if (count((array) $objectUpdate) > 1) + { + $this->db->updateObject('#__componentbuilder_'.$table, $objectUpdate, 'id'); } // return the found view data return $view; @@ -1782,7 +1924,7 @@ class Get * @return oject The field data * */ - public function getFieldData($id,$name_single = null,$name_list = null) + public function getFieldData($id, $name_single = null, $name_list = null) { if (!isset($this->_fieldData[$id]) && $id > 0) { @@ -1791,7 +1933,7 @@ class Get // Order it by the ordering field. $query->select('a.*'); - $query->select($this->db->quoteName(array('c.name', 'c.properties'),array('type_name','properties'))); + $query->select($this->db->quoteName(array('c.name', 'c.properties'), array('type_name', 'properties'))); $query->from('#__componentbuilder_field AS a'); $query->join('LEFT', $this->db->quoteName('#__componentbuilder_fieldtype', 'c') . ' ON (' . $this->db->quoteName('a.fieldtype') . ' = ' . $this->db->quoteName('c.id') . ')'); $query->where($this->db->quoteName('a.id') . ' = '. $this->db->quote($id)); @@ -1811,8 +1953,27 @@ class Get $field->xml = $this->setDynamicValues(json_decode($field->xml)); // load the type values form type params - $field->properties = json_decode($field->properties,true); - + $properties = json_decode($field->properties, true); + // check what type of field array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($properties['name'])) + { + $bucket = array(); + foreach($properties as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket['addfields'.$nr][$option] = $value; + } + } + $properties = $bucket; + // be sure to update the value in the db + $objectUpdate = new stdClass(); + $objectUpdate->id = $field->fieldtype; + $objectUpdate->properties = json_encode($bucket); + $this->db->updateObject('#__componentbuilder_fieldtype', $objectUpdate, 'id'); + } + $field->properties = array_values($properties); // check if we have advanced encryption if (4 == $field->store && (!isset($this->advancedEncryption) || !$this->advancedEncryption)) { @@ -2245,39 +2406,109 @@ class Get protected function setUpdateSQL($old, $new, $type, $key = null) { // check if there were new items added - if (isset($new[$type]) && ComponentbuilderHelper::checkArray($new[$type]) - && isset($old[$type]) && ComponentbuilderHelper::checkArray($old[$type])) + if (ComponentbuilderHelper::checkArray($new) + && ComponentbuilderHelper::checkArray($old)) { - foreach ($new[$type] as $item) + // check if this is old repeatable field + if (isset($new[$type])) { - if (!in_array($item, $old[$type])) + foreach ($new[$type] as $item) { - // we have a new item, lets add to SQL - if (!isset($this->addSQL[$type]) || !ComponentbuilderHelper::checkArray($this->addSQL[$type])) + $newItem = true; + // check if this is old repeatable field + if (isset($old[$type]) && ComponentbuilderHelper::checkArray($old[$type])) { - $this->addSQL[$type] = array(); - } - // add key if found - if ($key) - { - if (!isset($this->addSQL[$type][$key]) || !ComponentbuilderHelper::checkArray($this->addSQL[$type][$key])) + if (!in_array($item, $old[$type])) { - $this->addSQL[$type][$key] = array(); + // we have a new item, lets add to SQL + $this->setAddSQL($type, $item, $key); + } + // add only once + $newItem = false; + } + elseif (!isset($old[$type])) + { + // we have new values + foreach($old as $oldItem) + { + if (isset($oldItem[$type])) + { + if ($oldItem[$type] == $item[$type]) + { + $newItem = false; + break; + } + } + else + { + $newItem = false; + break; + } } - $this->addSQL[$type][$key][] = (int) $item; } else { - // convert adminview id to name - if ('adminview' === $type) + $newItem = false; + } + // add if new + if ($newItem) + { + // we have a new item, lets add to SQL + $this->setAddSQL($type, $item[$type], $key); + } + } + } + else + { + foreach ($new as $item) + { + // search to see if this is a new value + $newItem = true; + if (isset($item[$type])) + { + // check if this is old repeatable field + if (isset($old[$type]) && ComponentbuilderHelper::checkArray($old[$type])) { - $this->addSQL[$type][] = ComponentbuilderHelper::safeString($this->getAdminViewData($item)->name_single); + if (in_array($item[$type], $old[$type])) + { + $newItem = false; + } + } + elseif (!isset($old[$type])) + { + // we have new values + foreach($old as $oldItem) + { + if (isset($oldItem[$type])) + { + if ($oldItem[$type] == $item[$type]) + { + $newItem = false; + break; + } + } + else + { + $newItem = false; + break; + } + } } else { - $this->addSQL[$type][] = (int) item; + $newItem = false; } } + else + { + break; + } + // add if new + if ($newItem) + { + // we have a new item, lets add to SQL + $this->setAddSQL($type, $item[$type], $key); + } } } } @@ -2295,6 +2526,45 @@ class Get } } + /** + * Set the add sql + * + * @param string $type The type of values + * @param int $item The item id to add + * @param int $key The id/key where values changed + * + * @return void + */ + protected function setAddSQL($type, $item, $key) + { + // we have a new item, lets add to SQL + if (!isset($this->addSQL[$type]) || !ComponentbuilderHelper::checkArray($this->addSQL[$type])) + { + $this->addSQL[$type] = array(); + } + // add key if found + if ($key) + { + if (!isset($this->addSQL[$type][$key]) || !ComponentbuilderHelper::checkArray($this->addSQL[$type][$key])) + { + $this->addSQL[$type][$key] = array(); + } + $this->addSQL[$type][$key][] = (int) $item; + } + else + { + // convert adminview id to name + if ('adminview' === $type) + { + $this->addSQL[$type][] = ComponentbuilderHelper::safeString($this->getAdminViewData($item)->name_single); + } + else + { + $this->addSQL[$type][] = (int) $item; + } + } + } + /** * Get Item History values * @@ -2774,7 +3044,7 @@ class Get * @return string on success with the Dump SQL * */ - public function buildSqlDump($tables,$view,$view_id) + public function buildSqlDump($tables, $view, $view_id) { // first build a query statment to get all the data (insure it must be added - check the tweaking) if (ComponentbuilderHelper::checkArray($tables) && (!isset($this->sqlTweak[$view_id]['remove']) || !$this->sqlTweak[$view_id]['remove'])) diff --git a/admin/helpers/compiler/b_Structure.php b/admin/helpers/compiler/b_Structure.php index 99d3f496d..f217787fc 100644 --- a/admin/helpers/compiler/b_Structure.php +++ b/admin/helpers/compiler/b_Structure.php @@ -311,7 +311,7 @@ class Structure extends Get { // first we run the perent constructor if (parent::__construct($config)) - { + { // set the Joomla version $this->joomlaVersion = $config['joomlaVersion']; // set the template path @@ -320,6 +320,7 @@ class Structure extends Get $this->componentSalesName = 'com_'.$this->componentData->sales_name.'__J'.$this->joomlaVersion; $this->componentBackupName = 'com_'.$this->componentData->sales_name.'_v'.str_replace('.','_',$this->componentData->component_version).'__J'.$this->joomlaVersion; $this->componentFolderName = 'com_'.$this->componentData->name_code.'_v'.str_replace('.','_',$this->componentData->component_version).'__J'.$this->joomlaVersion; + // set component folder path $this->componentPath = $this->compilerPath.'/'.$this->componentFolderName; // set the template path for custom diff --git a/admin/helpers/compiler/c_Fields.php b/admin/helpers/compiler/c_Fields.php index 4d20edbe8..a1dee2332 100644 --- a/admin/helpers/compiler/c_Fields.php +++ b/admin/helpers/compiler/c_Fields.php @@ -1526,7 +1526,7 @@ class Fields extends Structure } // check if translatable - if (ComponentbuilderHelper::checkString($xmlValue) && $property['translatable'] == 1) + if (ComponentbuilderHelper::checkString($xmlValue) && isset($property['translatable']) && $property['translatable'] == 1) { // update lable if field use multiple times if ($property['name'] === 'label') @@ -1550,7 +1550,7 @@ class Fields extends Structure // use lang value $xmlValue = $langValue; } - elseif (isset($field['alias']) && $field['alias'] && $property['translatable'] == 1) + elseif (isset($field['alias']) && $field['alias'] && isset($property['translatable']) && $property['translatable'] == 1) { if ($property['name'] === 'label') { @@ -1565,7 +1565,7 @@ class Fields extends Structure $xmlValue = 'JFIELD_ALIAS_PLACEHOLDER'; } } - elseif (isset($field['title']) && $field['title'] && $property['translatable'] == 1) + elseif (isset($field['title']) && $field['title'] && isset($property['translatable']) && $property['translatable'] == 1) { if ($property['name'] === 'label') { @@ -1577,7 +1577,7 @@ class Fields extends Structure } } // only load value if found or is mandatory - if (ComponentbuilderHelper::checkString($xmlValue) || ($property['mandatory'] == 1 && !$setCustom)) + if (ComponentbuilderHelper::checkString($xmlValue) || (isset($property['mandatory']) && $property['mandatory'] == 1 && !$setCustom)) { // make sure mantory fields are added if (!ComponentbuilderHelper::checkString($xmlValue)) diff --git a/admin/helpers/compiler/e_Interpretation.php b/admin/helpers/compiler/e_Interpretation.php index d53df8225..4bed05d35 100644 --- a/admin/helpers/compiler/e_Interpretation.php +++ b/admin/helpers/compiler/e_Interpretation.php @@ -2840,13 +2840,6 @@ class Interpretation extends Fields $method .= PHP_EOL."\t\t\$this->".ComponentbuilderHelper::safeString($custom_get_name)."\t= \$this->get('".$custom_get_name."');"; } } - - $method .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." Check for errors."; - $method .= PHP_EOL."\t\tif (count(\$errors = \$this->get('Errors')))"; - $method .= PHP_EOL."\t\t{"; - $method .= PHP_EOL."\t\t\tJError::raiseError(500, ".'implode(PHP_EOL, $errors));'; - $method .= PHP_EOL."\t\t\treturn false;"; - $method .= PHP_EOL."\t\t}"; // add custom script if ($view['settings']->add_php_jview_display == 1) { @@ -2875,6 +2868,13 @@ class Interpretation extends Fields $method .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." set the document"; $method .= PHP_EOL."\t\t\$this->setDocument();"; } + + $method .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." Check for errors."; + $method .= PHP_EOL."\t\tif (count(\$errors = \$this->get('Errors')))"; + $method .= PHP_EOL."\t\t{"; + $method .= PHP_EOL."\t\t\tthrow new Exception(implode(".'"\n", $errors), 500);'; + $method .= PHP_EOL."\t\t}"; + $method .= PHP_EOL.PHP_EOL."\t\tparent::display(\$tpl);"; } return $method; diff --git a/admin/helpers/componentbuilder.php b/admin/helpers/componentbuilder.php index 3df4416fc..0f302b720 100644 --- a/admin/helpers/componentbuilder.php +++ b/admin/helpers/componentbuilder.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage componentbuilder.php @@ -477,11 +477,6 @@ abstract class ComponentbuilderHelper $script['display'][] = "\t\t\t// Include helper submenu"; $script['display'][] = "\t\t\t###-#-#-Component###Helper::addSubmenu('import');"; $script['display'][] = "\t\t}"; - $script['display'][] = "\n\t\t// Check for errors."; - $script['display'][] = "\t\tif (count(\$errors = \$this->get('Errors'))){"; - $script['display'][] = "\t\t\tJError::raiseError(500, implode('
', \$errors));"; - $script['display'][] = "\t\t\treturn false;"; - $script['display'][] = "\t\t}"; $script['display'][] = "\n\t\t\$paths = new stdClass;"; $script['display'][] = "\t\t\$paths->first = '';"; $script['display'][] = "\t\t\$state = \$this->get('state');"; @@ -507,6 +502,10 @@ abstract class ComponentbuilderHelper $script['display'][] = "\t\t\t// clear the data type"; $script['display'][] = "\t\t\t\$session->clear('dataType');"; $script['display'][] = "\t\t}"; + $script['display'][] = "\n\t\t// Check for errors."; + $script['display'][] = "\t\tif (count(\$errors = \$this->get('Errors'))){"; + $script['display'][] = "\t\t\tthrow new Exception(implode(".'"\n", $errors), 500);'; + $script['display'][] = "\t\t}"; $script['display'][] = "\n\t\t// Display the template"; $script['display'][] = "\t\tparent::display(\$tpl);"; $script['display'][] = "\t}"; diff --git a/admin/helpers/componentbuilderemail.php b/admin/helpers/componentbuilderemail.php index fb2ca8812..11220b47a 100644 --- a/admin/helpers/componentbuilderemail.php +++ b/admin/helpers/componentbuilderemail.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage componentbuilderemail.php diff --git a/admin/helpers/headercheck.php b/admin/helpers/headercheck.php index 83b71315d..fb57b6bcf 100644 --- a/admin/helpers/headercheck.php +++ b/admin/helpers/headercheck.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage headercheck.php diff --git a/admin/helpers/html/batch_.php b/admin/helpers/html/batch_.php index 963fffada..b3b44346e 100644 --- a/admin/helpers/html/batch_.php +++ b/admin/helpers/html/batch_.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage batch_.php diff --git a/admin/helpers/indenter.php b/admin/helpers/indenter.php index 2daeb7bcf..2622fb522 100644 --- a/admin/helpers/indenter.php +++ b/admin/helpers/indenter.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage indenter.php diff --git a/admin/helpers/js.php b/admin/helpers/js.php index 567335eab..a37ea87e9 100644 --- a/admin/helpers/js.php +++ b/admin/helpers/js.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage js.php diff --git a/admin/helpers/minify.php b/admin/helpers/minify.php index 86798ec99..abe7b43ed 100644 --- a/admin/helpers/minify.php +++ b/admin/helpers/minify.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage minify.php diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.ini b/admin/language/en-GB/en-GB.com_componentbuilder.ini index 6da4d2a2d..504b6648a 100644 --- a/admin/language/en-GB/en-GB.com_componentbuilder.ini +++ b/admin/language/en-GB/en-GB.com_componentbuilder.ini @@ -1,8 +1,215 @@ COM_COMPONENTBUILDER="Component Builder" +COM_COMPONENTBUILDER_ABOVE_TABS="Above Tabs" +COM_COMPONENTBUILDER_ACTIVE_ONLY_FOUR_TEXT_FIELD="Active (only 4 text_field)" COM_COMPONENTBUILDER_ADD_CORRESPONDING_LINE_NUMBERS_TO_THE_DYNAMIC_COMMENTS_SO_TO_SEE_WHERE_IN_THE_COMPILER_THE_LINES_OF_CODE_WAS_BUILD_THIS_WILL_HELP_IF_YOU_NEED_TO_GET_MORE_TECHNICAL_WITH_AN_ISSUE_ON_GITHUB_OR_EVEN_FOR_YOUR_OWN_DEBUGGING="Add corresponding line numbers to the dynamic comments, so to see where in the compiler the lines of code was build. This will help if you need to get more technical with an issue on github, or even for your own debugging." COM_COMPONENTBUILDER_ADD_CUSTOM_CODE_PLACEHOLDERS="Add Custom Code Placeholders" COM_COMPONENTBUILDER_ADD_TO_BACKUP_FOLDER_AMP_SALES_SERVER_LTSMALLGTIF_SETLTSMALLGT="Add to Backup Folder & Sales Server <small>(if set)</small>" COM_COMPONENTBUILDER_ADD_TO_REPOSITORY_FOLDER="Add to Repository Folder" +COM_COMPONENTBUILDER_ADMINS_FIELDS="Admins Fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_ACCESS="Admins Fields Access" +COM_COMPONENTBUILDER_ADMINS_FIELDS_ACCESS_DESC="Allows the users in this group to access access admins fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_BATCH_OPTIONS="Batch process the selected Admins Fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_BATCH_TIP="All changes will be applied to all selected Admins Fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_BATCH_USE="Admins Fields Batch Use" +COM_COMPONENTBUILDER_ADMINS_FIELDS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch admins fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS="Admins Fields Conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_ACCESS="Admins Fields Conditions Access" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_ACCESS_DESC="Allows the users in this group to access access admins fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_BATCH_OPTIONS="Batch process the selected Admins Fields Conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_BATCH_TIP="All changes will be applied to all selected Admins Fields Conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_BATCH_USE="Admins Fields Conditions Batch Use" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch admins fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_CREATE="Admins Fields Conditions Create" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_CREATE_DESC="Allows the users in this group to create create admins fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_DELETE="Admins Fields Conditions Delete" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_DELETE_DESC="Allows the users in this group to delete delete admins fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT="Admins Fields Conditions Edit" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_CREATED_BY="Admins Fields Conditions Edit Created By" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by admins fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_CREATED_DATE="Admins Fields Conditions Edit Created Date" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created admins fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_DESC="Allows the users in this group to edit the admin fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_OWN="Admins Fields Conditions Edit Own" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_OWN_DESC="Allows the users in this group to edit edit own admins fields conditions created by them" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_STATE="Admins Fields Conditions Edit State" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_STATE_DESC="Allows the users in this group to update the state of the admin fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_VERSION="Admins Fields Conditions Edit Version" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version admins fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_N_ITEMS_ARCHIVED="%s Admins Fields Conditions archived." +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_N_ITEMS_ARCHIVED_1="%s Admin Fields Conditions archived." +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_N_ITEMS_CHECKED_IN_0="No Admin Fields Conditions successfully checked in." +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_N_ITEMS_CHECKED_IN_1="%d Admin Fields Conditions successfully checked in." +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_N_ITEMS_CHECKED_IN_MORE="%d Admins Fields Conditions successfully checked in." +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_N_ITEMS_DELETED="%s Admins Fields Conditions deleted." +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_N_ITEMS_DELETED_1="%s Admin Fields Conditions deleted." +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_N_ITEMS_FEATURED="%s Admins Fields Conditions featured." +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_N_ITEMS_FEATURED_1="%s Admin Fields Conditions featured." +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_N_ITEMS_PUBLISHED="%s Admins Fields Conditions published." +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_N_ITEMS_PUBLISHED_1="%s Admin Fields Conditions published." +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_N_ITEMS_TRASHED="%s Admins Fields Conditions trashed." +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_N_ITEMS_TRASHED_1="%s Admin Fields Conditions trashed." +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_N_ITEMS_UNFEATURED="%s Admins Fields Conditions unfeatured." +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_N_ITEMS_UNFEATURED_1="%s Admin Fields Conditions unfeatured." +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_N_ITEMS_UNPUBLISHED="%s Admins Fields Conditions unpublished." +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_N_ITEMS_UNPUBLISHED_1="%s Admin Fields Conditions unpublished." +COM_COMPONENTBUILDER_ADMINS_FIELDS_CREATE="Admins Fields Create" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CREATE_DESC="Allows the users in this group to create create admins fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_DELETE="Admins Fields Delete" +COM_COMPONENTBUILDER_ADMINS_FIELDS_DELETE_DESC="Allows the users in this group to delete delete admins fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT="Admins Fields Edit" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_CREATED_BY="Admins Fields Edit Created By" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by admins fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_CREATED_DATE="Admins Fields Edit Created Date" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created admins fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_DESC="Allows the users in this group to edit the admin fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_OWN="Admins Fields Edit Own" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_OWN_DESC="Allows the users in this group to edit edit own admins fields created by them" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_STATE="Admins Fields Edit State" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_STATE_DESC="Allows the users in this group to update the state of the admin fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_VERSION="Admins Fields Edit Version" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version admins fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_N_ITEMS_ARCHIVED="%s Admins Fields archived." +COM_COMPONENTBUILDER_ADMINS_FIELDS_N_ITEMS_ARCHIVED_1="%s Admin Fields archived." +COM_COMPONENTBUILDER_ADMINS_FIELDS_N_ITEMS_CHECKED_IN_0="No Admin Fields successfully checked in." +COM_COMPONENTBUILDER_ADMINS_FIELDS_N_ITEMS_CHECKED_IN_1="%d Admin Fields successfully checked in." +COM_COMPONENTBUILDER_ADMINS_FIELDS_N_ITEMS_CHECKED_IN_MORE="%d Admins Fields successfully checked in." +COM_COMPONENTBUILDER_ADMINS_FIELDS_N_ITEMS_DELETED="%s Admins Fields deleted." +COM_COMPONENTBUILDER_ADMINS_FIELDS_N_ITEMS_DELETED_1="%s Admin Fields deleted." +COM_COMPONENTBUILDER_ADMINS_FIELDS_N_ITEMS_FEATURED="%s Admins Fields featured." +COM_COMPONENTBUILDER_ADMINS_FIELDS_N_ITEMS_FEATURED_1="%s Admin Fields featured." +COM_COMPONENTBUILDER_ADMINS_FIELDS_N_ITEMS_PUBLISHED="%s Admins Fields published." +COM_COMPONENTBUILDER_ADMINS_FIELDS_N_ITEMS_PUBLISHED_1="%s Admin Fields published." +COM_COMPONENTBUILDER_ADMINS_FIELDS_N_ITEMS_TRASHED="%s Admins Fields trashed." +COM_COMPONENTBUILDER_ADMINS_FIELDS_N_ITEMS_TRASHED_1="%s Admin Fields trashed." +COM_COMPONENTBUILDER_ADMINS_FIELDS_N_ITEMS_UNFEATURED="%s Admins Fields unfeatured." +COM_COMPONENTBUILDER_ADMINS_FIELDS_N_ITEMS_UNFEATURED_1="%s Admin Fields unfeatured." +COM_COMPONENTBUILDER_ADMINS_FIELDS_N_ITEMS_UNPUBLISHED="%s Admins Fields unpublished." +COM_COMPONENTBUILDER_ADMINS_FIELDS_N_ITEMS_UNPUBLISHED_1="%s Admin Fields unpublished." +COM_COMPONENTBUILDER_ADMIN_FIELDS="Admin Fields" +COM_COMPONENTBUILDER_ADMIN_FIELDS_ABOVE_TABS="Above Tabs" +COM_COMPONENTBUILDER_ADMIN_FIELDS_ADDFIELDS="Addfields" +COM_COMPONENTBUILDER_ADMIN_FIELDS_ADDFIELDS_DESCRIPTION="Setup fields for this view." +COM_COMPONENTBUILDER_ADMIN_FIELDS_ADDFIELDS_LABEL="Fields" +COM_COMPONENTBUILDER_ADMIN_FIELDS_ADMIN_VIEW="Admin View" +COM_COMPONENTBUILDER_ADMIN_FIELDS_ADMIN_VIEW_DESCRIPTION="Select an admin view" +COM_COMPONENTBUILDER_ADMIN_FIELDS_ADMIN_VIEW_LABEL="View" +COM_COMPONENTBUILDER_ADMIN_FIELDS_ALIAS_DESCRIPTION="Select if the field is the alias field." +COM_COMPONENTBUILDER_ADMIN_FIELDS_ALIAS_LABEL="Alias" +COM_COMPONENTBUILDER_ADMIN_FIELDS_ALIGNMENT_DESCRIPTION="Select the field alignment inside a tab/view." +COM_COMPONENTBUILDER_ADMIN_FIELDS_ALIGNMENT_LABEL="Alignment" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS="Admin Fields Conditions" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ACTIVE_ONLY_FOUR_TEXT_FIELD="Active (only 4 text_field)" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ADDCONDITIONS="Addconditions" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ADDCONDITIONS_DESCRIPTION="Conditional setup for the above fields." +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ADDCONDITIONS_LABEL="Conditions" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ADMIN_VIEW="Admin View" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ADMIN_VIEW_DESCRIPTION="Select an admin view" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ADMIN_VIEW_LABEL="View" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ANY_SELECTION_ONLY_FOUR_LISTRADIOCHECKBOXESDYNAMIC_LIST="Any Selection (only 4 list/radio/checkboxes/dynamic_list)" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_CHAIN="Chain" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_CONDITIONS="Conditions" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_CREATED_BY_DESC="The user that created this Admin Fields Conditions." +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_CREATED_BY_LABEL="Created By" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_CREATED_DATE_DESC="The date this Admin Fields Conditions was created." +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_CREATED_DATE_LABEL="Created Date" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_EDIT="Editing the Admin Fields Conditions" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ERROR_UNIQUE_ALIAS="Another Admin Fields Conditions has the same alias." +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_EXACT_LENGTH_ONLY_FOUR_TEXT_FIELD="Exact Length (only 4 text_field)" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_HIDE="Hide" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ID="Id" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ISOLATE="Isolate" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_IS_NOT_ONLY_FOUR_LISTRADIOCHECKBOXES="Is Not (only 4 list/radio/checkboxes)" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_IS_ONLY_FOUR_LISTRADIOCHECKBOXES="Is (only 4 list/radio/checkboxes)" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_KEY_WORD_ALL_CASEINSENSITIVE_ONLY_FOUR_TEXT_FIELD="Key Word All case-insensitive (only 4 text_field)" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_KEY_WORD_ALL_CASESENSITIVE_ONLY_FOUR_TEXT_FIELD="Key Word All case-sensitive (only 4 text_field)" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_KEY_WORD_ANY_CASEINSENSITIVE_ONLY_FOUR_TEXT_FIELD="Key Word Any case-insensitive (only 4 text_field)" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_KEY_WORD_ANY_CASESENSITIVE_ONLY_FOUR_TEXT_FIELD="Key Word Any case-sensitive (only 4 text_field)" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MATCH_BEHAVIOR_DESCRIPTION="Select the match behavior." +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MATCH_BEHAVIOR_LABEL="Match Behavior" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MATCH_FIELD="Match Field" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MATCH_FIELD_DESCRIPTION="Select the match field." +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MATCH_FIELD_LABEL="Match Field" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MATCH_OPTIONS_HINT="Options here" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MATCH_OPTIONS_LABEL="Match Options" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MAX_LENGTH_ONLY_FOUR_TEXT_FIELD="Max Length (only 4 text_field)" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MIN_LENGTH_ONLY_FOUR_TEXT_FIELD="Min Length (only 4 text_field)" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MODIFIED_BY_DESC="The last user that modified this Admin Fields Conditions." +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MODIFIED_BY_LABEL="Modified By" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MODIFIED_DATE_DESC="The date this Admin Fields Conditions was modified." +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MODIFIED_DATE_LABEL="Modified Date" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_NEW="A New Admin Fields Conditions" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_NOTE_ON_CONDITIONS_DESCRIPTION="Here you can add conditional field settings" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_NOTE_ON_CONDITIONS_LABEL="Condition Implementation" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ORDERING_LABEL="Ordering" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_PERMISSION="Permissions" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_PUBLISHING="Publishing" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Admin Fields Conditions to customise the alias." +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_SHOW="Show" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_STATUS="Status" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_TARGET_BEHAVIOR_DESCRIPTION="Select the target field/s behavior." +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_TARGET_BEHAVIOR_LABEL="Target Behavior" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_TARGET_FIELD="Target Field" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_TARGET_FIELD_DESCRIPTION="Select the target field/s." +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_TARGET_FIELD_LABEL="Target Field/s" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_TARGET_RELATION_DESCRIPTION="Select the target field/s relation to other of the same target field/s." +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_TARGET_RELATION_LABEL="Target Relation" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_UNACTIVE_ONLY_FOUR_TEXT_FIELD="Unactive (only 4 text_field)" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_VERSION_DESC="A count of the number of times this Admin Fields Conditions has been revised." +COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_VERSION_LABEL="Revision" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CREATED_BY_DESC="The user that created this Admin Fields." +COM_COMPONENTBUILDER_ADMIN_FIELDS_CREATED_BY_LABEL="Created By" +COM_COMPONENTBUILDER_ADMIN_FIELDS_CREATED_DATE_DESC="The date this Admin Fields was created." +COM_COMPONENTBUILDER_ADMIN_FIELDS_CREATED_DATE_LABEL="Created Date" +COM_COMPONENTBUILDER_ADMIN_FIELDS_EDIT="Editing the Admin Fields" +COM_COMPONENTBUILDER_ADMIN_FIELDS_EDITING="Editing" +COM_COMPONENTBUILDER_ADMIN_FIELDS_ERROR_UNIQUE_ALIAS="Another Admin Fields has the same alias." +COM_COMPONENTBUILDER_ADMIN_FIELDS_FIELD="Field" +COM_COMPONENTBUILDER_ADMIN_FIELDS_FIELDS="Fields" +COM_COMPONENTBUILDER_ADMIN_FIELDS_FIELD_DESCRIPTION="Select a field" +COM_COMPONENTBUILDER_ADMIN_FIELDS_FIELD_LABEL="Field" +COM_COMPONENTBUILDER_ADMIN_FIELDS_FILTER_DESCRIPTION="Select if the field is to be used as a filter in list view, if shown." +COM_COMPONENTBUILDER_ADMIN_FIELDS_FILTER_LABEL="Filter" +COM_COMPONENTBUILDER_ADMIN_FIELDS_FULL_WIDTH_IN_TAB="Full Width in Tab" +COM_COMPONENTBUILDER_ADMIN_FIELDS_ID="Id" +COM_COMPONENTBUILDER_ADMIN_FIELDS_LEFT_IN_TAB="Left in Tab" +COM_COMPONENTBUILDER_ADMIN_FIELDS_LEFT_OF_TABS="Left of Tabs" +COM_COMPONENTBUILDER_ADMIN_FIELDS_LINK_DESCRIPTION="Select if the field is to be used as a link to a single record, if shown." +COM_COMPONENTBUILDER_ADMIN_FIELDS_LINK_LABEL="Link" +COM_COMPONENTBUILDER_ADMIN_FIELDS_LIST_DESCRIPTION="Select if this field should show in the list view." +COM_COMPONENTBUILDER_ADMIN_FIELDS_LIST_LABEL="Admin List" +COM_COMPONENTBUILDER_ADMIN_FIELDS_MODIFIED_BY_DESC="The last user that modified this Admin Fields." +COM_COMPONENTBUILDER_ADMIN_FIELDS_MODIFIED_BY_LABEL="Modified By" +COM_COMPONENTBUILDER_ADMIN_FIELDS_MODIFIED_DATE_DESC="The date this Admin Fields was modified." +COM_COMPONENTBUILDER_ADMIN_FIELDS_MODIFIED_DATE_LABEL="Modified Date" +COM_COMPONENTBUILDER_ADMIN_FIELDS_NEW="A New Admin Fields" +COM_COMPONENTBUILDER_ADMIN_FIELDS_NONE="None" +COM_COMPONENTBUILDER_ADMIN_FIELDS_NOTE_ON_VIEWS_DESCRIPTION="id, asset_id, state, access, ordering, created_by, date_created, modified_by, date_modified, checked_out, checked_out_time, version, hits, metakey, metadesc, metadata (you don't need to add them again)" +COM_COMPONENTBUILDER_ADMIN_FIELDS_NOTE_ON_VIEWS_LABEL="The following fields are added by default to all views" +COM_COMPONENTBUILDER_ADMIN_FIELDS_ORDERING_LABEL="Ordering" +COM_COMPONENTBUILDER_ADMIN_FIELDS_ORDER_EDIT_DESCRIPTION="Order in relation to tab & alignment of admin and site." +COM_COMPONENTBUILDER_ADMIN_FIELDS_ORDER_EDIT_LABEL="Order in Edit" +COM_COMPONENTBUILDER_ADMIN_FIELDS_ORDER_LIST_DESCRIPTION="Ordering in relation to list view of admin and site" +COM_COMPONENTBUILDER_ADMIN_FIELDS_ORDER_LIST_LABEL="Order in list views" +COM_COMPONENTBUILDER_ADMIN_FIELDS_PERMISSION="Permissions" +COM_COMPONENTBUILDER_ADMIN_FIELDS_PERMISSION_DESCRIPTION="What permission to use." +COM_COMPONENTBUILDER_ADMIN_FIELDS_PERMISSION_LABEL="Permissions" +COM_COMPONENTBUILDER_ADMIN_FIELDS_PUBLISHING="Publishing" +COM_COMPONENTBUILDER_ADMIN_FIELDS_RIGHT_IN_TAB="Right in Tab" +COM_COMPONENTBUILDER_ADMIN_FIELDS_RIGHT_OF_TABS="Right of Tabs" +COM_COMPONENTBUILDER_ADMIN_FIELDS_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Admin Fields to customise the alias." +COM_COMPONENTBUILDER_ADMIN_FIELDS_SEARCH_DESCRIPTION="Select if the field is to be searchable in list view, if shown." +COM_COMPONENTBUILDER_ADMIN_FIELDS_SEARCH_LABEL="Searchable" +COM_COMPONENTBUILDER_ADMIN_FIELDS_SORT_DESCRIPTION="Select if the field should be sortable in list view, if shown." +COM_COMPONENTBUILDER_ADMIN_FIELDS_SORT_LABEL="Sortable" +COM_COMPONENTBUILDER_ADMIN_FIELDS_STATUS="Status" +COM_COMPONENTBUILDER_ADMIN_FIELDS_TAB="Tab" +COM_COMPONENTBUILDER_ADMIN_FIELDS_TAB_DESCRIPTION="Select the tab this field belongs to." +COM_COMPONENTBUILDER_ADMIN_FIELDS_TAB_LABEL="Tab" +COM_COMPONENTBUILDER_ADMIN_FIELDS_TITLE_DESCRIPTION="Select if the field is the title field." +COM_COMPONENTBUILDER_ADMIN_FIELDS_TITLE_LABEL="Title" +COM_COMPONENTBUILDER_ADMIN_FIELDS_UNDERNEATH_TABS="Underneath Tabs" +COM_COMPONENTBUILDER_ADMIN_FIELDS_VERSION_DESC="A count of the number of times this Admin Fields has been revised." +COM_COMPONENTBUILDER_ADMIN_FIELDS_VERSION_LABEL="Revision" COM_COMPONENTBUILDER_ADMIN_VIEW="Admin View" COM_COMPONENTBUILDER_ADMIN_VIEWS="Admin Views" COM_COMPONENTBUILDER_ADMIN_VIEWS_ACCESS="Admin Views Access" @@ -20,165 +227,15 @@ COM_COMPONENTBUILDER_ADMIN_VIEWS_DASHBOARD_LIST_DESC="Allows the users in this g COM_COMPONENTBUILDER_ADMIN_VIEWS_DELETE="Admin Views Delete" COM_COMPONENTBUILDER_ADMIN_VIEWS_DELETE_DESC="Allows the users in this group to delete delete admin views" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT="Admin Views Edit" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDCONDITIONS="Admin Views Edit Addconditions" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDCONDITIONS_DESC="Allows the users in this group to update the edit addconditions of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDFIELDS="Admin Views Edit Addfields" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDFIELDS_DESC="Allows the users in this group to update the edit addfields of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDLINKED_VIEWS="Admin Views Edit Addlinked Views" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDLINKED_VIEWS_DESC="Allows the users in this group to update the edit addlinked views of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDPERMISSIONS="Admin Views Edit Addpermissions" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDPERMISSIONS_DESC="Allows the users in this group to update the edit addpermissions of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDTABLES="Admin Views Edit Addtables" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDTABLES_DESC="Allows the users in this group to update the edit addtables of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDTABS="Admin Views Edit Addtabs" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDTABS_DESC="Allows the users in this group to update the edit addtabs of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CSS_VIEW="Admin Views Edit Add Css View" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CSS_VIEWS="Admin Views Edit Add Css Views" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CSS_VIEWS_DESC="Allows the users in this group to update the edit add css views of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CSS_VIEW_DESC="Allows the users in this group to update the edit add css view of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CUSTOM_BUTTON="Admin Views Edit Add Custom Button" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CUSTOM_BUTTON_DESC="Allows the users in this group to update the edit add custom button of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CUSTOM_IMPORT="Admin Views Edit Add Custom Import" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CUSTOM_IMPORT_DESC="Allows the users in this group to update the edit add custom import of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_FADEIN="Admin Views Edit Add Fadein" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_FADEIN_DESC="Allows the users in this group to update the edit add fadein of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEWS_FILE="Admin Views Edit Add Javascript Views File" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEWS_FILE_DESC="Allows the users in this group to update the edit add javascript views file of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEWS_FOOTER="Admin Views Edit Add Javascript Views Footer" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEWS_FOOTER_DESC="Allows the users in this group to update the edit add javascript views footer of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEW_FILE="Admin Views Edit Add Javascript View File" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEW_FILE_DESC="Allows the users in this group to update the edit add javascript view file of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEW_FOOTER="Admin Views Edit Add Javascript View Footer" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEW_FOOTER_DESC="Allows the users in this group to update the edit add javascript view footer of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AFTER_DELETE="Admin Views Edit Add Php After Delete" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AFTER_DELETE_DESC="Allows the users in this group to update the edit add php after delete of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AFTER_PUBLISH="Admin Views Edit Add Php After Publish" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AFTER_PUBLISH_DESC="Allows the users in this group to update the edit add php after publish of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AJAX="Admin Views Edit Add Php Ajax" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AJAX_DESC="Allows the users in this group to update the edit add php ajax of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_ALLOWEDIT="Admin Views Edit Add Php Allowedit" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_ALLOWEDIT_DESC="Allows the users in this group to update the edit add php allowedit of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BATCHCOPY="Admin Views Edit Add Php Batchcopy" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BATCHCOPY_DESC="Allows the users in this group to update the edit add php batchcopy of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BATCHMOVE="Admin Views Edit Add Php Batchmove" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BATCHMOVE_DESC="Allows the users in this group to update the edit add php batchmove of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_DELETE="Admin Views Edit Add Php Before Delete" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_DELETE_DESC="Allows the users in this group to update the edit add php before delete of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_PUBLISH="Admin Views Edit Add Php Before Publish" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_PUBLISH_DESC="Allows the users in this group to update the edit add php before publish of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_SAVE="Admin Views Edit Add Php Before Save" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_SAVE_DESC="Allows the users in this group to update the edit add php before save of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_DOCUMENT="Admin Views Edit Add Php Document" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_DOCUMENT_DESC="Allows the users in this group to update the edit add php document of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEM="Admin Views Edit Add Php Getitem" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEMS="Admin Views Edit Add Php Getitems" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEMS_AFTER_ALL="Admin Views Edit Add Php Getitems After All" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEMS_AFTER_ALL_DESC="Allows the users in this group to update the edit add php getitems after all of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEMS_DESC="Allows the users in this group to update the edit add php getitems of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEM_DESC="Allows the users in this group to update the edit add php getitem of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETLISTQUERY="Admin Views Edit Add Php Getlistquery" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETLISTQUERY_DESC="Allows the users in this group to update the edit add php getlistquery of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_POSTSAVEHOOK="Admin Views Edit Add Php Postsavehook" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_POSTSAVEHOOK_DESC="Allows the users in this group to update the edit add php postsavehook of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_SAVE="Admin Views Edit Add Php Save" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_SAVE_DESC="Allows the users in this group to update the edit add php save of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_SQL="Admin Views Edit Add Sql" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_SQL_DESC="Allows the users in this group to update the edit add sql of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_AJAX_INPUT="Admin Views Edit Ajax Input" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_AJAX_INPUT_DESC="Allows the users in this group to update the edit ajax input of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CSS_VIEW="Admin Views Edit Css View" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CSS_VIEWS="Admin Views Edit Css Views" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CSS_VIEWS_DESC="Allows the users in this group to update the edit css views of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CSS_VIEW_DESC="Allows the users in this group to update the edit css view of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CUSTOM_BUTTON="Admin Views Edit Custom Button" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CUSTOM_BUTTON_DESC="Allows the users in this group to update the edit custom button of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CREATED_BY="Admin Views Edit Created By" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by admin views" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CREATED_DATE="Admin Views Edit Created Date" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created admin views" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_DESC="Allows the users in this group to edit the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_DESCRIPTION="Admin Views Edit Description" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_DESCRIPTION_DESC="Allows the users in this group to update the edit description of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_HTML_IMPORT_VIEW="Admin Views Edit Html Import View" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_HTML_IMPORT_VIEW_DESC="Allows the users in this group to update the edit html import view of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON="Admin Views Edit Icon" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_ADD="Admin Views Edit Icon Add" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_ADD_DESC="Allows the users in this group to update the edit icon add of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_CATEGORY="Admin Views Edit Icon Category" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_CATEGORY_DESC="Allows the users in this group to update the edit icon category of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_DESC="Allows the users in this group to update the edit icon of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEWS_FILE="Admin Views Edit Javascript Views File" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEWS_FILE_DESC="Allows the users in this group to update the edit javascript views file of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEWS_FOOTER="Admin Views Edit Javascript Views Footer" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEWS_FOOTER_DESC="Allows the users in this group to update the edit javascript views footer of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEW_FILE="Admin Views Edit Javascript View File" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEW_FILE_DESC="Allows the users in this group to update the edit javascript view file of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEW_FOOTER="Admin Views Edit Javascript View Footer" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEW_FOOTER_DESC="Allows the users in this group to update the edit javascript view footer of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_NAME_LIST="Admin Views Edit Name List" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_NAME_LIST_DESC="Allows the users in this group to update the edit name list of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_NAME_SINGLE="Admin Views Edit Name Single" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_NAME_SINGLE_DESC="Allows the users in this group to update the edit name single of the admin view" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_OWN="Admin Views Edit Own" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_OWN_DESC="Allows the users in this group to edit edit own admin views created by them" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AFTER_DELETE="Admin Views Edit Php After Delete" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AFTER_DELETE_DESC="Allows the users in this group to update the edit php after delete of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AFTER_PUBLISH="Admin Views Edit Php After Publish" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AFTER_PUBLISH_DESC="Allows the users in this group to update the edit php after publish of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AJAXMETHOD="Admin Views Edit Php Ajaxmethod" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AJAXMETHOD_DESC="Allows the users in this group to update the edit php ajaxmethod of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_ALLOWEDIT="Admin Views Edit Php Allowedit" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_ALLOWEDIT_DESC="Allows the users in this group to update the edit php allowedit of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BATCHCOPY="Admin Views Edit Php Batchcopy" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BATCHCOPY_DESC="Allows the users in this group to update the edit php batchcopy of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BATCHMOVE="Admin Views Edit Php Batchmove" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BATCHMOVE_DESC="Allows the users in this group to update the edit php batchmove of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_DELETE="Admin Views Edit Php Before Delete" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_DELETE_DESC="Allows the users in this group to update the edit php before delete of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_PUBLISH="Admin Views Edit Php Before Publish" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_PUBLISH_DESC="Allows the users in this group to update the edit php before publish of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_SAVE="Admin Views Edit Php Before Save" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_SAVE_DESC="Allows the users in this group to update the edit php before save of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_CONTROLLER="Admin Views Edit Php Controller" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_CONTROLLER_DESC="Allows the users in this group to update the edit php controller of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_CONTROLLER_LIST="Admin Views Edit Php Controller List" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_CONTROLLER_LIST_DESC="Allows the users in this group to update the edit php controller list of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_DOCUMENT="Admin Views Edit Php Document" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_DOCUMENT_DESC="Allows the users in this group to update the edit php document of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEM="Admin Views Edit Php Getitem" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEMS="Admin Views Edit Php Getitems" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEMS_AFTER_ALL="Admin Views Edit Php Getitems After All" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEMS_AFTER_ALL_DESC="Allows the users in this group to update the edit php getitems after all of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEMS_DESC="Allows the users in this group to update the edit php getitems of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEM_DESC="Allows the users in this group to update the edit php getitem of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETLISTQUERY="Admin Views Edit Php Getlistquery" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETLISTQUERY_DESC="Allows the users in this group to update the edit php getlistquery of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT="Admin Views Edit Php Import" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_DESC="Allows the users in this group to update the edit php import of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_DISPLAY="Admin Views Edit Php Import Display" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_DISPLAY_DESC="Allows the users in this group to update the edit php import display of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_EXT="Admin Views Edit Php Import Ext" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_EXT_DESC="Allows the users in this group to update the edit php import ext of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_SAVE="Admin Views Edit Php Import Save" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_SAVE_DESC="Allows the users in this group to update the edit php import save of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_SETDATA="Admin Views Edit Php Import Setdata" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_SETDATA_DESC="Allows the users in this group to update the edit php import setdata of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_MODEL="Admin Views Edit Php Model" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_MODEL_DESC="Allows the users in this group to update the edit php model of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_MODEL_LIST="Admin Views Edit Php Model List" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_MODEL_LIST_DESC="Allows the users in this group to update the edit php model list of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_POSTSAVEHOOK="Admin Views Edit Php Postsavehook" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_POSTSAVEHOOK_DESC="Allows the users in this group to update the edit php postsavehook of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_SAVE="Admin Views Edit Php Save" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_SAVE_DESC="Allows the users in this group to update the edit php save of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SHORT_DESCRIPTION="Admin Views Edit Short Description" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SHORT_DESCRIPTION_DESC="Allows the users in this group to update the edit short description of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SOURCE="Admin Views Edit Source" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SOURCE_DESC="Allows the users in this group to update the edit source of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SQL="Admin Views Edit Sql" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SQL_DESC="Allows the users in this group to update the edit sql of the admin view" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_STATE="Admin Views Edit State" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_STATE_DESC="Allows the users in this group to update the state of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SYSTEM_NAME="Admin Views Edit System Name" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SYSTEM_NAME_DESC="Allows the users in this group to update the edit system name of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_TYPE="Admin Views Edit Type" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_TYPE_DESC="Allows the users in this group to update the edit type of the admin view" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_VERSION="Admin Views Edit Version" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version admin views" COM_COMPONENTBUILDER_ADMIN_VIEWS_EXPORT="Admin Views Export" @@ -204,36 +261,22 @@ COM_COMPONENTBUILDER_ADMIN_VIEWS_N_ITEMS_UNPUBLISHED="%s Admin Views unpublished COM_COMPONENTBUILDER_ADMIN_VIEWS_N_ITEMS_UNPUBLISHED_1="%s Admin View unpublished." COM_COMPONENTBUILDER_ADMIN_VIEWS_SUBMENU="Admin Views Submenu" COM_COMPONENTBUILDER_ADMIN_VIEWS_SUBMENU_DESC="Allows the users in this group to update the submenu of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEW_ABOVE_TABS="Above Tabs" COM_COMPONENTBUILDER_ADMIN_VIEW_ACTION_DESCRIPTION="Enter Action Name Here" COM_COMPONENTBUILDER_ADMIN_VIEW_ACTION_LABEL="Action Name" -COM_COMPONENTBUILDER_ADMIN_VIEW_ACTIVE_ONLY_FOUR_TEXT_FIELD="Active (only 4 text_field)" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD="Add" -COM_COMPONENTBUILDER_ADMIN_VIEW_ADDCONDITIONS="Addconditions" -COM_COMPONENTBUILDER_ADMIN_VIEW_ADDCONDITIONS_DESCRIPTION="Conditional setup for the above fields." -COM_COMPONENTBUILDER_ADMIN_VIEW_ADDCONDITIONS_LABEL="Conditions" -COM_COMPONENTBUILDER_ADMIN_VIEW_ADDCONDITIONS_SELECT="Add" -COM_COMPONENTBUILDER_ADMIN_VIEW_ADDFIELDS="Addfields" -COM_COMPONENTBUILDER_ADMIN_VIEW_ADDFIELDS_DESCRIPTION="Setup fields for this view." -COM_COMPONENTBUILDER_ADMIN_VIEW_ADDFIELDS_LABEL="Fields" -COM_COMPONENTBUILDER_ADMIN_VIEW_ADDFIELDS_SELECT="Add" COM_COMPONENTBUILDER_ADMIN_VIEW_ADDLINKED_VIEWS="Addlinked Views" COM_COMPONENTBUILDER_ADMIN_VIEW_ADDLINKED_VIEWS_DESCRIPTION="Setup the linked views for this view." COM_COMPONENTBUILDER_ADMIN_VIEW_ADDLINKED_VIEWS_LABEL="Linked Views" -COM_COMPONENTBUILDER_ADMIN_VIEW_ADDLINKED_VIEWS_SELECT="Add" COM_COMPONENTBUILDER_ADMIN_VIEW_ADDNEW_LABEL="Add New Button" COM_COMPONENTBUILDER_ADMIN_VIEW_ADDPERMISSIONS="Addpermissions" COM_COMPONENTBUILDER_ADMIN_VIEW_ADDPERMISSIONS_DESCRIPTION="Set permissions for this view" COM_COMPONENTBUILDER_ADMIN_VIEW_ADDPERMISSIONS_LABEL="Permissions" -COM_COMPONENTBUILDER_ADMIN_VIEW_ADDPERMISSIONS_SELECT="Add" COM_COMPONENTBUILDER_ADMIN_VIEW_ADDRESS="Address" COM_COMPONENTBUILDER_ADMIN_VIEW_ADDTABLES="Addtables" COM_COMPONENTBUILDER_ADMIN_VIEW_ADDTABLES_LABEL="Tables" -COM_COMPONENTBUILDER_ADMIN_VIEW_ADDTABLES_SELECT="Add" COM_COMPONENTBUILDER_ADMIN_VIEW_ADDTABS="Addtabs" COM_COMPONENTBUILDER_ADMIN_VIEW_ADDTABS_DESCRIPTION="Setup tabs for this view." COM_COMPONENTBUILDER_ADMIN_VIEW_ADDTABS_LABEL="Tabs" -COM_COMPONENTBUILDER_ADMIN_VIEW_ADDTABS_SELECT="Add" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_CSS_VIEW="Add Css View" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_CSS_VIEWS="Add Css Views" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_CSS_VIEWS_LABEL="Add CSS (views)" @@ -293,13 +336,7 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_ADMINVIEW_DESCRIPTION="Select an admin view" COM_COMPONENTBUILDER_ADMIN_VIEW_ADMINVIEW_LABEL="View" COM_COMPONENTBUILDER_ADMIN_VIEW_AJAX_INPUT="Ajax Input" COM_COMPONENTBUILDER_ADMIN_VIEW_AJAX_INPUT_LABEL="Ajax Input" -COM_COMPONENTBUILDER_ADMIN_VIEW_AJAX_INPUT_SELECT="Add" -COM_COMPONENTBUILDER_ADMIN_VIEW_ALIAS_DESCRIPTION="Select if the field is the alias field." -COM_COMPONENTBUILDER_ADMIN_VIEW_ALIAS_LABEL="Alias" -COM_COMPONENTBUILDER_ADMIN_VIEW_ALIGNMENT_DESCRIPTION="Select the field alignment inside a tab/view." -COM_COMPONENTBUILDER_ADMIN_VIEW_ALIGNMENT_LABEL="Alignment" COM_COMPONENTBUILDER_ADMIN_VIEW_ALNUM="ALNUM" -COM_COMPONENTBUILDER_ADMIN_VIEW_ANY_SELECTION_ONLY_FOUR_LISTRADIOCHECKBOXESDYNAMIC_LIST="Any Selection (only 4 list/radio/checkboxes/dynamic_list)" COM_COMPONENTBUILDER_ADMIN_VIEW_ARCHIVE="Archive" COM_COMPONENTBUILDER_ADMIN_VIEW_ARRAY="ARRAY" COM_COMPONENTBUILDER_ADMIN_VIEW_ARROW_DOWN="Arrow Down" @@ -343,7 +380,6 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_CAMERA="Camera" COM_COMPONENTBUILDER_ADMIN_VIEW_CAMERA_TWO_VIDEO="Camera 2 / Video" COM_COMPONENTBUILDER_ADMIN_VIEW_CANCEL_CIRCLE="Cancel Circle" COM_COMPONENTBUILDER_ADMIN_VIEW_CART="Cart" -COM_COMPONENTBUILDER_ADMIN_VIEW_CHAIN="Chain" COM_COMPONENTBUILDER_ADMIN_VIEW_CHART="Chart" COM_COMPONENTBUILDER_ADMIN_VIEW_CHECKBOX="Checkbox" COM_COMPONENTBUILDER_ADMIN_VIEW_CHECKBOX_PARTIAL="Checkbox Partial" @@ -386,7 +422,6 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_CUBE="Cube" COM_COMPONENTBUILDER_ADMIN_VIEW_CUSTOM_BUTTON="Custom Button" COM_COMPONENTBUILDER_ADMIN_VIEW_CUSTOM_BUTTONS="Custom Buttons" COM_COMPONENTBUILDER_ADMIN_VIEW_CUSTOM_BUTTON_LABEL="Custom Buttons" -COM_COMPONENTBUILDER_ADMIN_VIEW_CUSTOM_BUTTON_SELECT="Add" COM_COMPONENTBUILDER_ADMIN_VIEW_CUSTOM_IMPORT="Custom Import" COM_COMPONENTBUILDER_ADMIN_VIEW_DASHBOARD="Dashboard" COM_COMPONENTBUILDER_ADMIN_VIEW_DATABASE="Database" @@ -396,16 +431,15 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_DESCRIPTION="Description" COM_COMPONENTBUILDER_ADMIN_VIEW_DESCRIPTION_DESCRIPTION="Add Description Here" COM_COMPONENTBUILDER_ADMIN_VIEW_DESCRIPTION_HINT="Add Description Here" COM_COMPONENTBUILDER_ADMIN_VIEW_DESCRIPTION_LABEL="Description" +COM_COMPONENTBUILDER_ADMIN_VIEW_DETAILS="Details" COM_COMPONENTBUILDER_ADMIN_VIEW_DOWNLOAD="Download" COM_COMPONENTBUILDER_ADMIN_VIEW_DUMP="Dump" COM_COMPONENTBUILDER_ADMIN_VIEW_EDIT="Editing the Admin View" -COM_COMPONENTBUILDER_ADMIN_VIEW_EDITING="Editing" COM_COMPONENTBUILDER_ADMIN_VIEW_ENTER="Enter" COM_COMPONENTBUILDER_ADMIN_VIEW_ENVELOPE="Envelope" COM_COMPONENTBUILDER_ADMIN_VIEW_ENVELOPE_OPENED="Envelope Opened" COM_COMPONENTBUILDER_ADMIN_VIEW_EQUALIZER="Equalizer" COM_COMPONENTBUILDER_ADMIN_VIEW_ERROR_UNIQUE_ALIAS="Another Admin View has the same alias." -COM_COMPONENTBUILDER_ADMIN_VIEW_EXACT_LENGTH_ONLY_FOUR_TEXT_FIELD="Exact Length (only 4 text_field)" COM_COMPONENTBUILDER_ADMIN_VIEW_EXIT="Exit" COM_COMPONENTBUILDER_ADMIN_VIEW_EXPAND="Expand" COM_COMPONENTBUILDER_ADMIN_VIEW_EXPAND_TWO="Expand 2" @@ -414,10 +448,7 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_EYE_CLOSE="Eye Close" COM_COMPONENTBUILDER_ADMIN_VIEW_EYE_OPEN="Eye Open" COM_COMPONENTBUILDER_ADMIN_VIEW_FEATURED="Featured" COM_COMPONENTBUILDER_ADMIN_VIEW_FEED="Feed" -COM_COMPONENTBUILDER_ADMIN_VIEW_FIELD="Field" -COM_COMPONENTBUILDER_ADMIN_VIEW_FIELDS="Fields" -COM_COMPONENTBUILDER_ADMIN_VIEW_FIELD_DESCRIPTION="Select a field" -COM_COMPONENTBUILDER_ADMIN_VIEW_FIELD_LABEL="Field" +COM_COMPONENTBUILDER_ADMIN_VIEW_FIELDS_CONDITIONS="Fields & Conditions" COM_COMPONENTBUILDER_ADMIN_VIEW_FILE="File" COM_COMPONENTBUILDER_ADMIN_VIEW_FILE_ADD="File Add" COM_COMPONENTBUILDER_ADMIN_VIEW_FILE_CHECK="File Check" @@ -425,8 +456,6 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_FILE_MINUS="File Minus" COM_COMPONENTBUILDER_ADMIN_VIEW_FILE_REMOVE="File Remove" COM_COMPONENTBUILDER_ADMIN_VIEW_FILE_TWO="File 2" COM_COMPONENTBUILDER_ADMIN_VIEW_FILTER="Filter" -COM_COMPONENTBUILDER_ADMIN_VIEW_FILTER_DESCRIPTION="Select if the field is to be used as a filter in list view, if shown." -COM_COMPONENTBUILDER_ADMIN_VIEW_FILTER_LABEL="Filter" COM_COMPONENTBUILDER_ADMIN_VIEW_FIRST="First" COM_COMPONENTBUILDER_ADMIN_VIEW_FLAG="Flag" COM_COMPONENTBUILDER_ADMIN_VIEW_FLAG_THREE="Flag 3" @@ -441,14 +470,12 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_FOLDER_REMOVE="Folder Remove" COM_COMPONENTBUILDER_ADMIN_VIEW_FOLDER_THREE="Folder 3" COM_COMPONENTBUILDER_ADMIN_VIEW_FORWARD_CIRCLE="Forward Circle" COM_COMPONENTBUILDER_ADMIN_VIEW_FORWARD_TWO="Forward 2" -COM_COMPONENTBUILDER_ADMIN_VIEW_FULL_WIDTH_IN_TAB="Full Width in Tab" COM_COMPONENTBUILDER_ADMIN_VIEW_GENERIC="Generic" COM_COMPONENTBUILDER_ADMIN_VIEW_GRID="Grid" COM_COMPONENTBUILDER_ADMIN_VIEW_GRID_TWO="Grid 2" COM_COMPONENTBUILDER_ADMIN_VIEW_HEALTH="Health" COM_COMPONENTBUILDER_ADMIN_VIEW_HEART="Heart" COM_COMPONENTBUILDER_ADMIN_VIEW_HEART_TWO="Heart 2" -COM_COMPONENTBUILDER_ADMIN_VIEW_HIDE="Hide" COM_COMPONENTBUILDER_ADMIN_VIEW_HOME="Home" COM_COMPONENTBUILDER_ADMIN_VIEW_HOME_TWO="Home 2" COM_COMPONENTBUILDER_ADMIN_VIEW_HTML="HTML" @@ -482,9 +509,6 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_INPUT_FILTER_LABEL="Select a Filter" COM_COMPONENTBUILDER_ADMIN_VIEW_INT="INT" COM_COMPONENTBUILDER_ADMIN_VIEW_IN_RELATION_TO_EACH_RECORD="In Relation to each Record" COM_COMPONENTBUILDER_ADMIN_VIEW_IN_RELATION_TO_THE_WHOLE_VIEW="In Relation to the Whole View" -COM_COMPONENTBUILDER_ADMIN_VIEW_ISOLATE="Isolate" -COM_COMPONENTBUILDER_ADMIN_VIEW_IS_NOT_ONLY_FOUR_LISTRADIOCHECKBOXES="Is Not (only 4 list/radio/checkboxes)" -COM_COMPONENTBUILDER_ADMIN_VIEW_IS_ONLY_FOUR_LISTRADIOCHECKBOXES="Is (only 4 list/radio/checkboxes)" COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT="JavaScript" COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEWS_FILE="Javascript Views File" COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEWS_FILE_DESCRIPTION="Add your JavaScript here! [Do not add the script tags]" @@ -507,33 +531,15 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_KEY="Key" COM_COMPONENTBUILDER_ADMIN_VIEW_KEY_DESCRIPTION="The key to use to link the child view." COM_COMPONENTBUILDER_ADMIN_VIEW_KEY_HINT="country" COM_COMPONENTBUILDER_ADMIN_VIEW_KEY_LABEL="Child Key" -COM_COMPONENTBUILDER_ADMIN_VIEW_KEY_WORD_ALL_CASEINSENSITIVE_ONLY_FOUR_TEXT_FIELD="Key Word All case-insensitive (only 4 text_field)" -COM_COMPONENTBUILDER_ADMIN_VIEW_KEY_WORD_ALL_CASESENSITIVE_ONLY_FOUR_TEXT_FIELD="Key Word All case-sensitive (only 4 text_field)" -COM_COMPONENTBUILDER_ADMIN_VIEW_KEY_WORD_ANY_CASEINSENSITIVE_ONLY_FOUR_TEXT_FIELD="Key Word Any case-insensitive (only 4 text_field)" -COM_COMPONENTBUILDER_ADMIN_VIEW_KEY_WORD_ANY_CASESENSITIVE_ONLY_FOUR_TEXT_FIELD="Key Word Any case-sensitive (only 4 text_field)" COM_COMPONENTBUILDER_ADMIN_VIEW_LAMP="Lamp" COM_COMPONENTBUILDER_ADMIN_VIEW_LAST="Last" -COM_COMPONENTBUILDER_ADMIN_VIEW_LEFT_IN_TAB="Left in Tab" -COM_COMPONENTBUILDER_ADMIN_VIEW_LEFT_OF_TABS="Left of Tabs" COM_COMPONENTBUILDER_ADMIN_VIEW_LINK="Link" COM_COMPONENTBUILDER_ADMIN_VIEW_LINKED_COMPONENTS="Linked - Components" -COM_COMPONENTBUILDER_ADMIN_VIEW_LINK_DESCRIPTION="Select if the field is to be used as a link to a single record, if shown." -COM_COMPONENTBUILDER_ADMIN_VIEW_LINK_LABEL="Link" COM_COMPONENTBUILDER_ADMIN_VIEW_LIST="List" -COM_COMPONENTBUILDER_ADMIN_VIEW_LIST_DESCRIPTION="Select if the field it to show in the list view." -COM_COMPONENTBUILDER_ADMIN_VIEW_LIST_LABEL="Admin List" COM_COMPONENTBUILDER_ADMIN_VIEW_LIST_TWO="List 2" COM_COMPONENTBUILDER_ADMIN_VIEW_LOCATION="Location" COM_COMPONENTBUILDER_ADMIN_VIEW_LOCK="Lock" COM_COMPONENTBUILDER_ADMIN_VIEW_LOOP="Loop" -COM_COMPONENTBUILDER_ADMIN_VIEW_MATCH_BEHAVIOR_DESCRIPTION="Select the match behavior." -COM_COMPONENTBUILDER_ADMIN_VIEW_MATCH_BEHAVIOR_LABEL="Match Behavior" -COM_COMPONENTBUILDER_ADMIN_VIEW_MATCH_FIELD="Match Field" -COM_COMPONENTBUILDER_ADMIN_VIEW_MATCH_FIELD_DESCRIPTION="Select the match field." -COM_COMPONENTBUILDER_ADMIN_VIEW_MATCH_FIELD_LABEL="Match Field" -COM_COMPONENTBUILDER_ADMIN_VIEW_MATCH_OPTIONS_HINT="Options here" -COM_COMPONENTBUILDER_ADMIN_VIEW_MATCH_OPTIONS_LABEL="Match Options" -COM_COMPONENTBUILDER_ADMIN_VIEW_MAX_LENGTH_ONLY_FOUR_TEXT_FIELD="Max Length (only 4 text_field)" COM_COMPONENTBUILDER_ADMIN_VIEW_MENU="Menu" COM_COMPONENTBUILDER_ADMIN_VIEW_MENU_THREE="Menu 3" COM_COMPONENTBUILDER_ADMIN_VIEW_MENU_TWO="Menu 2" @@ -545,7 +551,6 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_METHOD_NAME_HINT="Method Name Here" COM_COMPONENTBUILDER_ADMIN_VIEW_METHOD_NAME_LABEL="Method Name" COM_COMPONENTBUILDER_ADMIN_VIEW_MINUS="Minus" COM_COMPONENTBUILDER_ADMIN_VIEW_MINUS_SIGN="Minus Sign" -COM_COMPONENTBUILDER_ADMIN_VIEW_MIN_LENGTH_ONLY_FOUR_TEXT_FIELD="Min Length (only 4 text_field)" COM_COMPONENTBUILDER_ADMIN_VIEW_MOBILE="Mobile" COM_COMPONENTBUILDER_ADMIN_VIEW_MODIFIED_BY_DESC="The last user that modified this Admin View." COM_COMPONENTBUILDER_ADMIN_VIEW_MODIFIED_BY_LABEL="Modified By" @@ -570,28 +575,25 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_NEW_TAB="New Tab" COM_COMPONENTBUILDER_ADMIN_VIEW_NEW_TAB_TWO="New Tab 2" COM_COMPONENTBUILDER_ADMIN_VIEW_NEXT="Next" COM_COMPONENTBUILDER_ADMIN_VIEW_NO="No" -COM_COMPONENTBUILDER_ADMIN_VIEW_NONE="None" COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ADVANCED_IMPORT_DESCRIPTION="

The scripts that are automatic added to the input fields below is identical to the default import scripts used. Adapt them to your own custom needs.

" COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ADVANCED_IMPORT_LABEL="Advanced notice." COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_BEGINNER_IMPORT_DESCRIPTION="

Please do not change this area unless you would like to add special import to this view that goes beyond the default import concept that Component Builder already does automatic if this view is set to have import & export in the component area where this view is linked to the component.

" COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_BEGINNER_IMPORT_LABEL="Beginners notice." -COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_CONDITIONS_DESCRIPTION="Here you can add conditional field settings" -COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_CONDITIONS_LABEL="Condition Implementation" -COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_PERMISSIONS_DESCRIPTION="Only if you add permissions here will this view have permissions." +COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_CREATE_EDIT_BUTTONS_DESCRIPTION="Some Shortcut Buttons
" +COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_CREATE_EDIT_DISPLAY_DESCRIPTION="

Linked Fields

Display of the fields will load here!

Field Conditions

Display of the fields conditions will load here!
" +COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_CREATE_EDIT_NOTICE_DESCRIPTION="
Welcome to the new improved fields and conditions layout.

We had to remove the repeatable fields layouts since Joomla has depreciated it. With this new improved layout we trust your experience will be better then ever before.

You can still watch the tutorials, and though it was made during the time repeatable fields were still being used, the various concepts and layouts still look mostly the same.

" +COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_CREATE_EDIT_NOTICE_LABEL="Fields & Conditions" +COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_LINKED_VIEWS_DESCRIPTION="You can link other views that has relationship with this view. Please watch this tutorial for more info. " +COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_LINKED_VIEWS_LABEL="Linked Views Options" +COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_PERMISSIONS_DESCRIPTION="Only if you add permissions here will this view have permissions. Please watch this tutorial for more info." COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_PERMISSIONS_LABEL="Permission Implementation" -COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_TABS_DESCRIPTION="If no tabs has been set all fields will be displayed together in one tab." +COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_TABS_DESCRIPTION="If no tabs has been set all fields will be displayed together in one tab. Please watch this tutorial for more info." COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_TABS_LABEL="Tab Setup Options" -COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_VIEWS_DESCRIPTION="id, asset_id, state, access, ordering, created_by, date_created, modified_by, date_modified, checked_out, checked_out_time, version, hits, metakey, metadesc, metadata (you don't need to add them again)" -COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_VIEWS_LABEL="The following fields are added by default to all views" COM_COMPONENTBUILDER_ADMIN_VIEW_NOTIFICATION="Notification" COM_COMPONENTBUILDER_ADMIN_VIEW_NOTIFICATION_CIRCLE="Notification Circle" COM_COMPONENTBUILDER_ADMIN_VIEW_NOT_REQUIRED="Not Required" COM_COMPONENTBUILDER_ADMIN_VIEW_ONLY_FUNCTION="Only Function" COM_COMPONENTBUILDER_ADMIN_VIEW_ORDERING_LABEL="Ordering" -COM_COMPONENTBUILDER_ADMIN_VIEW_ORDER_EDIT_DESCRIPTION="Order in relation to tab & alignment of admin and site." -COM_COMPONENTBUILDER_ADMIN_VIEW_ORDER_EDIT_LABEL="Order in Edit" -COM_COMPONENTBUILDER_ADMIN_VIEW_ORDER_LIST_DESCRIPTION="Ordering in relation to list view of admin and site" -COM_COMPONENTBUILDER_ADMIN_VIEW_ORDER_LIST_LABEL="Order in list views" COM_COMPONENTBUILDER_ADMIN_VIEW_PALETTE="Palette" COM_COMPONENTBUILDER_ADMIN_VIEW_PARAGRAPH_CENTER="Paragraph Center" COM_COMPONENTBUILDER_ADMIN_VIEW_PARAGRAPH_JUSTIFY="Paragraph Justify" @@ -606,8 +608,6 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_PAUSE_CIRCLE="Pause Circle" COM_COMPONENTBUILDER_ADMIN_VIEW_PENCIL="Pencil" COM_COMPONENTBUILDER_ADMIN_VIEW_PENCIL_TWO="Pencil 2" COM_COMPONENTBUILDER_ADMIN_VIEW_PERMISSION="Permissions" -COM_COMPONENTBUILDER_ADMIN_VIEW_PERMISSION_DESCRIPTION="What permission to use." -COM_COMPONENTBUILDER_ADMIN_VIEW_PERMISSION_LABEL="Permissions" COM_COMPONENTBUILDER_ADMIN_VIEW_PHONE="Phone" COM_COMPONENTBUILDER_ADMIN_VIEW_PHONE_TWO="Phone 2" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP="PHP" @@ -734,8 +734,6 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_READONLY="readonly" COM_COMPONENTBUILDER_ADMIN_VIEW_READWRITE="read/write" COM_COMPONENTBUILDER_ADMIN_VIEW_REMOVE="Remove" COM_COMPONENTBUILDER_ADMIN_VIEW_REPLY="Reply" -COM_COMPONENTBUILDER_ADMIN_VIEW_RIGHT_IN_TAB="Right in Tab" -COM_COMPONENTBUILDER_ADMIN_VIEW_RIGHT_OF_TABS="Right of Tabs" COM_COMPONENTBUILDER_ADMIN_VIEW_SAVE_COPY="Save Copy" COM_COMPONENTBUILDER_ADMIN_VIEW_SAVE_NEW="Save New" COM_COMPONENTBUILDER_ADMIN_VIEW_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Admin View to customise the alias." @@ -743,8 +741,6 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_SCISSORS="Scissors" COM_COMPONENTBUILDER_ADMIN_VIEW_SCREEN="Screen" COM_COMPONENTBUILDER_ADMIN_VIEW_SCREWDRIVER="Screwdriver" COM_COMPONENTBUILDER_ADMIN_VIEW_SEARCH="Search" -COM_COMPONENTBUILDER_ADMIN_VIEW_SEARCH_DESCRIPTION="Select if the field is to be searchable in list view, if shown." -COM_COMPONENTBUILDER_ADMIN_VIEW_SEARCH_LABEL="Searchable" COM_COMPONENTBUILDER_ADMIN_VIEW_SELECTION="Selection" COM_COMPONENTBUILDER_ADMIN_VIEW_SETTINGS="Settings" COM_COMPONENTBUILDER_ADMIN_VIEW_SHARE="Share" @@ -754,7 +750,6 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_SHORT_DESCRIPTION="Short Description" COM_COMPONENTBUILDER_ADMIN_VIEW_SHORT_DESCRIPTION_DESCRIPTION="Enter short description" COM_COMPONENTBUILDER_ADMIN_VIEW_SHORT_DESCRIPTION_HINT="Your Short Description Here" COM_COMPONENTBUILDER_ADMIN_VIEW_SHORT_DESCRIPTION_LABEL="Short Description" -COM_COMPONENTBUILDER_ADMIN_VIEW_SHOW="Show" COM_COMPONENTBUILDER_ADMIN_VIEW_SHUFFLE="Shuffle" COM_COMPONENTBUILDER_ADMIN_VIEW_SIGNUP="Signup" COM_COMPONENTBUILDER_ADMIN_VIEW_SINGLE="Single" @@ -764,8 +759,6 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_SMILEY_NEUTRAL_TWO="Smiley Neutral 2" COM_COMPONENTBUILDER_ADMIN_VIEW_SMILEY_SAD="Smiley Sad" COM_COMPONENTBUILDER_ADMIN_VIEW_SMILEY_SAD_TWO="Smiley Sad 2" COM_COMPONENTBUILDER_ADMIN_VIEW_SMILEY_TWO="Smiley 2" -COM_COMPONENTBUILDER_ADMIN_VIEW_SORT_DESCRIPTION="Select if the field it to be sortable in list view, if shown." -COM_COMPONENTBUILDER_ADMIN_VIEW_SORT_LABEL="Sortable" COM_COMPONENTBUILDER_ADMIN_VIEW_SOURCE="Source" COM_COMPONENTBUILDER_ADMIN_VIEW_SOURCEMAP_DESCRIPTION="Map the Source to this view's fields.
// First Table Map.
SourceField => viewField
// Other Tables Map.
firstTableKeySourceField == keySourceField
SourceField => viewField" COM_COMPONENTBUILDER_ADMIN_VIEW_SOURCEMAP_HINT="SourceField => viewField" @@ -797,32 +790,21 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_TAG="Tag" COM_COMPONENTBUILDER_ADMIN_VIEW_TAGS="Tags" COM_COMPONENTBUILDER_ADMIN_VIEW_TAGS_TWO="Tags 2" COM_COMPONENTBUILDER_ADMIN_VIEW_TAG_TWO="Tag 2" -COM_COMPONENTBUILDER_ADMIN_VIEW_TARGET_BEHAVIOR_DESCRIPTION="Select the target field/s behavior." -COM_COMPONENTBUILDER_ADMIN_VIEW_TARGET_BEHAVIOR_LABEL="Target Behavior" COM_COMPONENTBUILDER_ADMIN_VIEW_TARGET_DESCRIPTION="Set the target view type" -COM_COMPONENTBUILDER_ADMIN_VIEW_TARGET_FIELD="Target Field" -COM_COMPONENTBUILDER_ADMIN_VIEW_TARGET_FIELD_DESCRIPTION="Select the target field/s." -COM_COMPONENTBUILDER_ADMIN_VIEW_TARGET_FIELD_LABEL="Target Field/s" COM_COMPONENTBUILDER_ADMIN_VIEW_TARGET_LABEL="Target" -COM_COMPONENTBUILDER_ADMIN_VIEW_TARGET_RELATION_DESCRIPTION="Select the target field/s relation to other of the same target field/s." -COM_COMPONENTBUILDER_ADMIN_VIEW_TARGET_RELATION_LABEL="Target Relation" COM_COMPONENTBUILDER_ADMIN_VIEW_TASK_NAME_DESCRIPTION="Enter Task Name Here" COM_COMPONENTBUILDER_ADMIN_VIEW_TASK_NAME_HINT="Task Name Here" COM_COMPONENTBUILDER_ADMIN_VIEW_TASK_NAME_LABEL="Task Name" COM_COMPONENTBUILDER_ADMIN_VIEW_THUMBS_DOWN="Thumbs Down" COM_COMPONENTBUILDER_ADMIN_VIEW_THUMBS_UP="Thumbs Up" -COM_COMPONENTBUILDER_ADMIN_VIEW_TITLE_DESCRIPTION="Select if the field is the title field." -COM_COMPONENTBUILDER_ADMIN_VIEW_TITLE_LABEL="Title" COM_COMPONENTBUILDER_ADMIN_VIEW_TREE="Tree" COM_COMPONENTBUILDER_ADMIN_VIEW_TREE_TWO="Tree 2" COM_COMPONENTBUILDER_ADMIN_VIEW_TYPE="Type" COM_COMPONENTBUILDER_ADMIN_VIEW_TYPE_DESCRIPTION="for list target" COM_COMPONENTBUILDER_ADMIN_VIEW_TYPE_LABEL="Type" COM_COMPONENTBUILDER_ADMIN_VIEW_UINT="UINT" -COM_COMPONENTBUILDER_ADMIN_VIEW_UNACTIVE_ONLY_FOUR_TEXT_FIELD="Unactive (only 4 text_field)" COM_COMPONENTBUILDER_ADMIN_VIEW_UNARCHIVE="Unarchive" COM_COMPONENTBUILDER_ADMIN_VIEW_UNBLOCK="Unblock" -COM_COMPONENTBUILDER_ADMIN_VIEW_UNDERNEATH_TABS="Underneath Tabs" COM_COMPONENTBUILDER_ADMIN_VIEW_UNDO="Undo" COM_COMPONENTBUILDER_ADMIN_VIEW_UNDO_TWO="Undo 2" COM_COMPONENTBUILDER_ADMIN_VIEW_UNFEATURED="Unfeatured" @@ -861,8 +843,9 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_ZOOM_IN="Zoom In" COM_COMPONENTBUILDER_ADMIN_VIEW_ZOOM_OUT="Zoom Out" COM_COMPONENTBUILDER_ALL_IS_GOOD_PLEASE_CHECK_AGAIN_LATTER="All is good, please check again latter." COM_COMPONENTBUILDER_ALL_IS_GOOD_THERE_IN_NO_NOTICE_AT_THIS_TIME="All is good, there in no notice at this time." -COM_COMPONENTBUILDER_ALL_UNSAVED_WORK_WILL_BE_LOST_ARE_YOU_SURE_YOU_WANT_TO_CONTINUE="All unsaved work will be lost, are you sure you want to continue?" +COM_COMPONENTBUILDER_ALL_UNSAVED_WORK_ON_THIS_PAGE_WILL_BE_LOST_ARE_YOU_SURE_YOU_WANT_TO_CONTINUE="All unsaved work on this page will be lost, are you sure you want to continue?" COM_COMPONENTBUILDER_ALWAYS_INSURE_THAT_YOU_HAVE_YOUR_LOCAL_COMPONENTS_BACKED_UP_BY_MAKING_AN_EXPORT_OF_ALL_YOUR_LOCAL_COMPONENTS_BEFORE_IMPORTING_ANY_NEW_COMPONENTS_SMALLMAKE_BSUREB_TO_MOVE_THIS_ZIPPED_BACKUP_PACKAGE_OUT_OF_THE_TMP_FOLDER_BEFORE_DOING_AN_IMPORTSMALLBR_IF_YOU_ARE_IMPORTING_A_PACKAGE_OF_A_THREERD_PARTY_JCB_PACKAGE_DEVELOPER_BMAKE_SURE_IT_IS_A_REPUTABLE_JCB_PACKAGE_DEVELOPERSB="Always insure that you have your local components backed up, by making an export of all your local components before importing any new components. (Make SURE to move this zipped backup package out of the tmp folder before doing an import)
If you are importing a package of a 3rd party JCB package developer, make sure it is a reputable JCB package developers!" +COM_COMPONENTBUILDER_ANY_SELECTION_ONLY_FOUR_LISTRADIOCHECKBOXESDYNAMIC_LIST="Any Selection (only 4 list/radio/checkboxes/dynamic_list)" COM_COMPONENTBUILDER_AUTHOR="Author" COM_COMPONENTBUILDER_A_FEW_CLOSED_ISSUES_FROM_GITHUB_IS_LOADING="A few closed issues from Github is loading" COM_COMPONENTBUILDER_A_FEW_OPEN_ISSUES_FROM_GITHUB_IS_LOADING="A few open issues from Github is loading" @@ -873,29 +856,23 @@ COM_COMPONENTBUILDER_BACKUP_LOCAL_DATA_FIRST="Backup Local Data First" COM_COMPONENTBUILDER_BACKUP_WAS_DONE_SUCCESSFULLY="Backup was done successfully" COM_COMPONENTBUILDER_BADMIN_VIEW_IN_SB_HAS_ID_MISMATCH_OF_SELECTED_BADMIN_VIEWB_SO_THE_IDS_WAS_REMOVED="Admin view in %s has id mismatch of selected admin view. So the id:%s was removed!" COM_COMPONENTBUILDER_BASIC_METHOD="Basic Method" -COM_COMPONENTBUILDER_BCOMPONENT_IN_SB_HAS_ID_MISMATCH_OF_SELECTED_BCOMPONENTB_SO_THE_IDS_WAS_REMOVED="Component in %s has id mismatch of selected component. So the id:%s was removed!" COM_COMPONENTBUILDER_BCONFIG_IN_SB_HAS_ID_MISMATCH_OF_SELECTED_BFIELDB_SO_THE_IDS_WAS_REMOVED="Config in %s has id mismatch of selected field. So the id:%s was removed!" COM_COMPONENTBUILDER_BCUSTOM_ADMIN_VIEW_IN_SB_HAS_ID_MISMATCH_OF_SELECTED_BCUSTOM_ADMIN_VIEWB_SO_THE_IDS_WAS_REMOVED="Custom admin view in %s has id mismatch of selected custom admin view. So the id:%s was removed!" COM_COMPONENTBUILDER_BCUSTOM_FILESB_NOT_MOVE_TO_CORRECT_LOCATION="Custom files not move to correct location!" -COM_COMPONENTBUILDER_BCUSTOM_GET_IN_SB_HAS_ID_MISMATCH_OF_SELECTED_BDYNAMIC_GETB_SO_THE_IDS_WAS_REMOVED="Custom get in %s has id mismatch of selected dynamic get. So the id:%s was removed!" -COM_COMPONENTBUILDER_BDYNAMIC_GETB_IDS_MISMATCH_IN_BSB="Dynamic get id:%s mismatch in %s." COM_COMPONENTBUILDER_BE_CAUTIOUS_DO_NOT_CONTINUE_UNLESS_YOU_TRUST_THE_ORIGIN_OF_THIS_PACKAGE="Be cautious! Do not continue unless you trust the origin of this package!" -COM_COMPONENTBUILDER_BFIELD_IN_SB_HAS_ID_MISMATCH_OF_SELECTED_BFIELDB_SO_THE_IDS_WAS_REMOVED="Field in %s has id mismatch of selected field. So the id:%s was removed!" COM_COMPONENTBUILDER_BFIELD_TYPEB_IDS_MISMATCH_IN_BSB="Field type id:%s mismatch in %s." COM_COMPONENTBUILDER_BFIELD_TYPEB_NOT_SET_FOR_BSB="Field type not set for %s." COM_COMPONENTBUILDER_BGET_THE_KEY_FROMB_A_CLASSBTN_BTNPRIMARY_HREFS_TARGET_BLANK_TITLEGET_A_KEY_FROM_SSA="Get the key from %s" COM_COMPONENTBUILDER_BIMAGESB_NOT_MOVE_TO_CORRECT_LOCATION="Images not move to correct location!" -COM_COMPONENTBUILDER_BJOIN_VIEW_TABLE_IN_SB_HAS_ID_MISMATCH_OF_SELECTED_BJOIN_VIEW_TABLEB_SO_THE_IDS_WAS_REMOVED="Join view table in %s has id mismatch of selected join view table. So the id:%s was removed!" -COM_COMPONENTBUILDER_BLINKED_VIEWB_IDS_MISMATCH_IN_BADMIN_VIEWSB_AND_WAS_EMREMOVEDEM_FROM_THE_LINKED_VIEWS="Linked view id:%s mismatch in admin view:%s, and was removed from the linked views." -COM_COMPONENTBUILDER_BMAIN_GETB_IDS_MISMATCH_IN_BSB="Main get id:%s mismatch in %s." -COM_COMPONENTBUILDER_BMAIN_GETB_NOT_SET_FOR_BSB="Main get not set for %s." -COM_COMPONENTBUILDER_BREPEATABLEB_IDS_MISMATCH_IN_BFIELDSB_AND_WAS_EMREMOVEDEM_FROM_THE_FIELD="Repeatable id:%s mismatch in field:%s, and was removed from the field." +COM_COMPONENTBUILDER_BMULTIPLE_FIELD_REPEATABLE_MODEB_IDS_MISMATCH_IN_BFIELDSB_AND_WAS_EMREMOVEDEM_FROM_THE_FIELD="Multiple Field (repeatable mode) id:%s mismatch in field:%s, and was removed from the field." +COM_COMPONENTBUILDER_BSBS_IN_BSB_HAS_ID_MISMATCH_SO_THE_BSB_WAS_REMOVED="%s->%s in %s has id mismatch. So the %s was removed!" COM_COMPONENTBUILDER_BSB_COULD_NOT_BE_IMPORTEDS="%s could not be imported%s" COM_COMPONENTBUILDER_BSB_EMCOMPONENT_DETAILSEM="%s component details" -COM_COMPONENTBUILDER_BSB_HAS_ID_MISMATCH_OF_SELECTED_BFIELDB_SO_THE_IDS_WAS_REMOVED="%s has id mismatch of selected field. So the id:%s was removed!" +COM_COMPONENTBUILDER_BSB_HAS_BEEN_IMPORTED="%s has been imported!" +COM_COMPONENTBUILDER_BSB_HAS_BEEN_UPDATED="%s has been updated!" COM_COMPONENTBUILDER_BSITE_VIEW_IN_SB_HAS_ID_MISMATCH_OF_SELECTED_BSITE_VIEWB_SO_THE_IDS_WAS_REMOVED="Site view in %s has id mismatch of selected site view. So the id:%s was removed!" -COM_COMPONENTBUILDER_BSNIPPETB_IDS_MISMATCH_IN_BSB="Snippet id:%s mismatch in %s." -COM_COMPONENTBUILDER_BVIEW_TABLE_MAINB_IDS_MISMATCH_IN_BSB="View table main id:%s mismatch in %s." +COM_COMPONENTBUILDER_BUTTON_TO_CREATE_S_WILL_SHOW_ONCE_S_IS_SAVED_FOR_THE_FIRST_TIME="Button to create %s will show once %s is saved for the first time." +COM_COMPONENTBUILDER_CHAIN="Chain" COM_COMPONENTBUILDER_CHECK_YOUR_OWNER_DETAILS_IT_HAS_NOT_BEEN_SET_OPEN_THE_JCB_GLOBAL_OPTIONS_GO_TO_THE_COMPANY_TAB_AND_ADD_THE_CORRECT_COMPANY_DETAILS_THERE="Check your owner details, it has not been set. Open the JCB Global Options, go to the Company tab and add the correct company details there." COM_COMPONENTBUILDER_CLEAR_TMP="Clear tmp" COM_COMPONENTBUILDER_COMPANY="Company" @@ -1186,7 +1163,9 @@ COM_COMPONENTBUILDER_CONTRIBUTOR="Contributor" COM_COMPONENTBUILDER_CONTRIBUTORS="Contributors" COM_COMPONENTBUILDER_COPYRIGHT="Copyright" COM_COMPONENTBUILDER_COPYRIGHT_S="Copyright: %s" +COM_COMPONENTBUILDER_CREATE="Create" COM_COMPONENTBUILDER_CREATE_NEW_S="Create New %s" +COM_COMPONENTBUILDER_CREATE_S_FOR_THIS_S="Create %s for this %s" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW="Custom Admin View" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS="Custom Admin Views" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_ACCESS="Custom Admin Views Access" @@ -1328,7 +1307,6 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUBE="Cube" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_BUTTON="Custom Button" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_BUTTONS="Custom Buttons" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_BUTTON_LABEL="Custom Buttons" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_BUTTON_SELECT="Add" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET="Custom Get" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_DESCRIPTION="Select the custom get methods" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_LABEL="Custom Gets" @@ -1833,6 +1811,7 @@ COM_COMPONENTBUILDER_DASHBOARD_TEMPLATES="Templates

" COM_COMPONENTBUILDER_DASHBOARD_TEMPLATE_ADD="Add Template

" COM_COMPONENTBUILDER_DATE="Date" COM_COMPONENTBUILDER_DEBUG_LINE_NUMBERS="Debug (line numbers)" +COM_COMPONENTBUILDER_DETAILS="Details" COM_COMPONENTBUILDER_DOES_THIS_PACKAGE_REQUIRE_A_KEY_TO_INSTALL="Does this package require a key to install" COM_COMPONENTBUILDER_DOWNLOAD="download" COM_COMPONENTBUILDER_DYNAMIC_GET="Dynamic Get" @@ -2133,6 +2112,9 @@ COM_COMPONENTBUILDER_EDIT_CREATED_BY_DESC=" Allows users in this group to edit c COM_COMPONENTBUILDER_EDIT_CREATED_DATE="Edit Created Date" COM_COMPONENTBUILDER_EDIT_CREATED_DATE_DESC=" Allows users in this group to edit created date." COM_COMPONENTBUILDER_EDIT_S="Edit %s" +COM_COMPONENTBUILDER_EDIT_S_FOR_THIS_S="Edit %s for this %s" +COM_COMPONENTBUILDER_EDIT_THE_ADMIN_FIELDS="Edit the admin fields" +COM_COMPONENTBUILDER_EDIT_THE_ADMIN_FIELDS_CONDITIONS="Edit the admin fields conditions" COM_COMPONENTBUILDER_EDIT_VERSIONS="Edit Version" COM_COMPONENTBUILDER_EDIT_VERSIONS_DESC=" Allows users in this group to edit versions." COM_COMPONENTBUILDER_EMAIL="Email" @@ -2146,6 +2128,7 @@ COM_COMPONENTBUILDER_EMEMAILEM_BSB="Email: %s" COM_COMPONENTBUILDER_EMLICENSEEM_BSB="License: %s" COM_COMPONENTBUILDER_EMOWNEREM_BSB="Owner: %s" COM_COMPONENTBUILDER_EMWEBSITEEM_BSB="Website: %s" +COM_COMPONENTBUILDER_EXACT_LENGTH_ONLY_FOUR_TEXT_FIELD="Exact Length (only 4 text_field)" COM_COMPONENTBUILDER_EXPORT_COMPLETED="Export Completed!" COM_COMPONENTBUILDER_EXPORT_COMPONENTS="Export Components" COM_COMPONENTBUILDER_EXPORT_DATA="Export Data" @@ -2378,7 +2361,6 @@ COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_HINT="// JavaScript for the ed COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_LABEL="Javascript" COM_COMPONENTBUILDER_FIELD_JSON="JSON" COM_COMPONENTBUILDER_FIELD_KEY="KEY" -COM_COMPONENTBUILDER_FIELD_LINKED_ADMIN_VIEWS="Linked - Admin Views" COM_COMPONENTBUILDER_FIELD_LONGTEXT="LONGTEXT" COM_COMPONENTBUILDER_FIELD_MEDIUMTEXT="MEDIUMTEXT" COM_COMPONENTBUILDER_FIELD_MODIFIED_BY_DESC="The last user that modified this Field." @@ -2535,6 +2517,7 @@ COM_COMPONENTBUILDER_FTP_SIGNATURE_LABEL="FTP Server (Signature)
(en COM_COMPONENTBUILDER_FTP_STATUS="Status" COM_COMPONENTBUILDER_FTP_VERSION_DESC="A count of the number of times this FTP has been revised." COM_COMPONENTBUILDER_FTP_VERSION_LABEL="Revision" +COM_COMPONENTBUILDER_FULL_WIDTH_IN_TAB="Full Width in Tab" COM_COMPONENTBUILDER_GET_THE_KEY_FROM_BSB_FOR_A_CLASSBTN_BTNPRIMARY_HREFS_TARGET_BLANK_TITLEGET_A_KEY_FROM_SSA="Get the key from %s for %s" COM_COMPONENTBUILDER_GLOBAL="Global" COM_COMPONENTBUILDER_GREAT_THIS_FUNCTION_NAME_WILL_WORK="Great, this function name will work!" @@ -2648,6 +2631,7 @@ COM_COMPONENTBUILDER_HELP_DOCUMENT_VERSION_DESC="A count of the number of times COM_COMPONENTBUILDER_HELP_DOCUMENT_VERSION_LABEL="Revision" COM_COMPONENTBUILDER_HELP_MANAGER="Help" COM_COMPONENTBUILDER_HI="Hi" +COM_COMPONENTBUILDER_HIDE="Hide" COM_COMPONENTBUILDER_HTWODATA_IS_CORRUPTHTWOTHIS_COULD_BE_DUE_TO_BROKEN_PACKAGE="

Data is corrupt!

This could be due to broken package!" COM_COMPONENTBUILDER_HTWODATA_IS_CORRUPTHTWOTHIS_COULD_BE_DUE_TO_KEY_ERROR_OR_BROKEN_PACKAGE="

Data is corrupt!

This could be due to key error, or broken package!" COM_COMPONENTBUILDER_IMPORT_COMPONENTS="Import Components" @@ -2702,7 +2686,10 @@ COM_COMPONENTBUILDER_IMPORT_TITLE="Data Importer" COM_COMPONENTBUILDER_IMPORT_UNABLE_TO_FIND_IMPORT_PACKAGE="Package to import not found." COM_COMPONENTBUILDER_IMPORT_UPDATE_DATA="Import Data" COM_COMPONENTBUILDER_IMPORT_UPLOAD_BOTTON="Upload File" +COM_COMPONENTBUILDER_ISOLATE="Isolate" COM_COMPONENTBUILDER_ISSUE="issue" +COM_COMPONENTBUILDER_IS_NOT_ONLY_FOUR_LISTRADIOCHECKBOXES="Is Not (only 4 list/radio/checkboxes)" +COM_COMPONENTBUILDER_IS_ONLY_FOUR_LISTRADIOCHECKBOXES="Is (only 4 list/radio/checkboxes)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT="Joomla Component" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS="Joomla Components" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS="Joomla Components Access" @@ -2711,170 +2698,26 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_OPTIONS="Batch process the selected COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_TIP="All changes will be applied to all selected Joomla Components" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE="Joomla Components Batch Use" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch joomla components" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_CREATE="Joomla Components Create" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_CREATE_DESC="Allows the users in this group to create create joomla components" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD="Joomla Components Dashboard Add" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the joomla component" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_LIST="Joomla Components Dashboard List" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDADMIN_VIEWS="Joomla Components Edit Addadmin Views" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDADMIN_VIEWS_DESC="Allows the users in this group to update the edit addadmin views of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCONFIG="Joomla Components Edit Addconfig" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCONFIG_DESC="Allows the users in this group to update the edit addconfig of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCONTRIBUTORS="Joomla Components Edit Addcontributors" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCONTRIBUTORS_DESC="Allows the users in this group to update the edit addcontributors of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCUSTOMMENUS="Joomla Components Edit Addcustommenus" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCUSTOMMENUS_DESC="Allows the users in this group to update the edit addcustommenus of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCUSTOM_ADMIN_VIEWS="Joomla Components Edit Addcustom Admin Views" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCUSTOM_ADMIN_VIEWS_DESC="Allows the users in this group to update the edit addcustom admin views of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFILES="Joomla Components Edit Addfiles" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFILES_DESC="Allows the users in this group to update the edit addfiles of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFOLDERS="Joomla Components Edit Addfolders" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFOLDERS_DESC="Allows the users in this group to update the edit addfolders of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFOOTABLE="Joomla Components Edit Addfootable" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFOOTABLE_DESC="Allows the users in this group to update the edit addfootable of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDREADME="Joomla Components Edit Addreadme" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDREADME_DESC="Allows the users in this group to update the edit addreadme of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDSITE_VIEWS="Joomla Components Edit Addsite Views" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDSITE_VIEWS_DESC="Allows the users in this group to update the edit addsite views of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDUIKIT="Joomla Components Edit Adduikit" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDUIKIT_DESC="Allows the users in this group to update the edit adduikit of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_ADMIN_EVENT="Joomla Components Edit Add Admin Event" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_ADMIN_EVENT_DESC="Allows the users in this group to update the edit add admin event of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_CSS="Joomla Components Edit Add Css" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_CSS_DESC="Allows the users in this group to update the edit add css of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_EMAIL_HELPER="Joomla Components Edit Add Email Helper" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_EMAIL_HELPER_DESC="Allows the users in this group to update the edit add email helper of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_JAVASCRIPT="Joomla Components Edit Add Javascript" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_JAVASCRIPT_DESC="Allows the users in this group to update the edit add javascript of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_LICENSE="Joomla Components Edit Add License" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_LICENSE_DESC="Allows the users in this group to update the edit add license of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_DASHBOARD_METHODS="Joomla Components Edit Add Php Dashboard Methods" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_DASHBOARD_METHODS_DESC="Allows the users in this group to update the edit add php dashboard methods of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_ADMIN="Joomla Components Edit Add Php Helper Admin" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_ADMIN_DESC="Allows the users in this group to update the edit add php helper admin of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_BOTH="Joomla Components Edit Add Php Helper Both" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_BOTH_DESC="Allows the users in this group to update the edit add php helper both of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_SITE="Joomla Components Edit Add Php Helper Site" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_SITE_DESC="Allows the users in this group to update the edit add php helper site of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_METHOD_UNINSTALL="Joomla Components Edit Add Php Method Uninstall" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_METHOD_UNINSTALL_DESC="Allows the users in this group to update the edit add php method uninstall of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_POSTFLIGHT_INSTALL="Joomla Components Edit Add Php Postflight Install" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_POSTFLIGHT_INSTALL_DESC="Allows the users in this group to update the edit add php postflight install of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_POSTFLIGHT_UPDATE="Joomla Components Edit Add Php Postflight Update" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_POSTFLIGHT_UPDATE_DESC="Allows the users in this group to update the edit add php postflight update of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_PREFLIGHT_INSTALL="Joomla Components Edit Add Php Preflight Install" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_PREFLIGHT_INSTALL_DESC="Allows the users in this group to update the edit add php preflight install of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_PREFLIGHT_UPDATE="Joomla Components Edit Add Php Preflight Update" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_PREFLIGHT_UPDATE_DESC="Allows the users in this group to update the edit add php preflight update of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SALES_SERVER="Joomla Components Edit Add Sales Server" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SALES_SERVER_DESC="Allows the users in this group to update the edit add sales server of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SITE_EVENT="Joomla Components Edit Add Site Event" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SITE_EVENT_DESC="Allows the users in this group to update the edit add site event of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SQL="Joomla Components Edit Add Sql" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SQL_DESC="Allows the users in this group to update the edit add sql of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_UPDATE_SERVER="Joomla Components Edit Add Update Server" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_UPDATE_SERVER_DESC="Allows the users in this group to update the edit add update server of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_AUTHOR="Joomla Components Edit Author" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_AUTHOR_DESC="Allows the users in this group to update the edit author of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BOM="Joomla Components Edit Bom" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BOM_DESC="Allows the users in this group to update the edit bom of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BUILDCOMP="Joomla Components Edit Buildcomp" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BUILDCOMPSQL="Joomla Components Edit Buildcompsql" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BUILDCOMPSQL_DESC="Allows the users in this group to update the edit buildcompsql of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BUILDCOMP_DESC="Allows the users in this group to update the edit buildcomp of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COMPANYNAME="Joomla Components Edit Companyname" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COMPANYNAME_DESC="Allows the users in this group to update the edit companyname of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COMPONENT_VERSION="Joomla Components Edit Component Version" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COMPONENT_VERSION_DESC="Allows the users in this group to update the edit component version of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COPYRIGHT="Joomla Components Edit Copyright" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COPYRIGHT_DESC="Allows the users in this group to update the edit copyright of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CREATUSERHELPER="Joomla Components Edit Creatuserhelper" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CREATUSERHELPER_DESC="Allows the users in this group to update the edit creatuserhelper of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CSS="Joomla Components Edit Css" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CSS_DESC="Allows the users in this group to update the edit css of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DASHBOARD_TAB="Joomla Components Edit Dashboard Tab" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DASHBOARD_TAB_DESC="Allows the users in this group to update the edit dashboard tab of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DEBUG_LINENR="Joomla Components Edit Debug Linenr" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DEBUG_LINENR_DESC="Allows the users in this group to update the edit debug linenr of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DESCRIPTION="Joomla Components Edit Description" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DESCRIPTION_DESC="Allows the users in this group to update the edit description of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EMAIL="Joomla Components Edit Email" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EMAIL_DESC="Allows the users in this group to update the edit email of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EMPTYCONTRIBUTORS="Joomla Components Edit Emptycontributors" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EMPTYCONTRIBUTORS_DESC="Allows the users in this group to update the edit emptycontributors of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_BUY_LINK="Joomla Components Edit Export Buy Link" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_BUY_LINK_DESC="Allows the users in this group to update the edit export buy link of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_KEY="Joomla Components Edit Export Key" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_KEY_DESC="Allows the users in this group to update the edit export key of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_PACKAGE_LINK="Joomla Components Edit Export Package Link" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_PACKAGE_LINK_DESC="Allows the users in this group to update the edit export package link of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_IMAGE="Joomla Components Edit Image" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_IMAGE_DESC="Allows the users in this group to update the edit image of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_JAVASCRIPT="Joomla Components Edit Javascript" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_JAVASCRIPT_DESC="Allows the users in this group to update the edit javascript of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE="Joomla Components Edit License" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_DESC="Allows the users in this group to update the edit license of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_TYPE="Joomla Components Edit License Type" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_TYPE_DESC="Allows the users in this group to update the edit license type of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_MVC_VERSIONDATE="Joomla Components Edit Mvc Versiondate" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_MVC_VERSIONDATE_DESC="Allows the users in this group to update the edit mvc versiondate of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NAME="Joomla Components Edit Name" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NAME_CODE="Joomla Components Edit Name Code" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NAME_CODE_DESC="Allows the users in this group to update the edit name code of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NAME_DESC="Allows the users in this group to update the edit name of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NUMBER="Joomla Components Edit Number" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NUMBER_DESC="Allows the users in this group to update the edit number of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_ADMIN_EVENT="Joomla Components Edit Php Admin Event" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_ADMIN_EVENT_DESC="Allows the users in this group to update the edit php admin event of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_DASHBOARD_METHODS="Joomla Components Edit Php Dashboard Methods" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_DASHBOARD_METHODS_DESC="Allows the users in this group to update the edit php dashboard methods of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_ADMIN="Joomla Components Edit Php Helper Admin" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_ADMIN_DESC="Allows the users in this group to update the edit php helper admin of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_BOTH="Joomla Components Edit Php Helper Both" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_BOTH_DESC="Allows the users in this group to update the edit php helper both of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_SITE="Joomla Components Edit Php Helper Site" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_SITE_DESC="Allows the users in this group to update the edit php helper site of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_METHOD_UNINSTALL="Joomla Components Edit Php Method Uninstall" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_METHOD_UNINSTALL_DESC="Allows the users in this group to update the edit php method uninstall of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_POSTFLIGHT_INSTALL="Joomla Components Edit Php Postflight Install" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_POSTFLIGHT_INSTALL_DESC="Allows the users in this group to update the edit php postflight install of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_POSTFLIGHT_UPDATE="Joomla Components Edit Php Postflight Update" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_POSTFLIGHT_UPDATE_DESC="Allows the users in this group to update the edit php postflight update of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_PREFLIGHT_INSTALL="Joomla Components Edit Php Preflight Install" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_PREFLIGHT_INSTALL_DESC="Allows the users in this group to update the edit php preflight install of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_PREFLIGHT_UPDATE="Joomla Components Edit Php Preflight Update" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_PREFLIGHT_UPDATE_DESC="Allows the users in this group to update the edit php preflight update of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_SITE_EVENT="Joomla Components Edit Php Site Event" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_SITE_EVENT_DESC="Allows the users in this group to update the edit php site event of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_README="Joomla Components Edit Readme" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_README_DESC="Allows the users in this group to update the edit readme of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SALES_SERVER_FTP="Joomla Components Edit Sales Server Ftp" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SALES_SERVER_FTP_DESC="Allows the users in this group to update the edit sales server ftp of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SHORT_DESCRIPTION="Joomla Components Edit Short Description" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SHORT_DESCRIPTION_DESC="Allows the users in this group to update the edit short description of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SQL="Joomla Components Edit Sql" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SQL_DESC="Allows the users in this group to update the edit sql of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SQL_TWEAK="Joomla Components Edit Sql Tweak" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SQL_TWEAK_DESC="Allows the users in this group to update the edit sql tweak of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SYSTEM_NAME="Joomla Components Edit System Name" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SYSTEM_NAME_DESC="Allows the users in this group to update the edit system name of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_TOIGNORE="Joomla Components Edit Toignore" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_TOIGNORE_DESC="Allows the users in this group to update the edit toignore of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER="Joomla Components Edit Update Server" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_DESC="Allows the users in this group to update the edit update server of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_FTP="Joomla Components Edit Update Server Ftp" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_FTP_DESC="Allows the users in this group to update the edit update server ftp of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_TARGET="Joomla Components Edit Update Server Target" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_TARGET_DESC="Allows the users in this group to update the edit update server target of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DELETE="Joomla Components Delete" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DELETE_DESC="Allows the users in this group to delete delete joomla components" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT="Joomla Components Edit" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CREATED_BY="Joomla Components Edit Created By" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by joomla components" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CREATED_DATE="Joomla Components Edit Created Date" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created joomla components" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DESC="Allows the users in this group to edit the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_OWN="Joomla Components Edit Own" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_OWN_DESC="Allows the users in this group to edit edit own joomla components created by them" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_STATE="Joomla Components Edit State" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla component" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION="Joomla Components Edit Version" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla components" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_UPDATE="Joomla Components Edit Version Update" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_UPDATE_DESC="Allows the users in this group to update the edit version update of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WEBSITE="Joomla Components Edit Website" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WEBSITE_DESC="Allows the users in this group to update the edit website of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WHMCS_KEY="Joomla Components Edit Whmcs Key" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WHMCS_KEY_DESC="Allows the users in this group to update the edit whmcs key of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WHMCS_URL="Joomla Components Edit Whmcs Url" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WHMCS_URL_DESC="Allows the users in this group to update the edit whmcs url of the joomla component" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EXPORT="Joomla Components Export" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EXPORT_DESC="Allows the users in this group to export export joomla components" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_IMPORT="Joomla Components Import" @@ -3608,6 +3451,10 @@ COM_COMPONENTBUILDER_KEEP_ORIGINAL_CATEGORY="- Keep Original Category -" COM_COMPONENTBUILDER_KEEP_ORIGINAL_STATE="- Keep Original State -" COM_COMPONENTBUILDER_KEY="Key" COM_COMPONENTBUILDER_KEY_HAS_NOT_CHANGED="Key has not changed" +COM_COMPONENTBUILDER_KEY_WORD_ALL_CASEINSENSITIVE_ONLY_FOUR_TEXT_FIELD="Key Word All case-insensitive (only 4 text_field)" +COM_COMPONENTBUILDER_KEY_WORD_ALL_CASESENSITIVE_ONLY_FOUR_TEXT_FIELD="Key Word All case-sensitive (only 4 text_field)" +COM_COMPONENTBUILDER_KEY_WORD_ANY_CASEINSENSITIVE_ONLY_FOUR_TEXT_FIELD="Key Word Any case-insensitive (only 4 text_field)" +COM_COMPONENTBUILDER_KEY_WORD_ANY_CASESENSITIVE_ONLY_FOUR_TEXT_FIELD="Key Word Any case-sensitive (only 4 text_field)" COM_COMPONENTBUILDER_LANGUAGE="Language" COM_COMPONENTBUILDER_LANGUAGES="Languages" COM_COMPONENTBUILDER_LANGUAGES_ACCESS="Languages Access" @@ -3860,19 +3707,26 @@ COM_COMPONENTBUILDER_LAYOUT_STATUS="Status" COM_COMPONENTBUILDER_LAYOUT_VERSION_DESC="A count of the number of times this Layout has been revised." COM_COMPONENTBUILDER_LAYOUT_VERSION_LABEL="Revision" COM_COMPONENTBUILDER_LAYOUT_YES="Yes" +COM_COMPONENTBUILDER_LEFT_IN_TAB="Left in Tab" +COM_COMPONENTBUILDER_LEFT_OF_TABS="Left of Tabs" COM_COMPONENTBUILDER_LICENSE="License" COM_COMPONENTBUILDER_LICENSE_S="License: %s" +COM_COMPONENTBUILDER_MAX_LENGTH_ONLY_FOUR_TEXT_FIELD="Max Length (only 4 text_field)" +COM_COMPONENTBUILDER_MIN_LENGTH_ONLY_FOUR_TEXT_FIELD="Min Length (only 4 text_field)" COM_COMPONENTBUILDER_NEW="New" COM_COMPONENTBUILDER_NEW_ISSUE="New Issue" COM_COMPONENTBUILDER_NEW_NOTICE="New Notice" COM_COMPONENTBUILDER_NO="No" COM_COMPONENTBUILDER_NOTRANSLATION="no-translation" COM_COMPONENTBUILDER_NOT_FOUND_OR_ACCESS_DENIED="Not found, or access denied." +COM_COMPONENTBUILDER_NOT_SET="not set" COM_COMPONENTBUILDER_NO_ACCESS_GRANTED="No Access Granted!" COM_COMPONENTBUILDER_NO_COMPONENTS_WERE_SELECTED_PLEASE_MAKE_A_SELECTION_AND_TRY_AGAIN="No components were selected, please make a selection and try again!" COM_COMPONENTBUILDER_NO_CRONJOB_PATH_FOUND_FOR_S="No cronjob path found for (%s)" COM_COMPONENTBUILDER_NO_CRONJOB_PATH_FOUND_SINCE_INCORRECT_TYPE_REQUESTED="No cronjob path found since incorrect type requested." +COM_COMPONENTBUILDER_NO_FIELD_FOUND="No Field Found" COM_COMPONENTBUILDER_NO_KEYS_WERE_FOUND_TO_ADD_AN_EXPORT_KEY_SIMPLY_OPEN_THE_COMPONENT_GO_TO_THE_TAB_CALLED_SETTINGS_BOTTOM_RIGHT_THERE_IS_A_FIELD_CALLED_EXPORT_KEY="No keys were found. To add an export key simply open the component, go to the tab called settings, bottom right there is a field called Export Key." +COM_COMPONENTBUILDER_NO_S_HAVE_BEEN_LINKED_TO_THIS_VIEW_SOON_AS_THIS_IS_DONE_IT_WILL_BE_DISPLAYED_HERE="No %s have been linked to this view. Soon as this is done it will be displayed here." COM_COMPONENTBUILDER_ON_GITHUB="on Github" COM_COMPONENTBUILDER_OPEN="Open" COM_COMPONENTBUILDER_OPENED="opened" @@ -3894,6 +3748,8 @@ COM_COMPONENTBUILDER_READY_TO_COMPILE_A_COMPONENT="Ready to compile a component" COM_COMPONENTBUILDER_RELEASED_THIS="released this" COM_COMPONENTBUILDER_RESPOND_TO_THIS_ISSUE_ON_GITHUB="Respond to this issue on Github" COM_COMPONENTBUILDER_REVIEW_THIS_ISSUE_ON_GITHUB="Review this issue on Github" +COM_COMPONENTBUILDER_RIGHT_IN_TAB="Right in Tab" +COM_COMPONENTBUILDER_RIGHT_OF_TABS="Right of Tabs" COM_COMPONENTBUILDER_SAVE_SUCCESS="Great! Item successfully saved." COM_COMPONENTBUILDER_SAVE_WARNING="The value already existed so please select another." COM_COMPONENTBUILDER_SELECT_THE_COMPONENT_TO_COMPILE="Select the component to compile" @@ -3901,6 +3757,7 @@ COM_COMPONENTBUILDER_SHOULD_JCB_INSERT_THE_CUSTOM_CODE_PLACEHOLDERS_THIS_IS_ONLY COM_COMPONENTBUILDER_SHOULD_THE_COMPONENT_BE_MOVED_TO_YOUR_LOCAL_REPOSITORY_FOLDER="Should the component be moved to your local repository folder?" COM_COMPONENTBUILDER_SHOULD_THE_ZIPPED_PACKAGE_OF_THE_COMPONENT_BE_MOVED_TO_THE_LOCAL_BACKUP_AND_REMOTE_SALES_SERVER_THIS_IS_ONLY_APPLICABLE_IF_THIS_COMPONENT_HAS_THOSE_VALUES_SET="Should the zipped package of the component be moved to the local backup and remote sales server? This is only applicable if this component has those values set." COM_COMPONENTBUILDER_SHOULD_WE_FORCE_THE_UPDATE_OF_ALL_LOCAL_DATA_EVEN_IF_IT_IS_NEWER_THEN_THE_DATA_BEING_IMPORTED="Should we force the update of all local data, even if it is newer then the data being imported." +COM_COMPONENTBUILDER_SHOW="Show" COM_COMPONENTBUILDER_SINCE_THE_OWNER_DETAILS_ARE_DISPLAYED_DURING_BIMPORT_PROCESSB_BEFORE_ADDING_THE_KEY_THIS_WAY_IF_THE_USERDEV_BDOES_NOTB_HAVE_THE_KEY_THEY_CAN_SEE_BWHERE_TO_GET_ITB="Since the owner details are displayed during import process before adding the key, this way if the user/dev does not have the key they can see where to get it." COM_COMPONENTBUILDER_SINCE_THE_OWNER_DETAILS_ARE_DISPLAYED_DURING_IMPORT_PROCESS_BEFORE_ADDING_THE_KEY_THIS_WAY_IF_THE_USERDEV_DOES_NOT_HAVE_THE_KEY_THEY_CAN_SEE_WHERE_TO_GET_IT="Since the owner details are displayed during import process before adding the key, this way if the user/dev does not have the key they can see where to get it." COM_COMPONENTBUILDER_SITE_VIEW="Site View" @@ -3971,7 +3828,6 @@ COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_VIEW="Add Php View" COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_VIEW_LABEL="Add PHP (custom view script)" COM_COMPONENTBUILDER_SITE_VIEW_AJAX_INPUT="Ajax Input" COM_COMPONENTBUILDER_SITE_VIEW_AJAX_INPUT_LABEL="Ajax Input" -COM_COMPONENTBUILDER_SITE_VIEW_AJAX_INPUT_SELECT="Add" COM_COMPONENTBUILDER_SITE_VIEW_ALNUM="ALNUM" COM_COMPONENTBUILDER_SITE_VIEW_ARCHIVE="Archive" COM_COMPONENTBUILDER_SITE_VIEW_ARRAY="ARRAY" @@ -4060,7 +3916,6 @@ COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM="Custom" COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM_BUTTON="Custom Button" COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM_BUTTONS="Custom Buttons" COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM_BUTTON_LABEL="Custom Buttons" -COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM_BUTTON_SELECT="Add" COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM_GET="Custom Get" COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM_GET_DESCRIPTION="Select the custom get methods" COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM_GET_LABEL="Custom Gets" @@ -4566,6 +4421,7 @@ COM_COMPONENTBUILDER_TEMPLATE_VERSION_LABEL="Revision" COM_COMPONENTBUILDER_TEMPLATE_YES="Yes" COM_COMPONENTBUILDER_THAT_MEANS_ANYONE_WHO_HAS_THIS_PACKAGE_CAN_INSTALL_IT_INTO_JCB_TO_ADD_AN_EXPORT_KEY_SIMPLY_OPEN_THE_COMPONENT_GO_TO_THE_TAB_CALLED_BSETTINGSB_BOTTOM_RIGHT_THERE_IS_A_FIELD_CALLED_BEXPORT_KEYB="That means anyone who has this package can install it into JCB. To add an export key simply open the component, go to the tab called settings, bottom right there is a field called Export Key." COM_COMPONENTBUILDER_THAT_MEANS_ANYONE_WHO_HAS_THIS_PACKAGE_CAN_INSTALL_IT_INTO_JCB_TO_ADD_AN_EXPORT_KEY_SIMPLY_OPEN_THE_COMPONENT_GO_TO_THE_TAB_CALLED_SETTINGS_BOTTOM_RIGHT_THERE_IS_A_FIELD_CALLED_EXPORT_KEY="That means anyone who has this package can install it into JCB. To add an export key simply open the component, go to the tab called settings, bottom right there is a field called Export Key." +COM_COMPONENTBUILDER_THERE_HAS_BEEN_AN_ERROR_IF_THIS_CONTINUES_PLEASE_INFORM_YOUR_SYSTEM_ADMINISTRATOR_OF_A_TYPE_ERROR_IN_THE_FIELDS_DISPLAY_REQUEST="There has been an error, if this continues please inform your system administrator of a type error in the fields display request!" COM_COMPONENTBUILDER_THE_KEY_OF_THIS_PACKAGE="The key of this package." COM_COMPONENTBUILDER_THE_NOTICE_BOARD_IS_LOADING="The notice board is loading" COM_COMPONENTBUILDER_THE_PACKAGE_KEY_IS_CODESCODE="The package key is: %s" @@ -4576,6 +4432,9 @@ COM_COMPONENTBUILDER_THIS_PACKAGE_HAS_NO_KEY="This package has no key." COM_COMPONENTBUILDER_TOTAL_DOWNLOADS="total downloads" COM_COMPONENTBUILDER_TO_CHANGE_THE_PACKAGE_OWNER_DEFAULTS_OPEN_THE_BJCB_GLOBAL_OPTIONSB_GO_TO_THE_BCOMPANYB_TAB_AND_ADD_THE_CORRECT_COMPANY_DETAILS_THERE="To change the package owner defaults. Open the JCB Global Options, go to the Company tab and add the correct company details there." COM_COMPONENTBUILDER_TO_CHANGE_THE_PACKAGE_OWNER_DEFAULTS_OPEN_THE_JCB_GLOBAL_OPTIONS_GO_TO_THE_COMPANY_TAB_AND_ADD_THE_CORRECT_COMPANY_DETAILS_THERE="To change the package owner defaults. Open the JCB Global Options, go to the Company tab and add the correct company details there." +COM_COMPONENTBUILDER_TYPE_ERROR="Type Error" +COM_COMPONENTBUILDER_UNACTIVE_ONLY_FOUR_TEXT_FIELD="Unactive (only 4 text_field)" +COM_COMPONENTBUILDER_UNDERNEATH_TABS="Underneath Tabs" COM_COMPONENTBUILDER_UP_TO_DATE="Up to date" COM_COMPONENTBUILDER_USED_IN="used in" COM_COMPONENTBUILDER_USE_BATCH="Use Batch" @@ -4587,11 +4446,14 @@ COM_COMPONENTBUILDER_VIEW_MORE_ISSUES_ON_GITHUB="View more issues on Github" COM_COMPONENTBUILDER_VIEW_MORE_RELEASES_ON_GITHUB="View more releases on Github" COM_COMPONENTBUILDER_WEBSITE="Website" COM_COMPONENTBUILDER_WEBSITE_S="Website: %s" +COM_COMPONENTBUILDER_WE_FAILED_TO_MOVE_BSB="We failed to move %s!" COM_COMPONENTBUILDER_YES="Yes" COM_COMPONENTBUILDER_YOUR_DATA_IS_ENCRYPTED_WITH_A_AES_ONE_HUNDRED_AND_TWENTY_EIGHT_BIT_ENCRYPTION_USING_THE_ABOVE_THIRTY_TWO_CHARACTER_KEYBR_WITHOUT_THIS_KEY_IT_WILL_TAKE_THE_CURRENT_TECHNOLOGY_WITH_A_BRUTE_FORCE_ATTACK_METHOD_MORE_THEN_A_HREFHTTPRANDOMIZECOMHOWLONGTOHACKPASS_TARGET_BLANK_TITLEHOW_LONG_TO_HACK_PASSSEVEN_HUNDRED_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZEROA_YEARS_TO_CRACK_THEORETICALLY="Your data is encrypted with a AES 128 bit encryption using the above 32 character key.
Without this key it will take the current technology with a brute force attack method more then 700 000 000 000 000 000 000 000 000 000 000 years to crack theoretically." COM_COMPONENTBUILDER_YOUR_DATA_IS_ENCRYPTED_WITH_A_AES_ONE_HUNDRED_AND_TWENTY_EIGHT_BIT_ENCRYPTION_USING_THE_ABOVE_THIRTY_TWO_CHARACTER_KEY_WITHOUT_THIS_KEY_IT_WILL_TAKE_THE_CURRENT_TECHNOLOGY_WITH_A_BRUTE_FORCE_ATTACK_METHOD_MORE_THEN_A_HREFHTTPRANDOMIZECOMHOWLONGTOHACKPASS_TARGET_BLANK_TITLEHOW_LONG_TO_HACK_PASSSEVEN_HUNDRED_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZEROA_YEARS_TO_CRACK_THEORETICALLY_UNLESS_THEY_HAVE_THIS_KEY_ABOVE_SO_DO_KEEP_IT_SAFE="Your data is encrypted with a AES 128 bit encryption using the above 32 character key. Without this key it will take the current technology with a brute force attack method more then 700 000 000 000 000 000 000 000 000 000 000 years to crack theoretically. Unless they have this key above, so do keep it safe." COM_COMPONENTBUILDER_YOU_CAN_NOW_SELECT_THE_COMPONENT_BZIPB_PACKAGE_YOU_WOULD_LIKE_TO_IMPORTBR_SMALLPLEASE_NOTE_THAT_SMART_COMPONENT_IMPORT_ONLY_WORKS_WITH_THE_FOLLOWING_FORMAT_BZIPBSMALL="You can now select the component zip package you would like to import.
Please note that smart component import only works with the following format: (.zip)" COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_IMPORT_A_COMPONENT_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_HELP="You do not have permission to import a component, please contact your system administrator for more help." +COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_FIFTY_S_IS_CONSIDERED_BAD_PRACTICE="You have %s %s. Adding more then 50 %s is considered bad practice." +COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_FIFTY_S_IS_CONSIDERED_BAD_PRACTICE_YOUR_S_PAGE_LOAD_IN_JCB_WILL_SLOWDOWN_YOU_SHOULD_CONSIDER_DECOUPLING_SOME_OF_THESE_S="You have %s %s. Adding more then 50 %s is considered bad practice. Your %s page load in JCB will slowdown. You should consider decoupling some of these %s." COM_COMPONENTBUILDER_YOU_MUST_SELECT_A_COMPONENT="You must select a component!" COM_COMPONENTBUILDER_YOU_SHOULD_ADD_THE_CORRECT_OWNER_DETAILS="You should add the correct owner details." COM_COMPONENTBUILDER_YOU_SHOULD_ONLY_CONTINUE_THIS_IMPORT_IF_YOU_HAVE_BACKUP_YOUR_COMPONENTS_AND_INSURED_THAT_THE_PACKAGE_OWNER_IS_REPUTABLE="You should only continue this import if you have backup your components, and insured that the package owner is reputable." diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini b/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini index 3c5d69bbd..2a16ad8a9 100644 --- a/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini +++ b/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini @@ -1,4 +1,44 @@ COM_COMPONENTBUILDER="Component Builder" +COM_COMPONENTBUILDER_ADMINS_FIELDS_ACCESS="Admins Fields Access" +COM_COMPONENTBUILDER_ADMINS_FIELDS_ACCESS_DESC="Allows the users in this group to access access admins fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_BATCH_USE="Admins Fields Batch Use" +COM_COMPONENTBUILDER_ADMINS_FIELDS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch admins fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_ACCESS="Admins Fields Conditions Access" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_ACCESS_DESC="Allows the users in this group to access access admins fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_BATCH_USE="Admins Fields Conditions Batch Use" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch admins fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_CREATE="Admins Fields Conditions Create" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_CREATE_DESC="Allows the users in this group to create create admins fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_DELETE="Admins Fields Conditions Delete" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_DELETE_DESC="Allows the users in this group to delete delete admins fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT="Admins Fields Conditions Edit" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_CREATED_BY="Admins Fields Conditions Edit Created By" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by admins fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_CREATED_DATE="Admins Fields Conditions Edit Created Date" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created admins fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_DESC="Allows the users in this group to edit the admin fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_OWN="Admins Fields Conditions Edit Own" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_OWN_DESC="Allows the users in this group to edit edit own admins fields conditions created by them" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_STATE="Admins Fields Conditions Edit State" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_STATE_DESC="Allows the users in this group to update the state of the admin fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_VERSION="Admins Fields Conditions Edit Version" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version admins fields conditions" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CREATE="Admins Fields Create" +COM_COMPONENTBUILDER_ADMINS_FIELDS_CREATE_DESC="Allows the users in this group to create create admins fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_DELETE="Admins Fields Delete" +COM_COMPONENTBUILDER_ADMINS_FIELDS_DELETE_DESC="Allows the users in this group to delete delete admins fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT="Admins Fields Edit" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_CREATED_BY="Admins Fields Edit Created By" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by admins fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_CREATED_DATE="Admins Fields Edit Created Date" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created admins fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_DESC="Allows the users in this group to edit the admin fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_OWN="Admins Fields Edit Own" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_OWN_DESC="Allows the users in this group to edit edit own admins fields created by them" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_STATE="Admins Fields Edit State" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_STATE_DESC="Allows the users in this group to update the state of the admin fields" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_VERSION="Admins Fields Edit Version" +COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version admins fields" COM_COMPONENTBUILDER_ADMIN_VIEWS_ACCESS="Admin Views Access" COM_COMPONENTBUILDER_ADMIN_VIEWS_ACCESS_DESC="Allows the users in this group to access access admin views" COM_COMPONENTBUILDER_ADMIN_VIEWS_BATCH_USE="Admin Views Batch Use" @@ -12,165 +52,15 @@ COM_COMPONENTBUILDER_ADMIN_VIEWS_DASHBOARD_LIST_DESC="Allows the users in this g COM_COMPONENTBUILDER_ADMIN_VIEWS_DELETE="Admin Views Delete" COM_COMPONENTBUILDER_ADMIN_VIEWS_DELETE_DESC="Allows the users in this group to delete delete admin views" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT="Admin Views Edit" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDCONDITIONS="Admin Views Edit Addconditions" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDCONDITIONS_DESC="Allows the users in this group to update the edit addconditions of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDFIELDS="Admin Views Edit Addfields" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDFIELDS_DESC="Allows the users in this group to update the edit addfields of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDLINKED_VIEWS="Admin Views Edit Addlinked Views" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDLINKED_VIEWS_DESC="Allows the users in this group to update the edit addlinked views of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDPERMISSIONS="Admin Views Edit Addpermissions" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDPERMISSIONS_DESC="Allows the users in this group to update the edit addpermissions of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDTABLES="Admin Views Edit Addtables" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDTABLES_DESC="Allows the users in this group to update the edit addtables of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDTABS="Admin Views Edit Addtabs" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDTABS_DESC="Allows the users in this group to update the edit addtabs of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CSS_VIEW="Admin Views Edit Add Css View" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CSS_VIEWS="Admin Views Edit Add Css Views" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CSS_VIEWS_DESC="Allows the users in this group to update the edit add css views of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CSS_VIEW_DESC="Allows the users in this group to update the edit add css view of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CUSTOM_BUTTON="Admin Views Edit Add Custom Button" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CUSTOM_BUTTON_DESC="Allows the users in this group to update the edit add custom button of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CUSTOM_IMPORT="Admin Views Edit Add Custom Import" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CUSTOM_IMPORT_DESC="Allows the users in this group to update the edit add custom import of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_FADEIN="Admin Views Edit Add Fadein" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_FADEIN_DESC="Allows the users in this group to update the edit add fadein of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEWS_FILE="Admin Views Edit Add Javascript Views File" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEWS_FILE_DESC="Allows the users in this group to update the edit add javascript views file of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEWS_FOOTER="Admin Views Edit Add Javascript Views Footer" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEWS_FOOTER_DESC="Allows the users in this group to update the edit add javascript views footer of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEW_FILE="Admin Views Edit Add Javascript View File" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEW_FILE_DESC="Allows the users in this group to update the edit add javascript view file of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEW_FOOTER="Admin Views Edit Add Javascript View Footer" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEW_FOOTER_DESC="Allows the users in this group to update the edit add javascript view footer of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AFTER_DELETE="Admin Views Edit Add Php After Delete" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AFTER_DELETE_DESC="Allows the users in this group to update the edit add php after delete of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AFTER_PUBLISH="Admin Views Edit Add Php After Publish" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AFTER_PUBLISH_DESC="Allows the users in this group to update the edit add php after publish of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AJAX="Admin Views Edit Add Php Ajax" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AJAX_DESC="Allows the users in this group to update the edit add php ajax of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_ALLOWEDIT="Admin Views Edit Add Php Allowedit" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_ALLOWEDIT_DESC="Allows the users in this group to update the edit add php allowedit of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BATCHCOPY="Admin Views Edit Add Php Batchcopy" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BATCHCOPY_DESC="Allows the users in this group to update the edit add php batchcopy of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BATCHMOVE="Admin Views Edit Add Php Batchmove" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BATCHMOVE_DESC="Allows the users in this group to update the edit add php batchmove of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_DELETE="Admin Views Edit Add Php Before Delete" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_DELETE_DESC="Allows the users in this group to update the edit add php before delete of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_PUBLISH="Admin Views Edit Add Php Before Publish" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_PUBLISH_DESC="Allows the users in this group to update the edit add php before publish of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_SAVE="Admin Views Edit Add Php Before Save" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_SAVE_DESC="Allows the users in this group to update the edit add php before save of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_DOCUMENT="Admin Views Edit Add Php Document" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_DOCUMENT_DESC="Allows the users in this group to update the edit add php document of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEM="Admin Views Edit Add Php Getitem" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEMS="Admin Views Edit Add Php Getitems" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEMS_AFTER_ALL="Admin Views Edit Add Php Getitems After All" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEMS_AFTER_ALL_DESC="Allows the users in this group to update the edit add php getitems after all of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEMS_DESC="Allows the users in this group to update the edit add php getitems of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEM_DESC="Allows the users in this group to update the edit add php getitem of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETLISTQUERY="Admin Views Edit Add Php Getlistquery" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETLISTQUERY_DESC="Allows the users in this group to update the edit add php getlistquery of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_POSTSAVEHOOK="Admin Views Edit Add Php Postsavehook" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_POSTSAVEHOOK_DESC="Allows the users in this group to update the edit add php postsavehook of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_SAVE="Admin Views Edit Add Php Save" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_SAVE_DESC="Allows the users in this group to update the edit add php save of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_SQL="Admin Views Edit Add Sql" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_SQL_DESC="Allows the users in this group to update the edit add sql of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_AJAX_INPUT="Admin Views Edit Ajax Input" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_AJAX_INPUT_DESC="Allows the users in this group to update the edit ajax input of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CSS_VIEW="Admin Views Edit Css View" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CSS_VIEWS="Admin Views Edit Css Views" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CSS_VIEWS_DESC="Allows the users in this group to update the edit css views of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CSS_VIEW_DESC="Allows the users in this group to update the edit css view of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CUSTOM_BUTTON="Admin Views Edit Custom Button" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CUSTOM_BUTTON_DESC="Allows the users in this group to update the edit custom button of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CREATED_BY="Admin Views Edit Created By" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by admin views" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CREATED_DATE="Admin Views Edit Created Date" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created admin views" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_DESC="Allows the users in this group to edit the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_DESCRIPTION="Admin Views Edit Description" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_DESCRIPTION_DESC="Allows the users in this group to update the edit description of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_HTML_IMPORT_VIEW="Admin Views Edit Html Import View" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_HTML_IMPORT_VIEW_DESC="Allows the users in this group to update the edit html import view of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON="Admin Views Edit Icon" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_ADD="Admin Views Edit Icon Add" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_ADD_DESC="Allows the users in this group to update the edit icon add of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_CATEGORY="Admin Views Edit Icon Category" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_CATEGORY_DESC="Allows the users in this group to update the edit icon category of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_DESC="Allows the users in this group to update the edit icon of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEWS_FILE="Admin Views Edit Javascript Views File" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEWS_FILE_DESC="Allows the users in this group to update the edit javascript views file of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEWS_FOOTER="Admin Views Edit Javascript Views Footer" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEWS_FOOTER_DESC="Allows the users in this group to update the edit javascript views footer of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEW_FILE="Admin Views Edit Javascript View File" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEW_FILE_DESC="Allows the users in this group to update the edit javascript view file of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEW_FOOTER="Admin Views Edit Javascript View Footer" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEW_FOOTER_DESC="Allows the users in this group to update the edit javascript view footer of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_NAME_LIST="Admin Views Edit Name List" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_NAME_LIST_DESC="Allows the users in this group to update the edit name list of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_NAME_SINGLE="Admin Views Edit Name Single" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_NAME_SINGLE_DESC="Allows the users in this group to update the edit name single of the admin view" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_OWN="Admin Views Edit Own" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_OWN_DESC="Allows the users in this group to edit edit own admin views created by them" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AFTER_DELETE="Admin Views Edit Php After Delete" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AFTER_DELETE_DESC="Allows the users in this group to update the edit php after delete of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AFTER_PUBLISH="Admin Views Edit Php After Publish" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AFTER_PUBLISH_DESC="Allows the users in this group to update the edit php after publish of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AJAXMETHOD="Admin Views Edit Php Ajaxmethod" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AJAXMETHOD_DESC="Allows the users in this group to update the edit php ajaxmethod of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_ALLOWEDIT="Admin Views Edit Php Allowedit" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_ALLOWEDIT_DESC="Allows the users in this group to update the edit php allowedit of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BATCHCOPY="Admin Views Edit Php Batchcopy" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BATCHCOPY_DESC="Allows the users in this group to update the edit php batchcopy of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BATCHMOVE="Admin Views Edit Php Batchmove" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BATCHMOVE_DESC="Allows the users in this group to update the edit php batchmove of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_DELETE="Admin Views Edit Php Before Delete" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_DELETE_DESC="Allows the users in this group to update the edit php before delete of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_PUBLISH="Admin Views Edit Php Before Publish" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_PUBLISH_DESC="Allows the users in this group to update the edit php before publish of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_SAVE="Admin Views Edit Php Before Save" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_SAVE_DESC="Allows the users in this group to update the edit php before save of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_CONTROLLER="Admin Views Edit Php Controller" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_CONTROLLER_DESC="Allows the users in this group to update the edit php controller of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_CONTROLLER_LIST="Admin Views Edit Php Controller List" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_CONTROLLER_LIST_DESC="Allows the users in this group to update the edit php controller list of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_DOCUMENT="Admin Views Edit Php Document" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_DOCUMENT_DESC="Allows the users in this group to update the edit php document of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEM="Admin Views Edit Php Getitem" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEMS="Admin Views Edit Php Getitems" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEMS_AFTER_ALL="Admin Views Edit Php Getitems After All" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEMS_AFTER_ALL_DESC="Allows the users in this group to update the edit php getitems after all of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEMS_DESC="Allows the users in this group to update the edit php getitems of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEM_DESC="Allows the users in this group to update the edit php getitem of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETLISTQUERY="Admin Views Edit Php Getlistquery" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETLISTQUERY_DESC="Allows the users in this group to update the edit php getlistquery of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT="Admin Views Edit Php Import" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_DESC="Allows the users in this group to update the edit php import of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_DISPLAY="Admin Views Edit Php Import Display" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_DISPLAY_DESC="Allows the users in this group to update the edit php import display of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_EXT="Admin Views Edit Php Import Ext" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_EXT_DESC="Allows the users in this group to update the edit php import ext of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_SAVE="Admin Views Edit Php Import Save" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_SAVE_DESC="Allows the users in this group to update the edit php import save of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_SETDATA="Admin Views Edit Php Import Setdata" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_SETDATA_DESC="Allows the users in this group to update the edit php import setdata of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_MODEL="Admin Views Edit Php Model" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_MODEL_DESC="Allows the users in this group to update the edit php model of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_MODEL_LIST="Admin Views Edit Php Model List" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_MODEL_LIST_DESC="Allows the users in this group to update the edit php model list of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_POSTSAVEHOOK="Admin Views Edit Php Postsavehook" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_POSTSAVEHOOK_DESC="Allows the users in this group to update the edit php postsavehook of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_SAVE="Admin Views Edit Php Save" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_SAVE_DESC="Allows the users in this group to update the edit php save of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SHORT_DESCRIPTION="Admin Views Edit Short Description" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SHORT_DESCRIPTION_DESC="Allows the users in this group to update the edit short description of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SOURCE="Admin Views Edit Source" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SOURCE_DESC="Allows the users in this group to update the edit source of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SQL="Admin Views Edit Sql" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SQL_DESC="Allows the users in this group to update the edit sql of the admin view" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_STATE="Admin Views Edit State" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_STATE_DESC="Allows the users in this group to update the state of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SYSTEM_NAME="Admin Views Edit System Name" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SYSTEM_NAME_DESC="Allows the users in this group to update the edit system name of the admin view" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_TYPE="Admin Views Edit Type" -COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_TYPE_DESC="Allows the users in this group to update the edit type of the admin view" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_VERSION="Admin Views Edit Version" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version admin views" COM_COMPONENTBUILDER_ADMIN_VIEWS_EXPORT="Admin Views Export" @@ -400,170 +290,26 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS="Joomla Components Access" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS_DESC="Allows the users in this group to access access joomla components" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE="Joomla Components Batch Use" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch joomla components" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_CREATE="Joomla Components Create" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_CREATE_DESC="Allows the users in this group to create create joomla components" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD="Joomla Components Dashboard Add" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the joomla component" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_LIST="Joomla Components Dashboard List" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDADMIN_VIEWS="Joomla Components Edit Addadmin Views" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDADMIN_VIEWS_DESC="Allows the users in this group to update the edit addadmin views of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCONFIG="Joomla Components Edit Addconfig" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCONFIG_DESC="Allows the users in this group to update the edit addconfig of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCONTRIBUTORS="Joomla Components Edit Addcontributors" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCONTRIBUTORS_DESC="Allows the users in this group to update the edit addcontributors of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCUSTOMMENUS="Joomla Components Edit Addcustommenus" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCUSTOMMENUS_DESC="Allows the users in this group to update the edit addcustommenus of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCUSTOM_ADMIN_VIEWS="Joomla Components Edit Addcustom Admin Views" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCUSTOM_ADMIN_VIEWS_DESC="Allows the users in this group to update the edit addcustom admin views of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFILES="Joomla Components Edit Addfiles" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFILES_DESC="Allows the users in this group to update the edit addfiles of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFOLDERS="Joomla Components Edit Addfolders" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFOLDERS_DESC="Allows the users in this group to update the edit addfolders of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFOOTABLE="Joomla Components Edit Addfootable" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFOOTABLE_DESC="Allows the users in this group to update the edit addfootable of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDREADME="Joomla Components Edit Addreadme" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDREADME_DESC="Allows the users in this group to update the edit addreadme of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDSITE_VIEWS="Joomla Components Edit Addsite Views" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDSITE_VIEWS_DESC="Allows the users in this group to update the edit addsite views of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDUIKIT="Joomla Components Edit Adduikit" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDUIKIT_DESC="Allows the users in this group to update the edit adduikit of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_ADMIN_EVENT="Joomla Components Edit Add Admin Event" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_ADMIN_EVENT_DESC="Allows the users in this group to update the edit add admin event of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_CSS="Joomla Components Edit Add Css" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_CSS_DESC="Allows the users in this group to update the edit add css of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_EMAIL_HELPER="Joomla Components Edit Add Email Helper" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_EMAIL_HELPER_DESC="Allows the users in this group to update the edit add email helper of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_JAVASCRIPT="Joomla Components Edit Add Javascript" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_JAVASCRIPT_DESC="Allows the users in this group to update the edit add javascript of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_LICENSE="Joomla Components Edit Add License" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_LICENSE_DESC="Allows the users in this group to update the edit add license of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_DASHBOARD_METHODS="Joomla Components Edit Add Php Dashboard Methods" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_DASHBOARD_METHODS_DESC="Allows the users in this group to update the edit add php dashboard methods of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_ADMIN="Joomla Components Edit Add Php Helper Admin" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_ADMIN_DESC="Allows the users in this group to update the edit add php helper admin of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_BOTH="Joomla Components Edit Add Php Helper Both" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_BOTH_DESC="Allows the users in this group to update the edit add php helper both of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_SITE="Joomla Components Edit Add Php Helper Site" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_SITE_DESC="Allows the users in this group to update the edit add php helper site of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_METHOD_UNINSTALL="Joomla Components Edit Add Php Method Uninstall" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_METHOD_UNINSTALL_DESC="Allows the users in this group to update the edit add php method uninstall of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_POSTFLIGHT_INSTALL="Joomla Components Edit Add Php Postflight Install" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_POSTFLIGHT_INSTALL_DESC="Allows the users in this group to update the edit add php postflight install of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_POSTFLIGHT_UPDATE="Joomla Components Edit Add Php Postflight Update" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_POSTFLIGHT_UPDATE_DESC="Allows the users in this group to update the edit add php postflight update of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_PREFLIGHT_INSTALL="Joomla Components Edit Add Php Preflight Install" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_PREFLIGHT_INSTALL_DESC="Allows the users in this group to update the edit add php preflight install of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_PREFLIGHT_UPDATE="Joomla Components Edit Add Php Preflight Update" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_PREFLIGHT_UPDATE_DESC="Allows the users in this group to update the edit add php preflight update of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SALES_SERVER="Joomla Components Edit Add Sales Server" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SALES_SERVER_DESC="Allows the users in this group to update the edit add sales server of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SITE_EVENT="Joomla Components Edit Add Site Event" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SITE_EVENT_DESC="Allows the users in this group to update the edit add site event of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SQL="Joomla Components Edit Add Sql" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SQL_DESC="Allows the users in this group to update the edit add sql of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_UPDATE_SERVER="Joomla Components Edit Add Update Server" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_UPDATE_SERVER_DESC="Allows the users in this group to update the edit add update server of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_AUTHOR="Joomla Components Edit Author" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_AUTHOR_DESC="Allows the users in this group to update the edit author of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BOM="Joomla Components Edit Bom" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BOM_DESC="Allows the users in this group to update the edit bom of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BUILDCOMP="Joomla Components Edit Buildcomp" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BUILDCOMPSQL="Joomla Components Edit Buildcompsql" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BUILDCOMPSQL_DESC="Allows the users in this group to update the edit buildcompsql of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BUILDCOMP_DESC="Allows the users in this group to update the edit buildcomp of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COMPANYNAME="Joomla Components Edit Companyname" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COMPANYNAME_DESC="Allows the users in this group to update the edit companyname of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COMPONENT_VERSION="Joomla Components Edit Component Version" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COMPONENT_VERSION_DESC="Allows the users in this group to update the edit component version of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COPYRIGHT="Joomla Components Edit Copyright" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COPYRIGHT_DESC="Allows the users in this group to update the edit copyright of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CREATUSERHELPER="Joomla Components Edit Creatuserhelper" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CREATUSERHELPER_DESC="Allows the users in this group to update the edit creatuserhelper of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CSS="Joomla Components Edit Css" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CSS_DESC="Allows the users in this group to update the edit css of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DASHBOARD_TAB="Joomla Components Edit Dashboard Tab" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DASHBOARD_TAB_DESC="Allows the users in this group to update the edit dashboard tab of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DEBUG_LINENR="Joomla Components Edit Debug Linenr" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DEBUG_LINENR_DESC="Allows the users in this group to update the edit debug linenr of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DESCRIPTION="Joomla Components Edit Description" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DESCRIPTION_DESC="Allows the users in this group to update the edit description of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EMAIL="Joomla Components Edit Email" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EMAIL_DESC="Allows the users in this group to update the edit email of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EMPTYCONTRIBUTORS="Joomla Components Edit Emptycontributors" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EMPTYCONTRIBUTORS_DESC="Allows the users in this group to update the edit emptycontributors of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_BUY_LINK="Joomla Components Edit Export Buy Link" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_BUY_LINK_DESC="Allows the users in this group to update the edit export buy link of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_KEY="Joomla Components Edit Export Key" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_KEY_DESC="Allows the users in this group to update the edit export key of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_PACKAGE_LINK="Joomla Components Edit Export Package Link" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_PACKAGE_LINK_DESC="Allows the users in this group to update the edit export package link of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_IMAGE="Joomla Components Edit Image" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_IMAGE_DESC="Allows the users in this group to update the edit image of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_JAVASCRIPT="Joomla Components Edit Javascript" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_JAVASCRIPT_DESC="Allows the users in this group to update the edit javascript of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE="Joomla Components Edit License" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_DESC="Allows the users in this group to update the edit license of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_TYPE="Joomla Components Edit License Type" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_TYPE_DESC="Allows the users in this group to update the edit license type of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_MVC_VERSIONDATE="Joomla Components Edit Mvc Versiondate" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_MVC_VERSIONDATE_DESC="Allows the users in this group to update the edit mvc versiondate of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NAME="Joomla Components Edit Name" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NAME_CODE="Joomla Components Edit Name Code" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NAME_CODE_DESC="Allows the users in this group to update the edit name code of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NAME_DESC="Allows the users in this group to update the edit name of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NUMBER="Joomla Components Edit Number" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NUMBER_DESC="Allows the users in this group to update the edit number of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_ADMIN_EVENT="Joomla Components Edit Php Admin Event" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_ADMIN_EVENT_DESC="Allows the users in this group to update the edit php admin event of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_DASHBOARD_METHODS="Joomla Components Edit Php Dashboard Methods" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_DASHBOARD_METHODS_DESC="Allows the users in this group to update the edit php dashboard methods of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_ADMIN="Joomla Components Edit Php Helper Admin" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_ADMIN_DESC="Allows the users in this group to update the edit php helper admin of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_BOTH="Joomla Components Edit Php Helper Both" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_BOTH_DESC="Allows the users in this group to update the edit php helper both of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_SITE="Joomla Components Edit Php Helper Site" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_SITE_DESC="Allows the users in this group to update the edit php helper site of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_METHOD_UNINSTALL="Joomla Components Edit Php Method Uninstall" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_METHOD_UNINSTALL_DESC="Allows the users in this group to update the edit php method uninstall of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_POSTFLIGHT_INSTALL="Joomla Components Edit Php Postflight Install" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_POSTFLIGHT_INSTALL_DESC="Allows the users in this group to update the edit php postflight install of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_POSTFLIGHT_UPDATE="Joomla Components Edit Php Postflight Update" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_POSTFLIGHT_UPDATE_DESC="Allows the users in this group to update the edit php postflight update of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_PREFLIGHT_INSTALL="Joomla Components Edit Php Preflight Install" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_PREFLIGHT_INSTALL_DESC="Allows the users in this group to update the edit php preflight install of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_PREFLIGHT_UPDATE="Joomla Components Edit Php Preflight Update" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_PREFLIGHT_UPDATE_DESC="Allows the users in this group to update the edit php preflight update of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_SITE_EVENT="Joomla Components Edit Php Site Event" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_SITE_EVENT_DESC="Allows the users in this group to update the edit php site event of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_README="Joomla Components Edit Readme" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_README_DESC="Allows the users in this group to update the edit readme of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SALES_SERVER_FTP="Joomla Components Edit Sales Server Ftp" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SALES_SERVER_FTP_DESC="Allows the users in this group to update the edit sales server ftp of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SHORT_DESCRIPTION="Joomla Components Edit Short Description" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SHORT_DESCRIPTION_DESC="Allows the users in this group to update the edit short description of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SQL="Joomla Components Edit Sql" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SQL_DESC="Allows the users in this group to update the edit sql of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SQL_TWEAK="Joomla Components Edit Sql Tweak" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SQL_TWEAK_DESC="Allows the users in this group to update the edit sql tweak of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SYSTEM_NAME="Joomla Components Edit System Name" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SYSTEM_NAME_DESC="Allows the users in this group to update the edit system name of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_TOIGNORE="Joomla Components Edit Toignore" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_TOIGNORE_DESC="Allows the users in this group to update the edit toignore of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER="Joomla Components Edit Update Server" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_DESC="Allows the users in this group to update the edit update server of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_FTP="Joomla Components Edit Update Server Ftp" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_FTP_DESC="Allows the users in this group to update the edit update server ftp of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_TARGET="Joomla Components Edit Update Server Target" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_TARGET_DESC="Allows the users in this group to update the edit update server target of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DELETE="Joomla Components Delete" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DELETE_DESC="Allows the users in this group to delete delete joomla components" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT="Joomla Components Edit" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CREATED_BY="Joomla Components Edit Created By" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by joomla components" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CREATED_DATE="Joomla Components Edit Created Date" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created joomla components" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DESC="Allows the users in this group to edit the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_OWN="Joomla Components Edit Own" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_OWN_DESC="Allows the users in this group to edit edit own joomla components created by them" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_STATE="Joomla Components Edit State" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla component" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION="Joomla Components Edit Version" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla components" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_UPDATE="Joomla Components Edit Version Update" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_UPDATE_DESC="Allows the users in this group to update the edit version update of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WEBSITE="Joomla Components Edit Website" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WEBSITE_DESC="Allows the users in this group to update the edit website of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WHMCS_KEY="Joomla Components Edit Whmcs Key" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WHMCS_KEY_DESC="Allows the users in this group to update the edit whmcs key of the joomla component" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WHMCS_URL="Joomla Components Edit Whmcs Url" -COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WHMCS_URL_DESC="Allows the users in this group to update the edit whmcs url of the joomla component" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EXPORT="Joomla Components Export" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EXPORT_DESC="Allows the users in this group to export export joomla components" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_IMPORT="Joomla Components Import" diff --git a/admin/layouts/admin_fields/fields_above.php b/admin/layouts/admin_fields/fields_above.php new file mode 100644 index 000000000..9e61e72a7 --- /dev/null +++ b/admin/layouts/admin_fields/fields_above.php @@ -0,0 +1,41 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = array( + 'admin_view' +); + +?> +
+ renderField($field); + } ?> +
diff --git a/admin/layouts/admin_fields/fields_fullwidth.php b/admin/layouts/admin_fields/fields_fullwidth.php new file mode 100644 index 000000000..c70763c94 --- /dev/null +++ b/admin/layouts/admin_fields/fields_fullwidth.php @@ -0,0 +1,49 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'note_on_views', + 'addfields' +); + +?> +
+ +
+
+ getLabel($field); ?> +
+
+ getInput($field); ?> +
+
+ +
diff --git a/admin/layouts/admin_fields/index.html b/admin/layouts/admin_fields/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/layouts/admin_fields/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/layouts/admin_view/settings_right.php b/admin/layouts/admin_fields/publishing.php similarity index 88% rename from admin/layouts/admin_view/settings_right.php rename to admin/layouts/admin_fields/publishing.php index 527a5549d..b6c0d3f1f 100644 --- a/admin/layouts/admin_view/settings_right.php +++ b/admin/layouts/admin_fields/publishing.php @@ -10,11 +10,11 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder - @subpackage settings_right.php + @subpackage publishing.php @author Llewellyn van der Merwe @copyright Copyright (C) 2015. All Rights Reserved @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @@ -27,18 +27,14 @@ defined('_JEXEC') or die('Restricted access'); +$app = JFactory::getApplication(); $form = $displayData->getForm(); $fields = $displayData->get('fields') ?: array( - 'note_on_permissions', - 'addpermissions', - 'note_on_tabs', - 'addtabs', - 'note_on_views', - 'addfields', - 'note_on_conditions', - 'addconditions', - 'addlinked_views' + 'created', + 'created_by', + 'modified', + 'modified_by' ); $hiddenFields = $displayData->get('hidden_fields') ?: array(); diff --git a/admin/layouts/joomla_component/publlshing.php b/admin/layouts/admin_fields/publlshing.php similarity index 95% rename from admin/layouts/joomla_component/publlshing.php rename to admin/layouts/admin_fields/publlshing.php index 3dae5e08a..979e11f42 100644 --- a/admin/layouts/joomla_component/publlshing.php +++ b/admin/layouts/admin_fields/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/admin_fields_conditions/conditions_above.php b/admin/layouts/admin_fields_conditions/conditions_above.php new file mode 100644 index 000000000..1c8421ef8 --- /dev/null +++ b/admin/layouts/admin_fields_conditions/conditions_above.php @@ -0,0 +1,41 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = array( + 'admin_view' +); + +?> +
+ renderField($field); + } ?> +
diff --git a/admin/layouts/admin_fields_conditions/conditions_fullwidth.php b/admin/layouts/admin_fields_conditions/conditions_fullwidth.php new file mode 100644 index 000000000..68e5f629c --- /dev/null +++ b/admin/layouts/admin_fields_conditions/conditions_fullwidth.php @@ -0,0 +1,49 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'note_on_conditions', + 'addconditions' +); + +?> +
+ +
+
+ getLabel($field); ?> +
+
+ getInput($field); ?> +
+
+ +
diff --git a/admin/layouts/admin_fields_conditions/index.html b/admin/layouts/admin_fields_conditions/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/layouts/admin_fields_conditions/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/layouts/admin_fields_conditions/publishing.php b/admin/layouts/admin_fields_conditions/publishing.php new file mode 100644 index 000000000..b6c0d3f1f --- /dev/null +++ b/admin/layouts/admin_fields_conditions/publishing.php @@ -0,0 +1,58 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$app = JFactory::getApplication(); +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'created', + 'created_by', + 'modified', + 'modified_by' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/admin_fields_conditions/publlshing.php b/admin/layouts/admin_fields_conditions/publlshing.php new file mode 100644 index 000000000..979e11f42 --- /dev/null +++ b/admin/layouts/admin_fields_conditions/publlshing.php @@ -0,0 +1,60 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$app = JFactory::getApplication(); +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'published', + 'ordering', + 'access', + 'version', + 'hits', + 'id' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/admin_view/css_fullwidth.php b/admin/layouts/admin_view/css_fullwidth.php index 5e40869ec..98c56d307 100644 --- a/admin/layouts/admin_view/css_fullwidth.php +++ b/admin/layouts/admin_view/css_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage css_fullwidth.php diff --git a/admin/layouts/admin_view/custom_buttons_fullwidth.php b/admin/layouts/admin_view/custom_buttons_fullwidth.php index 497679e1e..524507c63 100644 --- a/admin/layouts/admin_view/custom_buttons_fullwidth.php +++ b/admin/layouts/admin_view/custom_buttons_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_buttons_fullwidth.php diff --git a/admin/layouts/admin_view/custom_buttons_left.php b/admin/layouts/admin_view/custom_buttons_left.php index 030c3ccae..1943b6a00 100644 --- a/admin/layouts/admin_view/custom_buttons_left.php +++ b/admin/layouts/admin_view/custom_buttons_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_buttons_left.php diff --git a/admin/layouts/admin_view/custom_import_fullwidth.php b/admin/layouts/admin_view/custom_import_fullwidth.php index 72d6e31e9..5c54400db 100644 --- a/admin/layouts/admin_view/custom_import_fullwidth.php +++ b/admin/layouts/admin_view/custom_import_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_import_fullwidth.php diff --git a/admin/layouts/admin_view/settings_above.php b/admin/layouts/admin_view/details_above.php similarity index 94% rename from admin/layouts/admin_view/settings_above.php rename to admin/layouts/admin_view/details_above.php index a77274f10..c3abf1866 100644 --- a/admin/layouts/admin_view/settings_above.php +++ b/admin/layouts/admin_view/details_above.php @@ -10,11 +10,11 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder - @subpackage settings_above.php + @subpackage details_above.php @author Llewellyn van der Merwe @copyright Copyright (C) 2015. All Rights Reserved @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html diff --git a/admin/layouts/admin_view/settings_left.php b/admin/layouts/admin_view/details_left.php similarity index 92% rename from admin/layouts/admin_view/settings_left.php rename to admin/layouts/admin_view/details_left.php index 0ee6ee432..beeeb1249 100644 --- a/admin/layouts/admin_view/settings_left.php +++ b/admin/layouts/admin_view/details_left.php @@ -10,11 +10,11 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder - @subpackage settings_left.php + @subpackage details_left.php @author Llewellyn van der Merwe @copyright Copyright (C) 2015. All Rights Reserved @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @@ -33,9 +33,6 @@ $fields = $displayData->get('fields') ?: array( 'name_single', 'name_list', 'type', - 'short_description', - 'description', - 'add_fadein', 'icon', 'icon_add', 'icon_category' diff --git a/admin/layouts/admin_view/details_right.php b/admin/layouts/admin_view/details_right.php new file mode 100644 index 000000000..c9eb90ea3 --- /dev/null +++ b/admin/layouts/admin_view/details_right.php @@ -0,0 +1,56 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'short_description', + 'description', + 'add_fadein' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/admin_view/settings_under.php b/admin/layouts/admin_view/details_under.php similarity index 94% rename from admin/layouts/admin_view/settings_under.php rename to admin/layouts/admin_view/details_under.php index 45261b871..5b2b24f66 100644 --- a/admin/layouts/admin_view/settings_under.php +++ b/admin/layouts/admin_view/details_under.php @@ -10,11 +10,11 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder - @subpackage settings_under.php + @subpackage details_under.php @author Llewellyn van der Merwe @copyright Copyright (C) 2015. All Rights Reserved @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html diff --git a/admin/layouts/admin_view/fields_conditions_fullwidth.php b/admin/layouts/admin_view/fields_conditions_fullwidth.php new file mode 100644 index 000000000..4746a0da3 --- /dev/null +++ b/admin/layouts/admin_view/fields_conditions_fullwidth.php @@ -0,0 +1,48 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'note_create_edit_display' +); + +?> +
+ +
+
+ getLabel($field); ?> +
+
+ getInput($field); ?> +
+
+ +
diff --git a/admin/layouts/admin_view/fields_conditions_left.php b/admin/layouts/admin_view/fields_conditions_left.php new file mode 100644 index 000000000..45454fb0c --- /dev/null +++ b/admin/layouts/admin_view/fields_conditions_left.php @@ -0,0 +1,54 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'note_create_edit_notice' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/admin_view/fields_conditions_right.php b/admin/layouts/admin_view/fields_conditions_right.php new file mode 100644 index 000000000..ffcc671de --- /dev/null +++ b/admin/layouts/admin_view/fields_conditions_right.php @@ -0,0 +1,54 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'note_create_edit_buttons' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/admin_view/fields_fullwidth.php b/admin/layouts/admin_view/fields_fullwidth.php deleted file mode 100644 index 5f08d8b92..000000000 --- a/admin/layouts/admin_view/fields_fullwidth.php +++ /dev/null @@ -1,158 +0,0 @@ - - @copyright Copyright (C) 2015. All Rights Reserved - @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html - - Builds Complex Joomla Components - -/-----------------------------------------------------------------------------------------------------------------------------*/ - -// No direct access to this file - -defined('_JEXEC') or die('Restricted access'); - -// set the defaults -$items = $displayData->vxzfields; -$user = JFactory::getUser(); -$id = $displayData->item->id; -$edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit"; -$ref = ($id) ? "&ref=admin_view&refid=".$id : ""; -$new = "index.php?option=com_componentbuilder&view=field&layout=edit".$ref; -$can = ComponentbuilderHelper::getActions('field'); - -?> -
-get('field.create')): ?> -

- - - - - - - - - - - - - - - - - - $item): ?> - authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0; - $userChkOut = JFactory::getUser($item->checked_out); - $canDo = ComponentbuilderHelper::getActions('field',$item,'fields'); - ?> - - - - - - - - - published == 1):?> - - published == 0):?> - - published == 2):?> - - published == -2):?> - - - - - - -
- - - - - - - - - - - - - - - - - -
- get('field.edit')): ?> - escape($item->name); ?> - checked_out): ?> - name, $item->checked_out_time, 'fields.', $canCheckin); ?> - - -
escape($item->name); ?>
- -
- authorise('fieldtype.edit', 'com_componentbuilder.fieldtype.' . (int)$item->fieldtype)): ?> - escape($item->fieldtype_name); ?> - -
escape($item->fieldtype_name); ?>
- -
- datatype); ?> - - indexes); ?> - - null_switch); ?> - - authorise('core.edit', 'com_componentbuilder.fields.category.' . (int)$item->catid)): ?> - escape($item->category_title); ?> - - escape($item->category_title); ?> - - - store); ?> - - - - - - - - - - - - - - - - - - id; ?> -
- -
- -
- -
diff --git a/admin/layouts/admin_view/javascript_fullwidth.php b/admin/layouts/admin_view/javascript_fullwidth.php index 19a05def4..d0c7bab24 100644 --- a/admin/layouts/admin_view/javascript_fullwidth.php +++ b/admin/layouts/admin_view/javascript_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage javascript_fullwidth.php diff --git a/admin/layouts/admin_view/linked_components_fullwidth.php b/admin/layouts/admin_view/linked_components_fullwidth.php index 3ca2bed3e..4745da795 100644 --- a/admin/layouts/admin_view/linked_components_fullwidth.php +++ b/admin/layouts/admin_view/linked_components_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage linked_components_fullwidth.php @@ -28,7 +28,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->vyalinked_components; +$items = $displayData->vxzlinked_components; $user = JFactory::getUser(); $id = $displayData->item->id; $edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit"; @@ -74,7 +74,7 @@ $edit = "index.php?option=com_componentbuilder&view=joomla_components&task=jooml ?> - get('core.edit')): ?> + get('joomla_component.edit')): ?> escape($item->system_name); ?> checked_out): ?> name, $item->checked_out_time, 'joomla_components.', $canCheckin); ?> diff --git a/admin/layouts/admin_view/mysql_fullwidth.php b/admin/layouts/admin_view/mysql_fullwidth.php index 9d5038c29..861df5159 100644 --- a/admin/layouts/admin_view/mysql_fullwidth.php +++ b/admin/layouts/admin_view/mysql_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage mysql_fullwidth.php diff --git a/admin/layouts/admin_view/mysql_left.php b/admin/layouts/admin_view/mysql_left.php index cd0fd94f5..f857eb5bd 100644 --- a/admin/layouts/admin_view/mysql_left.php +++ b/admin/layouts/admin_view/mysql_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage mysql_left.php diff --git a/admin/layouts/admin_view/php_fullwidth.php b/admin/layouts/admin_view/php_fullwidth.php index efee3617e..b2ec70ebc 100644 --- a/admin/layouts/admin_view/php_fullwidth.php +++ b/admin/layouts/admin_view/php_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage php_fullwidth.php diff --git a/admin/layouts/admin_view/publishing.php b/admin/layouts/admin_view/publishing.php index 8d79c177f..b6c0d3f1f 100644 --- a/admin/layouts/admin_view/publishing.php +++ b/admin/layouts/admin_view/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/admin_view/publlshing.php b/admin/layouts/admin_view/publlshing.php index 3dae5e08a..979e11f42 100644 --- a/admin/layouts/admin_view/publlshing.php +++ b/admin/layouts/admin_view/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/admin_view/settings_fullwidth.php b/admin/layouts/admin_view/settings_fullwidth.php new file mode 100644 index 000000000..449100827 --- /dev/null +++ b/admin/layouts/admin_view/settings_fullwidth.php @@ -0,0 +1,53 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'note_on_permissions', + 'addpermissions', + 'note_on_tabs', + 'addtabs', + 'note_on_linked_views', + 'addlinked_views' +); + +?> +
+ +
+
+ getLabel($field); ?> +
+
+ getInput($field); ?> +
+
+ +
diff --git a/admin/layouts/batchselection.php b/admin/layouts/batchselection.php index 60b1eeb6a..e5f637e40 100644 --- a/admin/layouts/batchselection.php +++ b/admin/layouts/batchselection.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage batchselection.php diff --git a/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php b/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php index 3d898d998..31bc44240 100644 --- a/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php +++ b/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_buttons_fullwidth.php diff --git a/admin/layouts/custom_admin_view/custom_buttons_left.php b/admin/layouts/custom_admin_view/custom_buttons_left.php index 030c3ccae..1943b6a00 100644 --- a/admin/layouts/custom_admin_view/custom_buttons_left.php +++ b/admin/layouts/custom_admin_view/custom_buttons_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_buttons_left.php diff --git a/admin/layouts/custom_admin_view/custom_script_fullwidth.php b/admin/layouts/custom_admin_view/custom_script_fullwidth.php index 950added5..025b27fd0 100644 --- a/admin/layouts/custom_admin_view/custom_script_fullwidth.php +++ b/admin/layouts/custom_admin_view/custom_script_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_script_fullwidth.php diff --git a/admin/layouts/custom_admin_view/details_above.php b/admin/layouts/custom_admin_view/details_above.php index b5e3e769a..c3abf1866 100644 --- a/admin/layouts/custom_admin_view/details_above.php +++ b/admin/layouts/custom_admin_view/details_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_above.php diff --git a/admin/layouts/custom_admin_view/details_fullwidth.php b/admin/layouts/custom_admin_view/details_fullwidth.php index 37cb6f57b..21b529eed 100644 --- a/admin/layouts/custom_admin_view/details_fullwidth.php +++ b/admin/layouts/custom_admin_view/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/custom_admin_view/details_left.php b/admin/layouts/custom_admin_view/details_left.php index 1bffb5ef9..356259a6e 100644 --- a/admin/layouts/custom_admin_view/details_left.php +++ b/admin/layouts/custom_admin_view/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/custom_admin_view/details_right.php b/admin/layouts/custom_admin_view/details_right.php index e0f1c8b92..cea59422e 100644 --- a/admin/layouts/custom_admin_view/details_right.php +++ b/admin/layouts/custom_admin_view/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/custom_admin_view/details_rightside.php b/admin/layouts/custom_admin_view/details_rightside.php index b017076ff..2feb0423b 100644 --- a/admin/layouts/custom_admin_view/details_rightside.php +++ b/admin/layouts/custom_admin_view/details_rightside.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_rightside.php diff --git a/admin/layouts/custom_admin_view/details_under.php b/admin/layouts/custom_admin_view/details_under.php index b39d6a504..5b2b24f66 100644 --- a/admin/layouts/custom_admin_view/details_under.php +++ b/admin/layouts/custom_admin_view/details_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_under.php diff --git a/admin/layouts/custom_admin_view/linked_components_fullwidth.php b/admin/layouts/custom_admin_view/linked_components_fullwidth.php index 6e4982fa5..eddee645d 100644 --- a/admin/layouts/custom_admin_view/linked_components_fullwidth.php +++ b/admin/layouts/custom_admin_view/linked_components_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage linked_components_fullwidth.php @@ -28,7 +28,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->vyklinked_components; +$items = $displayData->vyjlinked_components; $user = JFactory::getUser(); $id = $displayData->item->id; $edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit"; @@ -74,7 +74,7 @@ $edit = "index.php?option=com_componentbuilder&view=joomla_components&task=jooml ?> - get('core.edit')): ?> + get('joomla_component.edit')): ?> escape($item->system_name); ?> checked_out): ?> name, $item->checked_out_time, 'joomla_components.', $canCheckin); ?> diff --git a/admin/layouts/custom_admin_view/publishing.php b/admin/layouts/custom_admin_view/publishing.php index 8d79c177f..b6c0d3f1f 100644 --- a/admin/layouts/custom_admin_view/publishing.php +++ b/admin/layouts/custom_admin_view/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/custom_admin_view/publlshing.php b/admin/layouts/custom_admin_view/publlshing.php index 3dae5e08a..979e11f42 100644 --- a/admin/layouts/custom_admin_view/publlshing.php +++ b/admin/layouts/custom_admin_view/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/custom_code/details_above.php b/admin/layouts/custom_code/details_above.php index c6531c421..185c82ce8 100644 --- a/admin/layouts/custom_code/details_above.php +++ b/admin/layouts/custom_code/details_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_above.php diff --git a/admin/layouts/custom_code/details_fullwidth.php b/admin/layouts/custom_code/details_fullwidth.php index 1f975d3f3..a9f1bcabc 100644 --- a/admin/layouts/custom_code/details_fullwidth.php +++ b/admin/layouts/custom_code/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/custom_code/details_left.php b/admin/layouts/custom_code/details_left.php index 1d55d54b6..4593d0445 100644 --- a/admin/layouts/custom_code/details_left.php +++ b/admin/layouts/custom_code/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/custom_code/details_right.php b/admin/layouts/custom_code/details_right.php index 61d0db080..4c691af70 100644 --- a/admin/layouts/custom_code/details_right.php +++ b/admin/layouts/custom_code/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/custom_code/details_under.php b/admin/layouts/custom_code/details_under.php index b39d6a504..5b2b24f66 100644 --- a/admin/layouts/custom_code/details_under.php +++ b/admin/layouts/custom_code/details_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_under.php diff --git a/admin/layouts/custom_code/publishing.php b/admin/layouts/custom_code/publishing.php index 8d79c177f..b6c0d3f1f 100644 --- a/admin/layouts/custom_code/publishing.php +++ b/admin/layouts/custom_code/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/custom_code/publlshing.php b/admin/layouts/custom_code/publlshing.php index 3dae5e08a..979e11f42 100644 --- a/admin/layouts/custom_code/publlshing.php +++ b/admin/layouts/custom_code/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/dynamic_get/abacus_fullwidth.php b/admin/layouts/dynamic_get/abacus_fullwidth.php index f4608fe8e..bc2352829 100644 --- a/admin/layouts/dynamic_get/abacus_fullwidth.php +++ b/admin/layouts/dynamic_get/abacus_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage abacus_fullwidth.php diff --git a/admin/layouts/dynamic_get/abacus_left.php b/admin/layouts/dynamic_get/abacus_left.php index 89dcffdca..30be370b9 100644 --- a/admin/layouts/dynamic_get/abacus_left.php +++ b/admin/layouts/dynamic_get/abacus_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage abacus_left.php diff --git a/admin/layouts/dynamic_get/custom_script_fullwidth.php b/admin/layouts/dynamic_get/custom_script_fullwidth.php index 3892d6e23..8805741e7 100644 --- a/admin/layouts/dynamic_get/custom_script_fullwidth.php +++ b/admin/layouts/dynamic_get/custom_script_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_script_fullwidth.php diff --git a/admin/layouts/dynamic_get/joint_fullwidth.php b/admin/layouts/dynamic_get/joint_fullwidth.php index 76272ff92..e48658bf3 100644 --- a/admin/layouts/dynamic_get/joint_fullwidth.php +++ b/admin/layouts/dynamic_get/joint_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage joint_fullwidth.php diff --git a/admin/layouts/dynamic_get/main_above.php b/admin/layouts/dynamic_get/main_above.php index 69296c816..883efc488 100644 --- a/admin/layouts/dynamic_get/main_above.php +++ b/admin/layouts/dynamic_get/main_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage main_above.php diff --git a/admin/layouts/dynamic_get/main_fullwidth.php b/admin/layouts/dynamic_get/main_fullwidth.php index 0c3ae6065..2c4e298db 100644 --- a/admin/layouts/dynamic_get/main_fullwidth.php +++ b/admin/layouts/dynamic_get/main_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage main_fullwidth.php diff --git a/admin/layouts/dynamic_get/main_left.php b/admin/layouts/dynamic_get/main_left.php index 459821207..b2e0c254e 100644 --- a/admin/layouts/dynamic_get/main_left.php +++ b/admin/layouts/dynamic_get/main_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage main_left.php diff --git a/admin/layouts/dynamic_get/main_right.php b/admin/layouts/dynamic_get/main_right.php index 30ef8b441..073d79db6 100644 --- a/admin/layouts/dynamic_get/main_right.php +++ b/admin/layouts/dynamic_get/main_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage main_right.php diff --git a/admin/layouts/dynamic_get/main_under.php b/admin/layouts/dynamic_get/main_under.php index 48d1fa24d..7963b0e95 100644 --- a/admin/layouts/dynamic_get/main_under.php +++ b/admin/layouts/dynamic_get/main_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage main_under.php diff --git a/admin/layouts/dynamic_get/publishing.php b/admin/layouts/dynamic_get/publishing.php index 8d79c177f..b6c0d3f1f 100644 --- a/admin/layouts/dynamic_get/publishing.php +++ b/admin/layouts/dynamic_get/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/dynamic_get/publlshing.php b/admin/layouts/dynamic_get/publlshing.php index 3dae5e08a..979e11f42 100644 --- a/admin/layouts/dynamic_get/publlshing.php +++ b/admin/layouts/dynamic_get/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/field/details_fullwidth.php b/admin/layouts/field/details_fullwidth.php index 3b93f8fc4..a1ebb183b 100644 --- a/admin/layouts/field/details_fullwidth.php +++ b/admin/layouts/field/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/field/details_left.php b/admin/layouts/field/details_left.php index 545727954..559c834e0 100644 --- a/admin/layouts/field/details_left.php +++ b/admin/layouts/field/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/field/details_right.php b/admin/layouts/field/details_right.php index bbc95c9f1..20d2a7278 100644 --- a/admin/layouts/field/details_right.php +++ b/admin/layouts/field/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/field/details_under.php b/admin/layouts/field/details_under.php index b39d6a504..5b2b24f66 100644 --- a/admin/layouts/field/details_under.php +++ b/admin/layouts/field/details_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_under.php diff --git a/admin/layouts/field/linked_admin_views_fullwidth.php b/admin/layouts/field/linked_admin_views_fullwidth.php deleted file mode 100644 index cba04af0d..000000000 --- a/admin/layouts/field/linked_admin_views_fullwidth.php +++ /dev/null @@ -1,126 +0,0 @@ - - @copyright Copyright (C) 2015. All Rights Reserved - @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html - - Builds Complex Joomla Components - -/-----------------------------------------------------------------------------------------------------------------------------*/ - -// No direct access to this file - -defined('_JEXEC') or die('Restricted access'); - -// set the defaults -$items = $displayData->waclinked_admin_views; -$user = JFactory::getUser(); -$id = $displayData->item->id; -$edit = "index.php?option=com_componentbuilder&view=admin_views&task=admin_view.edit"; - -?> -
- - - - - - - - - - - - - - $item): ?> - authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0; - $userChkOut = JFactory::getUser($item->checked_out); - $canDo = ComponentbuilderHelper::getActions('admin_view',$item,'admin_views'); - ?> - - - - - - published == 1):?> - - published == 0):?> - - published == 2):?> - - published == -2):?> - - - - - - -
- - - - - - - - - - - -
- get('core.edit')): ?> - escape($item->system_name); ?> - checked_out): ?> - name, $item->checked_out_time, 'admin_views.', $canCheckin); ?> - - -
escape($item->system_name); ?>
- -
- escape($item->name_single); ?> - - escape($item->name_list); ?> - - escape($item->short_description); ?> - - - - - - - - - - - - - - - - - - id; ?> -
- -
- -
- -
diff --git a/admin/layouts/field/publishing.php b/admin/layouts/field/publishing.php index 8d79c177f..b6c0d3f1f 100644 --- a/admin/layouts/field/publishing.php +++ b/admin/layouts/field/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/field/publlshing.php b/admin/layouts/field/publlshing.php index 3dae5e08a..979e11f42 100644 --- a/admin/layouts/field/publlshing.php +++ b/admin/layouts/field/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/field/scripts_left.php b/admin/layouts/field/scripts_left.php index 5d0f26605..260d306f6 100644 --- a/admin/layouts/field/scripts_left.php +++ b/admin/layouts/field/scripts_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage scripts_left.php diff --git a/admin/layouts/field/scripts_right.php b/admin/layouts/field/scripts_right.php index dec429da8..d910ef3f8 100644 --- a/admin/layouts/field/scripts_right.php +++ b/admin/layouts/field/scripts_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage scripts_right.php diff --git a/admin/layouts/fieldtype/details_fullwidth.php b/admin/layouts/fieldtype/details_fullwidth.php index 40a6895d2..dc37cfa90 100644 --- a/admin/layouts/fieldtype/details_fullwidth.php +++ b/admin/layouts/fieldtype/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/fieldtype/details_left.php b/admin/layouts/fieldtype/details_left.php index 915d06347..7edd5c76b 100644 --- a/admin/layouts/fieldtype/details_left.php +++ b/admin/layouts/fieldtype/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/fieldtype/details_right.php b/admin/layouts/fieldtype/details_right.php index 150fdbf90..d485a61cc 100644 --- a/admin/layouts/fieldtype/details_right.php +++ b/admin/layouts/fieldtype/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/fieldtype/fields_fullwidth.php b/admin/layouts/fieldtype/fields_fullwidth.php index 2c5bbbdcf..e648ba43e 100644 --- a/admin/layouts/fieldtype/fields_fullwidth.php +++ b/admin/layouts/fieldtype/fields_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage fields_fullwidth.php @@ -28,7 +28,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->wadfields; +$items = $displayData->wabfields; $user = JFactory::getUser(); $id = $displayData->item->id; $edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit"; diff --git a/admin/layouts/fieldtype/publishing.php b/admin/layouts/fieldtype/publishing.php index 8d79c177f..b6c0d3f1f 100644 --- a/admin/layouts/fieldtype/publishing.php +++ b/admin/layouts/fieldtype/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/fieldtype/publlshing.php b/admin/layouts/fieldtype/publlshing.php index 3dae5e08a..979e11f42 100644 --- a/admin/layouts/fieldtype/publlshing.php +++ b/admin/layouts/fieldtype/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/ftp/details_above.php b/admin/layouts/ftp/details_above.php index ed41a9114..63a78bd5a 100644 --- a/admin/layouts/ftp/details_above.php +++ b/admin/layouts/ftp/details_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_above.php diff --git a/admin/layouts/ftp/details_fullwidth.php b/admin/layouts/ftp/details_fullwidth.php index b57ecaa12..4efc112fd 100644 --- a/admin/layouts/ftp/details_fullwidth.php +++ b/admin/layouts/ftp/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/ftp/linked_components_fullwidth.php b/admin/layouts/ftp/linked_components_fullwidth.php index dc29386f7..8fbecd518 100644 --- a/admin/layouts/ftp/linked_components_fullwidth.php +++ b/admin/layouts/ftp/linked_components_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage linked_components_fullwidth.php @@ -28,7 +28,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->waelinked_components; +$items = $displayData->waclinked_components; $user = JFactory::getUser(); $id = $displayData->item->id; $edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit"; @@ -74,7 +74,7 @@ $edit = "index.php?option=com_componentbuilder&view=joomla_components&task=jooml ?> - get('core.edit')): ?> + get('joomla_component.edit')): ?> escape($item->system_name); ?> checked_out): ?> name, $item->checked_out_time, 'joomla_components.', $canCheckin); ?> diff --git a/admin/layouts/ftp/publishing.php b/admin/layouts/ftp/publishing.php index 8d79c177f..b6c0d3f1f 100644 --- a/admin/layouts/ftp/publishing.php +++ b/admin/layouts/ftp/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/ftp/publlshing.php b/admin/layouts/ftp/publlshing.php index 3dae5e08a..979e11f42 100644 --- a/admin/layouts/ftp/publlshing.php +++ b/admin/layouts/ftp/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/help_document/details_above.php b/admin/layouts/help_document/details_above.php index d11370c22..2f4a2fe4f 100644 --- a/admin/layouts/help_document/details_above.php +++ b/admin/layouts/help_document/details_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_above.php diff --git a/admin/layouts/help_document/details_fullwidth.php b/admin/layouts/help_document/details_fullwidth.php index 4322467c2..c21aa69f1 100644 --- a/admin/layouts/help_document/details_fullwidth.php +++ b/admin/layouts/help_document/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/help_document/details_left.php b/admin/layouts/help_document/details_left.php index af8402247..a36ceed8d 100644 --- a/admin/layouts/help_document/details_left.php +++ b/admin/layouts/help_document/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/help_document/details_right.php b/admin/layouts/help_document/details_right.php index fad9e09d2..6e6d6c87b 100644 --- a/admin/layouts/help_document/details_right.php +++ b/admin/layouts/help_document/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/help_document/details_under.php b/admin/layouts/help_document/details_under.php index b39d6a504..5b2b24f66 100644 --- a/admin/layouts/help_document/details_under.php +++ b/admin/layouts/help_document/details_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_under.php diff --git a/admin/layouts/help_document/publishing.php b/admin/layouts/help_document/publishing.php index 8d79c177f..b6c0d3f1f 100644 --- a/admin/layouts/help_document/publishing.php +++ b/admin/layouts/help_document/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/help_document/publlshing.php b/admin/layouts/help_document/publlshing.php index 57e4ad263..979e11f42 100644 --- a/admin/layouts/help_document/publlshing.php +++ b/admin/layouts/help_document/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php @@ -33,6 +33,7 @@ $form = $displayData->getForm(); $fields = $displayData->get('fields') ?: array( 'published', 'ordering', + 'access', 'version', 'hits', 'id' diff --git a/admin/layouts/joomla_component/admin_views_fullwidth.php b/admin/layouts/joomla_component/admin_views_fullwidth.php index d0e13dcb6..affd61f9e 100644 --- a/admin/layouts/joomla_component/admin_views_fullwidth.php +++ b/admin/layouts/joomla_component/admin_views_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin_views_fullwidth.php @@ -38,7 +38,7 @@ $can = ComponentbuilderHelper::getActions('admin_view'); ?>
-get('core.create')): ?> +get('admin_view.create')): ?>

@@ -74,7 +74,7 @@ $can = ComponentbuilderHelper::getActions('admin_view'); ?> - get('core.edit')): ?> + get('admin_view.edit')): ?> escape($item->system_name); ?> checked_out): ?> name, $item->checked_out_time, 'admin_views.', $canCheckin); ?> diff --git a/admin/layouts/joomla_component/custom_admin_views_fullwidth.php b/admin/layouts/joomla_component/custom_admin_views_fullwidth.php index e2eaf5b20..c8ef5d768 100644 --- a/admin/layouts/joomla_component/custom_admin_views_fullwidth.php +++ b/admin/layouts/joomla_component/custom_admin_views_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_admin_views_fullwidth.php diff --git a/admin/layouts/joomla_component/details_above.php b/admin/layouts/joomla_component/details_above.php index b5e3e769a..c3abf1866 100644 --- a/admin/layouts/joomla_component/details_above.php +++ b/admin/layouts/joomla_component/details_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_above.php diff --git a/admin/layouts/joomla_component/details_left.php b/admin/layouts/joomla_component/details_left.php index c1cdee5fc..6de7dd96a 100644 --- a/admin/layouts/joomla_component/details_left.php +++ b/admin/layouts/joomla_component/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/joomla_component/details_right.php b/admin/layouts/joomla_component/details_right.php index 4af263aa9..39721c8f3 100644 --- a/admin/layouts/joomla_component/details_right.php +++ b/admin/layouts/joomla_component/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/joomla_component/details_under.php b/admin/layouts/joomla_component/details_under.php index b39d6a504..5b2b24f66 100644 --- a/admin/layouts/joomla_component/details_under.php +++ b/admin/layouts/joomla_component/details_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_under.php diff --git a/admin/layouts/joomla_component/dynamic_build_beta_fullwidth.php b/admin/layouts/joomla_component/dynamic_build_beta_fullwidth.php index 2a84a11da..61c9b35ab 100644 --- a/admin/layouts/joomla_component/dynamic_build_beta_fullwidth.php +++ b/admin/layouts/joomla_component/dynamic_build_beta_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage dynamic_build_beta_fullwidth.php diff --git a/admin/layouts/joomla_component/dynamic_integration_fullwidth.php b/admin/layouts/joomla_component/dynamic_integration_fullwidth.php index ee095540b..33e0137a1 100644 --- a/admin/layouts/joomla_component/dynamic_integration_fullwidth.php +++ b/admin/layouts/joomla_component/dynamic_integration_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage dynamic_integration_fullwidth.php diff --git a/admin/layouts/joomla_component/libs_helpers_fullwidth.php b/admin/layouts/joomla_component/libs_helpers_fullwidth.php index 187d068a4..c4914ff90 100644 --- a/admin/layouts/joomla_component/libs_helpers_fullwidth.php +++ b/admin/layouts/joomla_component/libs_helpers_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage libs_helpers_fullwidth.php diff --git a/admin/layouts/joomla_component/metadata.php b/admin/layouts/joomla_component/metadata.php new file mode 100644 index 000000000..174f1a19b --- /dev/null +++ b/admin/layouts/joomla_component/metadata.php @@ -0,0 +1,56 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +// JLayout for standard handling of metadata fields in the administrator content edit screens. +$fieldSets = $form->getFieldsets('metadata'); +?> + + $fieldSet) : ?> + description) && trim($fieldSet->description)) : ?> +

escape(JText::_($fieldSet->description)); ?>

+ + + renderField('metadesc'); + echo $form->renderField('metakey'); + } + + foreach ($form->getFieldset($name) as $field) + { + if ($field->name != 'jform[metadata][tags][]') + { + echo $field->renderField(); + } + } ?> + diff --git a/admin/layouts/joomla_component/mysql_fullwidth.php b/admin/layouts/joomla_component/mysql_fullwidth.php index 85546c38f..f9c2695f6 100644 --- a/admin/layouts/joomla_component/mysql_fullwidth.php +++ b/admin/layouts/joomla_component/mysql_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage mysql_fullwidth.php diff --git a/admin/layouts/joomla_component/php_fullwidth.php b/admin/layouts/joomla_component/php_fullwidth.php index 428da7b9f..b64ec0ccd 100644 --- a/admin/layouts/joomla_component/php_fullwidth.php +++ b/admin/layouts/joomla_component/php_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage php_fullwidth.php diff --git a/admin/layouts/joomla_component/publishing.php b/admin/layouts/joomla_component/publishing.php index 8d79c177f..90be72273 100644 --- a/admin/layouts/joomla_component/publishing.php +++ b/admin/layouts/joomla_component/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php @@ -34,7 +34,13 @@ $fields = $displayData->get('fields') ?: array( 'created', 'created_by', 'modified', - 'modified_by' + 'modified_by', + 'published', + 'ordering', + 'access', + 'version', + 'hits', + 'id' ); $hiddenFields = $displayData->get('hidden_fields') ?: array(); diff --git a/admin/layouts/joomla_component/readme_left.php b/admin/layouts/joomla_component/readme_left.php index 7c98bd0ef..3e2221aff 100644 --- a/admin/layouts/joomla_component/readme_left.php +++ b/admin/layouts/joomla_component/readme_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage readme_left.php diff --git a/admin/layouts/joomla_component/readme_right.php b/admin/layouts/joomla_component/readme_right.php index 50998a4d0..3fa3b302b 100644 --- a/admin/layouts/joomla_component/readme_right.php +++ b/admin/layouts/joomla_component/readme_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage readme_right.php diff --git a/admin/layouts/joomla_component/settings_left.php b/admin/layouts/joomla_component/settings_left.php index 848344f10..0bdc0287a 100644 --- a/admin/layouts/joomla_component/settings_left.php +++ b/admin/layouts/joomla_component/settings_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage settings_left.php diff --git a/admin/layouts/joomla_component/settings_right.php b/admin/layouts/joomla_component/settings_right.php index 7abd9e2ae..a27ecca0e 100644 --- a/admin/layouts/joomla_component/settings_right.php +++ b/admin/layouts/joomla_component/settings_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage settings_right.php diff --git a/admin/layouts/joomla_component/site_views_fullwidth.php b/admin/layouts/joomla_component/site_views_fullwidth.php index 3e2f233e6..d27b37289 100644 --- a/admin/layouts/joomla_component/site_views_fullwidth.php +++ b/admin/layouts/joomla_component/site_views_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage site_views_fullwidth.php diff --git a/admin/layouts/joomla_component/translation_fullwidth.php b/admin/layouts/joomla_component/translation_fullwidth.php index e3cc90284..8ee24c7da 100644 --- a/admin/layouts/joomla_component/translation_fullwidth.php +++ b/admin/layouts/joomla_component/translation_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage translation_fullwidth.php diff --git a/admin/layouts/language/details_left.php b/admin/layouts/language/details_left.php index 6e7540050..259fa1157 100644 --- a/admin/layouts/language/details_left.php +++ b/admin/layouts/language/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/language/details_right.php b/admin/layouts/language/details_right.php index 382ba6ec0..386c4044f 100644 --- a/admin/layouts/language/details_right.php +++ b/admin/layouts/language/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/language/publishing.php b/admin/layouts/language/publishing.php index 8d79c177f..b6c0d3f1f 100644 --- a/admin/layouts/language/publishing.php +++ b/admin/layouts/language/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/language/publlshing.php b/admin/layouts/language/publlshing.php index 3dae5e08a..979e11f42 100644 --- a/admin/layouts/language/publlshing.php +++ b/admin/layouts/language/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/language_translation/details_above.php b/admin/layouts/language_translation/details_above.php index 655d19659..1af7819cb 100644 --- a/admin/layouts/language_translation/details_above.php +++ b/admin/layouts/language_translation/details_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_above.php diff --git a/admin/layouts/language_translation/details_fullwidth.php b/admin/layouts/language_translation/details_fullwidth.php index 297aeb817..3c68a0536 100644 --- a/admin/layouts/language_translation/details_fullwidth.php +++ b/admin/layouts/language_translation/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/language_translation/publishing.php b/admin/layouts/language_translation/publishing.php index 8d79c177f..b6c0d3f1f 100644 --- a/admin/layouts/language_translation/publishing.php +++ b/admin/layouts/language_translation/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/language_translation/publlshing.php b/admin/layouts/language_translation/publlshing.php index 3dae5e08a..979e11f42 100644 --- a/admin/layouts/language_translation/publlshing.php +++ b/admin/layouts/language_translation/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/layout/custom_script_fullwidth.php b/admin/layouts/layout/custom_script_fullwidth.php index 28d4abef9..6b68deade 100644 --- a/admin/layouts/layout/custom_script_fullwidth.php +++ b/admin/layouts/layout/custom_script_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_script_fullwidth.php diff --git a/admin/layouts/layout/details_fullwidth.php b/admin/layouts/layout/details_fullwidth.php index cbdfe7274..27249e024 100644 --- a/admin/layouts/layout/details_fullwidth.php +++ b/admin/layouts/layout/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/layout/details_left.php b/admin/layouts/layout/details_left.php index 3b25306df..1c99798ab 100644 --- a/admin/layouts/layout/details_left.php +++ b/admin/layouts/layout/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/layout/details_right.php b/admin/layouts/layout/details_right.php index ea28fc350..fae90925f 100644 --- a/admin/layouts/layout/details_right.php +++ b/admin/layouts/layout/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/layout/details_rightside.php b/admin/layouts/layout/details_rightside.php index aaee21bbb..0110e2439 100644 --- a/admin/layouts/layout/details_rightside.php +++ b/admin/layouts/layout/details_rightside.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_rightside.php diff --git a/admin/layouts/layout/details_under.php b/admin/layouts/layout/details_under.php index b39d6a504..5b2b24f66 100644 --- a/admin/layouts/layout/details_under.php +++ b/admin/layouts/layout/details_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_under.php diff --git a/admin/layouts/layout/publishing.php b/admin/layouts/layout/publishing.php index 8d79c177f..b6c0d3f1f 100644 --- a/admin/layouts/layout/publishing.php +++ b/admin/layouts/layout/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/layout/publlshing.php b/admin/layouts/layout/publlshing.php index 3dae5e08a..979e11f42 100644 --- a/admin/layouts/layout/publlshing.php +++ b/admin/layouts/layout/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/site_view/custom_buttons_fullwidth.php b/admin/layouts/site_view/custom_buttons_fullwidth.php index 3d898d998..4bbfa9ec5 100644 --- a/admin/layouts/site_view/custom_buttons_fullwidth.php +++ b/admin/layouts/site_view/custom_buttons_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_buttons_fullwidth.php @@ -30,6 +30,8 @@ defined('_JEXEC') or die('Restricted access'); $form = $displayData->getForm(); $fields = $displayData->get('fields') ?: array( + 'note_custom_toolbar_placeholder', + 'custom_button', 'php_controller', 'php_model' ); diff --git a/admin/layouts/site_view/custom_buttons_left.php b/admin/layouts/site_view/custom_buttons_left.php index 1c0dd2997..093c249f0 100644 --- a/admin/layouts/site_view/custom_buttons_left.php +++ b/admin/layouts/site_view/custom_buttons_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_buttons_left.php @@ -30,7 +30,6 @@ defined('_JEXEC') or die('Restricted access'); $form = $displayData->getForm(); $fields = $displayData->get('fields') ?: array( - 'button_position', 'add_custom_button' ); diff --git a/admin/layouts/site_view/custom_buttons_right.php b/admin/layouts/site_view/custom_buttons_right.php index ec75d90cd..7e7b82d32 100644 --- a/admin/layouts/site_view/custom_buttons_right.php +++ b/admin/layouts/site_view/custom_buttons_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_buttons_right.php @@ -30,8 +30,7 @@ defined('_JEXEC') or die('Restricted access'); $form = $displayData->getForm(); $fields = $displayData->get('fields') ?: array( - 'note_custom_toolbar_placeholder', - 'custom_button' + 'button_position' ); $hiddenFields = $displayData->get('hidden_fields') ?: array(); diff --git a/admin/layouts/site_view/details_above.php b/admin/layouts/site_view/details_above.php index b5e3e769a..c3abf1866 100644 --- a/admin/layouts/site_view/details_above.php +++ b/admin/layouts/site_view/details_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_above.php diff --git a/admin/layouts/site_view/details_fullwidth.php b/admin/layouts/site_view/details_fullwidth.php index 37cb6f57b..21b529eed 100644 --- a/admin/layouts/site_view/details_fullwidth.php +++ b/admin/layouts/site_view/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/site_view/details_left.php b/admin/layouts/site_view/details_left.php index 1bffb5ef9..356259a6e 100644 --- a/admin/layouts/site_view/details_left.php +++ b/admin/layouts/site_view/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/site_view/details_right.php b/admin/layouts/site_view/details_right.php index ea28fc350..fae90925f 100644 --- a/admin/layouts/site_view/details_right.php +++ b/admin/layouts/site_view/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/site_view/details_rightside.php b/admin/layouts/site_view/details_rightside.php index b017076ff..2feb0423b 100644 --- a/admin/layouts/site_view/details_rightside.php +++ b/admin/layouts/site_view/details_rightside.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_rightside.php diff --git a/admin/layouts/site_view/details_under.php b/admin/layouts/site_view/details_under.php index b39d6a504..5b2b24f66 100644 --- a/admin/layouts/site_view/details_under.php +++ b/admin/layouts/site_view/details_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_under.php diff --git a/admin/layouts/site_view/javascript_css_fullwidth.php b/admin/layouts/site_view/javascript_css_fullwidth.php index c18f7b503..7b897e9f3 100644 --- a/admin/layouts/site_view/javascript_css_fullwidth.php +++ b/admin/layouts/site_view/javascript_css_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage javascript_css_fullwidth.php diff --git a/admin/layouts/site_view/linked_components_fullwidth.php b/admin/layouts/site_view/linked_components_fullwidth.php index 7ace291f0..4c33f5016 100644 --- a/admin/layouts/site_view/linked_components_fullwidth.php +++ b/admin/layouts/site_view/linked_components_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage linked_components_fullwidth.php @@ -28,7 +28,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->vyvlinked_components; +$items = $displayData->vyulinked_components; $user = JFactory::getUser(); $id = $displayData->item->id; $edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit"; @@ -74,7 +74,7 @@ $edit = "index.php?option=com_componentbuilder&view=joomla_components&task=jooml ?> - get('core.edit')): ?> + get('joomla_component.edit')): ?> escape($item->system_name); ?> checked_out): ?> name, $item->checked_out_time, 'joomla_components.', $canCheckin); ?> diff --git a/admin/layouts/site_view/php_fullwidth.php b/admin/layouts/site_view/php_fullwidth.php index 7548721a3..9bef8eede 100644 --- a/admin/layouts/site_view/php_fullwidth.php +++ b/admin/layouts/site_view/php_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage php_fullwidth.php diff --git a/admin/layouts/site_view/publishing.php b/admin/layouts/site_view/publishing.php index 8d79c177f..b6c0d3f1f 100644 --- a/admin/layouts/site_view/publishing.php +++ b/admin/layouts/site_view/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/site_view/publlshing.php b/admin/layouts/site_view/publlshing.php index 3dae5e08a..979e11f42 100644 --- a/admin/layouts/site_view/publlshing.php +++ b/admin/layouts/site_view/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/snippet/details_above.php b/admin/layouts/snippet/details_above.php index 9b9b1dacd..d1c38ca9d 100644 --- a/admin/layouts/snippet/details_above.php +++ b/admin/layouts/snippet/details_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_above.php diff --git a/admin/layouts/snippet/details_left.php b/admin/layouts/snippet/details_left.php index 5b0d2e42e..0eefb5500 100644 --- a/admin/layouts/snippet/details_left.php +++ b/admin/layouts/snippet/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/snippet/details_right.php b/admin/layouts/snippet/details_right.php index b3998a70c..e47dc84a8 100644 --- a/admin/layouts/snippet/details_right.php +++ b/admin/layouts/snippet/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/snippet/publishing.php b/admin/layouts/snippet/publishing.php index 8d79c177f..b6c0d3f1f 100644 --- a/admin/layouts/snippet/publishing.php +++ b/admin/layouts/snippet/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/snippet/publlshing.php b/admin/layouts/snippet/publlshing.php index 3dae5e08a..979e11f42 100644 --- a/admin/layouts/snippet/publlshing.php +++ b/admin/layouts/snippet/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/template/custom_script_fullwidth.php b/admin/layouts/template/custom_script_fullwidth.php index 28d4abef9..6b68deade 100644 --- a/admin/layouts/template/custom_script_fullwidth.php +++ b/admin/layouts/template/custom_script_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_script_fullwidth.php diff --git a/admin/layouts/template/details_fullwidth.php b/admin/layouts/template/details_fullwidth.php index 462d02d3c..83df7489e 100644 --- a/admin/layouts/template/details_fullwidth.php +++ b/admin/layouts/template/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/template/details_left.php b/admin/layouts/template/details_left.php index 3b25306df..1c99798ab 100644 --- a/admin/layouts/template/details_left.php +++ b/admin/layouts/template/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/template/details_right.php b/admin/layouts/template/details_right.php index ea28fc350..fae90925f 100644 --- a/admin/layouts/template/details_right.php +++ b/admin/layouts/template/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/template/details_rightside.php b/admin/layouts/template/details_rightside.php index aaee21bbb..0110e2439 100644 --- a/admin/layouts/template/details_rightside.php +++ b/admin/layouts/template/details_rightside.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_rightside.php diff --git a/admin/layouts/template/details_under.php b/admin/layouts/template/details_under.php index b39d6a504..5b2b24f66 100644 --- a/admin/layouts/template/details_under.php +++ b/admin/layouts/template/details_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_under.php diff --git a/admin/layouts/template/publishing.php b/admin/layouts/template/publishing.php index 8d79c177f..b6c0d3f1f 100644 --- a/admin/layouts/template/publishing.php +++ b/admin/layouts/template/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/template/publlshing.php b/admin/layouts/template/publlshing.php index 3dae5e08a..979e11f42 100644 --- a/admin/layouts/template/publlshing.php +++ b/admin/layouts/template/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/models/admin_fields.php b/admin/models/admin_fields.php new file mode 100644 index 000000000..6578a1abb --- /dev/null +++ b/admin/models/admin_fields.php @@ -0,0 +1,902 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +// import Joomla modelform library +jimport('joomla.application.component.modeladmin'); + +/** + * Componentbuilder Admin_fields Model + */ +class ComponentbuilderModelAdmin_fields extends JModelAdmin +{ + /** + * @var string The prefix to use with controller messages. + * @since 1.6 + */ + protected $text_prefix = 'COM_COMPONENTBUILDER'; + + /** + * The type alias for this content type. + * + * @var string + * @since 3.2 + */ + public $typeAlias = 'com_componentbuilder.admin_fields'; + + /** + * Returns a Table object, always creating it + * + * @param type $type The table type to instantiate + * @param string $prefix A prefix for the table class name. Optional. + * @param array $config Configuration array for model. Optional. + * + * @return JTable A database object + * + * @since 1.6 + */ + public function getTable($type = 'admin_fields', $prefix = 'ComponentbuilderTable', $config = array()) + { + return JTable::getInstance($type, $prefix, $config); + } + + /** + * Method to get a single record. + * + * @param integer $pk The id of the primary key. + * + * @return mixed Object on success, false on failure. + * + * @since 1.6 + */ + public function getItem($pk = null) + { + if ($item = parent::getItem($pk)) + { + if (!empty($item->params)) + { + // Convert the params field to an array. + $registry = new Registry; + $registry->loadString($item->params); + $item->params = $registry->toArray(); + } + + if (!empty($item->metadata)) + { + // Convert the metadata field to an array. + $registry = new Registry; + $registry->loadString($item->metadata); + $item->metadata = $registry->toArray(); + } + + if (!empty($item->addfields)) + { + // Convert the addfields field to an array. + $addfields = new Registry; + $addfields->loadString($item->addfields); + $item->addfields = $addfields->toArray(); + } + + // check what type of field array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($item->addfields) && isset($item->addfields['field'])) + { + $bucket = array(); + foreach($item->addfields as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket['addfields'.$nr][$option] = $value; + } + } + $item->addfields = $bucket; + // update the fields in the DB + $fieldsUpdate = new stdClass(); + $fieldsUpdate->id = (int) $item->id; + $fieldsUpdate->addfields = json_encode($bucket); + $this->_db->updateObject('#__componentbuilder_admin_fields', $fieldsUpdate, 'id'); + } + + if (!empty($item->id)) + { + $item->tags = new JHelperTags; + $item->tags->getTagIds($item->id, 'com_componentbuilder.admin_fields'); + } + } + + return $item; + } + + /** + * Method to get the record form. + * + * @param array $data Data for the form. + * @param boolean $loadData True if the form is to load its own data (default case), false if not. + * + * @return mixed A JForm object on success, false on failure + * + * @since 1.6 + */ + public function getForm($data = array(), $loadData = true) + { + // Get the form. + $form = $this->loadForm('com_componentbuilder.admin_fields', 'admin_fields', array('control' => 'jform', 'load_data' => $loadData)); + + if (empty($form)) + { + return false; + } + + $jinput = JFactory::getApplication()->input; + + // The front end calls this model and uses a_id to avoid id clashes so we need to check for that first. + if ($jinput->get('a_id')) + { + $id = $jinput->get('a_id', 0, 'INT'); + } + // The back end uses id so we use that the rest of the time and set it to 0 by default. + else + { + $id = $jinput->get('id', 0, 'INT'); + } + + $user = JFactory::getUser(); + + // Check for existing item. + // Modify the form based on Edit State access controls. + if ($id != 0 && (!$user->authorise('admin_fields.edit.state', 'com_componentbuilder.admin_fields.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_fields.edit.state', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('ordering', 'disabled', 'true'); + $form->setFieldAttribute('published', 'disabled', 'true'); + // Disable fields while saving. + $form->setFieldAttribute('ordering', 'filter', 'unset'); + $form->setFieldAttribute('published', 'filter', 'unset'); + } + // If this is a new item insure the greated by is set. + if (0 == $id) + { + // Set the created_by to this user + $form->setValue('created_by', null, $user->id); + } + // Modify the form based on Edit Creaded By access controls. + if ($id != 0 && (!$user->authorise('admin_fields.edit.created_by', 'com_componentbuilder.admin_fields.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_fields.edit.created_by', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('created_by', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('created_by', 'readonly', 'true'); + // Disable fields while saving. + $form->setFieldAttribute('created_by', 'filter', 'unset'); + } + // Modify the form based on Edit Creaded Date access controls. + if ($id != 0 && (!$user->authorise('admin_fields.edit.created', 'com_componentbuilder.admin_fields.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_fields.edit.created', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('created', 'disabled', 'true'); + // Disable fields while saving. + $form->setFieldAttribute('created', 'filter', 'unset'); + } + // Only load these values if no id is found + if (0 == $id) + { + // Set redirected field name + $redirectedField = $jinput->get('ref', null, 'STRING'); + // Set redirected field value + $redirectedValue = $jinput->get('refid', 0, 'INT'); + if (0 != $redirectedValue && $redirectedField) + { + // Now set the local-redirected field default value + $form->setValue($redirectedField, null, $redirectedValue); + } + } + + return $form; + } + + /** + * Method to get the script that have to be included on the form + * + * @return string script files + */ + public function getScript() + { + return 'administrator/components/com_componentbuilder/models/forms/admin_fields.js'; + } + + /** + * Method to test whether a record can be deleted. + * + * @param object $record A record object. + * + * @return boolean True if allowed to delete the record. Defaults to the permission set in the component. + * + * @since 1.6 + */ + protected function canDelete($record) + { + if (!empty($record->id)) + { + if ($record->published != -2) + { + return; + } + + $user = JFactory::getUser(); + // The record has been set. Check the record permissions. + return $user->authorise('admin_fields.delete', 'com_componentbuilder.admin_fields.' . (int) $record->id); + } + return false; + } + + /** + * Method to test whether a record can have its state edited. + * + * @param object $record A record object. + * + * @return boolean True if allowed to change the state of the record. Defaults to the permission set in the component. + * + * @since 1.6 + */ + protected function canEditState($record) + { + $user = JFactory::getUser(); + $recordId = (!empty($record->id)) ? $record->id : 0; + + if ($recordId) + { + // The record has been set. Check the record permissions. + $permission = $user->authorise('admin_fields.edit.state', 'com_componentbuilder.admin_fields.' . (int) $recordId); + if (!$permission && !is_null($permission)) + { + return false; + } + } + // In the absense of better information, revert to the component permissions. + return $user->authorise('admin_fields.edit.state', 'com_componentbuilder'); + } + + /** + * Method override to check if you can edit an existing record. + * + * @param array $data An array of input data. + * @param string $key The name of the key for the primary key. + * + * @return boolean + * @since 2.5 + */ + protected function allowEdit($data = array(), $key = 'id') + { + // Check specific edit permission then general edit permission. + $user = JFactory::getUser(); + + return $user->authorise('admin_fields.edit', 'com_componentbuilder.admin_fields.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('admin_fields.edit', 'com_componentbuilder'); + } + + /** + * Prepare and sanitise the table data prior to saving. + * + * @param JTable $table A JTable object. + * + * @return void + * + * @since 1.6 + */ + protected function prepareTable($table) + { + $date = JFactory::getDate(); + $user = JFactory::getUser(); + + if (isset($table->name)) + { + $table->name = htmlspecialchars_decode($table->name, ENT_QUOTES); + } + + if (isset($table->alias) && empty($table->alias)) + { + $table->generateAlias(); + } + + if (empty($table->id)) + { + $table->created = $date->toSql(); + // set the user + if ($table->created_by == 0 || empty($table->created_by)) + { + $table->created_by = $user->id; + } + // Set ordering to the last item if not set + if (empty($table->ordering)) + { + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select('MAX(ordering)') + ->from($db->quoteName('#__componentbuilder_admin_fields')); + $db->setQuery($query); + $max = $db->loadResult(); + + $table->ordering = $max + 1; + } + } + else + { + $table->modified = $date->toSql(); + $table->modified_by = $user->id; + } + + if (!empty($table->id)) + { + // Increment the items version number. + $table->version++; + } + } + + /** + * Method to get the data that should be injected in the form. + * + * @return mixed The data for the form. + * + * @since 1.6 + */ + protected function loadFormData() + { + // Check the session for previously entered form data. + $data = JFactory::getApplication()->getUserState('com_componentbuilder.edit.admin_fields.data', array()); + + if (empty($data)) + { + $data = $this->getItem(); + } + + return $data; + } + + /** + * Method to get the unique fields of this table. + * + * @return mixed An array of field names, boolean false if none is set. + * + * @since 3.0 + */ + protected function getUniqeFields() + { + return false; + } + + /** + * Method to delete one or more records. + * + * @param array &$pks An array of record primary keys. + * + * @return boolean True if successful, false if an error occurs. + * + * @since 12.2 + */ + public function delete(&$pks) + { + if (!parent::delete($pks)) + { + return false; + } + + return true; + } + + /** + * Method to change the published state of one or more records. + * + * @param array &$pks A list of the primary keys to change. + * @param integer $value The value of the published state. + * + * @return boolean True on success. + * + * @since 12.2 + */ + public function publish(&$pks, $value = 1) + { + if (!parent::publish($pks, $value)) + { + return false; + } + + return true; + } + + /** + * Method to perform batch operations on an item or a set of items. + * + * @param array $commands An array of commands to perform. + * @param array $pks An array of item ids. + * @param array $contexts An array of item contexts. + * + * @return boolean Returns true on success, false on failure. + * + * @since 12.2 + */ + public function batch($commands, $pks, $contexts) + { + // Sanitize ids. + $pks = array_unique($pks); + JArrayHelper::toInteger($pks); + + // Remove any values of zero. + if (array_search(0, $pks, true)) + { + unset($pks[array_search(0, $pks, true)]); + } + + if (empty($pks)) + { + $this->setError(JText::_('JGLOBAL_NO_ITEM_SELECTED')); + return false; + } + + $done = false; + + // Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = ComponentbuilderHelper::getActions('admin_fields'); + $this->batchSet = true; + + if (!$this->canDo->get('core.batch')) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION')); + return false; + } + + if ($this->type == false) + { + $type = new JUcmType; + $this->type = $type->getTypeByAlias($this->typeAlias); + } + + $this->tagsObserver = $this->table->getObserverOfClass('JTableObserverTags'); + + if (!empty($commands['move_copy'])) + { + $cmd = JArrayHelper::getValue($commands, 'move_copy', 'c'); + + if ($cmd == 'c') + { + $result = $this->batchCopy($commands, $pks, $contexts); + + if (is_array($result)) + { + foreach ($result as $old => $new) + { + $contexts[$new] = $contexts[$old]; + } + $pks = array_values($result); + } + else + { + return false; + } + } + elseif ($cmd == 'm' && !$this->batchMove($commands, $pks, $contexts)) + { + return false; + } + + $done = true; + } + + if (!$done) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION')); + + return false; + } + + // Clear the cache + $this->cleanCache(); + + return true; + } + + /** + * Batch copy items to a new category or current. + * + * @param integer $values The new values. + * @param array $pks An array of row IDs. + * @param array $contexts An array of item contexts. + * + * @return mixed An array of new IDs on success, boolean false on failure. + * + * @since 12.2 + */ + protected function batchCopy($values, $pks, $contexts) + { + if (empty($this->batchSet)) + { + // Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = ComponentbuilderHelper::getActions('admin_fields'); + } + + if (!$this->canDo->get('admin_fields.create') && !$this->canDo->get('admin_fields.batch')) + { + return false; + } + + // get list of uniqe fields + $uniqeFields = $this->getUniqeFields(); + // remove move_copy from array + unset($values['move_copy']); + + // make sure published is set + if (!isset($values['published'])) + { + $values['published'] = 0; + } + elseif (isset($values['published']) && !$this->canDo->get('admin_fields.edit.state')) + { + $values['published'] = 0; + } + + $newIds = array(); + + // Parent exists so let's proceed + while (!empty($pks)) + { + // Pop the first ID off the stack + $pk = array_shift($pks); + + $this->table->reset(); + + // only allow copy if user may edit this item. + + if (!$this->user->authorise('admin_fields.edit', $contexts[$pk])) + + { + + // Not fatal error + + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + + continue; + + } + + // Check that the row actually exists + if (!$this->table->load($pk)) + { + if ($error = $this->table->getError()) + { + // Fatal error + $this->setError($error); + + return false; + } + else + { + // Not fatal error + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + continue; + } + } + + $this->table->admin_view = $this->generateUniqe('admin_view',$this->table->admin_view); + + // insert all set values + if (ComponentbuilderHelper::checkArray($values)) + { + foreach ($values as $key => $value) + { + if (strlen($value) > 0 && isset($this->table->$key)) + { + $this->table->$key = $value; + } + } + } + + // update all uniqe fields + if (ComponentbuilderHelper::checkArray($uniqeFields)) + { + foreach ($uniqeFields as $uniqeField) + { + $this->table->$uniqeField = $this->generateUniqe($uniqeField,$this->table->$uniqeField); + } + } + + // Reset the ID because we are making a copy + $this->table->id = 0; + + // TODO: Deal with ordering? + // $this->table->ordering = 1; + + // Check the row. + if (!$this->table->check()) + { + $this->setError($this->table->getError()); + + return false; + } + + if (!empty($this->type)) + { + $this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table); + } + + // Store the row. + if (!$this->table->store()) + { + $this->setError($this->table->getError()); + + return false; + } + + // Get the new item ID + $newId = $this->table->get('id'); + + // Add the new ID to the array + $newIds[$pk] = $newId; + } + + // Clean the cache + $this->cleanCache(); + + return $newIds; + } + + /** + * Batch move items to a new category + * + * @param integer $value The new category ID. + * @param array $pks An array of row IDs. + * @param array $contexts An array of item contexts. + * + * @return boolean True if successful, false otherwise and internal error is set. + * + * @since 12.2 + */ + protected function batchMove($values, $pks, $contexts) + { + if (empty($this->batchSet)) + { + // Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = ComponentbuilderHelper::getActions('admin_fields'); + } + + if (!$this->canDo->get('admin_fields.edit') && !$this->canDo->get('admin_fields.batch')) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); + return false; + } + + // make sure published only updates if user has the permission. + if (isset($values['published']) && !$this->canDo->get('admin_fields.edit.state')) + { + unset($values['published']); + } + // remove move_copy from array + unset($values['move_copy']); + + // Parent exists so we proceed + foreach ($pks as $pk) + { + if (!$this->user->authorise('admin_fields.edit', $contexts[$pk])) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); + + return false; + } + + // Check that the row actually exists + if (!$this->table->load($pk)) + { + if ($error = $this->table->getError()) + { + // Fatal error + $this->setError($error); + + return false; + } + else + { + // Not fatal error + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + continue; + } + } + + // insert all set values. + if (ComponentbuilderHelper::checkArray($values)) + { + foreach ($values as $key => $value) + { + // Do special action for access. + if ('access' === $key && strlen($value) > 0) + { + $this->table->$key = $value; + } + elseif (strlen($value) > 0 && isset($this->table->$key)) + { + $this->table->$key = $value; + } + } + } + + + // Check the row. + if (!$this->table->check()) + { + $this->setError($this->table->getError()); + + return false; + } + + if (!empty($this->type)) + { + $this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table); + } + + // Store the row. + if (!$this->table->store()) + { + $this->setError($this->table->getError()); + + return false; + } + } + + // Clean the cache + $this->cleanCache(); + + return true; + } + + /** + * Method to save the form data. + * + * @param array $data The form data. + * + * @return boolean True on success. + * + * @since 1.6 + */ + public function save($data) + { + $input = JFactory::getApplication()->input; + $filter = JFilterInput::getInstance(); + + // set the metadata to the Item Data + if (isset($data['metadata']) && isset($data['metadata']['author'])) + { + $data['metadata']['author'] = $filter->clean($data['metadata']['author'], 'TRIM'); + + $metadata = new JRegistry; + $metadata->loadArray($data['metadata']); + $data['metadata'] = (string) $metadata; + } + + // Set the addfields items to data. + if (isset($data['addfields']) && is_array($data['addfields'])) + { + $addfields = new JRegistry; + $addfields->loadArray($data['addfields']); + $data['addfields'] = (string) $addfields; + } + elseif (!isset($data['addfields'])) + { + // Set the empty addfields to data + $data['addfields'] = ''; + } + + // Set the Params Items to data + if (isset($data['params']) && is_array($data['params'])) + { + $params = new JRegistry; + $params->loadArray($data['params']); + $data['params'] = (string) $params; + } + + // Alter the uniqe field for save as copy + if ($input->get('task') === 'save2copy') + { + // Automatic handling of other uniqe fields + $uniqeFields = $this->getUniqeFields(); + if (ComponentbuilderHelper::checkArray($uniqeFields)) + { + foreach ($uniqeFields as $uniqeField) + { + $data[$uniqeField] = $this->generateUniqe($uniqeField,$data[$uniqeField]); + } + } + } + + if (parent::save($data)) + { + return true; + } + return false; + } + + /** + * Method to generate a uniqe value. + * + * @param string $field name. + * @param string $value data. + * + * @return string New value. + * + * @since 3.0 + */ + protected function generateUniqe($field,$value) + { + + // set field value uniqe + $table = $this->getTable(); + + while ($table->load(array($field => $value))) + { + $value = JString::increment($value); + } + + return $value; + } + + /** + * Method to change the title & alias. + * + * @param string $title The title. + * + * @return array Contains the modified title and alias. + * + */ + protected function _generateNewTitle($title) + { + + // Alter the title + $table = $this->getTable(); + + while ($table->load(array('title' => $title))) + { + $title = JString::increment($title); + } + + return $title; + } +} diff --git a/admin/models/admin_fields_conditions.php b/admin/models/admin_fields_conditions.php new file mode 100644 index 000000000..5cad61656 --- /dev/null +++ b/admin/models/admin_fields_conditions.php @@ -0,0 +1,902 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +// import Joomla modelform library +jimport('joomla.application.component.modeladmin'); + +/** + * Componentbuilder Admin_fields_conditions Model + */ +class ComponentbuilderModelAdmin_fields_conditions extends JModelAdmin +{ + /** + * @var string The prefix to use with controller messages. + * @since 1.6 + */ + protected $text_prefix = 'COM_COMPONENTBUILDER'; + + /** + * The type alias for this content type. + * + * @var string + * @since 3.2 + */ + public $typeAlias = 'com_componentbuilder.admin_fields_conditions'; + + /** + * Returns a Table object, always creating it + * + * @param type $type The table type to instantiate + * @param string $prefix A prefix for the table class name. Optional. + * @param array $config Configuration array for model. Optional. + * + * @return JTable A database object + * + * @since 1.6 + */ + public function getTable($type = 'admin_fields_conditions', $prefix = 'ComponentbuilderTable', $config = array()) + { + return JTable::getInstance($type, $prefix, $config); + } + + /** + * Method to get a single record. + * + * @param integer $pk The id of the primary key. + * + * @return mixed Object on success, false on failure. + * + * @since 1.6 + */ + public function getItem($pk = null) + { + if ($item = parent::getItem($pk)) + { + if (!empty($item->params)) + { + // Convert the params field to an array. + $registry = new Registry; + $registry->loadString($item->params); + $item->params = $registry->toArray(); + } + + if (!empty($item->metadata)) + { + // Convert the metadata field to an array. + $registry = new Registry; + $registry->loadString($item->metadata); + $item->metadata = $registry->toArray(); + } + + if (!empty($item->addconditions)) + { + // Convert the addconditions field to an array. + $addconditions = new Registry; + $addconditions->loadString($item->addconditions); + $item->addconditions = $addconditions->toArray(); + } + + // check what type of conditions array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($item->addconditions) && isset($item->addconditions['target_field'])) + { + $bucket = array(); + foreach($item->addconditions as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket['addconditions'.$nr][$option] = $value; + } + } + $item->addconditions = $bucket; + // update the fields + $conditionsUpdate = new stdClass(); + $conditionsUpdate->id = (int) $item->id; + $conditionsUpdate->addconditions = json_encode($bucket); + $this->_db->updateObject('#__componentbuilder_admin_fields_conditions', $conditionsUpdate, 'id'); + } + + if (!empty($item->id)) + { + $item->tags = new JHelperTags; + $item->tags->getTagIds($item->id, 'com_componentbuilder.admin_fields_conditions'); + } + } + + return $item; + } + + /** + * Method to get the record form. + * + * @param array $data Data for the form. + * @param boolean $loadData True if the form is to load its own data (default case), false if not. + * + * @return mixed A JForm object on success, false on failure + * + * @since 1.6 + */ + public function getForm($data = array(), $loadData = true) + { + // Get the form. + $form = $this->loadForm('com_componentbuilder.admin_fields_conditions', 'admin_fields_conditions', array('control' => 'jform', 'load_data' => $loadData)); + + if (empty($form)) + { + return false; + } + + $jinput = JFactory::getApplication()->input; + + // The front end calls this model and uses a_id to avoid id clashes so we need to check for that first. + if ($jinput->get('a_id')) + { + $id = $jinput->get('a_id', 0, 'INT'); + } + // The back end uses id so we use that the rest of the time and set it to 0 by default. + else + { + $id = $jinput->get('id', 0, 'INT'); + } + + $user = JFactory::getUser(); + + // Check for existing item. + // Modify the form based on Edit State access controls. + if ($id != 0 && (!$user->authorise('admin_fields_conditions.edit.state', 'com_componentbuilder.admin_fields_conditions.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_fields_conditions.edit.state', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('ordering', 'disabled', 'true'); + $form->setFieldAttribute('published', 'disabled', 'true'); + // Disable fields while saving. + $form->setFieldAttribute('ordering', 'filter', 'unset'); + $form->setFieldAttribute('published', 'filter', 'unset'); + } + // If this is a new item insure the greated by is set. + if (0 == $id) + { + // Set the created_by to this user + $form->setValue('created_by', null, $user->id); + } + // Modify the form based on Edit Creaded By access controls. + if ($id != 0 && (!$user->authorise('admin_fields_conditions.edit.created_by', 'com_componentbuilder.admin_fields_conditions.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_fields_conditions.edit.created_by', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('created_by', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('created_by', 'readonly', 'true'); + // Disable fields while saving. + $form->setFieldAttribute('created_by', 'filter', 'unset'); + } + // Modify the form based on Edit Creaded Date access controls. + if ($id != 0 && (!$user->authorise('admin_fields_conditions.edit.created', 'com_componentbuilder.admin_fields_conditions.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_fields_conditions.edit.created', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('created', 'disabled', 'true'); + // Disable fields while saving. + $form->setFieldAttribute('created', 'filter', 'unset'); + } + // Only load these values if no id is found + if (0 == $id) + { + // Set redirected field name + $redirectedField = $jinput->get('ref', null, 'STRING'); + // Set redirected field value + $redirectedValue = $jinput->get('refid', 0, 'INT'); + if (0 != $redirectedValue && $redirectedField) + { + // Now set the local-redirected field default value + $form->setValue($redirectedField, null, $redirectedValue); + } + } + + return $form; + } + + /** + * Method to get the script that have to be included on the form + * + * @return string script files + */ + public function getScript() + { + return 'administrator/components/com_componentbuilder/models/forms/admin_fields_conditions.js'; + } + + /** + * Method to test whether a record can be deleted. + * + * @param object $record A record object. + * + * @return boolean True if allowed to delete the record. Defaults to the permission set in the component. + * + * @since 1.6 + */ + protected function canDelete($record) + { + if (!empty($record->id)) + { + if ($record->published != -2) + { + return; + } + + $user = JFactory::getUser(); + // The record has been set. Check the record permissions. + return $user->authorise('admin_fields_conditions.delete', 'com_componentbuilder.admin_fields_conditions.' . (int) $record->id); + } + return false; + } + + /** + * Method to test whether a record can have its state edited. + * + * @param object $record A record object. + * + * @return boolean True if allowed to change the state of the record. Defaults to the permission set in the component. + * + * @since 1.6 + */ + protected function canEditState($record) + { + $user = JFactory::getUser(); + $recordId = (!empty($record->id)) ? $record->id : 0; + + if ($recordId) + { + // The record has been set. Check the record permissions. + $permission = $user->authorise('admin_fields_conditions.edit.state', 'com_componentbuilder.admin_fields_conditions.' . (int) $recordId); + if (!$permission && !is_null($permission)) + { + return false; + } + } + // In the absense of better information, revert to the component permissions. + return $user->authorise('admin_fields_conditions.edit.state', 'com_componentbuilder'); + } + + /** + * Method override to check if you can edit an existing record. + * + * @param array $data An array of input data. + * @param string $key The name of the key for the primary key. + * + * @return boolean + * @since 2.5 + */ + protected function allowEdit($data = array(), $key = 'id') + { + // Check specific edit permission then general edit permission. + $user = JFactory::getUser(); + + return $user->authorise('admin_fields_conditions.edit', 'com_componentbuilder.admin_fields_conditions.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('admin_fields_conditions.edit', 'com_componentbuilder'); + } + + /** + * Prepare and sanitise the table data prior to saving. + * + * @param JTable $table A JTable object. + * + * @return void + * + * @since 1.6 + */ + protected function prepareTable($table) + { + $date = JFactory::getDate(); + $user = JFactory::getUser(); + + if (isset($table->name)) + { + $table->name = htmlspecialchars_decode($table->name, ENT_QUOTES); + } + + if (isset($table->alias) && empty($table->alias)) + { + $table->generateAlias(); + } + + if (empty($table->id)) + { + $table->created = $date->toSql(); + // set the user + if ($table->created_by == 0 || empty($table->created_by)) + { + $table->created_by = $user->id; + } + // Set ordering to the last item if not set + if (empty($table->ordering)) + { + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select('MAX(ordering)') + ->from($db->quoteName('#__componentbuilder_admin_fields_conditions')); + $db->setQuery($query); + $max = $db->loadResult(); + + $table->ordering = $max + 1; + } + } + else + { + $table->modified = $date->toSql(); + $table->modified_by = $user->id; + } + + if (!empty($table->id)) + { + // Increment the items version number. + $table->version++; + } + } + + /** + * Method to get the data that should be injected in the form. + * + * @return mixed The data for the form. + * + * @since 1.6 + */ + protected function loadFormData() + { + // Check the session for previously entered form data. + $data = JFactory::getApplication()->getUserState('com_componentbuilder.edit.admin_fields_conditions.data', array()); + + if (empty($data)) + { + $data = $this->getItem(); + } + + return $data; + } + + /** + * Method to get the unique fields of this table. + * + * @return mixed An array of field names, boolean false if none is set. + * + * @since 3.0 + */ + protected function getUniqeFields() + { + return false; + } + + /** + * Method to delete one or more records. + * + * @param array &$pks An array of record primary keys. + * + * @return boolean True if successful, false if an error occurs. + * + * @since 12.2 + */ + public function delete(&$pks) + { + if (!parent::delete($pks)) + { + return false; + } + + return true; + } + + /** + * Method to change the published state of one or more records. + * + * @param array &$pks A list of the primary keys to change. + * @param integer $value The value of the published state. + * + * @return boolean True on success. + * + * @since 12.2 + */ + public function publish(&$pks, $value = 1) + { + if (!parent::publish($pks, $value)) + { + return false; + } + + return true; + } + + /** + * Method to perform batch operations on an item or a set of items. + * + * @param array $commands An array of commands to perform. + * @param array $pks An array of item ids. + * @param array $contexts An array of item contexts. + * + * @return boolean Returns true on success, false on failure. + * + * @since 12.2 + */ + public function batch($commands, $pks, $contexts) + { + // Sanitize ids. + $pks = array_unique($pks); + JArrayHelper::toInteger($pks); + + // Remove any values of zero. + if (array_search(0, $pks, true)) + { + unset($pks[array_search(0, $pks, true)]); + } + + if (empty($pks)) + { + $this->setError(JText::_('JGLOBAL_NO_ITEM_SELECTED')); + return false; + } + + $done = false; + + // Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = ComponentbuilderHelper::getActions('admin_fields_conditions'); + $this->batchSet = true; + + if (!$this->canDo->get('core.batch')) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION')); + return false; + } + + if ($this->type == false) + { + $type = new JUcmType; + $this->type = $type->getTypeByAlias($this->typeAlias); + } + + $this->tagsObserver = $this->table->getObserverOfClass('JTableObserverTags'); + + if (!empty($commands['move_copy'])) + { + $cmd = JArrayHelper::getValue($commands, 'move_copy', 'c'); + + if ($cmd == 'c') + { + $result = $this->batchCopy($commands, $pks, $contexts); + + if (is_array($result)) + { + foreach ($result as $old => $new) + { + $contexts[$new] = $contexts[$old]; + } + $pks = array_values($result); + } + else + { + return false; + } + } + elseif ($cmd == 'm' && !$this->batchMove($commands, $pks, $contexts)) + { + return false; + } + + $done = true; + } + + if (!$done) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION')); + + return false; + } + + // Clear the cache + $this->cleanCache(); + + return true; + } + + /** + * Batch copy items to a new category or current. + * + * @param integer $values The new values. + * @param array $pks An array of row IDs. + * @param array $contexts An array of item contexts. + * + * @return mixed An array of new IDs on success, boolean false on failure. + * + * @since 12.2 + */ + protected function batchCopy($values, $pks, $contexts) + { + if (empty($this->batchSet)) + { + // Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = ComponentbuilderHelper::getActions('admin_fields_conditions'); + } + + if (!$this->canDo->get('admin_fields_conditions.create') && !$this->canDo->get('admin_fields_conditions.batch')) + { + return false; + } + + // get list of uniqe fields + $uniqeFields = $this->getUniqeFields(); + // remove move_copy from array + unset($values['move_copy']); + + // make sure published is set + if (!isset($values['published'])) + { + $values['published'] = 0; + } + elseif (isset($values['published']) && !$this->canDo->get('admin_fields_conditions.edit.state')) + { + $values['published'] = 0; + } + + $newIds = array(); + + // Parent exists so let's proceed + while (!empty($pks)) + { + // Pop the first ID off the stack + $pk = array_shift($pks); + + $this->table->reset(); + + // only allow copy if user may edit this item. + + if (!$this->user->authorise('admin_fields_conditions.edit', $contexts[$pk])) + + { + + // Not fatal error + + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + + continue; + + } + + // Check that the row actually exists + if (!$this->table->load($pk)) + { + if ($error = $this->table->getError()) + { + // Fatal error + $this->setError($error); + + return false; + } + else + { + // Not fatal error + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + continue; + } + } + + $this->table->admin_view = $this->generateUniqe('admin_view',$this->table->admin_view); + + // insert all set values + if (ComponentbuilderHelper::checkArray($values)) + { + foreach ($values as $key => $value) + { + if (strlen($value) > 0 && isset($this->table->$key)) + { + $this->table->$key = $value; + } + } + } + + // update all uniqe fields + if (ComponentbuilderHelper::checkArray($uniqeFields)) + { + foreach ($uniqeFields as $uniqeField) + { + $this->table->$uniqeField = $this->generateUniqe($uniqeField,$this->table->$uniqeField); + } + } + + // Reset the ID because we are making a copy + $this->table->id = 0; + + // TODO: Deal with ordering? + // $this->table->ordering = 1; + + // Check the row. + if (!$this->table->check()) + { + $this->setError($this->table->getError()); + + return false; + } + + if (!empty($this->type)) + { + $this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table); + } + + // Store the row. + if (!$this->table->store()) + { + $this->setError($this->table->getError()); + + return false; + } + + // Get the new item ID + $newId = $this->table->get('id'); + + // Add the new ID to the array + $newIds[$pk] = $newId; + } + + // Clean the cache + $this->cleanCache(); + + return $newIds; + } + + /** + * Batch move items to a new category + * + * @param integer $value The new category ID. + * @param array $pks An array of row IDs. + * @param array $contexts An array of item contexts. + * + * @return boolean True if successful, false otherwise and internal error is set. + * + * @since 12.2 + */ + protected function batchMove($values, $pks, $contexts) + { + if (empty($this->batchSet)) + { + // Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = ComponentbuilderHelper::getActions('admin_fields_conditions'); + } + + if (!$this->canDo->get('admin_fields_conditions.edit') && !$this->canDo->get('admin_fields_conditions.batch')) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); + return false; + } + + // make sure published only updates if user has the permission. + if (isset($values['published']) && !$this->canDo->get('admin_fields_conditions.edit.state')) + { + unset($values['published']); + } + // remove move_copy from array + unset($values['move_copy']); + + // Parent exists so we proceed + foreach ($pks as $pk) + { + if (!$this->user->authorise('admin_fields_conditions.edit', $contexts[$pk])) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); + + return false; + } + + // Check that the row actually exists + if (!$this->table->load($pk)) + { + if ($error = $this->table->getError()) + { + // Fatal error + $this->setError($error); + + return false; + } + else + { + // Not fatal error + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + continue; + } + } + + // insert all set values. + if (ComponentbuilderHelper::checkArray($values)) + { + foreach ($values as $key => $value) + { + // Do special action for access. + if ('access' === $key && strlen($value) > 0) + { + $this->table->$key = $value; + } + elseif (strlen($value) > 0 && isset($this->table->$key)) + { + $this->table->$key = $value; + } + } + } + + + // Check the row. + if (!$this->table->check()) + { + $this->setError($this->table->getError()); + + return false; + } + + if (!empty($this->type)) + { + $this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table); + } + + // Store the row. + if (!$this->table->store()) + { + $this->setError($this->table->getError()); + + return false; + } + } + + // Clean the cache + $this->cleanCache(); + + return true; + } + + /** + * Method to save the form data. + * + * @param array $data The form data. + * + * @return boolean True on success. + * + * @since 1.6 + */ + public function save($data) + { + $input = JFactory::getApplication()->input; + $filter = JFilterInput::getInstance(); + + // set the metadata to the Item Data + if (isset($data['metadata']) && isset($data['metadata']['author'])) + { + $data['metadata']['author'] = $filter->clean($data['metadata']['author'], 'TRIM'); + + $metadata = new JRegistry; + $metadata->loadArray($data['metadata']); + $data['metadata'] = (string) $metadata; + } + + // Set the addconditions items to data. + if (isset($data['addconditions']) && is_array($data['addconditions'])) + { + $addconditions = new JRegistry; + $addconditions->loadArray($data['addconditions']); + $data['addconditions'] = (string) $addconditions; + } + elseif (!isset($data['addconditions'])) + { + // Set the empty addconditions to data + $data['addconditions'] = ''; + } + + // Set the Params Items to data + if (isset($data['params']) && is_array($data['params'])) + { + $params = new JRegistry; + $params->loadArray($data['params']); + $data['params'] = (string) $params; + } + + // Alter the uniqe field for save as copy + if ($input->get('task') === 'save2copy') + { + // Automatic handling of other uniqe fields + $uniqeFields = $this->getUniqeFields(); + if (ComponentbuilderHelper::checkArray($uniqeFields)) + { + foreach ($uniqeFields as $uniqeField) + { + $data[$uniqeField] = $this->generateUniqe($uniqeField,$data[$uniqeField]); + } + } + } + + if (parent::save($data)) + { + return true; + } + return false; + } + + /** + * Method to generate a uniqe value. + * + * @param string $field name. + * @param string $value data. + * + * @return string New value. + * + * @since 3.0 + */ + protected function generateUniqe($field,$value) + { + + // set field value uniqe + $table = $this->getTable(); + + while ($table->load(array($field => $value))) + { + $value = JString::increment($value); + } + + return $value; + } + + /** + * Method to change the title & alias. + * + * @param string $title The title. + * + * @return array Contains the modified title and alias. + * + */ + protected function _generateNewTitle($title) + { + + // Alter the title + $table = $this->getTable(); + + while ($table->load(array('title' => $title))) + { + $title = JString::increment($title); + } + + return $title; + } +} diff --git a/admin/models/admin_view.php b/admin/models/admin_view.php index ccf3a27fe..5878e6f11 100644 --- a/admin/models/admin_view.php +++ b/admin/models/admin_view.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 114 of this MVC - @build 28th August, 2017 + @version @update number 192 of this MVC + @build 16th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin_view.php @@ -64,6 +64,11 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin public function getTable($type = 'admin_view', $prefix = 'ComponentbuilderTable', $config = array()) { return JTable::getInstance($type, $prefix, $config); + } + + public function getVDM() + { + return $this->vastDevMod; } /** @@ -95,6 +100,60 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $item->metadata = $registry->toArray(); } + if (!empty($item->addpermissions)) + { + // Convert the addpermissions field to an array. + $addpermissions = new Registry; + $addpermissions->loadString($item->addpermissions); + $item->addpermissions = $addpermissions->toArray(); + } + + if (!empty($item->addtabs)) + { + // Convert the addtabs field to an array. + $addtabs = new Registry; + $addtabs->loadString($item->addtabs); + $item->addtabs = $addtabs->toArray(); + } + + if (!empty($item->addlinked_views)) + { + // Convert the addlinked_views field to an array. + $addlinked_views = new Registry; + $addlinked_views->loadString($item->addlinked_views); + $item->addlinked_views = $addlinked_views->toArray(); + } + + if (!empty($item->custom_button)) + { + // Convert the custom_button field to an array. + $custom_button = new Registry; + $custom_button->loadString($item->custom_button); + $item->custom_button = $custom_button->toArray(); + } + + if (!empty($item->addtables)) + { + // Convert the addtables field to an array. + $addtables = new Registry; + $addtables->loadString($item->addtables); + $item->addtables = $addtables->toArray(); + } + + if (!empty($item->ajax_input)) + { + // Convert the ajax_input field to an array. + $ajax_input = new Registry; + $ajax_input->loadString($item->ajax_input); + $item->ajax_input = $ajax_input->toArray(); + } + + if (!empty($item->php_getitems)) + { + // base64 Decode php_getitems. + $item->php_getitems = base64_decode($item->php_getitems); + } + if (!empty($item->php_batchmove)) { // base64 Decode php_batchmove. @@ -131,12 +190,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $item->php_after_publish = base64_decode($item->php_after_publish); } - if (!empty($item->php_getitems)) - { - // base64 Decode php_getitems. - $item->php_getitems = base64_decode($item->php_getitems); - } - if (!empty($item->php_import)) { // base64 Decode php_import. @@ -291,6 +344,126 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin { // base64 Decode php_import_ext. $item->php_import_ext = base64_decode($item->php_import_ext); + } + + + if (empty($item->id)) + { + $id = 0; + } + else + { + $id = $item->id; + } + // set the id and view name to session + if ($vdm = ComponentbuilderHelper::get('admin_view__'.$id)) + { + $this->vastDevMod = $vdm; + } + else + { + $this->vastDevMod = ComponentbuilderHelper::randomkey(50); + ComponentbuilderHelper::set($this->vastDevMod, 'admin_view__'.$id); + ComponentbuilderHelper::set('admin_view__'.$id, $this->vastDevMod); + } + + // update the fields + $objectUpdate = new stdClass(); + $objectUpdate->id = (int) $item->id; + // check what type of linked_views array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($item->addlinked_views) && isset($item->addlinked_views['adminview'])) + { + $bucket = array(); + foreach($item->addlinked_views as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket['addlinked_views'.$nr][$option] = $value; + } + } + $item->addlinked_views = $bucket; + $objectUpdate->addconditions = json_encode($bucket); + } + // check what type of ajax_input array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($item->ajax_input) && isset($item->ajax_input['value_name'])) + { + $bucket = array(); + foreach($item->ajax_input as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket['ajax_input'.$nr][$option] = $value; + } + } + $item->ajax_input = $bucket; + $objectUpdate->ajax_input = json_encode($bucket); + } + // check what type of custom_button array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($item->custom_button) && isset($item->custom_button['name'])) + { + $bucket = array(); + foreach($item->custom_button as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket['custom_button'.$nr][$option] = $value; + } + } + $item->custom_button = $bucket; + $objectUpdate->custom_button = json_encode($bucket); + } + // check what type of permissions array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($item->addpermissions) && isset($item->addpermissions['action'])) + { + $bucket = array(); + foreach($item->addpermissions as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket['addpermissions'.$nr][$option] = $value; + } + } + $item->addpermissions = $bucket; + $objectUpdate->addpermissions = json_encode($bucket); + } + // check what type of table array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($item->addtables) && isset($item->addtables['table'])) + { + $bucket = array(); + foreach($item->addtables as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket['addtables'.$nr][$option] = $value; + } + } + $item->addtables = $bucket; + $objectUpdate->addtables = json_encode($bucket); + } + // check what type of tabs array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($item->addtabs) && isset($item->addtabs['name'])) + { + $bucket = array(); + foreach($item->addtabs as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket['addtabs'.$nr][$option] = $value; + } + } + $item->addtabs = $bucket; + $objectUpdate->addtabs = json_encode($bucket); + } + // be sure to update the table if we found repeatable fields that are still not converted + if (count((array) $objectUpdate) > 1) + { + $this->_db->updateObject('#__componentbuilder_admin_view', $objectUpdate, 'id'); } if (!empty($item->id)) @@ -299,8 +472,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $item->tags->getTagIds($item->id, 'com_componentbuilder.admin_view'); } } - $this->idvvvz = $item->addfields; - $this->addadmin_viewsvvwa = $item->id; + $this->addadmin_viewsvvvz = $item->id; return $item; } @@ -310,200 +482,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getVxzfields() - { - // Get the user object. - $user = JFactory::getUser(); - // Create a new query object. - $db = JFactory::getDBO(); - $query = $db->getQuery(true); - - // Select some fields - $query->select('a.*'); - $query->select($db->quoteName('c.title','category_title')); - - // From the componentbuilder_field table - $query->from($db->quoteName('#__componentbuilder_field', 'a')); - $query->join('LEFT', $db->quoteName('#__categories', 'c') . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('c.id') . ')'); - - // From the componentbuilder_fieldtype table. - $query->select($db->quoteName('g.name','fieldtype_name')); - $query->join('LEFT', $db->quoteName('#__componentbuilder_fieldtype', 'g') . ' ON (' . $db->quoteName('a.fieldtype') . ' = ' . $db->quoteName('g.id') . ')'); - - // Join over the asset groups. - $query->select('ag.title AS access_level'); - $query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access'); - // Filter by access level. - if ($access = $this->getState('filter.access')) - { - $query->where('a.access = ' . (int) $access); - } - // Implement View Level Access - if (!$user->authorise('core.options', 'com_componentbuilder')) - { - $groups = implode(',', $user->getAuthorisedViewLevels()); - $query->where('a.access IN (' . $groups . ')'); - } - - // Order the results by ordering - $query->order('a.published ASC'); - $query->order('a.ordering ASC'); - - // Load the items - $db->setQuery($query); - $db->execute(); - if ($db->getNumRows()) - { - $items = $db->loadObjectList(); - - // set values to display correctly. - if (ComponentbuilderHelper::checkArray($items)) - { - // get user object. - $user = JFactory::getUser(); - foreach ($items as $nr => &$item) - { - $access = ($user->authorise('field.access', 'com_componentbuilder.field.' . (int) $item->id) && $user->authorise('field.access', 'com_componentbuilder')); - if (!$access) - { - unset($items[$nr]); - continue; - } - - } - } - - // set selection value to a translatable value - if (ComponentbuilderHelper::checkArray($items)) - { - foreach ($items as $nr => &$item) - { - // convert datatype - $item->datatype = $this->selectionTranslationVxzfields($item->datatype, 'datatype'); - // convert indexes - $item->indexes = $this->selectionTranslationVxzfields($item->indexes, 'indexes'); - // convert null_switch - $item->null_switch = $this->selectionTranslationVxzfields($item->null_switch, 'null_switch'); - // convert store - $item->store = $this->selectionTranslationVxzfields($item->store, 'store'); - } - } - - - // Filter by id Repetable Field - $idvvvz = json_decode($this->idvvvz,true); - if (ComponentbuilderHelper::checkArray($items) && isset($idvvvz) && ComponentbuilderHelper::checkArray($idvvvz)) - { - foreach ($items as $nr => &$item) - { - if ($item->id && isset($idvvvz['field']) && ComponentbuilderHelper::checkArray($idvvvz['field'])) - { - if (!in_array($item->id,$idvvvz['field'])) - { - unset($items[$nr]); - continue; - } - } - else - { - unset($items[$nr]); - continue; - } - } - } - else - { - return false; - } - return $items; - } - return false; - } - - /** - * Method to convert selection values to translatable string. - * - * @return translatable string - */ - public function selectionTranslationVxzfields($value,$name) - { - // Array of datatype language strings - if ($name === 'datatype') - { - $datatypeArray = array( - 'CHAR' => 'COM_COMPONENTBUILDER_FIELD_CHAR', - 'VARCHAR' => 'COM_COMPONENTBUILDER_FIELD_VARCHAR', - 'TEXT' => 'COM_COMPONENTBUILDER_FIELD_TEXT', - 'MEDIUMTEXT' => 'COM_COMPONENTBUILDER_FIELD_MEDIUMTEXT', - 'LONGTEXT' => 'COM_COMPONENTBUILDER_FIELD_LONGTEXT', - 'DATETIME' => 'COM_COMPONENTBUILDER_FIELD_DATETIME', - 'DATE' => 'COM_COMPONENTBUILDER_FIELD_DATE', - 'TIME' => 'COM_COMPONENTBUILDER_FIELD_TIME', - 'INT' => 'COM_COMPONENTBUILDER_FIELD_INT', - 'TINYINT' => 'COM_COMPONENTBUILDER_FIELD_TINYINT', - 'BIGINT' => 'COM_COMPONENTBUILDER_FIELD_BIGINT', - 'FLOAT' => 'COM_COMPONENTBUILDER_FIELD_FLOAT', - 'DECIMAL' => 'COM_COMPONENTBUILDER_FIELD_DECIMAL', - 'DOUBLE' => 'COM_COMPONENTBUILDER_FIELD_DOUBLE' - ); - // Now check if value is found in this array - if (isset($datatypeArray[$value]) && ComponentbuilderHelper::checkString($datatypeArray[$value])) - { - return $datatypeArray[$value]; - } - } - // Array of indexes language strings - if ($name === 'indexes') - { - $indexesArray = array( - 1 => 'COM_COMPONENTBUILDER_FIELD_UNIQUE_KEY', - 2 => 'COM_COMPONENTBUILDER_FIELD_KEY', - 0 => 'COM_COMPONENTBUILDER_FIELD_NONE' - ); - // Now check if value is found in this array - if (isset($indexesArray[$value]) && ComponentbuilderHelper::checkString($indexesArray[$value])) - { - return $indexesArray[$value]; - } - } - // Array of null_switch language strings - if ($name === 'null_switch') - { - $null_switchArray = array( - 'NULL' => 'COM_COMPONENTBUILDER_FIELD_NULL', - 'NOT NULL' => 'COM_COMPONENTBUILDER_FIELD_NOT_NULL' - ); - // Now check if value is found in this array - if (isset($null_switchArray[$value]) && ComponentbuilderHelper::checkString($null_switchArray[$value])) - { - return $null_switchArray[$value]; - } - } - // Array of store language strings - if ($name === 'store') - { - $storeArray = array( - 0 => 'COM_COMPONENTBUILDER_FIELD_DEFAULT', - 1 => 'COM_COMPONENTBUILDER_FIELD_JSON', - 2 => 'COM_COMPONENTBUILDER_FIELD_BASESIXTY_FOUR', - 3 => 'COM_COMPONENTBUILDER_FIELD_BASIC_ENCRYPTION_LOCALKEY', - 4 => 'COM_COMPONENTBUILDER_FIELD_ADVANCE_ENCRYPTION_WHMCSKEY' - ); - // Now check if value is found in this array - if (isset($storeArray[$value]) && ComponentbuilderHelper::checkString($storeArray[$value])) - { - return $storeArray[$value]; - } - } - return $value; - } - - /** - * Method to get list data. - * - * @return mixed An array of data items on success, false on failure. - */ - public function getVyalinked_components() + public function getVxzlinked_components() { // Get the user object. $user = JFactory::getUser(); @@ -543,15 +522,32 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin { $items = $db->loadObjectList(); - // Filter by addadmin_viewsvvwa in this Repetable Field - if (ComponentbuilderHelper::checkArray($items) && isset($this->addadmin_viewsvvwa)) + // set values to display correctly. + if (ComponentbuilderHelper::checkArray($items)) + { + // get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('joomla_component.access', 'com_componentbuilder.joomla_component.' . (int) $item->id) && $user->authorise('joomla_component.access', 'com_componentbuilder')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + } + } + + // Filter by addadmin_viewsvvvz in this Repetable Field + if (ComponentbuilderHelper::checkArray($items) && isset($this->addadmin_viewsvvvz)) { foreach ($items as $nr => &$item) { if (isset($item->addadmin_views) && ComponentbuilderHelper::checkJson($item->addadmin_views)) { $tmpArray = json_decode($item->addadmin_views,true); - if (!isset($tmpArray['adminview']) || !ComponentbuilderHelper::checkArray($tmpArray['adminview']) || !in_array($this->addadmin_viewsvvwa, $tmpArray['adminview'])) + if (!isset($tmpArray['adminview']) || !ComponentbuilderHelper::checkArray($tmpArray['adminview']) || !in_array($this->addadmin_viewsvvvz, $tmpArray['adminview'])) { unset($items[$nr]); continue; @@ -610,8 +606,8 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin // Check for existing item. // Modify the form based on Edit State access controls. - if ($id != 0 && (!$user->authorise('core.edit.state', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('core.edit.state', 'com_componentbuilder'))) + if ($id != 0 && (!$user->authorise('admin_view.edit.state', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.state', 'com_componentbuilder'))) { // Disable fields for display. $form->setFieldAttribute('ordering', 'disabled', 'true'); @@ -627,7 +623,8 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $form->setValue('created_by', null, $user->id); } // Modify the form based on Edit Creaded By access controls. - if (!$user->authorise('core.edit.created_by', 'com_componentbuilder')) + if ($id != 0 && (!$user->authorise('admin_view.edit.created_by', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.created_by', 'com_componentbuilder'))) { // Disable fields for display. $form->setFieldAttribute('created_by', 'disabled', 'true'); @@ -637,1350 +634,14 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $form->setFieldAttribute('created_by', 'filter', 'unset'); } // Modify the form based on Edit Creaded Date access controls. - if (!$user->authorise('core.edit.created', 'com_componentbuilder')) + if ($id != 0 && (!$user->authorise('admin_view.edit.created', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.created', 'com_componentbuilder'))) { // Disable fields for display. $form->setFieldAttribute('created', 'disabled', 'true'); // Disable fields while saving. $form->setFieldAttribute('created', 'filter', 'unset'); } - // Modify the form based on Edit System Name access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.system_name', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.system_name', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('system_name', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('system_name', 'readonly', 'true'); - if (!$form->getValue('system_name')) - { - // Disable fields while saving. - $form->setFieldAttribute('system_name', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('system_name', 'required', 'false'); - } - } - // Modify the form based on Edit Name Single access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.name_single', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.name_single', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('name_single', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('name_single', 'readonly', 'true'); - if (!$form->getValue('name_single')) - { - // Disable fields while saving. - $form->setFieldAttribute('name_single', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('name_single', 'required', 'false'); - } - } - // Modify the form based on Edit Name List access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.name_list', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.name_list', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('name_list', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('name_list', 'readonly', 'true'); - if (!$form->getValue('name_list')) - { - // Disable fields while saving. - $form->setFieldAttribute('name_list', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('name_list', 'required', 'false'); - } - } - // Modify the form based on Edit Short Description access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.short_description', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.short_description', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('short_description', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('short_description', 'readonly', 'true'); - if (!$form->getValue('short_description')) - { - // Disable fields while saving. - $form->setFieldAttribute('short_description', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('short_description', 'required', 'false'); - } - } - // Modify the form based on Edit Php Batchmove access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_batchmove', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_batchmove', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_batchmove', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_batchmove', 'readonly', 'true'); - if (!$form->getValue('php_batchmove')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_batchmove', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_batchmove', 'required', 'false'); - } - } - // Modify the form based on Edit Type access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.type', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.type', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('type', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('type', 'readonly', 'true'); - if (!$form->getValue('type')) - { - // Disable fields while saving. - $form->setFieldAttribute('type', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('type', 'required', 'false'); - } - } - // Modify the form based on Edit Php Save access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_save', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_save', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_save', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_save', 'readonly', 'true'); - if (!$form->getValue('php_save')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_save', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_save', 'required', 'false'); - } - } - // Modify the form based on Edit Description access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.description', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.description', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('description', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('description', 'readonly', 'true'); - if (!$form->getValue('description')) - { - // Disable fields while saving. - $form->setFieldAttribute('description', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('description', 'required', 'false'); - } - } - // Modify the form based on Edit Php After Delete access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_after_delete', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_after_delete', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_after_delete', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_after_delete', 'readonly', 'true'); - if (!$form->getValue('php_after_delete')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_after_delete', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_after_delete', 'required', 'false'); - } - } - // Modify the form based on Edit Add Fadein access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_fadein', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_fadein', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_fadein', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_fadein', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_fadein', 'class', ''); - $form->setFieldAttribute('add_fadein', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_fadein')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_fadein', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_fadein', 'required', 'false'); - } - } - // Modify the form based on Edit Icon access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.icon', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.icon', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('icon', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('icon', 'readonly', 'true'); - if (!$form->getValue('icon')) - { - // Disable fields while saving. - $form->setFieldAttribute('icon', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('icon', 'required', 'false'); - } - } - // Modify the form based on Edit Php Getlistquery access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_getlistquery', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_getlistquery', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_getlistquery', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_getlistquery', 'readonly', 'true'); - if (!$form->getValue('php_getlistquery')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_getlistquery', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_getlistquery', 'required', 'false'); - } - } - // Modify the form based on Edit Icon Add access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.icon_add', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.icon_add', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('icon_add', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('icon_add', 'readonly', 'true'); - if (!$form->getValue('icon_add')) - { - // Disable fields while saving. - $form->setFieldAttribute('icon_add', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('icon_add', 'required', 'false'); - } - } - // Modify the form based on Edit Php Allowedit access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_allowedit', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_allowedit', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_allowedit', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_allowedit', 'readonly', 'true'); - if (!$form->getValue('php_allowedit')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_allowedit', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_allowedit', 'required', 'false'); - } - } - // Modify the form based on Edit Icon Category access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.icon_category', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.icon_category', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('icon_category', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('icon_category', 'readonly', 'true'); - if (!$form->getValue('icon_category')) - { - // Disable fields while saving. - $form->setFieldAttribute('icon_category', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('icon_category', 'required', 'false'); - } - } - // Modify the form based on Edit Php After Publish access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_after_publish', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_after_publish', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_after_publish', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_after_publish', 'readonly', 'true'); - if (!$form->getValue('php_after_publish')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_after_publish', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_after_publish', 'required', 'false'); - } - } - // Modify the form based on Edit Source access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.source', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.source', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('source', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('source', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('source', 'class', ''); - $form->setFieldAttribute('source', 'class', $class.' disabled no-click'); - if (!$form->getValue('source')) - { - // Disable fields while saving. - $form->setFieldAttribute('source', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('source', 'required', 'false'); - } - } - // Modify the form based on Edit Php Getitems access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_getitems', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_getitems', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_getitems', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_getitems', 'readonly', 'true'); - if (!$form->getValue('php_getitems')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_getitems', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_getitems', 'required', 'false'); - } - } - // Modify the form based on Edit Php Import access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_import', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_import', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_import', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_import', 'readonly', 'true'); - if (!$form->getValue('php_import')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_import', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_import', 'required', 'false'); - } - } - // Modify the form based on Edit Addpermissions access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.addpermissions', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.addpermissions', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('addpermissions', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('addpermissions', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('addpermissions', 'class', ''); - $form->setFieldAttribute('addpermissions', 'class', $class.' disabled no-click'); - if (!$form->getValue('addpermissions')) - { - // Disable fields while saving. - $form->setFieldAttribute('addpermissions', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('addpermissions', 'required', 'false'); - } - } - // Modify the form based on Edit Php Getitems After All access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_getitems_after_all', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_getitems_after_all', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_getitems_after_all', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_getitems_after_all', 'readonly', 'true'); - if (!$form->getValue('php_getitems_after_all')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_getitems_after_all', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_getitems_after_all', 'required', 'false'); - } - } - // Modify the form based on Edit Addtabs access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.addtabs', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.addtabs', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('addtabs', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('addtabs', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('addtabs', 'class', ''); - $form->setFieldAttribute('addtabs', 'class', $class.' disabled no-click'); - if (!$form->getValue('addtabs')) - { - // Disable fields while saving. - $form->setFieldAttribute('addtabs', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('addtabs', 'required', 'false'); - } - } - // Modify the form based on Edit Php Before Save access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_before_save', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_before_save', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_before_save', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_before_save', 'readonly', 'true'); - if (!$form->getValue('php_before_save')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_before_save', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_before_save', 'required', 'false'); - } - } - // Modify the form based on Edit Php Postsavehook access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_postsavehook', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_postsavehook', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_postsavehook', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_postsavehook', 'readonly', 'true'); - if (!$form->getValue('php_postsavehook')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_postsavehook', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_postsavehook', 'required', 'false'); - } - } - // Modify the form based on Edit Addfields access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.addfields', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.addfields', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('addfields', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('addfields', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('addfields', 'class', ''); - $form->setFieldAttribute('addfields', 'class', $class.' disabled no-click'); - if (!$form->getValue('addfields')) - { - // Disable fields while saving. - $form->setFieldAttribute('addfields', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('addfields', 'required', 'false'); - } - } - // Modify the form based on Edit Php Batchcopy access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_batchcopy', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_batchcopy', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_batchcopy', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_batchcopy', 'readonly', 'true'); - if (!$form->getValue('php_batchcopy')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_batchcopy', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_batchcopy', 'required', 'false'); - } - } - // Modify the form based on Edit Php Before Publish access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_before_publish', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_before_publish', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_before_publish', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_before_publish', 'readonly', 'true'); - if (!$form->getValue('php_before_publish')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_before_publish', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_before_publish', 'required', 'false'); - } - } - // Modify the form based on Edit Addconditions access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.addconditions', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.addconditions', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('addconditions', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('addconditions', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('addconditions', 'class', ''); - $form->setFieldAttribute('addconditions', 'class', $class.' disabled no-click'); - if (!$form->getValue('addconditions')) - { - // Disable fields while saving. - $form->setFieldAttribute('addconditions', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('addconditions', 'required', 'false'); - } - } - // Modify the form based on Edit Php Before Delete access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_before_delete', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_before_delete', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_before_delete', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_before_delete', 'readonly', 'true'); - if (!$form->getValue('php_before_delete')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_before_delete', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_before_delete', 'required', 'false'); - } - } - // Modify the form based on Edit Addlinked Views access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.addlinked_views', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.addlinked_views', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('addlinked_views', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('addlinked_views', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('addlinked_views', 'class', ''); - $form->setFieldAttribute('addlinked_views', 'class', $class.' disabled no-click'); - if (!$form->getValue('addlinked_views')) - { - // Disable fields while saving. - $form->setFieldAttribute('addlinked_views', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('addlinked_views', 'required', 'false'); - } - } - // Modify the form based on Edit Php Document access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_document', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_document', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_document', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_document', 'readonly', 'true'); - if (!$form->getValue('php_document')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_document', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_document', 'required', 'false'); - } - } - // Modify the form based on Edit Sql access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.sql', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.sql', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('sql', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('sql', 'readonly', 'true'); - if (!$form->getValue('sql')) - { - // Disable fields while saving. - $form->setFieldAttribute('sql', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('sql', 'required', 'false'); - } - } - // Modify the form based on Edit Php Import Display access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_import_display', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_import_display', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_import_display', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_import_display', 'readonly', 'true'); - if (!$form->getValue('php_import_display')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_import_display', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_import_display', 'required', 'false'); - } - } - // Modify the form based on Edit Php Getitem access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_getitem', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_getitem', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_getitem', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_getitem', 'readonly', 'true'); - if (!$form->getValue('php_getitem')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_getitem', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_getitem', 'required', 'false'); - } - } - // Modify the form based on Edit Php Import Save access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_import_save', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_import_save', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_import_save', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_import_save', 'readonly', 'true'); - if (!$form->getValue('php_import_save')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_import_save', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_import_save', 'required', 'false'); - } - } - // Modify the form based on Edit Add Css View access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_css_view', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_css_view', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_css_view', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_css_view', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_css_view', 'class', ''); - $form->setFieldAttribute('add_css_view', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_css_view')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_css_view', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_css_view', 'required', 'false'); - } - } - // Modify the form based on Edit Css View access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.css_view', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.css_view', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('css_view', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('css_view', 'readonly', 'true'); - if (!$form->getValue('css_view')) - { - // Disable fields while saving. - $form->setFieldAttribute('css_view', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('css_view', 'required', 'false'); - } - } - // Modify the form based on Edit Add Php Getitems access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_getitems', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_php_getitems', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_php_getitems', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_php_getitems', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_php_getitems', 'class', ''); - $form->setFieldAttribute('add_php_getitems', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_php_getitems')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_php_getitems', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_php_getitems', 'required', 'false'); - } - } - // Modify the form based on Edit Add Css Views access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_css_views', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_css_views', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_css_views', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_css_views', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_css_views', 'class', ''); - $form->setFieldAttribute('add_css_views', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_css_views')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_css_views', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_css_views', 'required', 'false'); - } - } - // Modify the form based on Edit Add Php Getitems After All access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_getitems_after_all', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_php_getitems_after_all', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_php_getitems_after_all', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_php_getitems_after_all', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_php_getitems_after_all', 'class', ''); - $form->setFieldAttribute('add_php_getitems_after_all', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_php_getitems_after_all')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_php_getitems_after_all', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_php_getitems_after_all', 'required', 'false'); - } - } - // Modify the form based on Edit Css Views access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.css_views', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.css_views', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('css_views', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('css_views', 'readonly', 'true'); - if (!$form->getValue('css_views')) - { - // Disable fields while saving. - $form->setFieldAttribute('css_views', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('css_views', 'required', 'false'); - } - } - // Modify the form based on Edit Add Php Getlistquery access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_getlistquery', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_php_getlistquery', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_php_getlistquery', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_php_getlistquery', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_php_getlistquery', 'class', ''); - $form->setFieldAttribute('add_php_getlistquery', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_php_getlistquery')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_php_getlistquery', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_php_getlistquery', 'required', 'false'); - } - } - // Modify the form based on Edit Add Javascript View File access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_javascript_view_file', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_javascript_view_file', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_javascript_view_file', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_javascript_view_file', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_javascript_view_file', 'class', ''); - $form->setFieldAttribute('add_javascript_view_file', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_javascript_view_file')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_javascript_view_file', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_javascript_view_file', 'required', 'false'); - } - } - // Modify the form based on Edit Add Php Before Save access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_before_save', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_php_before_save', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_php_before_save', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_php_before_save', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_php_before_save', 'class', ''); - $form->setFieldAttribute('add_php_before_save', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_php_before_save')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_php_before_save', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_php_before_save', 'required', 'false'); - } - } - // Modify the form based on Edit Javascript View File access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.javascript_view_file', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.javascript_view_file', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('javascript_view_file', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('javascript_view_file', 'readonly', 'true'); - if (!$form->getValue('javascript_view_file')) - { - // Disable fields while saving. - $form->setFieldAttribute('javascript_view_file', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('javascript_view_file', 'required', 'false'); - } - } - // Modify the form based on Edit Add Php Save access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_save', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_php_save', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_php_save', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_php_save', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_php_save', 'class', ''); - $form->setFieldAttribute('add_php_save', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_php_save')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_php_save', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_php_save', 'required', 'false'); - } - } - // Modify the form based on Edit Add Javascript View Footer access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_javascript_view_footer', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_javascript_view_footer', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_javascript_view_footer', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_javascript_view_footer', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_javascript_view_footer', 'class', ''); - $form->setFieldAttribute('add_javascript_view_footer', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_javascript_view_footer')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_javascript_view_footer', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_javascript_view_footer', 'required', 'false'); - } - } - // Modify the form based on Edit Add Php Postsavehook access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_postsavehook', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_php_postsavehook', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_php_postsavehook', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_php_postsavehook', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_php_postsavehook', 'class', ''); - $form->setFieldAttribute('add_php_postsavehook', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_php_postsavehook')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_php_postsavehook', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_php_postsavehook', 'required', 'false'); - } - } - // Modify the form based on Edit Javascript View Footer access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.javascript_view_footer', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.javascript_view_footer', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('javascript_view_footer', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('javascript_view_footer', 'readonly', 'true'); - if (!$form->getValue('javascript_view_footer')) - { - // Disable fields while saving. - $form->setFieldAttribute('javascript_view_footer', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('javascript_view_footer', 'required', 'false'); - } - } - // Modify the form based on Edit Add Php Allowedit access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_allowedit', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_php_allowedit', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_php_allowedit', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_php_allowedit', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_php_allowedit', 'class', ''); - $form->setFieldAttribute('add_php_allowedit', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_php_allowedit')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_php_allowedit', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_php_allowedit', 'required', 'false'); - } - } - // Modify the form based on Edit Add Javascript Views File access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_javascript_views_file', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_javascript_views_file', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_javascript_views_file', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_javascript_views_file', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_javascript_views_file', 'class', ''); - $form->setFieldAttribute('add_javascript_views_file', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_javascript_views_file')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_javascript_views_file', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_javascript_views_file', 'required', 'false'); - } - } - // Modify the form based on Edit Add Php Batchcopy access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_batchcopy', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_php_batchcopy', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_php_batchcopy', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_php_batchcopy', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_php_batchcopy', 'class', ''); - $form->setFieldAttribute('add_php_batchcopy', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_php_batchcopy')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_php_batchcopy', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_php_batchcopy', 'required', 'false'); - } - } - // Modify the form based on Edit Javascript Views File access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.javascript_views_file', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.javascript_views_file', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('javascript_views_file', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('javascript_views_file', 'readonly', 'true'); - if (!$form->getValue('javascript_views_file')) - { - // Disable fields while saving. - $form->setFieldAttribute('javascript_views_file', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('javascript_views_file', 'required', 'false'); - } - } - // Modify the form based on Edit Add Php Batchmove access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_batchmove', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_php_batchmove', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_php_batchmove', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_php_batchmove', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_php_batchmove', 'class', ''); - $form->setFieldAttribute('add_php_batchmove', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_php_batchmove')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_php_batchmove', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_php_batchmove', 'required', 'false'); - } - } - // Modify the form based on Edit Add Javascript Views Footer access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_javascript_views_footer', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_javascript_views_footer', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_javascript_views_footer', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_javascript_views_footer', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_javascript_views_footer', 'class', ''); - $form->setFieldAttribute('add_javascript_views_footer', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_javascript_views_footer')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_javascript_views_footer', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_javascript_views_footer', 'required', 'false'); - } - } - // Modify the form based on Edit Add Php Before Publish access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_before_publish', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_php_before_publish', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_php_before_publish', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_php_before_publish', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_php_before_publish', 'class', ''); - $form->setFieldAttribute('add_php_before_publish', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_php_before_publish')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_php_before_publish', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_php_before_publish', 'required', 'false'); - } - } - // Modify the form based on Edit Javascript Views Footer access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.javascript_views_footer', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.javascript_views_footer', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('javascript_views_footer', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('javascript_views_footer', 'readonly', 'true'); - if (!$form->getValue('javascript_views_footer')) - { - // Disable fields while saving. - $form->setFieldAttribute('javascript_views_footer', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('javascript_views_footer', 'required', 'false'); - } - } - // Modify the form based on Edit Add Php After Publish access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_after_publish', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_php_after_publish', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_php_after_publish', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_php_after_publish', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_php_after_publish', 'class', ''); - $form->setFieldAttribute('add_php_after_publish', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_php_after_publish')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_php_after_publish', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_php_after_publish', 'required', 'false'); - } - } - // Modify the form based on Edit Add Custom Button access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_custom_button', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_custom_button', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_custom_button', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_custom_button', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_custom_button', 'class', ''); - $form->setFieldAttribute('add_custom_button', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_custom_button')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_custom_button', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_custom_button', 'required', 'false'); - } - } - // Modify the form based on Edit Add Php Before Delete access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_before_delete', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_php_before_delete', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_php_before_delete', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_php_before_delete', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_php_before_delete', 'class', ''); - $form->setFieldAttribute('add_php_before_delete', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_php_before_delete')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_php_before_delete', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_php_before_delete', 'required', 'false'); - } - } - // Modify the form based on Edit Custom Button access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.custom_button', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.custom_button', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('custom_button', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('custom_button', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('custom_button', 'class', ''); - $form->setFieldAttribute('custom_button', 'class', $class.' disabled no-click'); - if (!$form->getValue('custom_button')) - { - // Disable fields while saving. - $form->setFieldAttribute('custom_button', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('custom_button', 'required', 'false'); - } - } - // Modify the form based on Edit Add Php After Delete access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_after_delete', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_php_after_delete', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_php_after_delete', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_php_after_delete', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_php_after_delete', 'class', ''); - $form->setFieldAttribute('add_php_after_delete', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_php_after_delete')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_php_after_delete', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_php_after_delete', 'required', 'false'); - } - } - // Modify the form based on Edit Php Controller access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_controller', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_controller', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_controller', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_controller', 'readonly', 'true'); - if (!$form->getValue('php_controller')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_controller', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_controller', 'required', 'false'); - } - } - // Modify the form based on Edit Add Php Document access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_document', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_php_document', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_php_document', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_php_document', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_php_document', 'class', ''); - $form->setFieldAttribute('add_php_document', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_php_document')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_php_document', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_php_document', 'required', 'false'); - } - } - // Modify the form based on Edit Php Model access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_model', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_model', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_model', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_model', 'readonly', 'true'); - if (!$form->getValue('php_model')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_model', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_model', 'required', 'false'); - } - } - // Modify the form based on Edit Add Sql access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_sql', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_sql', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_sql', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_sql', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_sql', 'class', ''); - $form->setFieldAttribute('add_sql', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_sql')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_sql', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_sql', 'required', 'false'); - } - } - // Modify the form based on Edit Php Controller List access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_controller_list', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_controller_list', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_controller_list', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_controller_list', 'readonly', 'true'); - if (!$form->getValue('php_controller_list')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_controller_list', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_controller_list', 'required', 'false'); - } - } - // Modify the form based on Edit Addtables access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.addtables', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.addtables', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('addtables', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('addtables', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('addtables', 'class', ''); - $form->setFieldAttribute('addtables', 'class', $class.' disabled no-click'); - if (!$form->getValue('addtables')) - { - // Disable fields while saving. - $form->setFieldAttribute('addtables', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('addtables', 'required', 'false'); - } - } - // Modify the form based on Edit Php Model List access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_model_list', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_model_list', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_model_list', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_model_list', 'readonly', 'true'); - if (!$form->getValue('php_model_list')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_model_list', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_model_list', 'required', 'false'); - } - } - // Modify the form based on Edit Add Php Ajax access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_ajax', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_php_ajax', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_php_ajax', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_php_ajax', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_php_ajax', 'class', ''); - $form->setFieldAttribute('add_php_ajax', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_php_ajax')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_php_ajax', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_php_ajax', 'required', 'false'); - } - } - // Modify the form based on Edit Add Custom Import access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_custom_import', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_custom_import', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_custom_import', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_custom_import', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_custom_import', 'class', ''); - $form->setFieldAttribute('add_custom_import', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_custom_import')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_custom_import', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_custom_import', 'required', 'false'); - } - } - // Modify the form based on Edit Php Ajaxmethod access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_ajaxmethod', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_ajaxmethod', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_ajaxmethod', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_ajaxmethod', 'readonly', 'true'); - if (!$form->getValue('php_ajaxmethod')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_ajaxmethod', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_ajaxmethod', 'required', 'false'); - } - } - // Modify the form based on Edit Html Import View access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.html_import_view', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.html_import_view', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('html_import_view', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('html_import_view', 'readonly', 'true'); - if (!$form->getValue('html_import_view')) - { - // Disable fields while saving. - $form->setFieldAttribute('html_import_view', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('html_import_view', 'required', 'false'); - } - } - // Modify the form based on Edit Ajax Input access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.ajax_input', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.ajax_input', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('ajax_input', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('ajax_input', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('ajax_input', 'class', ''); - $form->setFieldAttribute('ajax_input', 'class', $class.' disabled no-click'); - if (!$form->getValue('ajax_input')) - { - // Disable fields while saving. - $form->setFieldAttribute('ajax_input', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('ajax_input', 'required', 'false'); - } - } - // Modify the form based on Edit Php Import Setdata access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_import_setdata', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_import_setdata', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_import_setdata', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_import_setdata', 'readonly', 'true'); - if (!$form->getValue('php_import_setdata')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_import_setdata', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_import_setdata', 'required', 'false'); - } - } - // Modify the form based on Edit Add Php Getitem access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_getitem', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.add_php_getitem', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('add_php_getitem', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('add_php_getitem', 'readonly', 'true'); - // Disable radio button for display. - $class = $form->getFieldAttribute('add_php_getitem', 'class', ''); - $form->setFieldAttribute('add_php_getitem', 'class', $class.' disabled no-click'); - if (!$form->getValue('add_php_getitem')) - { - // Disable fields while saving. - $form->setFieldAttribute('add_php_getitem', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('add_php_getitem', 'required', 'false'); - } - } - // Modify the form based on Edit Php Import Ext access controls. - if ($id != 0 && (!$user->authorise('admin_view.edit.php_import_ext', 'com_componentbuilder.admin_view.' . (int) $id)) - || ($id == 0 && !$user->authorise('admin_view.edit.php_import_ext', 'com_componentbuilder'))) - { - // Disable fields for display. - $form->setFieldAttribute('php_import_ext', 'disabled', 'true'); - // Disable fields for display. - $form->setFieldAttribute('php_import_ext', 'readonly', 'true'); - if (!$form->getValue('php_import_ext')) - { - // Disable fields while saving. - $form->setFieldAttribute('php_import_ext', 'filter', 'unset'); - // Disable fields while saving. - $form->setFieldAttribute('php_import_ext', 'required', 'false'); - } - } // Only load these values if no id is found if (0 == $id) { @@ -2028,7 +689,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $user = JFactory::getUser(); // The record has been set. Check the record permissions. - return $user->authorise('core.delete', 'com_componentbuilder.admin_view.' . (int) $record->id); + return $user->authorise('admin_view.delete', 'com_componentbuilder.admin_view.' . (int) $record->id); } return false; } @@ -2050,14 +711,14 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin if ($recordId) { // The record has been set. Check the record permissions. - $permission = $user->authorise('core.edit.state', 'com_componentbuilder.admin_view.' . (int) $recordId); + $permission = $user->authorise('admin_view.edit.state', 'com_componentbuilder.admin_view.' . (int) $recordId); if (!$permission && !is_null($permission)) { return false; } } // In the absense of better information, revert to the component permissions. - return parent::canEditState($record); + return $user->authorise('admin_view.edit.state', 'com_componentbuilder'); } /** @@ -2074,7 +735,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin // Check specific edit permission then general edit permission. $user = JFactory::getUser(); - return $user->authorise('core.edit', 'com_componentbuilder.admin_view.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('core.edit', 'com_componentbuilder'); + return $user->authorise('admin_view.edit', 'com_componentbuilder.admin_view.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('admin_view.edit', 'com_componentbuilder'); } /** @@ -2362,7 +1023,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $this->canDo = ComponentbuilderHelper::getActions('admin_view'); } - if (!$this->canDo->get('core.create') || !$this->canDo->get('core.batch')) + if (!$this->canDo->get('admin_view.create') && !$this->canDo->get('admin_view.batch')) { return false; } @@ -2377,7 +1038,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin { $values['published'] = 0; } - elseif (isset($values['published']) && !$this->canDo->get('core.edit.state')) + elseif (isset($values['published']) && !$this->canDo->get('admin_view.edit.state')) { $values['published'] = 0; } @@ -2394,7 +1055,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin // only allow copy if user may edit this item. - if (!$this->user->authorise('core.edit', $contexts[$pk])) + if (!$this->user->authorise('admin_view.edit', $contexts[$pk])) { @@ -2509,14 +1170,14 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $this->canDo = ComponentbuilderHelper::getActions('admin_view'); } - if (!$this->canDo->get('core.edit') && !$this->canDo->get('core.batch')) + if (!$this->canDo->get('admin_view.edit') && !$this->canDo->get('admin_view.batch')) { $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); return false; } // make sure published only updates if user has the permission. - if (isset($values['published']) && !$this->canDo->get('core.edit.state')) + if (isset($values['published']) && !$this->canDo->get('admin_view.edit.state')) { unset($values['published']); } @@ -2526,7 +1187,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin // Parent exists so we proceed foreach ($pks as $pk) { - if (!$this->user->authorise('core.edit', $contexts[$pk])) + if (!$this->user->authorise('admin_view.edit', $contexts[$pk])) { $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); @@ -2621,6 +1282,90 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $data['metadata'] = (string) $metadata; } + // Set the addpermissions items to data. + if (isset($data['addpermissions']) && is_array($data['addpermissions'])) + { + $addpermissions = new JRegistry; + $addpermissions->loadArray($data['addpermissions']); + $data['addpermissions'] = (string) $addpermissions; + } + elseif (!isset($data['addpermissions'])) + { + // Set the empty addpermissions to data + $data['addpermissions'] = ''; + } + + // Set the addtabs items to data. + if (isset($data['addtabs']) && is_array($data['addtabs'])) + { + $addtabs = new JRegistry; + $addtabs->loadArray($data['addtabs']); + $data['addtabs'] = (string) $addtabs; + } + elseif (!isset($data['addtabs'])) + { + // Set the empty addtabs to data + $data['addtabs'] = ''; + } + + // Set the addlinked_views items to data. + if (isset($data['addlinked_views']) && is_array($data['addlinked_views'])) + { + $addlinked_views = new JRegistry; + $addlinked_views->loadArray($data['addlinked_views']); + $data['addlinked_views'] = (string) $addlinked_views; + } + elseif (!isset($data['addlinked_views'])) + { + // Set the empty addlinked_views to data + $data['addlinked_views'] = ''; + } + + // Set the custom_button items to data. + if (isset($data['custom_button']) && is_array($data['custom_button'])) + { + $custom_button = new JRegistry; + $custom_button->loadArray($data['custom_button']); + $data['custom_button'] = (string) $custom_button; + } + elseif (!isset($data['custom_button'])) + { + // Set the empty custom_button to data + $data['custom_button'] = ''; + } + + // Set the addtables items to data. + if (isset($data['addtables']) && is_array($data['addtables'])) + { + $addtables = new JRegistry; + $addtables->loadArray($data['addtables']); + $data['addtables'] = (string) $addtables; + } + elseif (!isset($data['addtables'])) + { + // Set the empty addtables to data + $data['addtables'] = ''; + } + + // Set the ajax_input items to data. + if (isset($data['ajax_input']) && is_array($data['ajax_input'])) + { + $ajax_input = new JRegistry; + $ajax_input->loadArray($data['ajax_input']); + $data['ajax_input'] = (string) $ajax_input; + } + elseif (!isset($data['ajax_input'])) + { + // Set the empty ajax_input to data + $data['ajax_input'] = ''; + } + + // Set the php_getitems string to base64 string. + if (isset($data['php_getitems'])) + { + $data['php_getitems'] = base64_encode($data['php_getitems']); + } + // Set the php_batchmove string to base64 string. if (isset($data['php_batchmove'])) { @@ -2657,12 +1402,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $data['php_after_publish'] = base64_encode($data['php_after_publish']); } - // Set the php_getitems string to base64 string. - if (isset($data['php_getitems'])) - { - $data['php_getitems'] = base64_encode($data['php_getitems']); - } - // Set the php_import string to base64 string. if (isset($data['php_import'])) { @@ -2817,46 +1556,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin if (isset($data['php_import_ext'])) { $data['php_import_ext'] = base64_encode($data['php_import_ext']); - } - - if (isset($data['addfields']) && ComponentbuilderHelper::checkJson($data['addfields'])) - { - // Sort fields by 'Tab' ASC, 'Order in Edit' ASC - $addfields = json_decode($data['addfields'], true); - if (ComponentbuilderHelper::checkArray($addfields)) - { - $out = array(); - foreach ($addfields as $key => $subarr) - { - if (ComponentbuilderHelper::checkArray($subarr)) - { - foreach ($subarr as $subkey => $subvalue) - { - $out[$subkey][$key] = $subvalue; - } - } - } - if (ComponentbuilderHelper::checkArray($out)) - { - // do the actual sort by tab and order_edit - usort($out, function ($a, $b) { - $val_a = sprintf('%02u', $a['tab']) . sprintf('%02u', $a['alignment']) . sprintf('%03u', $a['order_edit']); - $val_b = sprintf('%02u', $b['tab']) . sprintf('%02u', $b['alignment']) . sprintf('%03u', $b['order_edit']); - return strcmp($val_a, $val_b); - }); - - $addfields = array(); - foreach ($out as $key => $subarr) - { - foreach ($subarr as $subkey => $subvalue) - { - $addfields[$subkey][$key] = $subvalue; - } - } - $data['addfields'] = json_encode($addfields, true); - } } - } // Set the Params Items to data if (isset($data['params']) && is_array($data['params'])) diff --git a/admin/models/admin_views.php b/admin/models/admin_views.php index c30624758..e97139cac 100644 --- a/admin/models/admin_views.php +++ b/admin/models/admin_views.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 114 of this MVC - @build 28th August, 2017 + @version @update number 192 of this MVC + @build 16th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin_views.php @@ -262,6 +262,8 @@ class ComponentbuilderModelAdmin_views extends JModelList continue; } + // decode php_getitems + $item->php_getitems = base64_decode($item->php_getitems); // decode php_batchmove $item->php_batchmove = base64_decode($item->php_batchmove); // decode php_save @@ -274,8 +276,6 @@ class ComponentbuilderModelAdmin_views extends JModelList $item->php_allowedit = base64_decode($item->php_allowedit); // decode php_after_publish $item->php_after_publish = base64_decode($item->php_after_publish); - // decode php_getitems - $item->php_getitems = base64_decode($item->php_getitems); // decode php_import $item->php_import = base64_decode($item->php_import); // decode php_getitems_after_all diff --git a/admin/models/admins_fields.php b/admin/models/admins_fields.php new file mode 100644 index 000000000..c87b2bfa0 --- /dev/null +++ b/admin/models/admins_fields.php @@ -0,0 +1,256 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the Joomla modellist library +jimport('joomla.application.component.modellist'); + +/** + * Admins_fields Model + */ +class ComponentbuilderModelAdmins_fields extends JModelList +{ + public function __construct($config = array()) + { + if (empty($config['filter_fields'])) + { + $config['filter_fields'] = array( + 'a.id','id', + 'a.published','published', + 'a.ordering','ordering', + 'a.created_by','created_by', + 'a.modified_by','modified_by' + ); + } + + parent::__construct($config); + } + + /** + * Method to auto-populate the model state. + * + * @return void + */ + protected function populateState($ordering = null, $direction = null) + { + $app = JFactory::getApplication(); + + // Adjust the context to support modal layouts. + if ($layout = $app->input->get('layout')) + { + $this->context .= '.' . $layout; + } + + + $sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int'); + $this->setState('filter.sorting', $sorting); + + $access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int'); + $this->setState('filter.access', $access); + + $search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search'); + $this->setState('filter.search', $search); + + $published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', ''); + $this->setState('filter.published', $published); + + $created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', ''); + $this->setState('filter.created_by', $created_by); + + $created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created'); + $this->setState('filter.created', $created); + + // List state information. + parent::populateState($ordering, $direction); + } + + /** + * Method to get an array of data items. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getItems() + { + // check in items + $this->checkInNow(); + + // load parent items + $items = parent::getItems(); + + // set values to display correctly. + if (ComponentbuilderHelper::checkArray($items)) + { + // get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('admin_fields.access', 'com_componentbuilder.admin_fields.' . (int) $item->id) && $user->authorise('admin_fields.access', 'com_componentbuilder')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + } + } + + // return items + return $items; + } + + /** + * Method to build an SQL query to load the list data. + * + * @return string An SQL query + */ + protected function getListQuery() + { + // Get the user object. + $user = JFactory::getUser(); + // Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // Select some fields + $query->select('a.*'); + + // From the componentbuilder_item table + $query->from($db->quoteName('#__componentbuilder_admin_fields', 'a')); + + // From the componentbuilder_admin_view table. + $query->select($db->quoteName('g.system_name','admin_view_system_name')); + $query->join('LEFT', $db->quoteName('#__componentbuilder_admin_view', 'g') . ' ON (' . $db->quoteName('a.admin_view') . ' = ' . $db->quoteName('g.id') . ')'); + + // Filter by published state + $published = $this->getState('filter.published'); + if (is_numeric($published)) + { + $query->where('a.published = ' . (int) $published); + } + elseif ($published === '') + { + $query->where('(a.published = 0 OR a.published = 1)'); + } + + // Join over the asset groups. + $query->select('ag.title AS access_level'); + $query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access'); + // Filter by access level. + if ($access = $this->getState('filter.access')) + { + $query->where('a.access = ' . (int) $access); + } + // Implement View Level Access + if (!$user->authorise('core.options', 'com_componentbuilder')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + + // Add the list ordering clause. + $orderCol = $this->state->get('list.ordering', 'a.id'); + $orderDirn = $this->state->get('list.direction', 'asc'); + if ($orderCol != '') + { + $query->order($db->escape($orderCol . ' ' . $orderDirn)); + } + + return $query; + } + + /** + * Method to get a store id based on model configuration state. + * + * @return string A store id. + * + */ + protected function getStoreId($id = '') + { + // Compile the store id. + $id .= ':' . $this->getState('filter.id'); + $id .= ':' . $this->getState('filter.search'); + $id .= ':' . $this->getState('filter.published'); + $id .= ':' . $this->getState('filter.ordering'); + $id .= ':' . $this->getState('filter.created_by'); + $id .= ':' . $this->getState('filter.modified_by'); + + return parent::getStoreId($id); + } + + /** + * Build an SQL query to checkin all items left checked out longer then a set time. + * + * @return a bool + * + */ + protected function checkInNow() + { + // Get set check in time + $time = JComponentHelper::getParams('com_componentbuilder')->get('check_in'); + + if ($time) + { + + // Get a db connection. + $db = JFactory::getDbo(); + // reset query + $query = $db->getQuery(true); + $query->select('*'); + $query->from($db->quoteName('#__componentbuilder_admin_fields')); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + // Get Yesterdays date + $date = JFactory::getDate()->modify($time)->toSql(); + // reset query + $query = $db->getQuery(true); + + // Fields to update. + $fields = array( + $db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'', + $db->quoteName('checked_out') . '=0' + ); + + // Conditions for which records should be updated. + $conditions = array( + $db->quoteName('checked_out') . '!=0', + $db->quoteName('checked_out_time') . '<\''.$date.'\'' + ); + + // Check table + $query->update($db->quoteName('#__componentbuilder_admin_fields'))->set($fields)->where($conditions); + + $db->setQuery($query); + + $db->execute(); + } + } + + return false; + } +} diff --git a/admin/models/admins_fields_conditions.php b/admin/models/admins_fields_conditions.php new file mode 100644 index 000000000..72ea7266c --- /dev/null +++ b/admin/models/admins_fields_conditions.php @@ -0,0 +1,256 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the Joomla modellist library +jimport('joomla.application.component.modellist'); + +/** + * Admins_fields_conditions Model + */ +class ComponentbuilderModelAdmins_fields_conditions extends JModelList +{ + public function __construct($config = array()) + { + if (empty($config['filter_fields'])) + { + $config['filter_fields'] = array( + 'a.id','id', + 'a.published','published', + 'a.ordering','ordering', + 'a.created_by','created_by', + 'a.modified_by','modified_by' + ); + } + + parent::__construct($config); + } + + /** + * Method to auto-populate the model state. + * + * @return void + */ + protected function populateState($ordering = null, $direction = null) + { + $app = JFactory::getApplication(); + + // Adjust the context to support modal layouts. + if ($layout = $app->input->get('layout')) + { + $this->context .= '.' . $layout; + } + + + $sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int'); + $this->setState('filter.sorting', $sorting); + + $access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int'); + $this->setState('filter.access', $access); + + $search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search'); + $this->setState('filter.search', $search); + + $published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', ''); + $this->setState('filter.published', $published); + + $created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', ''); + $this->setState('filter.created_by', $created_by); + + $created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created'); + $this->setState('filter.created', $created); + + // List state information. + parent::populateState($ordering, $direction); + } + + /** + * Method to get an array of data items. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getItems() + { + // check in items + $this->checkInNow(); + + // load parent items + $items = parent::getItems(); + + // set values to display correctly. + if (ComponentbuilderHelper::checkArray($items)) + { + // get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('admin_fields_conditions.access', 'com_componentbuilder.admin_fields_conditions.' . (int) $item->id) && $user->authorise('admin_fields_conditions.access', 'com_componentbuilder')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + } + } + + // return items + return $items; + } + + /** + * Method to build an SQL query to load the list data. + * + * @return string An SQL query + */ + protected function getListQuery() + { + // Get the user object. + $user = JFactory::getUser(); + // Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // Select some fields + $query->select('a.*'); + + // From the componentbuilder_item table + $query->from($db->quoteName('#__componentbuilder_admin_fields_conditions', 'a')); + + // From the componentbuilder_admin_view table. + $query->select($db->quoteName('g.system_name','admin_view_system_name')); + $query->join('LEFT', $db->quoteName('#__componentbuilder_admin_view', 'g') . ' ON (' . $db->quoteName('a.admin_view') . ' = ' . $db->quoteName('g.id') . ')'); + + // Filter by published state + $published = $this->getState('filter.published'); + if (is_numeric($published)) + { + $query->where('a.published = ' . (int) $published); + } + elseif ($published === '') + { + $query->where('(a.published = 0 OR a.published = 1)'); + } + + // Join over the asset groups. + $query->select('ag.title AS access_level'); + $query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access'); + // Filter by access level. + if ($access = $this->getState('filter.access')) + { + $query->where('a.access = ' . (int) $access); + } + // Implement View Level Access + if (!$user->authorise('core.options', 'com_componentbuilder')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + + // Add the list ordering clause. + $orderCol = $this->state->get('list.ordering', 'a.id'); + $orderDirn = $this->state->get('list.direction', 'asc'); + if ($orderCol != '') + { + $query->order($db->escape($orderCol . ' ' . $orderDirn)); + } + + return $query; + } + + /** + * Method to get a store id based on model configuration state. + * + * @return string A store id. + * + */ + protected function getStoreId($id = '') + { + // Compile the store id. + $id .= ':' . $this->getState('filter.id'); + $id .= ':' . $this->getState('filter.search'); + $id .= ':' . $this->getState('filter.published'); + $id .= ':' . $this->getState('filter.ordering'); + $id .= ':' . $this->getState('filter.created_by'); + $id .= ':' . $this->getState('filter.modified_by'); + + return parent::getStoreId($id); + } + + /** + * Build an SQL query to checkin all items left checked out longer then a set time. + * + * @return a bool + * + */ + protected function checkInNow() + { + // Get set check in time + $time = JComponentHelper::getParams('com_componentbuilder')->get('check_in'); + + if ($time) + { + + // Get a db connection. + $db = JFactory::getDbo(); + // reset query + $query = $db->getQuery(true); + $query->select('*'); + $query->from($db->quoteName('#__componentbuilder_admin_fields_conditions')); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + // Get Yesterdays date + $date = JFactory::getDate()->modify($time)->toSql(); + // reset query + $query = $db->getQuery(true); + + // Fields to update. + $fields = array( + $db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'', + $db->quoteName('checked_out') . '=0' + ); + + // Conditions for which records should be updated. + $conditions = array( + $db->quoteName('checked_out') . '!=0', + $db->quoteName('checked_out_time') . '<\''.$date.'\'' + ); + + // Check table + $query->update($db->quoteName('#__componentbuilder_admin_fields_conditions'))->set($fields)->where($conditions); + + $db->setQuery($query); + + $db->execute(); + } + } + + return false; + } +} diff --git a/admin/models/ajax.php b/admin/models/ajax.php index 6e558c1c1..3075281bc 100644 --- a/admin/models/ajax.php +++ b/admin/models/ajax.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage ajax.php @@ -177,12 +177,561 @@ class ComponentbuilderModelAjax extends JModelList } // Used in admin_view + + protected $viewid = array(); + + protected function getViewID($call = 'table') + { + if (!isset($this->viewid[$call])) + { + // get the vdm key + $jinput = JFactory::getApplication()->input; + $vdm = $jinput->get('vdm', null, 'WORD'); + if ($vdm) + { + if ($view = ComponentbuilderHelper::get($vdm)) + { + $current = (array) explode('__', $view); + if (ComponentbuilderHelper::checkString($current[0]) && isset($current[1]) && is_numeric($current[1])) + { + // get the view name & id + $this->viewid[$call] = array( + 'a_id' => (int) $current[1], + 'a_view' => $current[0] + ); + } + } + } + } + if (isset($this->viewid[$call])) + { + return $this->viewid[$call]; + } + return false; + } + + protected $buttonArray = array( + 'admin_fields' => 'admins_fields', + 'admin_fields_conditions' => 'admins_fields_conditions', + 'field' => 'fields', + 'language' => true); + + public function getButton($type) + { + if (isset($this->buttonArray[$type])) + { + $user = JFactory::getUser(); + // only add if user allowed to create + if ($user->authorise($type.'.create', 'com_componentbuilder')) + { + // get the view name & id + $values = $this->getViewID(); + // check if new item + $ref = ''; + if (!is_null($values['a_id']) && $values['a_id'] > 0 && strlen($values['a_view'])) + { + // only load referal if not new item. + $ref = '&ref=' . $values['a_view'] . '&refid=' . $values['a_id']; + } + // build the button + $button = '
+
+ +
+ +
'; + // return the button attached to input field + return $button; + } + return ''; + } + return false; + } + + public function getButtonID($type, $size) + { + if (isset($this->buttonArray[$type])) + { + $user = JFactory::getUser(); + // only add if user allowed to create + if ($user->authorise($type.'.create', 'com_componentbuilder')) + { + // get the view name & id + $values = $this->getViewID(); + // check if new item + $ref = ''; + if (!is_null($values['a_id']) && $values['a_id'] > 0 && strlen($values['a_view'])) + { + // only load referal if not new item. + $ref = '&ref=' . $values['a_view'] . '&refid=' . $values['a_id']; + // get item id + if ($id = ComponentbuilderHelper::getVar($type, $values['a_id'], $values['a_view'], 'id')) + { + $buttonText = JText::sprintf('COM_COMPONENTBUILDER_EDIT_S_FOR_THIS_S', ComponentbuilderHelper::safeString($type, 'w'), ComponentbuilderHelper::safeString($values['a_view'], 'w')); + $buttonTextSmall = JText::_('COM_COMPONENTBUILDER_EDIT'); + $editThis = 'index.php?option=com_componentbuilder&view='.$this->buttonArray[$type].'&task='.$type.'.edit&id='.$id; + $icon = 'icon-apply'; + } + else + { + $buttonText = JText::sprintf('COM_COMPONENTBUILDER_CREATE_S_FOR_THIS_S', ComponentbuilderHelper::safeString($type, 'w'), ComponentbuilderHelper::safeString($values['a_view'], 'w')); + $buttonTextSmall = JText::_('COM_COMPONENTBUILDER_CREATE'); + $editThis = 'index.php?option=com_componentbuilder&view='.$type.'&layout=edit'; + $icon = 'icon-new'; + } + // build the button + $button = array(); + if (1 == $size) + { + $button[] = '
'; + $button[] = '
'; + $button[] = ''; + $button[] = '
'; + $button[] = ''; + $button[] = '
'; + } + elseif (2 == $size) + { + $button[] = ''; + $button[] = $buttonTextSmall; + $button[] = ''; + } + // return the button attached to input field + return implode("\n", $button); + } + // only return notice if big button + if (1 == $size) + { + return '
' . JText::sprintf('COM_COMPONENTBUILDER_BUTTON_TO_CREATE_S_WILL_SHOW_ONCE_S_IS_SAVED_FOR_THE_FIRST_TIME', ComponentbuilderHelper::safeString($type, 'w'), ComponentbuilderHelper::safeString($values['a_view'], 'w')) . '
'; + } + } + } + return ''; + } + public static function getImportScripts($type) { // get from global helper return ComponentbuilderHelper::getImportScripts($type); } + protected $functionArray = array( + 'field' => 'setFieldsNames', + 'list' => 'setYesNo', + 'title' => 'setYesNo', + 'alias' => 'setYesNo', + 'sort' => 'setYesNo', + 'search' => 'setYesNo', + 'filter' => 'setYesNo', + 'link' => 'setYesNo', + 'permission' => 'setYesNo', + 'tab' => 'setTabName', + 'alignment' => 'setAlignmentName', + 'target_field' => 'setFieldsNames', + 'target_behavior' => 'setTargetBehavior', + 'target_relation' => 'setTargetRelation', + 'match_field' => 'setFieldsNames', + 'match_behavior' => 'setMatchBehavior', + 'match_options' => 'setMatchOptions'); + + protected function getSubformTable($idName, $data) + { + // make sure we convert the json to array + if (ComponentbuilderHelper::checkJson($data)) + { + $data = json_decode($data, true); + } + // make sure we have an array + if (ComponentbuilderHelper::checkArray($data) && ComponentbuilderHelper::checkString($idName)) + { + // Build heading + $head = array(); + foreach ($data as $headers) + { + foreach ($headers as $header => $value) + { + $head[$header] = '' . ComponentbuilderHelper::safeString($header, 'Ww'); + } + } + // build the rows + $rows = array(); + if (ComponentbuilderHelper::checkArray($data) && ComponentbuilderHelper::checkArray($head)) + { + foreach ($data as $nr => $values) + { + foreach ($head as $key => $t) + { + // set the value for the row + if (isset($values[$key])) + { + $this->setSubformRows($nr, $this->setSubformValue($key, $values[$key]), $rows); + } + else + { + $this->setSubformRows($nr, $this->setSubformValue($key, ''), $rows); + } + } + } + } + // build table + if (ComponentbuilderHelper::checkArray($rows) && ComponentbuilderHelper::checkArray($head)) + { + // set the number of rows + $this->rowNumber = count($rows); + // return the table + return $this->setSubformTable($head, $rows, $idName); + } + } + return false; + } + + protected function setSubformTable($head, $rows, $idName) + { + $table[] = "
"; + $table[] = "\t
"; + $table[] = "\t\t
"; + $table[] = "\t\t\t"; + $table[] = "\t\t\t\t"; + $table[] = "\t\t\t\t\t"; + $table[] = "\t\t\t\t\t\t". implode("", $head); + $table[] = "\t\t\t\t\t"; + $table[] = "\t\t\t\t"; + $table[] = "\t\t\t\t"; + foreach ($rows as $row) + { + $table[] = "\t\t\t\t\t"; + $table[] = "\t\t\t\t\t\t" . $row; + $table[] = "\t\t\t\t\t"; + } + $table[] = "\t\t\t\t"; + $table[] = "\t\t\t
"; + $table[] = "\t\t
"; + $table[] = "\t
"; + $table[] = "
"; + // return the table + return implode("\n", $table); + } + + protected function setSubformValue($header, $value) + { + if (array_key_exists($header, $this->functionArray) && method_exists($this, $this->functionArray[$header])) + { + $value = $this->{$this->functionArray[$header]}($header, $value); + } + // if no value are set + if (!ComponentbuilderHelper::checkString($value)) + { + $value = '-'; + } + return $value; + } + + protected function setSubformRows($nr, $value, &$rows) + { + // build rows + if (!isset($rows[$nr])) + { + $rows[$nr] = ''.$value.''; + } + else + { + $rows[$nr] .= ''.$value.''; + } + } + + protected $ref; + protected $fieldsArray = array( + 'admin_fields' => 'addfields', + 'admin_fields_conditions' => 'addconditions'); + + public function getFieldsDisplay($type) + { + if (isset($this->fieldsArray[$type])) + { + // set type name + $typeName = ComponentbuilderHelper::safeString($type, 'w'); + // get the view name & id + $values = $this->getViewID(); + // check if we are in the correct view. + if (!is_null($values['a_id']) && $values['a_id'] > 0 && strlen($values['a_view']) && $values['a_view'] === 'admin_view') + { + $this->ref = '&ref=admin_view&refid=' . $values['a_id']; + // get the field data + if ($fieldsData = ComponentbuilderHelper::getVar($type, (int) $values['a_id'], 'admin_view', $this->fieldsArray[$type])) + { + // check repeatable conversion + $this->checkRepeatableConversion($fieldsData, $type, $values['a_id']); + // get the table + $table = $this->getSubformTable($type, $fieldsData); + // set notice of bad practice + $notice = ''; + if (isset($this->rowNumber) && $this->rowNumber > 50) + { + $notice = '
' . JText::sprintf('COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_FIFTY_S_IS_CONSIDERED_BAD_PRACTICE_YOUR_S_PAGE_LOAD_IN_JCB_WILL_SLOWDOWN_YOU_SHOULD_CONSIDER_DECOUPLING_SOME_OF_THESE_S', $this->rowNumber, $typeName, $typeName, $typeName, $typeName) . '
'; + } + elseif (isset($this->rowNumber)) + { + $notice = '
' . JText::sprintf('COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_FIFTY_S_IS_CONSIDERED_BAD_PRACTICE', $this->rowNumber, $typeName, $typeName) . '
'; + } + // return table + return $notice.$table; + } + } + return '
' . JText::sprintf('COM_COMPONENTBUILDER_NO_S_HAVE_BEEN_LINKED_TO_THIS_VIEW_SOON_AS_THIS_IS_DONE_IT_WILL_BE_DISPLAYED_HERE', $typeName) . '
'; + } + return '

' . JText::_('COM_COMPONENTBUILDER_TYPE_ERROR') . '

' . JText::_('COM_COMPONENTBUILDER_THERE_HAS_BEEN_AN_ERROR_IF_THIS_CONTINUES_PLEASE_INFORM_YOUR_SYSTEM_ADMINISTRATOR_OF_A_TYPE_ERROR_IN_THE_FIELDS_DISPLAY_REQUEST') . '

'; + } + + protected $conversionCheck = array( + 'addfields' => 'field', + 'addconditions' => 'target_field'); + + protected function checkRepeatableConversion(&$fieldsData, $type, $id) + { + if (ComponentbuilderHelper::checkJson($fieldsData)) + { + $fieldsData = json_decode($fieldsData, true); + if (isset($fieldsData[$this->conversionCheck[$this->fieldsArray[$type]]])) + { + $bucket = array(); + foreach($fieldsData as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket[$this->fieldsArray[$type].$nr][$option] = $value; + } + } + $fieldsData = json_encode($bucket); + // update the fields + $objectUpdate = new stdClass(); + $objectUpdate->admin_view = (int) $id; + $objectUpdate->{$this->fieldsArray[$type]} = $fieldsData; + JFactory::getDbo()->updateObject('#__componentbuilder_'.$type, $objectUpdate, 'admin_view'); + } + } + } + + protected function setAlignmentName($header, $value) + { + switch ($value) + { + case 1: + return JText::_('COM_COMPONENTBUILDER_LEFT_IN_TAB'); + break; + case 2: + return JText::_('COM_COMPONENTBUILDER_RIGHT_IN_TAB'); + break; + case 3: + return JText::_('COM_COMPONENTBUILDER_FULL_WIDTH_IN_TAB'); + break; + case 4: + return JText::_('COM_COMPONENTBUILDER_ABOVE_TABS'); + break; + case 5: + return JText::_('COM_COMPONENTBUILDER_UNDERNEATH_TABS'); + break; + case 6: + return JText::_('COM_COMPONENTBUILDER_LEFT_OF_TABS'); + break; + case 7: + return JText::_('COM_COMPONENTBUILDER_RIGHT_OF_TABS'); + break; + } + return JText::_('COM_COMPONENTBUILDER_NOT_SET'); + } + + protected $fieldNames = array(); + + protected function setFieldsNames($header, $value) + { + $bucket = array(); + if (ComponentbuilderHelper::checkArray($value)) + { + foreach ($value as $field) + { + if (!isset($this->fieldNames[$field])) + { + if (!$this->fieldNames[$field] = ComponentbuilderHelper::getVar('field', (int) $field, 'id', 'name')) + { + $this->fieldNames[$field] = JText::_('COM_COMPONENTBUILDER_NO_FIELD_FOUND'); + } + } + $bucket[] = $this->fieldNames[$field] . $this->addEditLink($field, 'field', 'fields'); + } + } + elseif (is_numeric($value)) + { + if (!isset($this->fieldNames[$value])) + { + if (!$this->fieldNames[$value] = ComponentbuilderHelper::getVar('field', (int) $value, 'id', 'name')) + { + $this->fieldNames[$value] = JText::_('COM_COMPONENTBUILDER_NO_FIELD_FOUND'); + } + } + $bucket[] = $this->fieldNames[$value] . $this->addEditLink($value, 'field', 'fields'); + } + // return found fields + if (ComponentbuilderHelper::checkArray($bucket)) + { + return implode('
', $bucket); + } + return JText::_('COM_COMPONENTBUILDER_NO_FIELD_FOUND'); + } + + protected function addEditLink($id, $view, $views) + { + // can edit + if ($this->canEdit($id)) + { + $edit = "index.php?option=com_componentbuilder&view=".$views."&task=".$view.".edit&id=".$id.$this->ref; + return ' '; + + } + return ''; + } + + protected $user; + + protected function canEdit($id, $view = 'admin_fields') + { + // load field permission check + if (!ComponentbuilderHelper::checkObject($this->user)) // TODO && $this->user instanceof JUser) + { + $this->user = JFactory::getUser(); + } + return $this->user->authorise($view.'.edit', 'com_componentbuilder.'.$view.'.' . (int) $id); + } + + protected $tabNames = array(); + + protected function setTabName($header, $value) + { + if (!ComponentbuilderHelper::checkArray($this->tabNames)) + { + // get the view name & id + $values = $this->getViewID(); + if (!is_null($values['a_id']) && $values['a_id'] > 0 && strlen($values['a_view']) && $values['a_view'] === 'admin_view') + { + if ($tabs = ComponentbuilderHelper::getVar('admin_view', $values['a_id'], 'id', 'addtabs')) + { + $tabs = json_decode($tabs, true); + if (ComponentbuilderHelper::checkArray($tabs)) + { + $nr = 1; + foreach ($tabs as $tab) + { + if (ComponentbuilderHelper::checkArray($tab) && isset($tab['name'])) + { + $this->tabNames[$nr] = $tab['name']; + $nr++; + } + } + } + } + } + } + // has it been set + if (ComponentbuilderHelper::checkArray($this->tabNames) && isset($this->tabNames[$value])) + { + return $this->tabNames[$value]; + } + return JText::_('COM_COMPONENTBUILDER_DETAILS'); + } + + protected function setYesNo($header, $value) + { + if (1 == $value) + { + return JText::_('COM_COMPONENTBUILDER_YES'); + } + return JText::_('COM_COMPONENTBUILDER_NO'); + } + + protected function setTargetBehavior($header, $value) + { + if (1 == $value) + { + return JText::_('COM_COMPONENTBUILDER_SHOW'); + } + return JText::_('COM_COMPONENTBUILDER_HIDE'); + } + + protected function setTargetRelation($header, $value) + { + switch ($value) + { + case 0: + return JText::_('COM_COMPONENTBUILDER_ISOLATE'); + break; + case 1: + return JText::_('COM_COMPONENTBUILDER_CHAIN'); + break; + } + return JText::_('COM_COMPONENTBUILDER_NOT_SET'); + } + + protected function setMatchBehavior($header, $value) + { + switch ($value) + { + case 1: + return JText::_('COM_COMPONENTBUILDER_IS_ONLY_FOUR_LISTRADIOCHECKBOXES'); + break; + case 2: + return JText::_('COM_COMPONENTBUILDER_IS_NOT_ONLY_FOUR_LISTRADIOCHECKBOXES'); + break; + case 3: + return JText::_('COM_COMPONENTBUILDER_ANY_SELECTION_ONLY_FOUR_LISTRADIOCHECKBOXESDYNAMIC_LIST'); + break; + case 4: + return JText::_('COM_COMPONENTBUILDER_ACTIVE_ONLY_FOUR_TEXT_FIELD'); + break; + case 5: + return JText::_('COM_COMPONENTBUILDER_UNACTIVE_ONLY_FOUR_TEXT_FIELD'); + break; + case 6: + return JText::_('COM_COMPONENTBUILDER_KEY_WORD_ALL_CASESENSITIVE_ONLY_FOUR_TEXT_FIELD'); + break; + case 7: + return JText::_('COM_COMPONENTBUILDER_KEY_WORD_ANY_CASESENSITIVE_ONLY_FOUR_TEXT_FIELD'); + break; + case 8: + return JText::_('COM_COMPONENTBUILDER_KEY_WORD_ALL_CASEINSENSITIVE_ONLY_FOUR_TEXT_FIELD'); + break; + case 9: + return JText::_('COM_COMPONENTBUILDER_KEY_WORD_ANY_CASEINSENSITIVE_ONLY_FOUR_TEXT_FIELD'); + break; + case 10: + return JText::_('COM_COMPONENTBUILDER_MIN_LENGTH_ONLY_FOUR_TEXT_FIELD'); + break; + case 11: + return JText::_('COM_COMPONENTBUILDER_MAX_LENGTH_ONLY_FOUR_TEXT_FIELD'); + break; + case 12: + return JText::_('COM_COMPONENTBUILDER_EXACT_LENGTH_ONLY_FOUR_TEXT_FIELD'); + break; + } + return JText::_('COM_COMPONENTBUILDER_NOT_SET'); + } + + protected function setMatchOptions($header, $value) + { + return str_replace("\n", "
", $value); + } + public function getFieldSelectOptions($id) { // Get a db connection. @@ -374,17 +923,18 @@ class ComponentbuilderModelAjax extends JModelList } // Used in dynamic_get - public function getViewTableColumns($id, $as, $type) + public function getViewTableColumns($admin_view, $as, $type) { // Get a db connection. $db = JFactory::getDbo(); // Create a new query object. $query = $db->getQuery(true); - $query->select($db->quoteName(array('addfields', 'name_single'))); - $query->from($db->quoteName('#__componentbuilder_admin_view')); - $query->where($db->quoteName('published') . ' = 1'); - $query->where($db->quoteName('id') . ' = '. $id); + $query->select($db->quoteName(array('a.addfields', 'b.name_single'))); + $query->from($db->quoteName('#__componentbuilder_admin_fields', 'a')); + $query->join('LEFT', $db->quoteName('#__componentbuilder_admin_view', 'b') . ' ON (' . $db->quoteName('a.admin_view') . ' = ' . $db->quoteName('b.id') . ')'); + $query->where($db->quoteName('b.published') . ' = 1'); + $query->where($db->quoteName('a.admin_view') . ' = '. (int) $admin_view); // Reset the query using our newly populated query object. $db->setQuery($query); @@ -403,29 +953,17 @@ class ComponentbuilderModelAjax extends JModelList { $fields = array(); // get data - foreach ($addfields as $option => $values) + foreach ($addfields as $nr => $value) { - foreach ($values as $nr => $value) + $tmp = $this->getFieldData((int) $value['field']); + if (ComponentbuilderHelper::checkArray($tmp)) { - if ($option == 'field') - { - $value = $this->getFieldData((int) $value); - if (ComponentbuilderHelper::checkArray($value)) - { - $field[$nr] = $value; - } - } - elseif ($option == 'alias') - { - if ($value == 1) - { - $name[$nr] = 'alias'; - } - else - { - $name[$nr] = ''; - } - } + $field[$nr] = $tmp; + } + // insure it is set to alias if needed + if ($value['alias'] == 1) + { + $field[$nr]['name'] = 'alias'; } } // add the basic defaults @@ -436,10 +974,6 @@ class ComponentbuilderModelAjax extends JModelList { if (ComponentbuilderHelper::checkArray($f)) { - if (ComponentbuilderHelper::checkString($name[$n])) - { - $f['name'] = $name[$n]; - } $fields[] = $as.".".$f['name']." AS ".$tableName.$f['name']; } } @@ -635,7 +1169,7 @@ class ComponentbuilderModelAjax extends JModelList unset($result->php_calculation); } // name the main var based on view - if ($view == 'template') + if ('template' === $view || 'site_view' === $view) { switch ($result->gettype) { @@ -745,7 +1279,7 @@ class ComponentbuilderModelAjax extends JModelList return false; } - protected function setListMethodName($names,$table,$as,$type) + protected function setListMethodName($names, $table, $as, $type) { $methodNames = array(); if (ComponentbuilderHelper::checkArray($names)) @@ -792,21 +1326,10 @@ class ComponentbuilderModelAjax extends JModelList protected function getViewName($id) { - // Get a db connection. - $db = JFactory::getDbo(); - - // Create a new query object. - $query = $db->getQuery(true); - $query->select($db->quoteName(array('name_single'))); - $query->from($db->quoteName('#__componentbuilder_admin_view')); - $query->where($db->quoteName('id') . ' = '. (int) $id); - - // Reset the query using our newly populated query object. - $db->setQuery($query); - $db->execute(); - if ($db->getNumRows()) + // Get the view name + if ($name = ComponentbuilderHelper::getVar('admin_view', (int) $id, 'id', 'name_single')) { - return $db->loadResult(); + return $name; } return ''; } @@ -911,7 +1434,7 @@ class ComponentbuilderModelAjax extends JModelList $query['a']['select'] = array('id', 'system_name', 'php_preflight_install','php_postflight_install', 'php_preflight_update','php_postflight_update','php_method_uninstall', 'php_helper_admin','php_admin_event','php_helper_both','php_helper_site', - 'php_site_event','php_dashboard_methods','dashboard_tab'); + 'php_site_event','php_dashboard_methods','dashboard_tab','javascript'); $query['a']['not_base64'] = array('dashboard_tab' => 'json'); $query['a']['name'] = 'system_name'; @@ -1024,81 +1547,5 @@ class ComponentbuilderModelAjax extends JModelList return $field; } return false; - } - - // Used in language_translation - - protected $viewid = array(); - - protected function getViewID($call = 'table') - { - if (!isset($this->viewid[$call])) - { - // get the vdm key - $jinput = JFactory::getApplication()->input; - $vdm = $jinput->get('vdm', null, 'WORD'); - if ($vdm) - { - if ($view = ComponentbuilderHelper::get($vdm)) - { - $current = (array) explode('__', $view); - if (ComponentbuilderHelper::checkString($current[0]) && isset($current[1]) && is_numeric($current[1])) - { - // get the view name & id - $this->viewid[$call] = array( - 'a_id' => (int) $current[1], - 'a_view' => $current[0] - ); - } - } - } - } - if (isset($this->viewid[$call])) - { - return $this->viewid[$call]; - } - return false; - } - - protected $buttonArray = array( - 'language' => true); - - public function getButton($type) - { - if (isset($this->buttonArray[$type])) - { - $user = JFactory::getUser(); - // only add if user allowed to create - if ($user->authorise($type.'.create', 'com_componentbuilder')) - { - // get the input from url - $jinput = JFactory::getApplication()->input; - // get the view name & id - $values = $this->getViewID(); - // check if new item - $ref = ''; - if (!is_null($values['a_id']) && $values['a_id'] > 0 && strlen($values['a_view'])) - { - // only load referal if not new item. - $ref = '&ref=' . $values['a_view'] . '&refid=' . $values['a_id']; - } - // build the button - $button = '
-
- -
- -
'; - // return the button attached to input field - return $button; - } - return ''; - } - return false; } } diff --git a/admin/models/compiler.php b/admin/models/compiler.php index 434ac8f16..8210c6aea 100644 --- a/admin/models/compiler.php +++ b/admin/models/compiler.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 55 of this MVC - @build 13th September, 2017 + @version @update number 57 of this MVC + @build 13th October, 2017 @created 1st February, 2017 @package Component Builder @subpackage compiler.php diff --git a/admin/models/componentbuilder.php b/admin/models/componentbuilder.php index a479053d4..d815ef3e4 100644 --- a/admin/models/componentbuilder.php +++ b/admin/models/componentbuilder.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage componentbuilder.php @@ -49,11 +49,13 @@ class ComponentbuilderModelComponentbuilder extends JModelList $viewAccess = array( 'compiler.submenu' => 'compiler.submenu', 'compiler.dashboard_list' => 'compiler.dashboard_list', + 'joomla_component.create' => 'joomla_component.create', 'joomla_components.access' => 'joomla_component.access', 'joomla_component.access' => 'joomla_component.access', 'joomla_components.submenu' => 'joomla_component.submenu', 'joomla_components.dashboard_list' => 'joomla_component.dashboard_list', 'joomla_component.dashboard_add' => 'joomla_component.dashboard_add', + 'admin_view.create' => 'admin_view.create', 'admin_views.access' => 'admin_view.access', 'admin_view.access' => 'admin_view.access', 'admin_views.submenu' => 'admin_view.submenu', @@ -126,7 +128,13 @@ class ComponentbuilderModelComponentbuilder extends JModelList 'help_document.access' => 'help_document.access', 'help_documents.submenu' => 'help_document.submenu', 'help_documents.dashboard_list' => 'help_document.dashboard_list', - 'help_document.dashboard_add' => 'help_document.dashboard_add'); + 'help_document.dashboard_add' => 'help_document.dashboard_add', + 'admin_fields.create' => 'admin_fields.create', + 'admins_fields.access' => 'admin_fields.access', + 'admin_fields.access' => 'admin_fields.access', + 'admin_fields_conditions.create' => 'admin_fields_conditions.create', + 'admins_fields_conditions.access' => 'admin_fields_conditions.access', + 'admin_fields_conditions.access' => 'admin_fields_conditions.access'); foreach($viewGroups as $group => $views) { $i = 0; diff --git a/admin/models/custom_admin_view.php b/admin/models/custom_admin_view.php index 83baf65c1..eac01ceb5 100644 --- a/admin/models/custom_admin_view.php +++ b/admin/models/custom_admin_view.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 27 of this MVC - @build 27th September, 2017 + @version @update number 32 of this MVC + @build 20th October, 2017 @created 13th August, 2015 @package Component Builder @subpackage custom_admin_view.php @@ -103,6 +103,14 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin $item->custom_get = $custom_get->toArray(); } + if (!empty($item->custom_button)) + { + // Convert the custom_button field to an array. + $custom_button = new Registry; + $custom_button->loadString($item->custom_button); + $item->custom_button = $custom_button->toArray(); + } + if (!empty($item->php_controller)) { // base64 Decode php_controller. @@ -161,6 +169,27 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin { // base64 Decode css. $item->css = base64_decode($item->css); + } + + // check what type of custom_button array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($item->custom_button) && isset($item->custom_button['name'])) + { + $bucket = array(); + foreach($item->custom_button as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket['custom_button'.$nr][$option] = $value; + } + } + $item->custom_button = $bucket; + // update the fields + $objectUpdate = new stdClass(); + $objectUpdate->id = (int) $item->id; + $objectUpdate->custom_button = json_encode($bucket); + // be sure to update the table if we found repeatable fields that are still not converted + $this->_db->updateObject('#__componentbuilder_custom_admin_view', $objectUpdate, 'id'); } if (!empty($item->id)) @@ -169,7 +198,7 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin $item->tags->getTagIds($item->id, 'com_componentbuilder.custom_admin_view'); } } - $this->addcustom_admin_viewsvvwb = $item->id; + $this->addcustom_admin_viewsvvwa = $item->id; return $item; } @@ -179,7 +208,7 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getVyklinked_components() + public function getVyjlinked_components() { // Get the user object. $user = JFactory::getUser(); @@ -219,15 +248,32 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin { $items = $db->loadObjectList(); - // Filter by addcustom_admin_viewsvvwb in this Repetable Field - if (ComponentbuilderHelper::checkArray($items) && isset($this->addcustom_admin_viewsvvwb)) + // set values to display correctly. + if (ComponentbuilderHelper::checkArray($items)) + { + // get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('joomla_component.access', 'com_componentbuilder.joomla_component.' . (int) $item->id) && $user->authorise('joomla_component.access', 'com_componentbuilder')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + } + } + + // Filter by addcustom_admin_viewsvvwa in this Repetable Field + if (ComponentbuilderHelper::checkArray($items) && isset($this->addcustom_admin_viewsvvwa)) { foreach ($items as $nr => &$item) { if (isset($item->addcustom_admin_views) && ComponentbuilderHelper::checkJson($item->addcustom_admin_views)) { $tmpArray = json_decode($item->addcustom_admin_views,true); - if (!isset($tmpArray['customadminview']) || !ComponentbuilderHelper::checkArray($tmpArray['customadminview']) || !in_array($this->addcustom_admin_viewsvvwb, $tmpArray['customadminview'])) + if (!isset($tmpArray['customadminview']) || !ComponentbuilderHelper::checkArray($tmpArray['customadminview']) || !in_array($this->addcustom_admin_viewsvvwa, $tmpArray['customadminview'])) { unset($items[$nr]); continue; @@ -975,6 +1021,19 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin $data['custom_get'] = ''; } + // Set the custom_button items to data. + if (isset($data['custom_button']) && is_array($data['custom_button'])) + { + $custom_button = new JRegistry; + $custom_button->loadArray($data['custom_button']); + $data['custom_button'] = (string) $custom_button; + } + elseif (!isset($data['custom_button'])) + { + // Set the empty custom_button to data + $data['custom_button'] = ''; + } + // Set the php_controller string to base64 string. if (isset($data['php_controller'])) { diff --git a/admin/models/custom_admin_views.php b/admin/models/custom_admin_views.php index cd0c73eb1..0287d9644 100644 --- a/admin/models/custom_admin_views.php +++ b/admin/models/custom_admin_views.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 27 of this MVC - @build 27th September, 2017 + @version @update number 32 of this MVC + @build 20th October, 2017 @created 13th August, 2015 @package Component Builder @subpackage custom_admin_views.php diff --git a/admin/models/custom_code.php b/admin/models/custom_code.php index 854277316..ff8535e42 100644 --- a/admin/models/custom_code.php +++ b/admin/models/custom_code.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 82 of this MVC - @build 4th October, 2017 + @version @update number 84 of this MVC + @build 13th October, 2017 @created 11th October, 2016 @package Component Builder @subpackage custom_code.php diff --git a/admin/models/custom_codes.php b/admin/models/custom_codes.php index a2bb144a4..34fe22303 100644 --- a/admin/models/custom_codes.php +++ b/admin/models/custom_codes.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 82 of this MVC - @build 4th October, 2017 + @version @update number 84 of this MVC + @build 13th October, 2017 @created 11th October, 2016 @package Component Builder @subpackage custom_codes.php diff --git a/admin/models/dynamic_get.php b/admin/models/dynamic_get.php index 548deab14..0c561c3a0 100644 --- a/admin/models/dynamic_get.php +++ b/admin/models/dynamic_get.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 94 of this MVC - @build 27th September, 2017 + @version @update number 98 of this MVC + @build 20th October, 2017 @created 21st May, 2015 @package Component Builder @subpackage dynamic_get.php diff --git a/admin/models/dynamic_gets.php b/admin/models/dynamic_gets.php index 86c3fbdc7..5ecc96b95 100644 --- a/admin/models/dynamic_gets.php +++ b/admin/models/dynamic_gets.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 94 of this MVC - @build 27th September, 2017 + @version @update number 98 of this MVC + @build 20th October, 2017 @created 21st May, 2015 @package Component Builder @subpackage dynamic_gets.php diff --git a/admin/models/field.php b/admin/models/field.php index b9ae4aaa2..9a63f570c 100644 --- a/admin/models/field.php +++ b/admin/models/field.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 38 of this MVC - @build 28th May, 2017 + @version @update number 40 of this MVC + @build 18th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage field.php @@ -130,102 +130,9 @@ class ComponentbuilderModelField extends JModelAdmin $item->tags = new JHelperTags; $item->tags->getTagIds($item->id, 'com_componentbuilder.field'); } - } - $this->addfieldsvvwd = $item->id; + } return $item; - } - - /** - * Method to get list data. - * - * @return mixed An array of data items on success, false on failure. - */ - public function getWaclinked_admin_views() - { - // Get the user object. - $user = JFactory::getUser(); - // Create a new query object. - $db = JFactory::getDBO(); - $query = $db->getQuery(true); - - // Select some fields - $query->select('a.*'); - - // From the componentbuilder_admin_view table - $query->from($db->quoteName('#__componentbuilder_admin_view', 'a')); - - // Join over the asset groups. - $query->select('ag.title AS access_level'); - $query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access'); - // Filter by access level. - if ($access = $this->getState('filter.access')) - { - $query->where('a.access = ' . (int) $access); - } - // Implement View Level Access - if (!$user->authorise('core.options', 'com_componentbuilder')) - { - $groups = implode(',', $user->getAuthorisedViewLevels()); - $query->where('a.access IN (' . $groups . ')'); - } - - // Order the results by ordering - $query->order('a.published ASC'); - $query->order('a.ordering ASC'); - - // Load the items - $db->setQuery($query); - $db->execute(); - if ($db->getNumRows()) - { - $items = $db->loadObjectList(); - - // set values to display correctly. - if (ComponentbuilderHelper::checkArray($items)) - { - // get user object. - $user = JFactory::getUser(); - foreach ($items as $nr => &$item) - { - $access = ($user->authorise('admin_view.access', 'com_componentbuilder.admin_view.' . (int) $item->id) && $user->authorise('admin_view.access', 'com_componentbuilder')); - if (!$access) - { - unset($items[$nr]); - continue; - } - - } - } - - // Filter by addfieldsvvwd in this Repetable Field - if (ComponentbuilderHelper::checkArray($items) && isset($this->addfieldsvvwd)) - { - foreach ($items as $nr => &$item) - { - if (isset($item->addfields) && ComponentbuilderHelper::checkJson($item->addfields)) - { - $tmpArray = json_decode($item->addfields,true); - if (!isset($tmpArray['field']) || !ComponentbuilderHelper::checkArray($tmpArray['field']) || !in_array($this->addfieldsvvwd, $tmpArray['field'])) - { - unset($items[$nr]); - continue; - } - } - else - { - unset($items[$nr]); - continue; - } - } - } - else - { - return false; - } - return $items; - } - return false; } /** diff --git a/admin/models/fields.php b/admin/models/fields.php index fd02aa0b8..cc5717896 100644 --- a/admin/models/fields.php +++ b/admin/models/fields.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 38 of this MVC - @build 28th May, 2017 + @version @update number 40 of this MVC + @build 18th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage fields.php diff --git a/admin/models/fields/adminviewfolderlist.php b/admin/models/fields/adminviewfolderlist.php index d7a0b7779..948ab3331 100644 --- a/admin/models/fields/adminviewfolderlist.php +++ b/admin/models/fields/adminviewfolderlist.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage adminviewfolderlist.php diff --git a/admin/models/fields/adminviews.php b/admin/models/fields/adminviews.php index 9ef2e0894..720337861 100644 --- a/admin/models/fields/adminviews.php +++ b/admin/models/fields/adminviews.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage adminviews.php @@ -79,7 +79,7 @@ class JFormFieldAdminviews extends JFormFieldList } $user = JFactory::getUser(); // only add if user allowed to create admin_view - if ($user->authorise('core.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. + if ($user->authorise('admin_view.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. { // build Create button $buttonNamee = trim($buttonName); @@ -92,7 +92,7 @@ class JFormFieldAdminviews extends JFormFieldList '; } // only add if user allowed to edit admin_view - if (($buttonName === 'admin_view' || $buttonName === 'admin_views') && $user->authorise('core.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. + if (($buttonName === 'admin_view' || $buttonName === 'admin_views') && $user->authorise('admin_view.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. { // build edit button $buttonNamee = trim($buttonName); diff --git a/admin/models/fields/articles.php b/admin/models/fields/articles.php index 8c237a1f6..49c387925 100644 --- a/admin/models/fields/articles.php +++ b/admin/models/fields/articles.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage articles.php diff --git a/admin/models/fields/component.php b/admin/models/fields/component.php index ae516c9c3..907468023 100644 --- a/admin/models/fields/component.php +++ b/admin/models/fields/component.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage component.php @@ -79,7 +79,7 @@ class JFormFieldComponent extends JFormFieldList } $user = JFactory::getUser(); // only add if user allowed to create joomla_component - if ($user->authorise('core.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. + if ($user->authorise('joomla_component.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. { // build Create button $buttonNamee = trim($buttonName); @@ -92,7 +92,7 @@ class JFormFieldComponent extends JFormFieldList '; } // only add if user allowed to edit joomla_component - if (($buttonName === 'joomla_component' || $buttonName === 'joomla_components') && $user->authorise('core.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. + if (($buttonName === 'joomla_component' || $buttonName === 'joomla_components') && $user->authorise('joomla_component.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. { // build edit button $buttonNamee = trim($buttonName); diff --git a/admin/models/fields/components.php b/admin/models/fields/components.php index 7e1ad247e..0e8712c79 100644 --- a/admin/models/fields/components.php +++ b/admin/models/fields/components.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage components.php @@ -79,7 +79,7 @@ class JFormFieldComponents extends JFormFieldList } $user = JFactory::getUser(); // only add if user allowed to create joomla_component - if ($user->authorise('core.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. + if ($user->authorise('joomla_component.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. { // build Create button $buttonNamee = trim($buttonName); @@ -92,7 +92,7 @@ class JFormFieldComponents extends JFormFieldList '; } // only add if user allowed to edit joomla_component - if (($buttonName === 'joomla_component' || $buttonName === 'joomla_components') && $user->authorise('core.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. + if (($buttonName === 'joomla_component' || $buttonName === 'joomla_components') && $user->authorise('joomla_component.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. { // build edit button $buttonNamee = trim($buttonName); diff --git a/admin/models/fields/customadminviews.php b/admin/models/fields/customadminviews.php index f269d5bfe..ef032fc95 100644 --- a/admin/models/fields/customadminviews.php +++ b/admin/models/fields/customadminviews.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage customadminviews.php diff --git a/admin/models/fields/customfilelist.php b/admin/models/fields/customfilelist.php index 25a4fab00..bebe5e3f3 100644 --- a/admin/models/fields/customfilelist.php +++ b/admin/models/fields/customfilelist.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage customfilelist.php diff --git a/admin/models/fields/customfolderlist.php b/admin/models/fields/customfolderlist.php index 0e3685ed4..0e2cce6b8 100644 --- a/admin/models/fields/customfolderlist.php +++ b/admin/models/fields/customfolderlist.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage customfolderlist.php diff --git a/admin/models/fields/customgets.php b/admin/models/fields/customgets.php index d9d89c0ed..452988d33 100644 --- a/admin/models/fields/customgets.php +++ b/admin/models/fields/customgets.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage customgets.php diff --git a/admin/models/fields/dbtables.php b/admin/models/fields/dbtables.php index 3ad08c46d..86b027ccc 100644 --- a/admin/models/fields/dbtables.php +++ b/admin/models/fields/dbtables.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage dbtables.php diff --git a/admin/models/fields/dynamicget.php b/admin/models/fields/dynamicget.php index f3de392d3..90f70d3f3 100644 --- a/admin/models/fields/dynamicget.php +++ b/admin/models/fields/dynamicget.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage dynamicget.php diff --git a/admin/models/fields/dynamicgets.php b/admin/models/fields/dynamicgets.php index a3fbbef60..fa24590dc 100644 --- a/admin/models/fields/dynamicgets.php +++ b/admin/models/fields/dynamicgets.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage dynamicgets.php diff --git a/admin/models/fields/fields.php b/admin/models/fields/fields.php index 5d00a70e0..f37c14ab7 100644 --- a/admin/models/fields/fields.php +++ b/admin/models/fields/fields.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage fields.php diff --git a/admin/models/fields/fieldtypes.php b/admin/models/fields/fieldtypes.php index cd3b2629c..98c2e8746 100644 --- a/admin/models/fields/fieldtypes.php +++ b/admin/models/fields/fieldtypes.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage fieldtypes.php diff --git a/admin/models/fields/ftps.php b/admin/models/fields/ftps.php index 2e2a83614..045b42153 100644 --- a/admin/models/fields/ftps.php +++ b/admin/models/fields/ftps.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage ftps.php diff --git a/admin/models/fields/lang.php b/admin/models/fields/lang.php index 6095d037d..d025e410c 100644 --- a/admin/models/fields/lang.php +++ b/admin/models/fields/lang.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage lang.php diff --git a/admin/models/fields/maingets.php b/admin/models/fields/maingets.php index 18bc93dc4..a3bdccab3 100644 --- a/admin/models/fields/maingets.php +++ b/admin/models/fields/maingets.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage maingets.php diff --git a/admin/models/fields/fieldsmulti.php b/admin/models/fields/matchfield.php similarity index 78% rename from admin/models/fields/fieldsmulti.php rename to admin/models/fields/matchfield.php index 436810fc9..4b143d0a2 100644 --- a/admin/models/fields/fieldsmulti.php +++ b/admin/models/fields/matchfield.php @@ -10,11 +10,11 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder - @subpackage fieldsmulti.php + @subpackage matchfield.php @author Llewellyn van der Merwe @copyright Copyright (C) 2015. All Rights Reserved @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @@ -31,16 +31,16 @@ jimport('joomla.form.helper'); JFormHelper::loadFieldClass('list'); /** - * Fieldsmulti Form Field class for the Componentbuilder component + * Matchfield Form Field class for the Componentbuilder component */ -class JFormFieldFieldsmulti extends JFormFieldList +class JFormFieldMatchfield extends JFormFieldList { /** - * The fieldsmulti field type. + * The matchfield field type. * * @var string */ - public $type = 'fieldsmulti'; + public $type = 'matchfield'; /** * Override to add new button * @@ -149,23 +149,68 @@ class JFormFieldFieldsmulti extends JFormFieldList */ public function getOptions() { - $db = JFactory::getDBO(); - $query = $db->getQuery(true); - $query->select($db->quoteName(array('a.id','a.name'),array('id','target_field_name'))); - $query->from($db->quoteName('#__componentbuilder_field', 'a')); - $query->where($db->quoteName('a.published') . ' = 1'); - $query->order('a.name ASC'); - $db->setQuery((string)$query); - $items = $db->loadObjectList(); - $options = array(); - if ($items) - { - $options[] = JHtml::_('select.option', '', 'Select an option'); - foreach($items as $item) - { - $options[] = JHtml::_('select.option', $item->id, $item->target_field_name); - } - } + // load the db opbject + $db = JFactory::getDBO(); + // get the input from url + $jinput = JFactory::getApplication()->input; + // get the id + $ID = $jinput->getInt('id', 0); + // rest the fields ids + $fieldIds = array(); + if (is_numeric($ID) && $ID >= 1) + { + // get the admin view ID + $adminView = ComponentbuilderHelper::getVar('admin_fields_conditions', (int) $ID, 'id', 'admin_view'); + } + else + { + // get the admin view ID + $adminView = $jinput->getInt('refid', 0); + } + if (is_numeric($adminView) && $adminView >= 1) + { + // get all the fields linked to the admin view + if ($addFields = ComponentbuilderHelper::getVar('admin_fields', (int) $adminView, 'admin_view', 'addfields')) + { + if (ComponentbuilderHelper::checkJson($addFields)) + { + $addFields = json_decode($addFields, true); + if (ComponentbuilderHelper::checkArray($addFields)) + { + foreach($addFields as $addField) + { + if (isset($addField['field'])) + { + $fieldIds[] = (int) $addField['field']; + } + } + } + } + } + } + $query = $db->getQuery(true); + $query->select($db->quoteName(array('a.id','a.name'),array('id','name'))); + $query->from($db->quoteName('#__componentbuilder_field', 'a')); + $query->where($db->quoteName('a.published') . ' >= 1'); + // filter by fields linked + if (ComponentbuilderHelper::checkArray($fieldIds)) + { + // only load these fields + $query->where($db->quoteName('a.id') . ' IN (' . implode(',', $fieldIds) . ')'); + } + $query->order('a.name ASC'); + $db->setQuery((string)$query); + $items = $db->loadObjectList(); + $options = array(); + if ($items) + { + $options[] = JHtml::_('select.option', '', 'Select an option'); + foreach($items as $item) + { + $options[] = JHtml::_('select.option', $item->id, $item->name); + } + } + return $options; } } diff --git a/admin/models/fields/siteviewfolderlist.php b/admin/models/fields/siteviewfolderlist.php index b043e9dd4..b86f93a79 100644 --- a/admin/models/fields/siteviewfolderlist.php +++ b/admin/models/fields/siteviewfolderlist.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage siteviewfolderlist.php diff --git a/admin/models/fields/siteviews.php b/admin/models/fields/siteviews.php index b72f11fd6..4c128b10c 100644 --- a/admin/models/fields/siteviews.php +++ b/admin/models/fields/siteviews.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage siteviews.php diff --git a/admin/models/fields/snippets.php b/admin/models/fields/snippets.php index 119083765..9975c16af 100644 --- a/admin/models/fields/snippets.php +++ b/admin/models/fields/snippets.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.6 - @build 6th October, 2017 + @version 2.5.8 + @build 20th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage snippets.php diff --git a/admin/models/fields/targetfields.php b/admin/models/fields/targetfields.php new file mode 100644 index 000000000..20f358dd6 --- /dev/null +++ b/admin/models/fields/targetfields.php @@ -0,0 +1,215 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the list field type +jimport('joomla.form.helper'); +JFormHelper::loadFieldClass('list'); + +/** + * Targetfields Form Field class for the Componentbuilder component + */ +class JFormFieldTargetfields extends JFormFieldList +{ + /** + * The targetfields field type. + * + * @var string + */ + public $type = 'targetfields'; + /** + * Override to add new button + * + * @return string The field input markup. + * + * @since 3.2 + */ + protected function getInput() + { + // see if we should add buttons + $setButton = $this->getAttribute('button'); + // get html + $html = parent::getInput(); + // if true set button + if ($setButton === 'true') + { + $button = array(); + $script = array(); + $buttonName = $this->getAttribute('name'); + // get the input from url + $app = JFactory::getApplication(); + $jinput = $app->input; + // get the view name & id + $values = $jinput->getArray(array( + 'id' => 'int', + 'view' => 'word' + )); + // check if new item + $ref = ''; + $refJ = ''; + if (!is_null($values['id']) && strlen($values['view'])) + { + // only load referal if not new item. + $ref = '&ref=' . $values['view'] . '&refid=' . $values['id']; + $refJ = '&ref=' . $values['view'] . '&refid=' . $values['id']; + } + $user = JFactory::getUser(); + // only add if user allowed to create field + if ($user->authorise('field.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. + { + // build Create button + $buttonNamee = trim($buttonName); + $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee); + $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee); + $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee); + $buttonNamee = ucfirst(strtolower($buttonNamee)); + $button[] = ' + '; + } + // only add if user allowed to edit field + if (($buttonName === 'field' || $buttonName === 'fields') && $user->authorise('field.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. + { + // build edit button + $buttonNamee = trim($buttonName); + $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee); + $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee); + $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee); + $buttonNamee = ucfirst(strtolower($buttonNamee)); + $button[] = ''; + // build script + $script[] = " + jQuery(document).ready(function() { + jQuery('#adminForm').on('change', '#jform_".$buttonName."',function (e) { + e.preventDefault(); + var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val(); + ".$buttonName."Button(".$buttonName."Value); + }); + var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val(); + ".$buttonName."Button(".$buttonName."Value); + }); + function ".$buttonName."Button(value) { + if (value > 0) { + // hide the create button + jQuery('#".$buttonName."Create').hide(); + // show edit button + jQuery('#".$buttonName."Edit').show(); + var url = 'index.php?option=com_componentbuilder&view=fields&task=field.edit&id='+value+'".$refJ."'; + jQuery('#".$buttonName."Edit').attr('href', url); + } else { + // show the create button + jQuery('#".$buttonName."Create').show(); + // hide edit button + jQuery('#".$buttonName."Edit').hide(); + } + }"; + } + // check if button was created for field field. + if (is_array($button) && count($button) > 0) + { + // Load the needed script. + $document = JFactory::getDocument(); + $document->addScriptDeclaration(implode(' ',$script)); + // return the button attached to input field. + return '
' .$html . implode('',$button).'
'; + } + } + return $html; + } + + /** + * Method to get a list of options for a list input. + * + * @return array An array of JHtml options. + */ + public function getOptions() + { + // load the db opbject + $db = JFactory::getDBO(); + // get the input from url + $jinput = JFactory::getApplication()->input; + // get the id + $ID = $jinput->getInt('id', 0); + // rest the fields ids + $fieldIds = array(); + if (is_numeric($ID) && $ID >= 1) + { + // get the admin view ID + $adminView = ComponentbuilderHelper::getVar('admin_fields_conditions', (int) $ID, 'id', 'admin_view'); + } + else + { + // get the admin view ID + $adminView = $jinput->getInt('refid', 0); + } + if (is_numeric($adminView) && $adminView >= 1) + { + // get all the fields linked to the admin view + if ($addFields = ComponentbuilderHelper::getVar('admin_fields', (int) $adminView, 'admin_view', 'addfields')) + { + if (ComponentbuilderHelper::checkJson($addFields)) + { + $addFields = json_decode($addFields, true); + if (ComponentbuilderHelper::checkArray($addFields)) + { + foreach($addFields as $addField) + { + if (isset($addField['field'])) + { + $fieldIds[] = (int) $addField['field']; + } + } + } + } + } + } + $query = $db->getQuery(true); + $query->select($db->quoteName(array('a.id','a.name'),array('id','name'))); + $query->from($db->quoteName('#__componentbuilder_field', 'a')); + $query->where($db->quoteName('a.published') . ' >= 1'); + // filter by fields linked + if (ComponentbuilderHelper::checkArray($fieldIds)) + { + // only load these fields + $query->where($db->quoteName('a.id') . ' IN (' . implode(',', $fieldIds) . ')'); + } + $query->order('a.name ASC'); + $db->setQuery((string)$query); + $items = $db->loadObjectList(); + $options = array(); + if ($items) + { + foreach($items as $item) + { + $options[] = JHtml::_('select.option', $item->id, $item->name); + } + } + + return $options; + } +} diff --git a/admin/models/fields/viewtabs.php b/admin/models/fields/viewtabs.php new file mode 100644 index 000000000..ec6b94c81 --- /dev/null +++ b/admin/models/fields/viewtabs.php @@ -0,0 +1,183 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the list field type +jimport('joomla.form.helper'); +JFormHelper::loadFieldClass('list'); + +/** + * Viewtabs Form Field class for the Componentbuilder component + */ +class JFormFieldViewtabs extends JFormFieldList +{ + /** + * The viewtabs field type. + * + * @var string + */ + public $type = 'viewtabs'; + /** + * Override to add new button + * + * @return string The field input markup. + * + * @since 3.2 + */ + protected function getInput() + { + // see if we should add buttons + $setButton = $this->getAttribute('button'); + // get html + $html = parent::getInput(); + // if true set button + if ($setButton === 'true') + { + $button = array(); + $script = array(); + $buttonName = $this->getAttribute('name'); + // get the input from url + $app = JFactory::getApplication(); + $jinput = $app->input; + // get the view name & id + $values = $jinput->getArray(array( + 'id' => 'int', + 'view' => 'word' + )); + // check if new item + $ref = ''; + $refJ = ''; + if (!is_null($values['id']) && strlen($values['view'])) + { + // only load referal if not new item. + $ref = '&ref=' . $values['view'] . '&refid=' . $values['id']; + $refJ = '&ref=' . $values['view'] . '&refid=' . $values['id']; + } + $user = JFactory::getUser(); + // only add if user allowed to create admin_view + if ($user->authorise('admin_view.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. + { + // build Create button + $buttonNamee = trim($buttonName); + $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee); + $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee); + $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee); + $buttonNamee = ucfirst(strtolower($buttonNamee)); + $button[] = ' + '; + } + // only add if user allowed to edit admin_view + if (($buttonName === 'admin_view' || $buttonName === 'admin_views') && $user->authorise('admin_view.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. + { + // build edit button + $buttonNamee = trim($buttonName); + $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee); + $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee); + $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee); + $buttonNamee = ucfirst(strtolower($buttonNamee)); + $button[] = ''; + // build script + $script[] = " + jQuery(document).ready(function() { + jQuery('#adminForm').on('change', '#jform_".$buttonName."',function (e) { + e.preventDefault(); + var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val(); + ".$buttonName."Button(".$buttonName."Value); + }); + var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val(); + ".$buttonName."Button(".$buttonName."Value); + }); + function ".$buttonName."Button(value) { + if (value > 0) { + // hide the create button + jQuery('#".$buttonName."Create').hide(); + // show edit button + jQuery('#".$buttonName."Edit').show(); + var url = 'index.php?option=com_componentbuilder&view=admin_views&task=admin_view.edit&id='+value+'".$refJ."'; + jQuery('#".$buttonName."Edit').attr('href', url); + } else { + // show the create button + jQuery('#".$buttonName."Create').show(); + // hide edit button + jQuery('#".$buttonName."Edit').hide(); + } + }"; + } + // check if button was created for admin_view field. + if (is_array($button) && count($button) > 0) + { + // Load the needed script. + $document = JFactory::getDocument(); + $document->addScriptDeclaration(implode(' ',$script)); + // return the button attached to input field. + return '
' .$html . implode('',$button).'
'; + } + } + return $html; + } + + /** + * Method to get a list of options for a list input. + * + * @return array An array of JHtml options. + */ + public function getOptions() + { + // get the input from url + $jinput = JFactory::getApplication()->input; + // get the view name & id + $fieldsID = $jinput->getInt('id', 0); + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + $query->select($db->quoteName(array('a.id','a.addtabs'),array('id','addtabs'))); + $query->from($db->quoteName('#__componentbuilder_admin_view', 'a')); + $query->join('LEFT', $db->quoteName('#__componentbuilder_admin_fields', 'b') . ' ON (' . $db->quoteName('a.id') . ' = ' . $db->quoteName('b.admin_view') . ')'); + $query->where($db->quoteName('a.published') . ' >= 1'); + $query->where($db->quoteName('b.id') . ' = ' . (int) $fieldsID); + $query->order('a.addtabs ASC'); + $db->setQuery((string)$query); + $item = $db->loadObject(); + $options = array(); + if (isset($item->addtabs) && strlen($item->addtabs) > 5) + { + $items = json_decode($item->addtabs, true); + $nr = 1; + foreach($items as $itemName) + { + $options[] = JHtml::_('select.option', $nr, $itemName['name']); + $nr++; + } + } + else + { + $options[] = JHtml::_('select.option', 1, JText::_('COM_COMPONENTBUILDER_DETAILS')); + } + return $options; + } +} diff --git a/admin/models/fieldtype.php b/admin/models/fieldtype.php index ebcb29d20..83026ce2d 100644 --- a/admin/models/fieldtype.php +++ b/admin/models/fieldtype.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 15 of this MVC - @build 17th September, 2017 + @version @update number 16 of this MVC + @build 13th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage fieldtype.php @@ -101,6 +101,26 @@ class ComponentbuilderModelFieldtype extends JModelAdmin $properties = new Registry; $properties->loadString($item->properties); $item->properties = $properties->toArray(); + } + + // check what type of properties array we have here (should be subform... but just incase) + // This could happen due to huge data sets + if (isset($item->properties) && isset($item->properties['name'])) + { + $bucket = array(); + foreach($item->properties as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket['addfields'.$nr][$option] = $value; + } + } + $item->properties = $bucket; + // be sure to update the value in the db + $objectUpdate = new stdClass(); + $objectUpdate->id = (int) $item->id; + $objectUpdate->properties = json_encode($bucket); + $this->db->updateObject('#__componentbuilder_fieldtype', $objectUpdate, 'id'); } if (!empty($item->id)) @@ -109,7 +129,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin $item->tags->getTagIds($item->id, 'com_componentbuilder.fieldtype'); } } - $this->fieldtypevvwe = $item->id; + $this->fieldtypevvwc = $item->id; return $item; } @@ -119,7 +139,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getWadfields() + public function getWabfields() { // Get the user object. $user = JFactory::getUser(); @@ -139,15 +159,15 @@ class ComponentbuilderModelFieldtype extends JModelAdmin $query->select($db->quoteName('g.name','fieldtype_name')); $query->join('LEFT', $db->quoteName('#__componentbuilder_fieldtype', 'g') . ' ON (' . $db->quoteName('a.fieldtype') . ' = ' . $db->quoteName('g.id') . ')'); - // Filter by fieldtypevvwe global. - $fieldtypevvwe = $this->fieldtypevvwe; - if (is_numeric($fieldtypevvwe )) + // Filter by fieldtypevvwc global. + $fieldtypevvwc = $this->fieldtypevvwc; + if (is_numeric($fieldtypevvwc )) { - $query->where('a.fieldtype = ' . (int) $fieldtypevvwe ); + $query->where('a.fieldtype = ' . (int) $fieldtypevvwc ); } - elseif (is_string($fieldtypevvwe)) + elseif (is_string($fieldtypevvwc)) { - $query->where('a.fieldtype = ' . $db->quote($fieldtypevvwe)); + $query->where('a.fieldtype = ' . $db->quote($fieldtypevvwc)); } else { @@ -203,13 +223,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin foreach ($items as $nr => &$item) { // convert datatype - $item->datatype = $this->selectionTranslationWadfields($item->datatype, 'datatype'); + $item->datatype = $this->selectionTranslationWabfields($item->datatype, 'datatype'); // convert indexes - $item->indexes = $this->selectionTranslationWadfields($item->indexes, 'indexes'); + $item->indexes = $this->selectionTranslationWabfields($item->indexes, 'indexes'); // convert null_switch - $item->null_switch = $this->selectionTranslationWadfields($item->null_switch, 'null_switch'); + $item->null_switch = $this->selectionTranslationWabfields($item->null_switch, 'null_switch'); // convert store - $item->store = $this->selectionTranslationWadfields($item->store, 'store'); + $item->store = $this->selectionTranslationWabfields($item->store, 'store'); } } @@ -223,7 +243,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin * * @return translatable string */ - public function selectionTranslationWadfields($value,$name) + public function selectionTranslationWabfields($value,$name) { // Array of datatype language strings if ($name === 'datatype') diff --git a/admin/models/fieldtypes.php b/admin/models/fieldtypes.php index e0bd6aa57..96f3186ed 100644 --- a/admin/models/fieldtypes.php +++ b/admin/models/fieldtypes.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 15 of this MVC - @build 17th September, 2017 + @version @update number 16 of this MVC + @build 13th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage fieldtypes.php diff --git a/admin/models/forms/admin_fields.js b/admin/models/forms/admin_fields.js new file mode 100644 index 000000000..f132f8860 --- /dev/null +++ b/admin/models/forms/admin_fields.js @@ -0,0 +1,25 @@ +/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/ + __ __ _ _____ _ _ __ __ _ _ _ + \ \ / / | | | __ \ | | | | | \/ | | | | | | | + \ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| | + \ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` | + \ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| | + \/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_| + | | + |_| +/-------------------------------------------------------------------------------------------------------------------------------/ + + @version @update number 23 of this MVC + @build 16th October, 2017 + @created 12th October, 2017 + @package Component Builder + @subpackage admin_fields.js + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + + diff --git a/admin/models/forms/admin_fields.xml b/admin/models/forms/admin_fields.xml new file mode 100644 index 000000000..c161bc2d3 --- /dev/null +++ b/admin/models/forms/admin_fields.xml @@ -0,0 +1,305 @@ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + + +
+ \ No newline at end of file diff --git a/admin/models/forms/admin_fields_conditions.js b/admin/models/forms/admin_fields_conditions.js new file mode 100644 index 000000000..3d87f7918 --- /dev/null +++ b/admin/models/forms/admin_fields_conditions.js @@ -0,0 +1,57 @@ +/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/ + __ __ _ _____ _ _ __ __ _ _ _ + \ \ / / | | | __ \ | | | | | \/ | | | | | | | + \ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| | + \ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` | + \ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| | + \/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_| + | | + |_| +/-------------------------------------------------------------------------------------------------------------------------------/ + + @version @update number 16 of this MVC + @build 16th October, 2017 + @created 12th October, 2017 + @package Component Builder + @subpackage admin_fields_conditions.js + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + + + +function getFieldSelectOptions_server(fieldId){ + var getUrl = "index.php?option=com_componentbuilder&task=ajax.fieldSelectOptions&format=json"; + if(token.length > 0 && fieldId > 0){ + var request = 'token='+token+'&id='+fieldId; + } + return jQuery.ajax({ + type: 'GET', + url: getUrl, + dataType: 'jsonp', + data: request, + jsonp: 'callback' + }); +} + +function getFieldSelectOptions(fieldKey, table_, nr_){ + // first check if the field is set + if(jQuery("#jform_addconditions"+table_+"_addconditions"+fieldKey+nr_+"_match_field").length) { + var fieldId = jQuery("#jform_addconditions"+table_+"_addconditions"+fieldKey+nr_+"_match_field option:selected").val(); + getFieldSelectOptions_server(fieldId).done(function(result) { + if(result){ + jQuery('textarea#jform_addconditions'+table_+'_addconditions'+fieldKey+nr_+'_match_options').val(result); + } + else + { + jQuery('textarea#jform_addconditions'+table_+'_addconditions'+fieldKey+nr_+'_match_options').val(''); + } + }); + } +} + + diff --git a/admin/models/forms/admin_fields_conditions.xml b/admin/models/forms/admin_fields_conditions.xml new file mode 100644 index 000000000..be2a9ef8e --- /dev/null +++ b/admin/models/forms/admin_fields_conditions.xml @@ -0,0 +1,247 @@ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + + +
+ \ No newline at end of file diff --git a/admin/models/forms/admin_view.js b/admin/models/forms/admin_view.js index 5ee0ff272..581816193 100644 --- a/admin/models/forms/admin_view.js +++ b/admin/models/forms/admin_view.js @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 114 of this MVC - @build 28th August, 2017 + @version @update number 192 of this MVC + @build 16th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin_view.js @@ -340,7 +340,7 @@ function vvvvvxd(add_php_ajax_vvvvvxd) // set the function logic if (add_php_ajax_vvvvvxd == 1) { - jQuery('#jform_ajax_input').closest('.control-group').show(); + jQuery('#jform_ajax_input-lbl').closest('.control-group').show(); jQuery('#jform_php_ajaxmethod').closest('.control-group').show(); if (jform_vvvvvxdvwx_required) { @@ -354,7 +354,7 @@ function vvvvvxd(add_php_ajax_vvvvvxd) } else { - jQuery('#jform_ajax_input').closest('.control-group').hide(); + jQuery('#jform_ajax_input-lbl').closest('.control-group').hide(); jQuery('#jform_php_ajaxmethod').closest('.control-group').hide(); if (!jform_vvvvvxdvwx_required) { @@ -900,11 +900,11 @@ function vvvvvxw(source_vvvvvxw,add_sql_vvvvvxw) // set the function logic if (source_vvvvvxw == 1 && add_sql_vvvvvxw == 1) { - jQuery('#jform_addtables').closest('.control-group').show(); + jQuery('#jform_addtables-lbl').closest('.control-group').show(); } else { - jQuery('#jform_addtables').closest('.control-group').hide(); + jQuery('#jform_addtables-lbl').closest('.control-group').hide(); } } @@ -1056,7 +1056,7 @@ function vvvvvya(add_custom_button_vvvvvya) // set the function logic if (add_custom_button_vvvvvya == 1) { - jQuery('#jform_custom_button').closest('.control-group').show(); + jQuery('#jform_custom_button-lbl').closest('.control-group').show(); jQuery('#jform_php_controller').closest('.control-group').show(); if (jform_vvvvvyavxv_required) { @@ -1100,7 +1100,7 @@ function vvvvvya(add_custom_button_vvvvvya) } else { - jQuery('#jform_custom_button').closest('.control-group').hide(); + jQuery('#jform_custom_button-lbl').closest('.control-group').hide(); jQuery('#jform_php_controller').closest('.control-group').hide(); if (!jform_vvvvvyavxv_required) { @@ -1177,15 +1177,34 @@ function isSet(val) } jQuery(document).ready(function() -{ +{ + // set button + addButtonID('admin_fields','create_edit_buttons', 1); // <-- first var valueSwitch = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); getImportScripts(valueSwitch); + // now load the fields + getFieldsDisplay('admin_fields'); + getFieldsDisplay('admin_fields_conditions'); + // set button + addButtonID('admin_fields_conditions','create_edit_buttons', 1); // <-- second + // set button to add more languages + addButton('field','create_edit_buttons'); // <-- third }); -function getFieldSelectOptions_server(fieldId){ - var getUrl = "index.php?option=com_componentbuilder&task=ajax.fieldSelectOptions&format=json"; - if(token.length > 0 && fieldId > 0){ - var request = 'token='+token+'&id='+fieldId; +function getFieldsDisplay(type){ + getFieldsDisplay_server(type).done(function(result) { + if(result){ + jQuery('#display_'+type).html(result); + } + // set button + addButtonID(type,'header_'+type+'_buttons', 2); // <-- little edit button + }); +} + +function getFieldsDisplay_server(type){ + var getUrl = "index.php?option=com_componentbuilder&task=ajax.getFieldsDisplay&format=json&vdm="+vastDevMod; + if(token.length > 0 && type.length > 0){ + var request = 'token='+token+'&type=' + type; } return jQuery.ajax({ type: 'GET', @@ -1196,17 +1215,55 @@ function getFieldSelectOptions_server(fieldId){ }); } -function getFieldSelectOptions(id,fieldKey){ - getFieldSelectOptions_server(id).done(function(result) { +function addData(result,where){ + jQuery(where).closest('.control-group').parent().append(result); +} + +function addButtonID_server(type, size){ + var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.getButtonID&format=json&vdm="+vastDevMod); + if(token.length > 0 && type.length > 0 && size > 0){ + var request = 'token='+token+'&type='+type+'&size='+size; + } + return jQuery.ajax({ + type: 'GET', + url: getUrl, + dataType: 'jsonp', + data: request, + jsonp: 'callback' + }); +} +function addButtonID(type, where, size){ + addButtonID_server(type, size).done(function(result) { if(result){ - jQuery('textarea#'+fieldKey+'-jform_addconditions_fields_match_options').val(result); + if (1 == size) { + addData(result, '#jform_'+where); + } else if (2 == size) { + jQuery('#'+where).html(result); + } } - else - { - jQuery('textarea#'+fieldKey+'-jform_addconditions_fields_match_options').val(''); + }); +} + +function addButton_server(type){ + var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.getButton&format=json&vdm="+vastDevMod); + if(token.length > 0 && type.length > 0){ + var request = 'token='+token+'&type='+type; + } + return jQuery.ajax({ + type: 'GET', + url: getUrl, + dataType: 'jsonp', + data: request, + jsonp: 'callback' + }); +} +function addButton(type,where){ + addButton_server(type).done(function(result) { + if(result){ + addData(result,'#jform_'+where); } }) -} +} function getTableColumns_server(tableName){ var getUrl = "index.php?option=com_componentbuilder&task=ajax.tableColumns&format=json"; @@ -1222,16 +1279,21 @@ function getTableColumns_server(tableName){ }); } -function getTableColumns(tableName,fieldKey){ - getTableColumns_server(tableName).done(function(result) { - if(result){ - jQuery('textarea#'+fieldKey+'-jform_addtables_fields_sourcemap').val(result); - } - else - { - jQuery('textarea#'+fieldKey+'-jform_addtables_fields_sourcemap').val(''); - } - }) +function getTableColumns(fieldKey, table_, nr_){ + // first check if the field is set + if(jQuery("#jform_addtables_"+table_+"addtables"+fieldKey+nr_+"_table").length) { + // get options + var tableName = jQuery("#jform_addtables_"+table_+"addtables"+fieldKey+nr_+"_table option:selected").val(); + getTableColumns_server(tableName).done(function(result) { + if(result){ + jQuery("textarea#jform_addtables_"+table_+"addtables"+fieldKey+nr_+"_sourcemap").val(result); + } + else + { + jQuery("textarea#jform_addtables_"+table_+"addtables"+fieldKey+nr_+"_sourcemap").val(''); + } + }); + } } function getImportScripts_server(typpe){ diff --git a/admin/models/forms/admin_view.xml b/admin/models/forms/admin_view.xml index af259205a..833893642 100644 --- a/admin/models/forms/admin_view.xml +++ b/admin/models/forms/admin_view.xml @@ -149,6 +149,19 @@ message="Error! Please add some short description here." hint="COM_COMPONENTBUILDER_ADMIN_VIEW_SHORT_DESCRIPTION_HINT" /> + + + + + + + + + + + + + + + + + + COM_COMPONENTBUILDER_ADMIN_VIEW_READONLY - + @@ -202,19 +293,19 @@ filter="HTML" hint="COM_COMPONENTBUILDER_ADMIN_VIEW_DESCRIPTION_HINT" /> - + + type="radio" + name="source" + label="COM_COMPONENTBUILDER_ADMIN_VIEW_SOURCE_LABEL" + class="btn-group btn-group-yesno" + required="true"> + + + + COM_COMPONENTBUILDER_ADMIN_VIEW_REMOVE - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - + type="hidden" + name="not_required" + default="[]" + /> + + - + - - - + maximum="20"> + - - + + - + - - - + maximum="15"> + - - + + - + - - - +
diff --git a/admin/views/admin_fields/tmpl/index.html b/admin/views/admin_fields/tmpl/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/views/admin_fields/tmpl/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/views/admin_fields/view.html.php b/admin/views/admin_fields/view.html.php new file mode 100644 index 000000000..35f8fb4d8 --- /dev/null +++ b/admin/views/admin_fields/view.html.php @@ -0,0 +1,199 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Admin_fields View class + */ +class ComponentbuilderViewAdmin_fields extends JViewLegacy +{ + /** + * display method of View + * @return void + */ + public function display($tpl = null) + { + // Assign the variables + $this->form = $this->get('Form'); + $this->item = $this->get('Item'); + $this->script = $this->get('Script'); + $this->state = $this->get('State'); + // get action permissions + $this->canDo = ComponentbuilderHelper::getActions('admin_fields',$this->item); + // get input + $jinput = JFactory::getApplication()->input; + $this->ref = $jinput->get('ref', 0, 'word'); + $this->refid = $jinput->get('refid', 0, 'int'); + $this->referral = ''; + if ($this->refid) + { + // return to the item that refered to this item + $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; + } + elseif($this->ref) + { + // return to the list view that refered to this item + $this->referral = '&ref='.(string)$this->ref; + } + + // Set the toolbar + $this->addToolBar(); + + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + throw new Exception(implode("\n", $errors), 500); + } + + // Display the template + parent::display($tpl); + + // Set the document + $this->setDocument(); + } + + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JFactory::getApplication()->input->set('hidemainmenu', true); + $user = JFactory::getUser(); + $userId = $user->id; + $isNew = $this->item->id == 0; + + JToolbarHelper::title( JText::_($isNew ? 'COM_COMPONENTBUILDER_ADMIN_FIELDS_NEW' : 'COM_COMPONENTBUILDER_ADMIN_FIELDS_EDIT'), 'pencil-2 article-add'); + // Built the actions for new and existing records. + if ($this->refid || $this->ref) + { + if ($this->canDo->get('admin_fields.create') && $isNew) + { + // We can create the record. + JToolBarHelper::save('admin_fields.save', 'JTOOLBAR_SAVE'); + } + elseif ($this->canDo->get('admin_fields.edit')) + { + // We can save the record. + JToolBarHelper::save('admin_fields.save', 'JTOOLBAR_SAVE'); + } + if ($isNew) + { + // Do not creat but cancel. + JToolBarHelper::cancel('admin_fields.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + // We can close it. + JToolBarHelper::cancel('admin_fields.cancel', 'JTOOLBAR_CLOSE'); + } + } + else + { + if ($isNew) + { + // For new records, check the create permission. + if ($this->canDo->get('admin_fields.create')) + { + JToolBarHelper::apply('admin_fields.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('admin_fields.save', 'JTOOLBAR_SAVE'); + JToolBarHelper::custom('admin_fields.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + }; + JToolBarHelper::cancel('admin_fields.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + if ($this->canDo->get('admin_fields.edit')) + { + // We can save the new record + JToolBarHelper::apply('admin_fields.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('admin_fields.save', 'JTOOLBAR_SAVE'); + // We can save this record, but check the create permission to see + // if we can return to make a new one. + if ($this->canDo->get('admin_fields.create')) + { + JToolBarHelper::custom('admin_fields.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + } + } + $canVersion = ($this->canDo->get('core.version') && $this->canDo->get('admin_fields.version')); + if ($this->state->params->get('save_history', 1) && $this->canDo->get('admin_fields.edit') && $canVersion) + { + JToolbarHelper::versions('com_componentbuilder.admin_fields', $this->item->id); + } + if ($this->canDo->get('admin_fields.create')) + { + JToolBarHelper::custom('admin_fields.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false); + } + JToolBarHelper::cancel('admin_fields.cancel', 'JTOOLBAR_CLOSE'); + } + } + JToolbarHelper::divider(); + // set help url for this view if found + $help_url = ComponentbuilderHelper::getHelpUrl('admin_fields'); + if (ComponentbuilderHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); + } + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var) + { + if(strlen($var) > 30) + { + // use the helper htmlEscape method instead and shorten the string + return ComponentbuilderHelper::htmlEscape($var, $this->_charset, true, 30); + } + // use the helper htmlEscape method instead. + return ComponentbuilderHelper::htmlEscape($var, $this->_charset); + } + + /** + * Method to set up the document properties + * + * @return void + */ + protected function setDocument() + { + $isNew = ($this->item->id < 1); + $document = JFactory::getDocument(); + $document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_ADMIN_FIELDS_NEW' : 'COM_COMPONENTBUILDER_ADMIN_FIELDS_EDIT')); + $document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/admin_fields.css"); + $document->addScript(JURI::root() . $this->script); + $document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/admin_fields/submitbutton.js"); + JText::script('view not acceptable. Error'); + } +} diff --git a/admin/views/admin_fields_conditions/submitbutton.js b/admin/views/admin_fields_conditions/submitbutton.js new file mode 100644 index 000000000..d92055a81 --- /dev/null +++ b/admin/views/admin_fields_conditions/submitbutton.js @@ -0,0 +1,49 @@ +/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/ + __ __ _ _____ _ _ __ __ _ _ _ + \ \ / / | | | __ \ | | | | | \/ | | | | | | | + \ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| | + \ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` | + \ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| | + \/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_| + | | + |_| +/-------------------------------------------------------------------------------------------------------------------------------/ + + @version @update number 16 of this MVC + @build 16th October, 2017 + @created 12th October, 2017 + @package Component Builder + @subpackage submitbutton.js + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +Joomla.submitbutton = function(task) +{ + if (task == ''){ + return false; + } else { + var isValid=true; + var action = task.split('.'); + if (action[1] != 'cancel' && action[1] != 'close'){ + var forms = $$('form.form-validate'); + for (var i=0;i + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html'); +JHtml::_('behavior.tooltip'); +JHtml::_('behavior.formvalidation'); +JHtml::_('formbehavior.chosen', 'select'); +JHtml::_('behavior.keepalive'); +$componentParams = JComponentHelper::getParams('com_componentbuilder'); +?> + + + + + + diff --git a/admin/views/admin_fields_conditions/tmpl/index.html b/admin/views/admin_fields_conditions/tmpl/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/views/admin_fields_conditions/tmpl/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/views/admin_fields_conditions/view.html.php b/admin/views/admin_fields_conditions/view.html.php new file mode 100644 index 000000000..80a113988 --- /dev/null +++ b/admin/views/admin_fields_conditions/view.html.php @@ -0,0 +1,201 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Admin_fields_conditions View class + */ +class ComponentbuilderViewAdmin_fields_conditions extends JViewLegacy +{ + /** + * display method of View + * @return void + */ + public function display($tpl = null) + { + // Assign the variables + $this->form = $this->get('Form'); + $this->item = $this->get('Item'); + $this->script = $this->get('Script'); + $this->state = $this->get('State'); + // get action permissions + $this->canDo = ComponentbuilderHelper::getActions('admin_fields_conditions',$this->item); + // get input + $jinput = JFactory::getApplication()->input; + $this->ref = $jinput->get('ref', 0, 'word'); + $this->refid = $jinput->get('refid', 0, 'int'); + $this->referral = ''; + if ($this->refid) + { + // return to the item that refered to this item + $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; + } + elseif($this->ref) + { + // return to the list view that refered to this item + $this->referral = '&ref='.(string)$this->ref; + } + + // Set the toolbar + $this->addToolBar(); + + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + throw new Exception(implode("\n", $errors), 500); + } + + // Display the template + parent::display($tpl); + + // Set the document + $this->setDocument(); + } + + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JFactory::getApplication()->input->set('hidemainmenu', true); + $user = JFactory::getUser(); + $userId = $user->id; + $isNew = $this->item->id == 0; + + JToolbarHelper::title( JText::_($isNew ? 'COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_NEW' : 'COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_EDIT'), 'pencil-2 article-add'); + // Built the actions for new and existing records. + if ($this->refid || $this->ref) + { + if ($this->canDo->get('admin_fields_conditions.create') && $isNew) + { + // We can create the record. + JToolBarHelper::save('admin_fields_conditions.save', 'JTOOLBAR_SAVE'); + } + elseif ($this->canDo->get('admin_fields_conditions.edit')) + { + // We can save the record. + JToolBarHelper::save('admin_fields_conditions.save', 'JTOOLBAR_SAVE'); + } + if ($isNew) + { + // Do not creat but cancel. + JToolBarHelper::cancel('admin_fields_conditions.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + // We can close it. + JToolBarHelper::cancel('admin_fields_conditions.cancel', 'JTOOLBAR_CLOSE'); + } + } + else + { + if ($isNew) + { + // For new records, check the create permission. + if ($this->canDo->get('admin_fields_conditions.create')) + { + JToolBarHelper::apply('admin_fields_conditions.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('admin_fields_conditions.save', 'JTOOLBAR_SAVE'); + JToolBarHelper::custom('admin_fields_conditions.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + }; + JToolBarHelper::cancel('admin_fields_conditions.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + if ($this->canDo->get('admin_fields_conditions.edit')) + { + // We can save the new record + JToolBarHelper::apply('admin_fields_conditions.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('admin_fields_conditions.save', 'JTOOLBAR_SAVE'); + // We can save this record, but check the create permission to see + // if we can return to make a new one. + if ($this->canDo->get('admin_fields_conditions.create')) + { + JToolBarHelper::custom('admin_fields_conditions.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + } + } + $canVersion = ($this->canDo->get('core.version') && $this->canDo->get('admin_fields_conditions.version')); + if ($this->state->params->get('save_history', 1) && $this->canDo->get('admin_fields_conditions.edit') && $canVersion) + { + JToolbarHelper::versions('com_componentbuilder.admin_fields_conditions', $this->item->id); + } + if ($this->canDo->get('admin_fields_conditions.create')) + { + JToolBarHelper::custom('admin_fields_conditions.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false); + } + JToolBarHelper::cancel('admin_fields_conditions.cancel', 'JTOOLBAR_CLOSE'); + } + } + JToolbarHelper::divider(); + // set help url for this view if found + $help_url = ComponentbuilderHelper::getHelpUrl('admin_fields_conditions'); + if (ComponentbuilderHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); + } + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var) + { + if(strlen($var) > 30) + { + // use the helper htmlEscape method instead and shorten the string + return ComponentbuilderHelper::htmlEscape($var, $this->_charset, true, 30); + } + // use the helper htmlEscape method instead. + return ComponentbuilderHelper::htmlEscape($var, $this->_charset); + } + + /** + * Method to set up the document properties + * + * @return void + */ + protected function setDocument() + { + $isNew = ($this->item->id < 1); + $document = JFactory::getDocument(); + $document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_NEW' : 'COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_EDIT')); + $document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/admin_fields_conditions.css"); + // Add Ajax Token + $document->addScriptDeclaration("var token = '".JSession::getFormToken()."';"); + $document->addScript(JURI::root() . $this->script); + $document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/admin_fields_conditions/submitbutton.js"); + JText::script('view not acceptable. Error'); + } +} diff --git a/admin/views/admin_view/submitbutton.js b/admin/views/admin_view/submitbutton.js index 34a28cb67..55ea2776d 100644 --- a/admin/views/admin_view/submitbutton.js +++ b/admin/views/admin_view/submitbutton.js @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 114 of this MVC - @build 28th August, 2017 + @version @update number 192 of this MVC + @build 16th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage submitbutton.js diff --git a/admin/views/admin_view/tmpl/edit.php b/admin/views/admin_view/tmpl/edit.php index 1e69dd7da..6b1dceba8 100644 --- a/admin/views/admin_view/tmpl/edit.php +++ b/admin/views/admin_view/tmpl/edit.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 114 of this MVC - @build 28th August, 2017 + @version @update number 192 of this MVC + @build 16th October, 2017 @created 30th April, 2015 @package Component Builder @subpackage edit.php @@ -58,45 +58,47 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');