From ffbb73357659ccd9339a24cbf282047f9c4d5086 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Tue, 3 Dec 2019 04:17:35 +0200 Subject: [PATCH] Added Joomla Module builder - GUI --- README.md | 15 +- admin/README.txt | 15 +- admin/access.xml | 68 +- admin/assets/css/joomla_module.css | 19 + .../css/joomla_module_files_folders_urls.css | 16 + admin/assets/css/joomla_module_updates.css | 15 + admin/assets/css/joomla_modules.css | 13 + .../css/joomla_modules_files_folders_urls.css | 13 + admin/assets/css/joomla_modules_updates.css | 13 + admin/assets/images/icons/joomla_modules.png | Bin 0 -> 10220 bytes admin/assets/images/icons/layout_add.png | Bin 26600 -> 0 bytes admin/controller.php | 3 + admin/controllers/joomla_module.php | 347 ++++ .../joomla_module_files_folders_urls.php | 321 ++++ admin/controllers/joomla_module_updates.php | 339 ++++ admin/controllers/joomla_modules.php | 52 + .../joomla_modules_files_folders_urls.php | 43 + admin/controllers/joomla_modules_updates.php | 43 + admin/helpers/compiler/a_Get.php | 38 +- admin/helpers/compiler/b_Structure.php | 34 +- admin/helpers/compiler/e_Interpretation.php | 45 +- admin/helpers/componentbuilder.php | 6 + .../en-GB/en-GB.com_componentbuilder.ini | 479 +++++- .../en-GB/en-GB.com_componentbuilder.sys.ini | 71 +- admin/layouts/fieldtype/fields_fullwidth.php | 2 +- .../layouts/joomla_module/code_fullwidth.php | 45 + admin/layouts/joomla_module/code_left.php | 43 + admin/layouts/joomla_module/code_right.php | 42 + .../dynamic_integration_left.php | 50 + .../joomla_module/forms_fields_fullwidth.php | 44 + admin/layouts/joomla_module/html_above.php | 45 + .../layouts/joomla_module/html_fullwidth.php | 46 + admin/layouts/joomla_module/html_left.php | 46 + admin/layouts/joomla_module/html_right.php | 44 + admin/layouts/joomla_module/index.html | 1 + .../layouts/joomla_module/mysql_fullwidth.php | 47 + admin/layouts/joomla_module/publishing.php | 45 + admin/layouts/joomla_module/publlshing.php | 47 + admin/layouts/joomla_module/readme_left.php | 43 + .../joomla_module/script_file_fullwidth.php | 57 + .../advance_fullwidth.php | 48 + .../basic_above.php | 44 + .../basic_fullwidth.php | 49 + .../index.html | 1 + .../publishing.php | 45 + .../publlshing.php | 47 + .../layouts/joomla_module_updates/index.html | 1 + .../joomla_module_updates/publishing.php | 45 + .../joomla_module_updates/publlshing.php | 47 + .../joomla_module_updates/updates_above.php | 44 + .../updates_fullwidth.php | 44 + .../server/linked_components_fullwidth.php | 2 +- admin/models/ajax.php | 2 +- admin/models/componentbuilder.php | 47 +- admin/models/fields/components.php | 33 +- admin/models/fields/joomlamodules.php | 71 + admin/models/fieldtype.php | 12 +- admin/models/forms/admin_view.js | 414 ++--- admin/models/forms/class_method.js | 38 +- admin/models/forms/class_property.js | 38 +- admin/models/forms/custom_admin_view.js | 100 +- admin/models/forms/custom_code.js | 84 +- admin/models/forms/dynamic_get.js | 936 +++++------ admin/models/forms/field.js | 460 ++--- admin/models/forms/fieldtype.js | 606 +++---- admin/models/forms/help_document.js | 164 +- admin/models/forms/joomla_module.js | 652 +++++++ admin/models/forms/joomla_module.xml | 804 +++++++++ .../forms/joomla_module_files_folders_urls.js | 11 + .../joomla_module_files_folders_urls.xml | 390 +++++ admin/models/forms/joomla_module_updates.js | 11 + admin/models/forms/joomla_module_updates.xml | 181 ++ admin/models/forms/joomla_plugin.js | 396 ++--- admin/models/forms/layout.js | 10 +- admin/models/forms/library.js | 572 +++---- admin/models/forms/server.js | 346 ++-- admin/models/forms/site_view.js | 128 +- admin/models/forms/template.js | 10 +- admin/models/joomla_components.php | 2 +- admin/models/joomla_module.php | 1366 +++++++++++++++ .../joomla_module_files_folders_urls.php | 995 +++++++++++ admin/models/joomla_module_updates.php | 897 ++++++++++ admin/models/joomla_modules.php | 262 +++ .../joomla_modules_files_folders_urls.php | 243 +++ admin/models/joomla_modules_updates.php | 243 +++ admin/models/joomla_plugin.php | 5 + admin/models/server.php | 2 +- admin/sql/install.mysql.utf8.sql | 134 ++ admin/sql/uninstall.mysql.utf8.sql | 4 + admin/sql/updates/mysql/2.10.5.sql | 133 ++ admin/tables/joomla_module.php | 321 ++++ .../joomla_module_files_folders_urls.php | 321 ++++ admin/tables/joomla_module_updates.php | 321 ++++ admin/views/admin_view/tmpl/edit.php | 356 ++-- admin/views/class_method/tmpl/edit.php | 10 +- admin/views/class_property/tmpl/edit.php | 10 +- admin/views/compiler/tmpl/default.php | 24 +- admin/views/compiler/view.html.php | 14 +- admin/views/componentbuilder/tmpl/default.php | 3 + ...efault_notice_board_jcb_pro_membership.php | 16 + admin/views/componentbuilder/view.html.php | 1 + admin/views/custom_admin_view/tmpl/edit.php | 100 +- admin/views/custom_code/tmpl/edit.php | 76 +- admin/views/dynamic_get/tmpl/edit.php | 854 +++++----- admin/views/field/tmpl/edit.php | 174 +- admin/views/fieldtype/tmpl/edit.php | 340 ++-- admin/views/fieldtype/view.html.php | 2 +- admin/views/help_document/tmpl/edit.php | 60 +- admin/views/joomla_module/submitbutton.js | 25 + admin/views/joomla_module/tmpl/edit.php | 635 +++++++ admin/views/joomla_module/tmpl/index.html | 1 + admin/views/joomla_module/view.html.php | 245 +++ .../submitbutton.js | 25 + .../tmpl/edit.php | 116 ++ .../tmpl/index.html | 1 + .../view.html.php | 195 +++ .../joomla_module_updates/submitbutton.js | 25 + .../views/joomla_module_updates/tmpl/edit.php | 106 ++ .../joomla_module_updates/tmpl/index.html | 1 + .../views/joomla_module_updates/view.html.php | 195 +++ admin/views/joomla_modules/index.html | 1 + admin/views/joomla_modules/tmpl/default.php | 108 ++ .../tmpl/default_batch_body.php | 18 + .../tmpl/default_batch_footer.php | 23 + .../joomla_modules/tmpl/default_body.php | 126 ++ .../joomla_modules/tmpl/default_foot.php | 18 + .../joomla_modules/tmpl/default_head.php | 50 + .../joomla_modules/tmpl/default_toolbar.php | 45 + admin/views/joomla_modules/tmpl/index.html | 1 + admin/views/joomla_modules/view.html.php | 238 +++ .../index.html | 1 + .../tmpl/default.php | 85 + .../tmpl/default_batch_body.php | 18 + .../tmpl/default_batch_footer.php | 23 + .../tmpl/default_body.php | 94 ++ .../tmpl/default_foot.php | 18 + .../tmpl/default_head.php | 47 + .../tmpl/default_toolbar.php | 45 + .../tmpl/index.html | 1 + .../view.html.php | 226 +++ admin/views/joomla_modules_updates/index.html | 1 + .../joomla_modules_updates/tmpl/default.php | 85 + .../tmpl/default_batch_body.php | 18 + .../tmpl/default_batch_footer.php | 23 + .../tmpl/default_body.php | 94 ++ .../tmpl/default_foot.php | 18 + .../tmpl/default_head.php | 47 + .../tmpl/default_toolbar.php | 45 + .../joomla_modules_updates/tmpl/index.html | 1 + .../joomla_modules_updates/view.html.php | 226 +++ admin/views/joomla_plugin/tmpl/edit.php | 336 ++-- admin/views/layout/tmpl/edit.php | 10 +- admin/views/library/tmpl/edit.php | 328 ++-- admin/views/server/tmpl/edit.php | 132 +- admin/views/server/view.html.php | 2 +- admin/views/site_view/tmpl/edit.php | 110 +- admin/views/template/tmpl/edit.php | 10 +- componentbuilder.xml | 7 +- componentbuilder_update_server.xml | 17 + script.php | 1497 ++++++++++++++++- site/helpers/componentbuilder.php | 2 + 161 files changed, 18943 insertions(+), 3699 deletions(-) create mode 100644 admin/assets/css/joomla_module.css create mode 100644 admin/assets/css/joomla_module_files_folders_urls.css create mode 100644 admin/assets/css/joomla_module_updates.css create mode 100644 admin/assets/css/joomla_modules.css create mode 100644 admin/assets/css/joomla_modules_files_folders_urls.css create mode 100644 admin/assets/css/joomla_modules_updates.css create mode 100644 admin/assets/images/icons/joomla_modules.png delete mode 100644 admin/assets/images/icons/layout_add.png create mode 100644 admin/controllers/joomla_module.php create mode 100644 admin/controllers/joomla_module_files_folders_urls.php create mode 100644 admin/controllers/joomla_module_updates.php create mode 100644 admin/controllers/joomla_modules.php create mode 100644 admin/controllers/joomla_modules_files_folders_urls.php create mode 100644 admin/controllers/joomla_modules_updates.php create mode 100644 admin/layouts/joomla_module/code_fullwidth.php create mode 100644 admin/layouts/joomla_module/code_left.php create mode 100644 admin/layouts/joomla_module/code_right.php create mode 100644 admin/layouts/joomla_module/dynamic_integration_left.php create mode 100644 admin/layouts/joomla_module/forms_fields_fullwidth.php create mode 100644 admin/layouts/joomla_module/html_above.php create mode 100644 admin/layouts/joomla_module/html_fullwidth.php create mode 100644 admin/layouts/joomla_module/html_left.php create mode 100644 admin/layouts/joomla_module/html_right.php create mode 100644 admin/layouts/joomla_module/index.html create mode 100644 admin/layouts/joomla_module/mysql_fullwidth.php create mode 100644 admin/layouts/joomla_module/publishing.php create mode 100644 admin/layouts/joomla_module/publlshing.php create mode 100644 admin/layouts/joomla_module/readme_left.php create mode 100644 admin/layouts/joomla_module/script_file_fullwidth.php create mode 100644 admin/layouts/joomla_module_files_folders_urls/advance_fullwidth.php create mode 100644 admin/layouts/joomla_module_files_folders_urls/basic_above.php create mode 100644 admin/layouts/joomla_module_files_folders_urls/basic_fullwidth.php create mode 100644 admin/layouts/joomla_module_files_folders_urls/index.html create mode 100644 admin/layouts/joomla_module_files_folders_urls/publishing.php create mode 100644 admin/layouts/joomla_module_files_folders_urls/publlshing.php create mode 100644 admin/layouts/joomla_module_updates/index.html create mode 100644 admin/layouts/joomla_module_updates/publishing.php create mode 100644 admin/layouts/joomla_module_updates/publlshing.php create mode 100644 admin/layouts/joomla_module_updates/updates_above.php create mode 100644 admin/layouts/joomla_module_updates/updates_fullwidth.php create mode 100644 admin/models/fields/joomlamodules.php create mode 100644 admin/models/forms/joomla_module.js create mode 100644 admin/models/forms/joomla_module.xml create mode 100644 admin/models/forms/joomla_module_files_folders_urls.js create mode 100644 admin/models/forms/joomla_module_files_folders_urls.xml create mode 100644 admin/models/forms/joomla_module_updates.js create mode 100644 admin/models/forms/joomla_module_updates.xml create mode 100644 admin/models/joomla_module.php create mode 100644 admin/models/joomla_module_files_folders_urls.php create mode 100644 admin/models/joomla_module_updates.php create mode 100644 admin/models/joomla_modules.php create mode 100644 admin/models/joomla_modules_files_folders_urls.php create mode 100644 admin/models/joomla_modules_updates.php create mode 100644 admin/sql/updates/mysql/2.10.5.sql create mode 100644 admin/tables/joomla_module.php create mode 100644 admin/tables/joomla_module_files_folders_urls.php create mode 100644 admin/tables/joomla_module_updates.php create mode 100644 admin/views/componentbuilder/tmpl/default_notice_board_jcb_pro_membership.php create mode 100644 admin/views/joomla_module/submitbutton.js create mode 100644 admin/views/joomla_module/tmpl/edit.php create mode 100644 admin/views/joomla_module/tmpl/index.html create mode 100644 admin/views/joomla_module/view.html.php create mode 100644 admin/views/joomla_module_files_folders_urls/submitbutton.js create mode 100644 admin/views/joomla_module_files_folders_urls/tmpl/edit.php create mode 100644 admin/views/joomla_module_files_folders_urls/tmpl/index.html create mode 100644 admin/views/joomla_module_files_folders_urls/view.html.php create mode 100644 admin/views/joomla_module_updates/submitbutton.js create mode 100644 admin/views/joomla_module_updates/tmpl/edit.php create mode 100644 admin/views/joomla_module_updates/tmpl/index.html create mode 100644 admin/views/joomla_module_updates/view.html.php create mode 100644 admin/views/joomla_modules/index.html create mode 100644 admin/views/joomla_modules/tmpl/default.php create mode 100644 admin/views/joomla_modules/tmpl/default_batch_body.php create mode 100644 admin/views/joomla_modules/tmpl/default_batch_footer.php create mode 100644 admin/views/joomla_modules/tmpl/default_body.php create mode 100644 admin/views/joomla_modules/tmpl/default_foot.php create mode 100644 admin/views/joomla_modules/tmpl/default_head.php create mode 100644 admin/views/joomla_modules/tmpl/default_toolbar.php create mode 100644 admin/views/joomla_modules/tmpl/index.html create mode 100644 admin/views/joomla_modules/view.html.php create mode 100644 admin/views/joomla_modules_files_folders_urls/index.html create mode 100644 admin/views/joomla_modules_files_folders_urls/tmpl/default.php create mode 100644 admin/views/joomla_modules_files_folders_urls/tmpl/default_batch_body.php create mode 100644 admin/views/joomla_modules_files_folders_urls/tmpl/default_batch_footer.php create mode 100644 admin/views/joomla_modules_files_folders_urls/tmpl/default_body.php create mode 100644 admin/views/joomla_modules_files_folders_urls/tmpl/default_foot.php create mode 100644 admin/views/joomla_modules_files_folders_urls/tmpl/default_head.php create mode 100644 admin/views/joomla_modules_files_folders_urls/tmpl/default_toolbar.php create mode 100644 admin/views/joomla_modules_files_folders_urls/tmpl/index.html create mode 100644 admin/views/joomla_modules_files_folders_urls/view.html.php create mode 100644 admin/views/joomla_modules_updates/index.html create mode 100644 admin/views/joomla_modules_updates/tmpl/default.php create mode 100644 admin/views/joomla_modules_updates/tmpl/default_batch_body.php create mode 100644 admin/views/joomla_modules_updates/tmpl/default_batch_footer.php create mode 100644 admin/views/joomla_modules_updates/tmpl/default_body.php create mode 100644 admin/views/joomla_modules_updates/tmpl/default_foot.php create mode 100644 admin/views/joomla_modules_updates/tmpl/default_head.php create mode 100644 admin/views/joomla_modules_updates/tmpl/default_toolbar.php create mode 100644 admin/views/joomla_modules_updates/tmpl/index.html create mode 100644 admin/views/joomla_modules_updates/view.html.php diff --git a/README.md b/README.md index 40be687f1..b259ba7da 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ + # Joomla Component Builder ([JCB](http://joomlacomponentbuilder.com)) [![GitHub release](https://img.shields.io/github/release/vdm-io/Joomla-Component-Builder.svg)](https://github.com/vdm-io/Joomla-Component-Builder/releases) [![Total Downloads](https://img.shields.io/github/downloads/vdm-io/Joomla-Component-Builder/total.svg)](https://github.com/vdm-io/Joomla-Component-Builder/releases) @@ -11,7 +12,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo 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.10.5) 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.10.6) 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://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) @@ -143,14 +144,14 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 13th November, 2019 -+ *Version*: 2.10.5 ++ *Last Build*: 3rd December, 2019 ++ *Version*: 2.10.6 + *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **255997** -+ *Field count*: **1351** -+ *File count*: **1614** -+ *Folder count*: **256** ++ *Line count*: **273117** ++ *Field count*: **1474** ++ *File count*: **1719** ++ *Folder count*: **274** > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com). > Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) diff --git a/admin/README.txt b/admin/README.txt index 40be687f1..b259ba7da 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -1,3 +1,4 @@ + # Joomla Component Builder ([JCB](http://joomlacomponentbuilder.com)) [![GitHub release](https://img.shields.io/github/release/vdm-io/Joomla-Component-Builder.svg)](https://github.com/vdm-io/Joomla-Component-Builder/releases) [![Total Downloads](https://img.shields.io/github/downloads/vdm-io/Joomla-Component-Builder/total.svg)](https://github.com/vdm-io/Joomla-Component-Builder/releases) @@ -11,7 +12,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo 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.10.5) 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.10.6) 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://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) @@ -143,14 +144,14 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 13th November, 2019 -+ *Version*: 2.10.5 ++ *Last Build*: 3rd December, 2019 ++ *Version*: 2.10.6 + *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **255997** -+ *Field count*: **1351** -+ *File count*: **1614** -+ *Folder count*: **256** ++ *Line count*: **273117** ++ *Field count*: **1474** ++ *File count*: **1719** ++ *Folder count*: **274** > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com). > Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) diff --git a/admin/access.xml b/admin/access.xml index d6962a605..2a10e68fd 100644 --- a/admin/access.xml +++ b/admin/access.xml @@ -324,6 +324,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -390,7 +424,6 @@ - @@ -513,6 +546,17 @@ +
+ + + + + + + + + +
@@ -912,6 +956,28 @@
+
+ + + + + + + + + +
+
+ + + + + + + + + +
diff --git a/admin/assets/css/joomla_module.css b/admin/assets/css/joomla_module.css new file mode 100644 index 000000000..ee5095208 --- /dev/null +++ b/admin/assets/css/joomla_module.css @@ -0,0 +1,19 @@ +/** + * @package Joomla.Component.Builder + * + * @created 30th April, 2015 + * @author Llewellyn van der Merwe + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +/* CSS Document */ + + +#jform_snippet_chzn { +width: 100% !important; +} +.jform_snippet_input_width { +width: 90% !important; +} diff --git a/admin/assets/css/joomla_module_files_folders_urls.css b/admin/assets/css/joomla_module_files_folders_urls.css new file mode 100644 index 000000000..74e74f969 --- /dev/null +++ b/admin/assets/css/joomla_module_files_folders_urls.css @@ -0,0 +1,16 @@ +/** + * @package Joomla.Component.Builder + * + * @created 30th April, 2015 + * @author Llewellyn van der Merwe + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +/* CSS Document */ + + +.control-group, .controls, .controls input[type="url"], .controls input[type="text"], .controls input[type="number"], .controls input[type="email"], .controls select, .controls textarea { + max-width: 100%; +} diff --git a/admin/assets/css/joomla_module_updates.css b/admin/assets/css/joomla_module_updates.css new file mode 100644 index 000000000..d24bb17e2 --- /dev/null +++ b/admin/assets/css/joomla_module_updates.css @@ -0,0 +1,15 @@ +/** + * @package Joomla.Component.Builder + * + * @created 30th April, 2015 + * @author Llewellyn van der Merwe + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +/* CSS Document */ + + +.mysql_update { width: 100%; height: 392px; } +.version_url { min-width: 100%; } diff --git a/admin/assets/css/joomla_modules.css b/admin/assets/css/joomla_modules.css new file mode 100644 index 000000000..3d7b98b8f --- /dev/null +++ b/admin/assets/css/joomla_modules.css @@ -0,0 +1,13 @@ +/** + * @package Joomla.Component.Builder + * + * @created 30th April, 2015 + * @author Llewellyn van der Merwe + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +/* CSS Document */ + + diff --git a/admin/assets/css/joomla_modules_files_folders_urls.css b/admin/assets/css/joomla_modules_files_folders_urls.css new file mode 100644 index 000000000..3d7b98b8f --- /dev/null +++ b/admin/assets/css/joomla_modules_files_folders_urls.css @@ -0,0 +1,13 @@ +/** + * @package Joomla.Component.Builder + * + * @created 30th April, 2015 + * @author Llewellyn van der Merwe + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +/* CSS Document */ + + diff --git a/admin/assets/css/joomla_modules_updates.css b/admin/assets/css/joomla_modules_updates.css new file mode 100644 index 000000000..3d7b98b8f --- /dev/null +++ b/admin/assets/css/joomla_modules_updates.css @@ -0,0 +1,13 @@ +/** + * @package Joomla.Component.Builder + * + * @created 30th April, 2015 + * @author Llewellyn van der Merwe + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +/* CSS Document */ + + diff --git a/admin/assets/images/icons/joomla_modules.png b/admin/assets/images/icons/joomla_modules.png new file mode 100644 index 0000000000000000000000000000000000000000..c2013094b08bc472799a62d6133724d8c5ba32ca GIT binary patch literal 10220 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≦ewQ9Utq?`7cm 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 'joomla_components', + 'joomla_module' => 'joomla_modules', 'joomla_plugin' => 'joomla_plugins', 'admin_view' => 'admin_views', 'custom_admin_view' => 'custom_admin_views', @@ -130,6 +131,8 @@ class ComponentbuilderController extends JControllerLegacy 'library_config' => 'libraries_config', 'library_files_folders_urls' => 'libraries_files_folders_urls', 'class_extends' => 'class_extendings', + 'joomla_module_updates' => 'joomla_modules_updates', + 'joomla_module_files_folders_urls' => 'joomla_modules_files_folders_urls', 'joomla_plugin_group' => 'joomla_plugin_groups', 'joomla_plugin_updates' => 'joomla_plugins_updates', 'joomla_plugin_files_folders_urls' => 'joomla_plugins_files_folders_urls' diff --git a/admin/controllers/joomla_module.php b/admin/controllers/joomla_module.php new file mode 100644 index 000000000..a6a9198eb --- /dev/null +++ b/admin/controllers/joomla_module.php @@ -0,0 +1,347 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Joomla_module Controller + */ +class ComponentbuilderControllerJoomla_module extends JControllerForm +{ + /** + * Current or most recently performed task. + * + * @var string + * @since 12.2 + * @note Replaces _task. + */ + protected $task; + + /** + * Class constructor. + * + * @param array $config A named array of configuration variables. + * + * @since 1.6 + */ + public function __construct($config = array()) + { + $this->view_list = 'Joomla_modules'; // 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()) + { + // Get user object. + $user = JFactory::getUser(); + // Access check. + $access = $user->authorise('joomla_module.access', 'com_componentbuilder'); + if (!$access) + { + return false; + } + + // In the absense of better information, revert to the component permissions. + return $user->authorise('joomla_module.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('joomla_module.access', 'com_componentbuilder.joomla_module.' . (int) $recordId) && $user->authorise('joomla_module.access', 'com_componentbuilder')); + if (!$access) + { + return false; + } + + if ($recordId) + { + // The record has been set. Check the record permissions. + $permission = $user->authorise('joomla_module.edit', 'com_componentbuilder.joomla_module.' . (int) $recordId); + if (!$permission) + { + if ($user->authorise('joomla_module.edit.own', 'com_componentbuilder.joomla_module.' . $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('joomla_module.edit.own', 'com_componentbuilder')) + { + return true; + } + } + } + return false; + } + } + // Since there is no permission, revert to the component permissions. + return $user->authorise('joomla_module.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 1.6 + */ + protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') + { + // get the referral options (old method use return instead see parent) + $ref = $this->input->get('ref', 0, 'string'); + $refid = $this->input->get('refid', 0, 'int'); + + // get redirect info. + $append = parent::getRedirectToItemAppend($recordId, $urlVar); + + // set the referral options + if ($refid && $ref) + { + $append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append; + } + elseif ($ref) + { + $append = '&ref='. (string)$ref . $append; + } + + 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('Joomla_module', '', array()); + + // Preset the redirect + $this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_modules' . $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 referral options + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + // Check if there is a return value + $return = $this->input->get('return', null, 'base64'); + + $cancel = parent::cancel($key); + + if (!is_null($return) && JUri::isInternal(base64_decode($return))) + { + $redirect = base64_decode($return); + + // Redirect to the return value. + $this->setRedirect( + JRoute::_( + $redirect, false + ) + ); + } + elseif ($this->refid && $this->ref) + { + $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 + ) + ); + } + 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 referral options + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + // Check if there is a return value + $return = $this->input->get('return', null, 'base64'); + $canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return))); + + if ($this->ref || $this->refid || $canReturn) + { + // to make sure the item is checkedin on redirect + $this->task = 'save'; + } + + $saved = parent::save($key, $urlVar); + + // This is not needed since parent save already does this + // Due to the ref and refid implementation we need to add this + if ($canReturn) + { + $redirect = base64_decode($return); + + // Redirect to the return value. + $this->setRedirect( + JRoute::_( + $redirect, false + ) + ); + } + elseif ($this->refid && $this->ref) + { + $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 + ) + ); + } + 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()) + { + // get the state object (Joomla\CMS\Object\CMSObject) + $state = $model->get('state'); + // if we save2copy we need to also copy linked tables found! + if ($state->task === 'save2copy' && $state->{'joomla_plugin.new'}) + { + // get new ID + $newID = $state->{'joomla_module.id'}; + // get old ID + $oldID = $this->input->get('id', 0, 'INT'); + // linked tables to update + $_tablesArray = array( + 'joomla_module_updates' => 'joomla_module', + 'joomla_module_files_folders_urls' => 'joomla_module' + ); + foreach($_tablesArray as $_updateTable => $_key) + { + // get the linked ID + if ($_value = ComponentbuilderHelper::getVar($_updateTable, $oldID, $_key, 'id')) + { + // copy fields to new linked table + ComponentbuilderHelper::copyItem(/*id->*/ $_value, /*table->*/ $_updateTable, /*change->*/ array($_key => $newID)); + } + } + } + + + return; + } + +} diff --git a/admin/controllers/joomla_module_files_folders_urls.php b/admin/controllers/joomla_module_files_folders_urls.php new file mode 100644 index 000000000..c5239bf22 --- /dev/null +++ b/admin/controllers/joomla_module_files_folders_urls.php @@ -0,0 +1,321 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Joomla_module_files_folders_urls Controller + */ +class ComponentbuilderControllerJoomla_module_files_folders_urls extends JControllerForm +{ + /** + * Current or most recently performed task. + * + * @var string + * @since 12.2 + * @note Replaces _task. + */ + protected $task; + + /** + * Class constructor. + * + * @param array $config A named array of configuration variables. + * + * @since 1.6 + */ + public function __construct($config = array()) + { + $this->view_list = 'Joomla_modules_files_folders_urls'; // 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()) + { + // Get user object. + $user = JFactory::getUser(); + // Access check. + $access = $user->authorise('joomla_module_files_folders_urls.access', 'com_componentbuilder'); + if (!$access) + { + return false; + } + + // In the absense of better information, revert to the component permissions. + return $user->authorise('joomla_module_files_folders_urls.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('joomla_module_files_folders_urls.access', 'com_componentbuilder.joomla_module_files_folders_urls.' . (int) $recordId) && $user->authorise('joomla_module_files_folders_urls.access', 'com_componentbuilder')); + if (!$access) + { + return false; + } + + if ($recordId) + { + // The record has been set. Check the record permissions. + $permission = $user->authorise('joomla_module_files_folders_urls.edit', 'com_componentbuilder.joomla_module_files_folders_urls.' . (int) $recordId); + if (!$permission) + { + if ($user->authorise('joomla_module_files_folders_urls.edit.own', 'com_componentbuilder.joomla_module_files_folders_urls.' . $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('joomla_module_files_folders_urls.edit.own', 'com_componentbuilder')) + { + return true; + } + } + } + return false; + } + } + // Since there is no permission, revert to the component permissions. + return $user->authorise('joomla_module_files_folders_urls.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 1.6 + */ + protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') + { + // get the referral options (old method use return instead see parent) + $ref = $this->input->get('ref', 0, 'string'); + $refid = $this->input->get('refid', 0, 'int'); + + // get redirect info. + $append = parent::getRedirectToItemAppend($recordId, $urlVar); + + // set the referral options + if ($refid && $ref) + { + $append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append; + } + elseif ($ref) + { + $append = '&ref='. (string)$ref . $append; + } + + 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('Joomla_module_files_folders_urls', '', array()); + + // Preset the redirect + $this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_modules_files_folders_urls' . $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 referral options + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + // Check if there is a return value + $return = $this->input->get('return', null, 'base64'); + + $cancel = parent::cancel($key); + + if (!is_null($return) && JUri::isInternal(base64_decode($return))) + { + $redirect = base64_decode($return); + + // Redirect to the return value. + $this->setRedirect( + JRoute::_( + $redirect, false + ) + ); + } + elseif ($this->refid && $this->ref) + { + $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 + ) + ); + } + 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 referral options + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + // Check if there is a return value + $return = $this->input->get('return', null, 'base64'); + $canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return))); + + if ($this->ref || $this->refid || $canReturn) + { + // to make sure the item is checkedin on redirect + $this->task = 'save'; + } + + $saved = parent::save($key, $urlVar); + + // This is not needed since parent save already does this + // Due to the ref and refid implementation we need to add this + if ($canReturn) + { + $redirect = base64_decode($return); + + // Redirect to the return value. + $this->setRedirect( + JRoute::_( + $redirect, false + ) + ); + } + elseif ($this->refid && $this->ref) + { + $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 + ) + ); + } + 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/joomla_module_updates.php b/admin/controllers/joomla_module_updates.php new file mode 100644 index 000000000..1650f44ac --- /dev/null +++ b/admin/controllers/joomla_module_updates.php @@ -0,0 +1,339 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Joomla_module_updates Controller + */ +class ComponentbuilderControllerJoomla_module_updates extends JControllerForm +{ + /** + * Current or most recently performed task. + * + * @var string + * @since 12.2 + * @note Replaces _task. + */ + protected $task; + + /** + * Class constructor. + * + * @param array $config A named array of configuration variables. + * + * @since 1.6 + */ + public function __construct($config = array()) + { + $this->view_list = 'Joomla_modules_updates'; // 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()) + { + // Get user object. + $user = JFactory::getUser(); + // Access check. + $access = $user->authorise('joomla_module_updates.access', 'com_componentbuilder'); + if (!$access) + { + return false; + } + + // In the absense of better information, revert to the component permissions. + return $user->authorise('joomla_module_updates.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('joomla_module_updates.access', 'com_componentbuilder.joomla_module_updates.' . (int) $recordId) && $user->authorise('joomla_module_updates.access', 'com_componentbuilder')); + if (!$access) + { + return false; + } + + if ($recordId) + { + // The record has been set. Check the record permissions. + $permission = $user->authorise('joomla_module_updates.edit', 'com_componentbuilder.joomla_module_updates.' . (int) $recordId); + if (!$permission) + { + if ($user->authorise('joomla_module_updates.edit.own', 'com_componentbuilder.joomla_module_updates.' . $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('joomla_module_updates.edit.own', 'com_componentbuilder')) + { + return true; + } + } + } + return false; + } + } + // Since there is no permission, revert to the component permissions. + return $user->authorise('joomla_module_updates.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 1.6 + */ + protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') + { + // get the referral options (old method use return instead see parent) + $ref = $this->input->get('ref', 0, 'string'); + $refid = $this->input->get('refid', 0, 'int'); + + // get redirect info. + $append = parent::getRedirectToItemAppend($recordId, $urlVar); + + // set the referral options + if ($refid && $ref) + { + $append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append; + } + elseif ($ref) + { + $append = '&ref='. (string)$ref . $append; + } + + 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('Joomla_module_updates', '', array()); + + // Preset the redirect + $this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_modules_updates' . $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 referral options + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + // Check if there is a return value + $return = $this->input->get('return', null, 'base64'); + + $cancel = parent::cancel($key); + + if (!is_null($return) && JUri::isInternal(base64_decode($return))) + { + $redirect = base64_decode($return); + + // Redirect to the return value. + $this->setRedirect( + JRoute::_( + $redirect, false + ) + ); + } + elseif ($this->refid && $this->ref) + { + $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 + ) + ); + } + 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 referral options + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + // Check if there is a return value + $return = $this->input->get('return', null, 'base64'); + $canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return))); + + if ($this->ref || $this->refid || $canReturn) + { + // to make sure the item is checkedin on redirect + $this->task = 'save'; + } + + $saved = parent::save($key, $urlVar); + + // This is not needed since parent save already does this + // Due to the ref and refid implementation we need to add this + if ($canReturn) + { + $redirect = base64_decode($return); + + // Redirect to the return value. + $this->setRedirect( + JRoute::_( + $redirect, false + ) + ); + } + elseif ($this->refid && $this->ref) + { + $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 + ) + ); + } + 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()) + { + // update the component version to match the updated last version + if (isset($validData['joomla_plugin']) && is_numeric($validData['joomla_plugin']) && $validData['joomla_plugin'] > 0) + { + $objectUpdate = new stdClass(); + $objectUpdate->id = (int) $validData['joomla_plugin']; + if (isset($validData['version_update']) && ComponentbuilderHelper::checkArray($validData['version_update']) + && ($plugin_version = end($validData['version_update'])['version']) + && ComponentbuilderHelper::checkString($plugin_version)) + { + $objectUpdate->plugin_version = $plugin_version; + } + // be sure to update the table if we have a value + if (isset($objectUpdate->plugin_version)) + { + JFactory::getDbo()->updateObject('#__componentbuilder_joomla_plugin', $objectUpdate, 'id'); + } + } + + return; + } + +} diff --git a/admin/controllers/joomla_modules.php b/admin/controllers/joomla_modules.php new file mode 100644 index 000000000..c62338a15 --- /dev/null +++ b/admin/controllers/joomla_modules.php @@ -0,0 +1,52 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Joomla_modules Controller + */ +class ComponentbuilderControllerJoomla_modules extends JControllerAdmin +{ + /** + * The prefix to use with controller messages. + * + * @var string + * @since 1.6 + */ + protected $text_prefix = 'COM_COMPONENTBUILDER_JOOMLA_MODULES'; + + /** + * Method to get a model object, loading it if required. + * + * @param string $name The model name. Optional. + * @param string $prefix The class prefix. Optional. + * @param array $config Configuration array for model. Optional. + * + * @return JModelLegacy The model. + * + * @since 1.6 + */ + public function getModel($name = 'Joomla_module', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true)) + { + return parent::getModel($name, $prefix, $config); + } + + public function getSnippets() + { + // Check for request forgeries + JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); + // redirect to the import snippets custom admin view + $this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=get_snippets', false)); + return; + } +} diff --git a/admin/controllers/joomla_modules_files_folders_urls.php b/admin/controllers/joomla_modules_files_folders_urls.php new file mode 100644 index 000000000..a010cac43 --- /dev/null +++ b/admin/controllers/joomla_modules_files_folders_urls.php @@ -0,0 +1,43 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Joomla_modules_files_folders_urls Controller + */ +class ComponentbuilderControllerJoomla_modules_files_folders_urls extends JControllerAdmin +{ + /** + * The prefix to use with controller messages. + * + * @var string + * @since 1.6 + */ + protected $text_prefix = 'COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS'; + + /** + * Method to get a model object, loading it if required. + * + * @param string $name The model name. Optional. + * @param string $prefix The class prefix. Optional. + * @param array $config Configuration array for model. Optional. + * + * @return JModelLegacy The model. + * + * @since 1.6 + */ + public function getModel($name = 'Joomla_module_files_folders_urls', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true)) + { + return parent::getModel($name, $prefix, $config); + } +} diff --git a/admin/controllers/joomla_modules_updates.php b/admin/controllers/joomla_modules_updates.php new file mode 100644 index 000000000..b663a8f94 --- /dev/null +++ b/admin/controllers/joomla_modules_updates.php @@ -0,0 +1,43 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Joomla_modules_updates Controller + */ +class ComponentbuilderControllerJoomla_modules_updates extends JControllerAdmin +{ + /** + * The prefix to use with controller messages. + * + * @var string + * @since 1.6 + */ + protected $text_prefix = 'COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES'; + + /** + * Method to get a model object, loading it if required. + * + * @param string $name The model name. Optional. + * @param string $prefix The class prefix. Optional. + * @param array $config Configuration array for model. Optional. + * + * @return JModelLegacy The model. + * + * @since 1.6 + */ + public function getModel($name = 'Joomla_module_updates', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true)) + { + return parent::getModel($name, $prefix, $config); + } +} diff --git a/admin/helpers/compiler/a_Get.php b/admin/helpers/compiler/a_Get.php index 9f7514fe6..f2c632566 100644 --- a/admin/helpers/compiler/a_Get.php +++ b/admin/helpers/compiler/a_Get.php @@ -1602,7 +1602,7 @@ class Get // README if ($component->addreadme) { - $component->readme = base64_decode($component->readme); + $component->readme = $this->setDynamicValues(base64_decode($component->readme)); } else { @@ -6530,7 +6530,7 @@ class Get if (!isset($form['plugin']) || $form['plugin'] != 1) { // now build the form key - $unique = $form['file'] . $form['fields_name'] . $form['fieldset']; + $unique = $form['file'] . $form['fields_name'] . $form['fieldset']; } else { @@ -6603,7 +6603,7 @@ class Get } else { - // load the cofig form + // load the config form if (!isset($plugin->config_fields[$form['fields_name']])) { $plugin->config_fields[$form['fields_name']] = array(); @@ -7228,7 +7228,7 @@ class Get * @param string $string The code string * @param array $config The placeholder config values * - * @return void + * @return string * */ public function setGuiCodePlaceholder($string, $config) @@ -7343,16 +7343,26 @@ class Get $first_line = strtok($code, PHP_EOL); // get the GUI target details $query = explode('.', trim($first_line, '.')); - // cleanup the newlines around the code - $code = trim(str_replace($first_line, '', $code), PHP_EOL) . PHP_EOL; - // reverse placeholder as much as we can - $code = $this->reversePlaceholders($code, $placeholders, $target, $query[2], $query[1], $query[0]); - // update the GUI/Tables/Database - $object = new stdClass(); - $object->id = (int) $query[2]; - $object->{$query[1]} = base64_encode($code); // (TODO) this may not always work... - // update the value in GUI - $this->db->updateObject('#__componentbuilder_' . (string) $query[0], $object, 'id'); + // only continue if we have 3 values in the query + if (is_array($query) && count($query) == 3) + { + // cleanup the newlines around the code + $code = trim(str_replace($first_line, '', $code), PHP_EOL) . PHP_EOL; + // set the ID + $id = (int) $query[2]; + // make the field name save + $field = ComponentbuilderHelper::safeFieldName($query[1]); + // make the table name save + $table = ComponentbuilderHelper::safeString($query[0]); + // reverse placeholder as much as we can + $code = $this->reversePlaceholders($code, $placeholders, $target, $id, $field, $table); + // update the GUI/Tables/Database + $object = new stdClass(); + $object->id = $id; + $object->{$field} = base64_encode($code); // (TODO) this may not always work... + // update the value in GUI + $this->db->updateObject('#__componentbuilder_' . (string) $table, $object, 'id'); + } } } } diff --git a/admin/helpers/compiler/b_Structure.php b/admin/helpers/compiler/b_Structure.php index 1473a2fcf..5e3a914a1 100644 --- a/admin/helpers/compiler/b_Structure.php +++ b/admin/helpers/compiler/b_Structure.php @@ -404,7 +404,7 @@ class Structure extends Get * * @param int $nr The line number * - * @return void + * @return string * */ private function setLine($nr) @@ -531,10 +531,34 @@ class Structure extends Get // biuld basic XML $xml = ''; $xml .= PHP_EOL . ''; - $xml .= PHP_EOL . '_t(1) . 'addrulepath="/administrator/components/com_' . $this->componentCodeName . '/models/rules"'; - $xml .= PHP_EOL . $this->_t(1) . 'addfieldpath="/administrator/components/com_' . $this->componentCodeName . '/models/fields"'; - $xml .= PHP_EOL . '>'; + // search if we must add the component path + $add_component_path = false; + foreach ($fields as $field_name => $fieldsets) + { + if (!$add_component_path) + { + foreach ($fieldsets as $fieldset => $field) + { + if (!$add_component_path && isset($plugin->fieldsets_paths[$file . $field_name . $fieldset]) && $plugin->fieldsets_paths[$file . $field_name . $fieldset] == 1) + { + $add_component_path = true; + } + } + } + } + // only add if part of the component field types path is required + if ($add_component_path) + { + $xml .= PHP_EOL . '_t(1) . 'addrulepath="/administrator/components/com_' . $this->componentCodeName . '/models/rules"'; + $xml .= PHP_EOL . $this->_t(1) . 'addfieldpath="/administrator/components/com_' . $this->componentCodeName . '/models/fields"'; + $xml .= PHP_EOL . '>'; + } + else + { + $xml .= PHP_EOL . '
'; + } + // add the fields foreach ($fields as $field_name => $fieldsets) { // check if we have an double fields naming set diff --git a/admin/helpers/compiler/e_Interpretation.php b/admin/helpers/compiler/e_Interpretation.php index dbd4816cb..80fc8e4de 100644 --- a/admin/helpers/compiler/e_Interpretation.php +++ b/admin/helpers/compiler/e_Interpretation.php @@ -18,6 +18,20 @@ defined('_JEXEC') or die('Restricted access'); class Interpretation extends Fields { + /** + * The global config Field Sets + * + * @var array + */ + public $configFieldSets = array(); + + /** + * The global config Field Sets Custom Fields + * + * @var array + */ + public $configFieldSetsCustomField = array(); + /** * The contributors * @@ -16647,6 +16661,8 @@ function vdm_dkim() { $dbkey = 'yy'; // build the xml $xml = ''; + // search if we must add the component path + $add_component_path = false; // build the config fields $config_fields = array(); if (isset($plugin->config_fields) && ComponentbuilderHelper::checkArray($plugin->config_fields)) @@ -16660,9 +16676,14 @@ function vdm_dkim() { // make sure the xml is set and a string if (isset($xmlFields) && ComponentbuilderHelper::checkString($xmlFields)) { - $config_fields[$field_name.$fieldset] = $xmlFields; + $config_fields[$field_name . $fieldset] = $xmlFields; } $dbkey++; + // check if the fieldset path requiers component paths + if (!$add_component_path && isset($plugin->fieldsets_paths[$field_name . $fieldset]) && $plugin->fieldsets_paths[$field_name . $fieldset] == 1) + { + $add_component_path = true; + } } } } @@ -16767,12 +16788,20 @@ function vdm_dkim() { if (ComponentbuilderHelper::checkArray($config_fields)) { $xml .= PHP_EOL . PHP_EOL . $this->_t(1) . ''; - // add path to plugin rules and custom fields - $xml .= PHP_EOL . $this->_t(1) . '_t(2) . 'addrulepath="/administrator/components/com_' . $this->componentCodeName . '/models/rules"'; - $xml .= PHP_EOL . $this->_t(2) . 'addfieldpath="/administrator/components/com_' . $this->componentCodeName . '/models/fields"'; - $xml .= PHP_EOL . $this->_t(1) . '>'; - + // only add if part of the component field types path is required + if ($add_component_path) + { + // add path to plugin rules and custom fields + $xml .= PHP_EOL . $this->_t(1) . '_t(2) . 'addrulepath="/administrator/components/com_' . $this->componentCodeName . '/models/rules"'; + $xml .= PHP_EOL . $this->_t(2) . 'addfieldpath="/administrator/components/com_' . $this->componentCodeName . '/models/fields"'; + $xml .= PHP_EOL . $this->_t(1) . '>'; + } + else + { + $xml .= PHP_EOL . $this->_t(1) . ''; + } + // add the fields foreach ($plugin->config_fields as $field_name => $fieldsets) { $xml .= PHP_EOL . $this->_t(1) . ''; @@ -16785,7 +16814,7 @@ function vdm_dkim() { $label = $plugin->fieldsets_label[$field_name.$fieldset]; } // add path to plugin rules and custom fields - if (isset($plugin->fieldsets_paths[$field_name.$fieldset]) && $plugin->fieldsets_paths[$field_name.$fieldset] == 2) + if (isset($plugin->fieldsets_paths[$field_name . $fieldset]) && $plugin->fieldsets_paths[$field_name . $fieldset] == 2) { $xml .= PHP_EOL . $this->_t(1) . ''; $xml .= PHP_EOL . $this->_t(1) . '
authorise('joomla_module.access', 'com_componentbuilder') && $user->authorise('joomla_module.submenu', 'com_componentbuilder')) + { + JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_JOOMLA_MODULES'), 'index.php?option=com_componentbuilder&view=joomla_modules', $submenu === 'joomla_modules'); + } if ($user->authorise('joomla_plugin.access', 'com_componentbuilder') && $user->authorise('joomla_plugin.submenu', 'com_componentbuilder')) { JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_JOOMLA_PLUGINS'), 'index.php?option=com_componentbuilder&view=joomla_plugins', $submenu === 'joomla_plugins'); diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.ini b/admin/language/en-GB/en-GB.com_componentbuilder.ini index e74b21dc7..b9f955b50 100644 --- a/admin/language/en-GB/en-GB.com_componentbuilder.ini +++ b/admin/language/en-GB/en-GB.com_componentbuilder.ini @@ -4266,10 +4266,10 @@ COM_COMPONENTBUILDER_DASHBOARD_GET_SNIPPETS="Get Snippets

" COM_COMPONENTBUILDER_DASHBOARD_HELP_DOCUMENTS="Help Documents

" COM_COMPONENTBUILDER_DASHBOARD_IMPORTJCBPACKAGES="Import JCB Packages

" COM_COMPONENTBUILDER_DASHBOARD_JOOMLA_COMPONENTS="Joomla Components

" +COM_COMPONENTBUILDER_DASHBOARD_JOOMLA_MODULES="Joomla Modules

" COM_COMPONENTBUILDER_DASHBOARD_JOOMLA_PLUGINS="Joomla Plugins

" COM_COMPONENTBUILDER_DASHBOARD_LANGUAGE_TRANSLATIONS="Language Translations

" COM_COMPONENTBUILDER_DASHBOARD_LAYOUTS="Layouts

" -COM_COMPONENTBUILDER_DASHBOARD_LAYOUT_ADD="Add Layout

" COM_COMPONENTBUILDER_DASHBOARD_LIBRARIES="Libraries

" COM_COMPONENTBUILDER_DASHBOARD_LIST_OF_RECORDS="Dashboard (list of records)" COM_COMPONENTBUILDER_DASHBOARD_PLACEHOLDERS="Placeholders

" @@ -5386,6 +5386,8 @@ COM_COMPONENTBUILDER_JCB_COMMUNITY_PACKAGES="JCB Community Packages" COM_COMPONENTBUILDER_JCB_COMMUNITY_SNIPPETS="JCB Community Snippets" COM_COMPONENTBUILDER_JCB_PACKAGE_IMPORT="JCB Package Import" COM_COMPONENTBUILDER_JCB_PACKAGE_INFO_PATH_DOES_NOT_WORK_WE_ADVICE_YOU_BNOT_TO_CONTINUEB_WITH_THE_IMPORT_OF_THE_SELECTED_PACKAGE="JCB Package info path does not work, we advice you not to continue with the import of the selected package!" +COM_COMPONENTBUILDER_JCB_PRO_BOARD="JCB Pro board" +COM_COMPONENTBUILDER_JCB_PRO_NOTICE_BOARD="JCB Pro Notice Board" COM_COMPONENTBUILDER_JOIN_FIELDS="Join Fields" COM_COMPONENTBUILDER_JOIN_TYPE="Join Type" COM_COMPONENTBUILDER_JOOMLA_COMPONENT="Joomla Component" @@ -5898,6 +5900,471 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_URL_MESSAGE="Error! Please add websi COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES="Yes" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ZIP="ZIP" COM_COMPONENTBUILDER_JOOMLA_FIELDS="Joomla fields" +COM_COMPONENTBUILDER_JOOMLA_MODULE="Joomla Module" +COM_COMPONENTBUILDER_JOOMLA_MODULES="Joomla Modules" +COM_COMPONENTBUILDER_JOOMLA_MODULES_ACCESS="Joomla Modules Access" +COM_COMPONENTBUILDER_JOOMLA_MODULES_ACCESS_DESC="Allows the users in this group to access access joomla modules" +COM_COMPONENTBUILDER_JOOMLA_MODULES_BATCH_OPTIONS="Batch process the selected Joomla Modules" +COM_COMPONENTBUILDER_JOOMLA_MODULES_BATCH_TIP="All changes will be applied to all selected Joomla Modules" +COM_COMPONENTBUILDER_JOOMLA_MODULES_BATCH_USE="Joomla Modules Batch Use" +COM_COMPONENTBUILDER_JOOMLA_MODULES_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch joomla modules" +COM_COMPONENTBUILDER_JOOMLA_MODULES_CREATE="Joomla Modules Create" +COM_COMPONENTBUILDER_JOOMLA_MODULES_CREATE_DESC="Allows the users in this group to create create joomla modules" +COM_COMPONENTBUILDER_JOOMLA_MODULES_DASHBOARD_LIST="Joomla Modules Dashboard List" +COM_COMPONENTBUILDER_JOOMLA_MODULES_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of joomla module" +COM_COMPONENTBUILDER_JOOMLA_MODULES_DELETE="Joomla Modules Delete" +COM_COMPONENTBUILDER_JOOMLA_MODULES_DELETE_DESC="Allows the users in this group to delete delete joomla modules" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT="Joomla Modules Edit" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_CREATED_BY="Joomla Modules Edit Created By" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by joomla modules" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_CREATED_DATE="Joomla Modules Edit Created Date" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created joomla modules" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_DESC="Allows the users in this group to edit the joomla module" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_OWN="Joomla Modules Edit Own" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_OWN_DESC="Allows the users in this group to edit edit own joomla modules created by them" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_STATE="Joomla Modules Edit State" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla module" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_VERSION="Joomla Modules Edit Version" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla modules" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS="Joomla Modules Files, Folders & URLs" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_ACCESS="Joomla Modules Files Folders Urls Access" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_ACCESS_DESC="Allows the users in this group to access access joomla modules files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_BATCH_OPTIONS="Batch process the selected Joomla Modules Files, Folders & URLs" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_BATCH_TIP="All changes will be applied to all selected Joomla Modules Files, Folders & URLs" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_BATCH_USE="Joomla Modules Files Folders Urls Batch Use" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch joomla modules files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_CREATE="Joomla Modules Files Folders Urls Create" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_CREATE_DESC="Allows the users in this group to create create joomla modules files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_DELETE="Joomla Modules Files Folders Urls Delete" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_DELETE_DESC="Allows the users in this group to delete delete joomla modules files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT="Joomla Modules Files Folders Urls Edit" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_CREATED_BY="Joomla Modules Files Folders Urls Edit Created By" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by joomla modules files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_CREATED_DATE="Joomla Modules Files Folders Urls Edit Created Date" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created joomla modules files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_DESC="Allows the users in this group to edit the joomla module files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_OWN="Joomla Modules Files Folders Urls Edit Own" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_OWN_DESC="Allows the users in this group to edit edit own joomla modules files folders urls created by them" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_STATE="Joomla Modules Files Folders Urls Edit State" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla module files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_VERSION="Joomla Modules Files Folders Urls Edit Version" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla modules files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_ARCHIVED="%s Joomla Modules Files, Folders & URLs archived." +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_ARCHIVED_1="%s Joomla Module Files, Folders & URLs archived." +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_CHECKED_IN_0="No Joomla Module Files, Folders & URLs successfully checked in." +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_CHECKED_IN_1="%d Joomla Module Files, Folders & URLs successfully checked in." +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_CHECKED_IN_MORE="%d Joomla Modules Files, Folders & URLs successfully checked in." +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_DELETED="%s Joomla Modules Files, Folders & URLs deleted." +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_DELETED_1="%s Joomla Module Files, Folders & URLs deleted." +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_FEATURED="%s Joomla Modules Files, Folders & URLs featured." +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_FEATURED_1="%s Joomla Module Files, Folders & URLs featured." +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_PUBLISHED="%s Joomla Modules Files, Folders & URLs published." +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_PUBLISHED_1="%s Joomla Module Files, Folders & URLs published." +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_TRASHED="%s Joomla Modules Files, Folders & URLs trashed." +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_TRASHED_1="%s Joomla Module Files, Folders & URLs trashed." +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_UNFEATURED="%s Joomla Modules Files, Folders & URLs unfeatured." +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_UNFEATURED_1="%s Joomla Module Files, Folders & URLs unfeatured." +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_UNPUBLISHED="%s Joomla Modules Files, Folders & URLs unpublished." +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_UNPUBLISHED_1="%s Joomla Module Files, Folders & URLs unpublished." +COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_ARCHIVED="%s Joomla Modules archived." +COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_ARCHIVED_1="%s Joomla Module archived." +COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_CHECKED_IN_0="No Joomla Module successfully checked in." +COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_CHECKED_IN_1="%d Joomla Module successfully checked in." +COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_CHECKED_IN_MORE="%d Joomla Modules successfully checked in." +COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_DELETED="%s Joomla Modules deleted." +COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_DELETED_1="%s Joomla Module deleted." +COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_FEATURED="%s Joomla Modules featured." +COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_FEATURED_1="%s Joomla Module featured." +COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_PUBLISHED="%s Joomla Modules published." +COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_PUBLISHED_1="%s Joomla Module published." +COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_TRASHED="%s Joomla Modules trashed." +COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_TRASHED_1="%s Joomla Module trashed." +COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_UNFEATURED="%s Joomla Modules unfeatured." +COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_UNFEATURED_1="%s Joomla Module unfeatured." +COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_UNPUBLISHED="%s Joomla Modules unpublished." +COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_UNPUBLISHED_1="%s Joomla Module unpublished." +COM_COMPONENTBUILDER_JOOMLA_MODULES_SUBMENU="Joomla Modules Submenu" +COM_COMPONENTBUILDER_JOOMLA_MODULES_SUBMENU_DESC="Allows the users in this group to submenu of joomla module" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES="Joomla Modules Updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_ACCESS="Joomla Modules Updates Access" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_ACCESS_DESC="Allows the users in this group to access access joomla modules updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_BATCH_OPTIONS="Batch process the selected Joomla Modules Updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_BATCH_TIP="All changes will be applied to all selected Joomla Modules Updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_BATCH_USE="Joomla Modules Updates Batch Use" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch joomla modules updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_CREATE="Joomla Modules Updates Create" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_CREATE_DESC="Allows the users in this group to create create joomla modules updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_DELETE="Joomla Modules Updates Delete" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_DELETE_DESC="Allows the users in this group to delete delete joomla modules updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT="Joomla Modules Updates Edit" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_CREATED_BY="Joomla Modules Updates Edit Created By" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by joomla modules updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_CREATED_DATE="Joomla Modules Updates Edit Created Date" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created joomla modules updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_DESC="Allows the users in this group to edit the joomla module updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_OWN="Joomla Modules Updates Edit Own" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_OWN_DESC="Allows the users in this group to edit edit own joomla modules updates created by them" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_STATE="Joomla Modules Updates Edit State" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla module updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_VERSION="Joomla Modules Updates Edit Version" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla modules updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_ARCHIVED="%s Joomla Modules Updates archived." +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_ARCHIVED_1="%s Joomla Module Updates archived." +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_CHECKED_IN_0="No Joomla Module Updates successfully checked in." +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_CHECKED_IN_1="%d Joomla Module Updates successfully checked in." +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_CHECKED_IN_MORE="%d Joomla Modules Updates successfully checked in." +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_DELETED="%s Joomla Modules Updates deleted." +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_DELETED_1="%s Joomla Module Updates deleted." +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_FEATURED="%s Joomla Modules Updates featured." +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_FEATURED_1="%s Joomla Module Updates featured." +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_PUBLISHED="%s Joomla Modules Updates published." +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_PUBLISHED_1="%s Joomla Module Updates published." +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_TRASHED="%s Joomla Modules Updates trashed." +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_TRASHED_1="%s Joomla Module Updates trashed." +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_UNFEATURED="%s Joomla Modules Updates unfeatured." +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_UNFEATURED_1="%s Joomla Module Updates unfeatured." +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_UNPUBLISHED="%s Joomla Modules Updates unpublished." +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_UNPUBLISHED_1="%s Joomla Module Updates unpublished." +COM_COMPONENTBUILDER_JOOMLA_MODULE_ABSTRACT_CLASS_HELPER_CODE="Abstract Class Helper Code" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ABSTRACT_CLASS_HELPER_CODE_DESCRIPTION="Add the class properties & methods here." +COM_COMPONENTBUILDER_JOOMLA_MODULE_ABSTRACT_CLASS_HELPER_CODE_LABEL="Abstract Class Helper Properties & Methods" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ABSTRACT_CLASS_HELPER_HEADER="Abstract Class Helper Header" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ABSTRACT_CLASS_HELPER_HEADER_DESCRIPTION="The class header, where JLoader, namespace and use is added." +COM_COMPONENTBUILDER_JOOMLA_MODULE_ABSTRACT_CLASS_HELPER_HEADER_LABEL="Abstract Class Helper Header" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDREADME="Addreadme" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDREADME_LABEL="Add README" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_ABSTRACT_CLASS_HELPER="Add Abstract Class Helper" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_ABSTRACT_CLASS_HELPER_DESCRIPTION="You can add an abstract helper class to your module." +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_ABSTRACT_CLASS_HELPER_LABEL="Add Abstract Class Helper" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_CUSTOM_ABSTRACT_CLASS_HELPER_HEADER="Add Custom Abstract Class Helper Header" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_CUSTOM_ABSTRACT_CLASS_HELPER_HEADER_DESCRIPTION="You can add your own custom abstract helper header script." +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_CUSTOM_ABSTRACT_CLASS_HELPER_HEADER_LABEL="Add Custom Abstract Class Helper Header" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_METHOD_UNINSTALL="Add Php Method Uninstall" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_METHOD_UNINSTALL_LABEL="Add PHP Method (uninstall)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_POSTFLIGHT_INSTALL="Add Php Postflight Install" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_POSTFLIGHT_INSTALL_LABEL="Add PHP Postflight (install)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_POSTFLIGHT_UPDATE="Add Php Postflight Update" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_POSTFLIGHT_UPDATE_LABEL="Add PHP Postflight (update)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_PREFLIGHT_INSTALL="Add Php Preflight Install" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_PREFLIGHT_INSTALL_LABEL="Add PHP Preflight (install)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_PREFLIGHT_UNINSTALL="Add Php Preflight Uninstall" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_PREFLIGHT_UNINSTALL_LABEL="Add PHP Preflight (uninstall)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_PREFLIGHT_UPDATE="Add Php Preflight Update" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_PREFLIGHT_UPDATE_LABEL="Add PHP Preflight (update)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_SCRIPT_CONSTRUCT="Add Php Script Construct" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_SCRIPT_CONSTRUCT_LABEL="Add PHP Script Construct" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_SALES_SERVER="Add Sales Server" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_SALES_SERVER_LABEL="Add Sales Server" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_SQL="Add Sql" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_SQL_LABEL="Add MySQL - (Install)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_SQL_UNINSTALL="Add Sql Uninstall" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_SQL_UNINSTALL_LABEL="Add MySQL - (Uninstall)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_UPDATE_SERVER="Add Update Server" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_UPDATE_SERVER_LABEL="Add Update Server" +COM_COMPONENTBUILDER_JOOMLA_MODULE_CODE="Code" +COM_COMPONENTBUILDER_JOOMLA_MODULE_COMPONENT="Component" +COM_COMPONENTBUILDER_JOOMLA_MODULE_CREATED_BY_DESC="The user that created this Joomla Module." +COM_COMPONENTBUILDER_JOOMLA_MODULE_CREATED_BY_LABEL="Created By" +COM_COMPONENTBUILDER_JOOMLA_MODULE_CREATED_DATE_DESC="The date this Joomla Module was created." +COM_COMPONENTBUILDER_JOOMLA_MODULE_CREATED_DATE_LABEL="Created Date" +COM_COMPONENTBUILDER_JOOMLA_MODULE_CUSTOM_GET="Custom Get" +COM_COMPONENTBUILDER_JOOMLA_MODULE_CUSTOM_GET_DESCRIPTION="Select the custom get methods" +COM_COMPONENTBUILDER_JOOMLA_MODULE_CUSTOM_GET_LABEL="Custom Gets" +COM_COMPONENTBUILDER_JOOMLA_MODULE_CUSTOM_VALUE_DESCRIPTION="Enter custom value if needed" +COM_COMPONENTBUILDER_JOOMLA_MODULE_CUSTOM_VALUE_HINT="Custom Value Here" +COM_COMPONENTBUILDER_JOOMLA_MODULE_CUSTOM_VALUE_LABEL="Custom Value" +COM_COMPONENTBUILDER_JOOMLA_MODULE_DEFAULT="Default" +COM_COMPONENTBUILDER_JOOMLA_MODULE_DEFAULT_DESCRIPTION="Add the code here." +COM_COMPONENTBUILDER_JOOMLA_MODULE_DEFAULT_LABEL="Default View" +COM_COMPONENTBUILDER_JOOMLA_MODULE_DESCRIPTION="Description" +COM_COMPONENTBUILDER_JOOMLA_MODULE_DESCRIPTION_DESCRIPTION="Add Description Here" +COM_COMPONENTBUILDER_JOOMLA_MODULE_DESCRIPTION_HINT="Add Description Here" +COM_COMPONENTBUILDER_JOOMLA_MODULE_DESCRIPTION_LABEL="Description" +COM_COMPONENTBUILDER_JOOMLA_MODULE_DYNAMIC_INTEGRATION="Dynamic Integration" +COM_COMPONENTBUILDER_JOOMLA_MODULE_EDIT="Editing the Joomla Module" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ERROR_UNIQUE_ALIAS="Another Joomla Module has the same alias." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELD="Field" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS="Fields" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDSET_DESCRIPTION="Leave default if you don't know what this should be" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDSET_HINT="basic" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDSET_LABEL="Fieldset Name" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_DESCRIPTION="All the field that belong to this form." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_LABEL="Related Forms" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_NAME_DESCRIPTION="Leave default if you don't know what this should be." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_NAME_HINT="params" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_NAME_LABEL="Fields Name" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_RULES_PATHS_DESCRIPTION="Where should the custom fields and rules be placed." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_RULES_PATHS_LABEL="Fields & Rules Paths" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELD_DESCRIPTION="Select a field" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELD_LABEL="Field" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS="Joomla Module Files, Folders & URLs" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFILES="Addfiles" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFILESFULLPATH="Addfilesfullpath" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFILESFULLPATH_DESCRIPTION="Add files to this component using the full path." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFILESFULLPATH_LABEL="Files (full path)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFILES_DESCRIPTION="Add custom files to this component from the custom folder. Path: /administrator/components/com_componentbuilder/custom/" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFILES_LABEL="Files (custom folder)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFOLDERS="Addfolders" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFOLDERSFULLPATH="Addfoldersfullpath" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFOLDERSFULLPATH_DESCRIPTION="Add custom folder to this component using the full path." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFOLDERSFULLPATH_LABEL="Folder (full path)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFOLDERS_DESCRIPTION="Add custom folder to this component from the custom folder. Path: /administrator/components/com_componentbuilder/custom/" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFOLDERS_LABEL="Folder (custom folder)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDURLS="Addurls" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDURLS_DESCRIPTION="Add urls for this library." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDURLS_LABEL="URLs" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADVANCE="Advance" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_BASIC="Basic" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_CREATED_BY_DESC="The user that created this Joomla Module Files, Folders & URLs." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_CREATED_BY_LABEL="Created By" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_CREATED_DATE_DESC="The date this Joomla Module Files, Folders & URLs was created." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_CREATED_DATE_LABEL="Created Date" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_DEFAULT_LINK="Default (link)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_EDIT="Editing the Joomla Module Files, Folders & URLs" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ERROR_UNIQUE_ALIAS="Another Joomla Module Files, Folders & URLs has the same alias." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILE="File" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILEPATH_DESCRIPTION="Full System Path" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILEPATH_HINT="/home/user/folder/file.php" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILEPATH_LABEL="File Path" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILEPATH_MESSAGE="Error! Please add folder path here." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILE_DESCRIPTION="Add the files to custom folder" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILE_LABEL="File" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDER="Folder" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDERPATH_DESCRIPTION="Full System Path" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDERPATH_HINT="/home/user/folder" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDERPATH_LABEL="Folder Path" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDERPATH_MESSAGE="Error! Please add folder path here." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDER_DESCRIPTION="Add the folder to custom folder" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDER_LABEL="Folder" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ID="Id" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_JOOMLA_MODULE="Joomla Module" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_JOOMLA_MODULE_LABEL="Joomla Modules" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_LINK_LOCAL_DYNAMIC="Link & Local (dynamic)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_LOCAL_GET="Local (get)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_MODIFIED_BY_DESC="The last user that modified this Joomla Module Files, Folders & URLs." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_MODIFIED_BY_LABEL="Modified By" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_MODIFIED_DATE_DESC="The date this Joomla Module Files, Folders & URLs was modified." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_MODIFIED_DATE_LABEL="Modified Date" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NEW="A New Joomla Module Files, Folders & URLs" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FILES_DESCRIPTION="You can add custom files to the component, simply add the files to the administrator/components/com_componentbuilder/custom folder and then select them here." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FILES_FULLPATH_DESCRIPTION="You can add any files to the component, by using the full system path. Example: /home/user/folder/file.php (make sure that php has permission to read the file)
Please note that you can also use constant paths in your full path (directly without quotes), this is highly recommended to insure portability.
To see a list of constant paths please read the notes below. Example: JPATH_ROOT/file.php or JPATH_ROOT/components/com_yourcomponentname/helpers/file.php" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FILES_FULLPATH_LABEL="Adding Files" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FILES_LABEL="Adding Custom Files" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_DESCRIPTION="You can add custom folders to the component, simply add the folders to the administrator/components/com_componentbuilder/custom folder and then select them here." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_FULLPATH_DESCRIPTION="You can any folders to the component, by using the full system path. Example: /home/user/folder (make sure that php has permission to read the folder)
Please note that you can also use constant paths in your full path (directly without quotes), this is highly recommended to insure portability.
To see a list of constant paths please read the notes below. Example: JPATH_ROOT/folder or JPATH_ROOT/components/com_yourcomponentname/helpers/folder" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_FULLPATH_LABEL="Adding Folders" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_LABEL="Adding Custom Folders" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_URLS_DESCRIPTION="You can add urls here, and it can be used in three ways. As a direct link (default) or to get the file content and add it to the component (get) or as both local and link (dynamic)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_URLS_LABEL="Adding Urls" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_CONSTANT_PATHS_DESCRIPTION="

// The path to the administrator folder.
+JPATH_ADMINISTRATOR
+// The path to the installed Joomla! site, or JPATH_ROOT/administrator if executed from the backend.
+JPATH_BASE
+// The path to the cache folder.
+JPATH_CACHE
+// The path to the administration folder of JCB component.
+JPATH_COMPONENT_ADMINISTRATOR no ideal to use
+// The path to the site folder of JCB component.
+JPATH_COMPONENT_SITE no ideal to use
+// The path to the JCB component.
+JPATH_COMPONENT no ideal to use
+// The path to folder containing the configuration.php file.
+JPATH_CONFIGURATION
+// The path to the installation folder.
+JPATH_INSTALLATION
+// The path to the libraries folder.
+JPATH_LIBRARIES
+// The path to the plugins folder.
+JPATH_PLUGINS
+// The path to the installed Joomla! site.
+JPATH_ROOT
+// The path to the installed Joomla! site.
+JPATH_SITE
+// The path to the templates folder.
+JPATH_THEMES

+ +

JPATH_SITE is meant to represent the root path of the JSite application,
+just as JPATH_ADMINISTRATOR is mean to represent the root path of the JAdministrator application.
+JPATH_BASE is the root path for the current requested application.... so if you are in the administrator application:
+JPATH_BASE == JPATH_ADMINISTRATOR
+If you are in the site application:
+JPATH_BASE == JPATH_SITE
+If you are in the installation application:
+JPATH_BASE == JPATH_INSTALLATION.
+JPATH_ROOT is the root path for the Joomla install and does not depend upon any application.

" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_CONSTANT_PATHS_LABEL="Constant Paths" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTNEW_DESCRIPTION="Should file be updated." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTNEW_LABEL="Update" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ORDERING_LABEL="Ordering" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_DESCRIPTION="Path in relation to the folder structure in the install package, unzip the compiled zip file to see the structure." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_HINT="Target Path Here" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_LABEL="Target Path" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_MESSAGE="Error! Please add target path." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PERMISSION="Permissions" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PUBLISHING="Publishing" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_RENAME_LABEL="Rename" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Joomla Module Files, Folders & URLs to customise the alias." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_STATUS="Status" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_TYPE_DESCRIPTION="way url is used" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_TYPE_LABEL="Type" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_URL_DESCRIPTION="Enter URL to file." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_URL_HINT="http://www.example.com/file.js" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_URL_LABEL="URL" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_URL_MESSAGE="Error! Please add url here." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_VERSION_DESC="A count of the number of times this Joomla Module Files, Folders & URLs has been revised." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_VERSION_LABEL="Version" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILE_DESCRIPTION="Leave default if you don't know what this should be. This field is ignored if this form belongs to the plugin config area." +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILE_HINT="config" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FILE_LABEL="File Name" +COM_COMPONENTBUILDER_JOOMLA_MODULE_FORMS_FIELDS="Forms & Fields" +COM_COMPONENTBUILDER_JOOMLA_MODULE_GET_SNIPPETS_BUTTON_ACCESS="Joomla Module Get Snippets Button Access" +COM_COMPONENTBUILDER_JOOMLA_MODULE_GET_SNIPPETS_BUTTON_ACCESS_DESC="Allows the users in this group to access the get snippets button." +COM_COMPONENTBUILDER_JOOMLA_MODULE_HTML="HTML" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ID="Id" +COM_COMPONENTBUILDER_JOOMLA_MODULE_LABEL_DESCRIPTION="Not mandatory, used to Label the Fieldset" +COM_COMPONENTBUILDER_JOOMLA_MODULE_LABEL_HINT="Name" +COM_COMPONENTBUILDER_JOOMLA_MODULE_LABEL_LABEL="Label" +COM_COMPONENTBUILDER_JOOMLA_MODULE_LIBRARIES="Libraries" +COM_COMPONENTBUILDER_JOOMLA_MODULE_LIBRARIES_DESCRIPTION="Select the media libraries you want to use here." +COM_COMPONENTBUILDER_JOOMLA_MODULE_LIBRARIES_LABEL="Media Libraries" +COM_COMPONENTBUILDER_JOOMLA_MODULE_MODIFIED_BY_DESC="The last user that modified this Joomla Module." +COM_COMPONENTBUILDER_JOOMLA_MODULE_MODIFIED_BY_LABEL="Modified By" +COM_COMPONENTBUILDER_JOOMLA_MODULE_MODIFIED_DATE_DESC="The date this Joomla Module was modified." +COM_COMPONENTBUILDER_JOOMLA_MODULE_MODIFIED_DATE_LABEL="Modified Date" +COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE="Module" +COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_DESCRIPTION="Add this form the the Module Config area." +COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_LABEL="Add to Module Config" +COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_VERSION="Module Version" +COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_VERSION_DESCRIPTION="Add Version Number Here" +COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_VERSION_HINT="1.0.0" +COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_VERSION_LABEL="Version" +COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_VERSION_MESSAGE="Error! Please add version here." +COM_COMPONENTBUILDER_JOOMLA_MODULE_MYSQL="MySQL" +COM_COMPONENTBUILDER_JOOMLA_MODULE_NAME="Name" +COM_COMPONENTBUILDER_JOOMLA_MODULE_NAME_DESCRIPTION="Enter Name Here" +COM_COMPONENTBUILDER_JOOMLA_MODULE_NAME_HINT="Name Here" +COM_COMPONENTBUILDER_JOOMLA_MODULE_NAME_LABEL="Name" +COM_COMPONENTBUILDER_JOOMLA_MODULE_NAME_MESSAGE="Error! Please add name here." +COM_COMPONENTBUILDER_JOOMLA_MODULE_NEW="A New Joomla Module" +COM_COMPONENTBUILDER_JOOMLA_MODULE_NO="No" +COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION="<?php echo JText::_('Text'); ?>" +COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_ADD_LANGUAGE_STRING_LABEL="Add Language String" +COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_LINKED_TO_NOTICE_DESCRIPTION="
Searching the database.
" +COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_LINKED_TO_NOTICE_LABEL="Linked To" +COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_MODEL_DESCRIPTION="

So over here you are able to manually code your model.

We have also added some code via the boilerplate repo that can serve as a starting point, simple select them and it will be added to your code.

If you have added any fields in the Config/Params tab, these fields will be available to you in the $this->params object, and can be accessed via the field name $this->params->get('fieldname'); with the get method.

" +COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_MODEL_LABEL="Easy Model Build Options" +COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_SNIPPET_USAGE_LABEL="Snippet Usage" +COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_UIKIT_SNIPPET_LABEL="Snippet Details" +COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_UPDATE_SERVER_NOTE_FTP_DESCRIPTION="During compilation the file will be moved to the server. You still need to point the above update server url to the xml file location on your server for it to work correctly." +COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_UPDATE_SERVER_NOTE_FTP_LABEL="Select the server used for your update server." +COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_UPDATE_SERVER_NOTE_OTHER_DESCRIPTION="Not really sure what other options to add.... so let me know. For now this option does not really do anything except adding the link above to your component as an update server. So it really could be called the manual option, since you will need to set the update server your self. You still need to point the above update server url to the manually created xml file for it to work correctly." +COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_UPDATE_SERVER_NOTE_OTHER_LABEL="The Other Options" +COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_UPDATE_SERVER_NOTE_ZIP_DESCRIPTION="The update server XML file will be added to the zipped package during compilation. You still need to point the above update server url to the xml wherever you have placed the files online." +COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_UPDATE_SERVER_NOTE_ZIP_LABEL="The ZIP Option" +COM_COMPONENTBUILDER_JOOMLA_MODULE_NOT_REQUIRED="Not Required" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ORDERING_LABEL="Ordering" +COM_COMPONENTBUILDER_JOOMLA_MODULE_OTHER="Other" +COM_COMPONENTBUILDER_JOOMLA_MODULE_PERMISSION="Permissions" +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_METHOD_UNINSTALL="Php Method Uninstall" +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_METHOD_UNINSTALL_DESCRIPTION="PHP script that should run during uninstall." +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_METHOD_UNINSTALL_LABEL="PHP Method (uninstall)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_POSTFLIGHT_INSTALL="Php Postflight Install" +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_POSTFLIGHT_INSTALL_DESCRIPTION="PHP script that should run postflight during install." +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_POSTFLIGHT_INSTALL_LABEL="PHP Postflight (install)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_POSTFLIGHT_UPDATE="Php Postflight Update" +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_POSTFLIGHT_UPDATE_DESCRIPTION="PHP script that should run postflight during update." +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_POSTFLIGHT_UPDATE_LABEL="PHP Postflight (update)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_INSTALL="Php Preflight Install" +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_INSTALL_DESCRIPTION="PHP script that should run preflight during install." +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_INSTALL_LABEL="PHP Preflight (install)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_UNINSTALL="Php Preflight Uninstall" +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_UNINSTALL_DESCRIPTION="PHP script that should run preflight during uninstall." +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_UNINSTALL_LABEL="PHP Preflight (uninstall)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_UPDATE="Php Preflight Update" +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_UPDATE_DESCRIPTION="PHP script that should run preflight during update." +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_UPDATE_LABEL="PHP Preflight (update)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_SCRIPT_CONSTRUCT="Php Script Construct" +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_SCRIPT_CONSTRUCT_DESCRIPTION="PHP script that should run in __construct of script." +COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_SCRIPT_CONSTRUCT_LABEL="PHP Script Construct" +COM_COMPONENTBUILDER_JOOMLA_MODULE_PUBLISHING="Publishing" +COM_COMPONENTBUILDER_JOOMLA_MODULE_README="Readme" +COM_COMPONENTBUILDER_JOOMLA_MODULE_README_LABEL="README.md" +COM_COMPONENTBUILDER_JOOMLA_MODULE_RUN_EXPANSION_BUTTON_ACCESS="Joomla Module Run Expansion Button Access" +COM_COMPONENTBUILDER_JOOMLA_MODULE_RUN_EXPANSION_BUTTON_ACCESS_DESC="Allows the users in this group to access the run expansion button." +COM_COMPONENTBUILDER_JOOMLA_MODULE_SALES_SERVER="Sales Server" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SALES_SERVER_DESCRIPTION="Select your sales server for this component" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SALES_SERVER_LABEL="Sales Server" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Joomla Module to customise the alias." +COM_COMPONENTBUILDER_JOOMLA_MODULE_SCRIPT_FILE="Script File" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SERVER="Server" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SNIPPET="Snippet" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SNIPPET_DESCRIPTION="Select a snippet you would like to use or review." +COM_COMPONENTBUILDER_JOOMLA_MODULE_SNIPPET_LABEL="Select a Snippet" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL="Sql" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_DESCRIPTION="Add your MySQL here!" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_HINT="// Add MySQL Table Dump Here" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_LABEL="MySQL - (Install)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_UNINSTALL="Sql Uninstall" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_UNINSTALL_DESCRIPTION="Add your MySQL here for uninstall!" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_UNINSTALL_HINT="// Add MySQL to uninstall Here" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_UNINSTALL_LABEL="MySQL - (Uninstall)" +COM_COMPONENTBUILDER_JOOMLA_MODULE_STATUS="Status" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SYSTEM_NAME="System Name" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SYSTEM_NAME_DESCRIPTION="Used only in the system." +COM_COMPONENTBUILDER_JOOMLA_MODULE_SYSTEM_NAME_HINT="The System Name Here" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SYSTEM_NAME_LABEL="System Name" +COM_COMPONENTBUILDER_JOOMLA_MODULE_SYSTEM_NAME_MESSAGE="Error! Please add some text here." +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES="Joomla Module Updates" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_CREATED_BY_DESC="The user that created this Joomla Module Updates." +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_CREATED_BY_LABEL="Created By" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_CREATED_DATE_DESC="The date this Joomla Module Updates was created." +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_CREATED_DATE_LABEL="Created Date" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_EDIT="Editing the Joomla Module Updates" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_ERROR_UNIQUE_ALIAS="Another Joomla Module Updates has the same alias." +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_ID="Id" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_JOOMLA_MODULE="Joomla Module" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_JOOMLA_MODULE_LABEL="Joomla Modules" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MODIFIED_BY_DESC="The last user that modified this Joomla Module Updates." +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MODIFIED_BY_LABEL="Modified By" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MODIFIED_DATE_DESC="The date this Joomla Module Updates was modified." +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MODIFIED_DATE_LABEL="Modified Date" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MYSQL_DESCRIPTION="Update Dump" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MYSQL_HINT="// MySQL for update or blank for none" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MYSQL_LABEL="MySQL" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_NEW="A New Joomla Module Updates" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_ORDERING_LABEL="Ordering" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_PERMISSION="Permissions" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_PUBLISHING="Publishing" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Joomla Module Updates to customise the alias." +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_STATUS="Status" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_UPDATES="Updates" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_URL_DESCRIPTION="Enter Download Link" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_URL_HINT="http://www.example.com/file.zip" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_URL_LABEL="Version URL" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_URL_MESSAGE="Error! Please add url here." +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_DESC="A count of the number of times this Joomla Module Updates has been revised." +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_DESCRIPTION="1.0.0" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_HINT="1.0.0" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_LABEL="Version" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_MESSAGE="Error! Please add some text here." +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_UPDATE="Version Update" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_UPDATE_DESCRIPTION="Add Version Updates Here!" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_UPDATE_LABEL="Version Updates" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER="Update Server" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_DESCRIPTION="Select your update server for this component." +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_LABEL="Update Server" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_TARGET="Update Server Target" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_TARGET_DESCRIPTION="Select the type of way you would like the update server to be set." +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_TARGET_LABEL="Update Server Target" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_URL="Update Server Url" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_URL_DESCRIPTION="Enter Update Server URL" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_URL_HINT="http://www.example.com/update/extension_name.xml" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_URL_LABEL="Update Server" +COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_URL_MESSAGE="Error! Please add url here." +COM_COMPONENTBUILDER_JOOMLA_MODULE_VERSION_DESC="A count of the number of times this Joomla Module has been revised." +COM_COMPONENTBUILDER_JOOMLA_MODULE_VERSION_LABEL="Version" +COM_COMPONENTBUILDER_JOOMLA_MODULE_YES="Yes" +COM_COMPONENTBUILDER_JOOMLA_MODULE_ZIP="ZIP" COM_COMPONENTBUILDER_JOOMLA_PLUGIN="Joomla Plugin" COM_COMPONENTBUILDER_JOOMLA_PLUGINS="Joomla Plugins" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_ACCESS="Joomla Plugins Access" @@ -6591,8 +7058,6 @@ COM_COMPONENTBUILDER_LAYOUTS_BATCH_USE="Layouts Batch Use" COM_COMPONENTBUILDER_LAYOUTS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch layouts" COM_COMPONENTBUILDER_LAYOUTS_CREATE="Layouts Create" COM_COMPONENTBUILDER_LAYOUTS_CREATE_DESC="Allows the users in this group to create create layouts" -COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_ADD="Layouts Dashboard Add" -COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of layout" COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_LIST="Layouts Dashboard List" COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of layout" COM_COMPONENTBUILDER_LAYOUTS_DELETE="Layouts Delete" @@ -8156,6 +8621,7 @@ COM_COMPONENTBUILDER_SUBMENU_FIELDTYPES="Fieldtypes" COM_COMPONENTBUILDER_SUBMENU_GET_SNIPPETS="Get Snippets" COM_COMPONENTBUILDER_SUBMENU_HELP_DOCUMENTS="Help Documents" COM_COMPONENTBUILDER_SUBMENU_JOOMLA_COMPONENTS="Joomla Components" +COM_COMPONENTBUILDER_SUBMENU_JOOMLA_MODULES="Joomla Modules" COM_COMPONENTBUILDER_SUBMENU_JOOMLA_PLUGINS="Joomla Plugins" COM_COMPONENTBUILDER_SUBMENU_LANGUAGES="Languages" COM_COMPONENTBUILDER_SUBMENU_LANGUAGE_TRANSLATIONS="Language Translations" @@ -8343,6 +8809,8 @@ COM_COMPONENTBUILDER_THE_KEY_OF_THIS_PACKAGE="The key of this package." COM_COMPONENTBUILDER_THE_LIBRARY_CONFIG_FIELDS="The library config fields" COM_COMPONENTBUILDER_THE_LIBRARY_FILES_FOLDERS_URLS="The library files, folders & URLs" COM_COMPONENTBUILDER_THE_LOGIN_TO_BSB_HAS_FAILED_PLEASE_CHECK_THAT_YOUR_DETAILS_ARE_CORRECT="The login to %s has failed, please check that your details are correct!" +COM_COMPONENTBUILDER_THE_MODULE_FILES_FOLDERS="The module files & folders" +COM_COMPONENTBUILDER_THE_MODULE_UPDATES="The module updates" COM_COMPONENTBUILDER_THE_NAME_OF_THIS_LIBRARY_BSB_CAN_NOT_BE_CHANGED_TO_BSB_OR_THINGS_WILL_BREAK="The name of this library (%s) can not be changed to %s or things will break." COM_COMPONENTBUILDER_THE_NOTICE_BOARD_IS_LOADING="The notice board is loading" COM_COMPONENTBUILDER_THE_PACKAGE_KEY_IS_CODESCODE="The package key is: %s" @@ -8351,6 +8819,7 @@ COM_COMPONENTBUILDER_THE_PLUGIN_FILES_FOLDERS="The plugin files & folders" COM_COMPONENTBUILDER_THE_PLUGIN_UPDATES="The plugin updates" COM_COMPONENTBUILDER_THE_PRIVATE_KEY_FIELD_COULD_NOT_BE_LOADED_FOR_BSB_SERVER="The private key field could not be loaded for %s server!" COM_COMPONENTBUILDER_THE_PRIVATE_KEY_FILE_COULD_NOT_BE_LOADEDFOUND_FOR_BSB_SERVER="The private key file could not be loaded/found for %s server!" +COM_COMPONENTBUILDER_THE_PRO_BOARD_IS_LOADING="The pro board is loading" COM_COMPONENTBUILDER_THE_README_IS_LOADING="The readme is loading" COM_COMPONENTBUILDER_THE_SEARCH_FOR_THE_SNIPPETS_ARE_CASE_SENSITIVE_SO_IF_YOU_CHANGED_THE_LOCAL_BNAMESB_OF_EITHER_OR_THE_BSNIPPET_LIBRARY_OR_SNIPPET_TYPESB_IN_ANY_SMALL_WAY_THE_SYSTEM_WILL_NOT_BE_ABLE_TO_CONNECT_YOUR_LOCAL_SNIPPETS_WITH_THOSE_IN_THE_COMMUNITY_REPOSITORY_SO_WE_STRONGLY_ADVICE_TO_BKEEP_TO_THE_COMMUNITY_NAMINGB_TO_AVOID_MISMATCHING_THAT_WILL_IN_TURN_CAUSE_DUPLICATION_SO_IF_YOU_CHANGED_ANY_NAMES_JUST_CHANGE_THEM_BACK_AND_ALL_WILL_AGAIN_WORK_AS_EXPECTED="The search for the snippets are case sensitive so if you changed the local names of either or the snippet, library or snippet types in any small way, the system will not be able to connect your local snippets with those in the community repository. So we strongly advice to keep to the community naming to avoid mismatching, that will in turn cause duplication. So if you changed any names, just change them back and all will again work as expected." COM_COMPONENTBUILDER_THE_SERVER_DETAILS_FOR_BID_SB_COULD_NOT_BE_RETRIEVED="The server details for (ID: %s) could not be retrieved!" @@ -8407,6 +8876,9 @@ COM_COMPONENTBUILDER_TYPE_FIELD="Field" COM_COMPONENTBUILDER_TYPE_FIELDTYPE="Fieldtype" COM_COMPONENTBUILDER_TYPE_HELP_DOCUMENT="Help Document" COM_COMPONENTBUILDER_TYPE_JOOMLA_COMPONENT="Joomla Component" +COM_COMPONENTBUILDER_TYPE_JOOMLA_MODULE="Joomla Module" +COM_COMPONENTBUILDER_TYPE_JOOMLA_MODULE_FILES_FOLDERS_URLS="Joomla Module Files, Folders & URLs" +COM_COMPONENTBUILDER_TYPE_JOOMLA_MODULE_UPDATES="Joomla Module Updates" COM_COMPONENTBUILDER_TYPE_JOOMLA_PLUGIN="Joomla Plugin" COM_COMPONENTBUILDER_TYPE_JOOMLA_PLUGIN_FILES_FOLDERS_URLS="Joomla Plugin Files, Folders & URLs" COM_COMPONENTBUILDER_TYPE_JOOMLA_PLUGIN_GROUP="Joomla Plugin Group" @@ -8524,6 +8996,7 @@ COM_COMPONENTBUILDER_VALIDATION_RULE_STATUS="Status" COM_COMPONENTBUILDER_VALIDATION_RULE_VERSION_DESC="A count of the number of times this Validation Rule has been revised." COM_COMPONENTBUILDER_VALIDATION_RULE_VERSION_LABEL="Version" COM_COMPONENTBUILDER_VALUE="Value" +COM_COMPONENTBUILDER_VDM_BOARD="VDM board" COM_COMPONENTBUILDER_VDM_NOTICE_BOARD="VDM Notice Board" COM_COMPONENTBUILDER_VDM_PACKAGES="VDM Packages" COM_COMPONENTBUILDER_VERSION="Version" 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 82b14321e..f98d81f9c 100644 --- a/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini +++ b/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini @@ -638,6 +638,74 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_JCB_PACKAGES_BUTTON_ACCESS="Joomla COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_JCB_PACKAGES_BUTTON_ACCESS_DESC="Allows the users in this group to access the import jcb packages button." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_RUN_EXPANSION_BUTTON_ACCESS="Joomla Component Run Expansion Button Access" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_RUN_EXPANSION_BUTTON_ACCESS_DESC="Allows the users in this group to access the run expansion button." +COM_COMPONENTBUILDER_JOOMLA_MODULES_ACCESS="Joomla Modules Access" +COM_COMPONENTBUILDER_JOOMLA_MODULES_ACCESS_DESC="Allows the users in this group to access access joomla modules" +COM_COMPONENTBUILDER_JOOMLA_MODULES_BATCH_USE="Joomla Modules Batch Use" +COM_COMPONENTBUILDER_JOOMLA_MODULES_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch joomla modules" +COM_COMPONENTBUILDER_JOOMLA_MODULES_CREATE="Joomla Modules Create" +COM_COMPONENTBUILDER_JOOMLA_MODULES_CREATE_DESC="Allows the users in this group to create create joomla modules" +COM_COMPONENTBUILDER_JOOMLA_MODULES_DASHBOARD_LIST="Joomla Modules Dashboard List" +COM_COMPONENTBUILDER_JOOMLA_MODULES_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of joomla module" +COM_COMPONENTBUILDER_JOOMLA_MODULES_DELETE="Joomla Modules Delete" +COM_COMPONENTBUILDER_JOOMLA_MODULES_DELETE_DESC="Allows the users in this group to delete delete joomla modules" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT="Joomla Modules Edit" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_CREATED_BY="Joomla Modules Edit Created By" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by joomla modules" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_CREATED_DATE="Joomla Modules Edit Created Date" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created joomla modules" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_DESC="Allows the users in this group to edit the joomla module" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_OWN="Joomla Modules Edit Own" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_OWN_DESC="Allows the users in this group to edit edit own joomla modules created by them" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_STATE="Joomla Modules Edit State" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla module" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_VERSION="Joomla Modules Edit Version" +COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla modules" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_ACCESS="Joomla Modules Files Folders Urls Access" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_ACCESS_DESC="Allows the users in this group to access access joomla modules files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_BATCH_USE="Joomla Modules Files Folders Urls Batch Use" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch joomla modules files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_CREATE="Joomla Modules Files Folders Urls Create" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_CREATE_DESC="Allows the users in this group to create create joomla modules files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_DELETE="Joomla Modules Files Folders Urls Delete" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_DELETE_DESC="Allows the users in this group to delete delete joomla modules files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT="Joomla Modules Files Folders Urls Edit" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_CREATED_BY="Joomla Modules Files Folders Urls Edit Created By" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by joomla modules files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_CREATED_DATE="Joomla Modules Files Folders Urls Edit Created Date" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created joomla modules files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_DESC="Allows the users in this group to edit the joomla module files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_OWN="Joomla Modules Files Folders Urls Edit Own" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_OWN_DESC="Allows the users in this group to edit edit own joomla modules files folders urls created by them" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_STATE="Joomla Modules Files Folders Urls Edit State" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla module files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_VERSION="Joomla Modules Files Folders Urls Edit Version" +COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla modules files folders urls" +COM_COMPONENTBUILDER_JOOMLA_MODULES_SUBMENU="Joomla Modules Submenu" +COM_COMPONENTBUILDER_JOOMLA_MODULES_SUBMENU_DESC="Allows the users in this group to submenu of joomla module" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_ACCESS="Joomla Modules Updates Access" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_ACCESS_DESC="Allows the users in this group to access access joomla modules updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_BATCH_USE="Joomla Modules Updates Batch Use" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch joomla modules updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_CREATE="Joomla Modules Updates Create" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_CREATE_DESC="Allows the users in this group to create create joomla modules updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_DELETE="Joomla Modules Updates Delete" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_DELETE_DESC="Allows the users in this group to delete delete joomla modules updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT="Joomla Modules Updates Edit" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_CREATED_BY="Joomla Modules Updates Edit Created By" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by joomla modules updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_CREATED_DATE="Joomla Modules Updates Edit Created Date" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created joomla modules updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_DESC="Allows the users in this group to edit the joomla module updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_OWN="Joomla Modules Updates Edit Own" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_OWN_DESC="Allows the users in this group to edit edit own joomla modules updates created by them" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_STATE="Joomla Modules Updates Edit State" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla module updates" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_VERSION="Joomla Modules Updates Edit Version" +COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla modules updates" +COM_COMPONENTBUILDER_JOOMLA_MODULE_GET_SNIPPETS_BUTTON_ACCESS="Joomla Module Get Snippets Button Access" +COM_COMPONENTBUILDER_JOOMLA_MODULE_GET_SNIPPETS_BUTTON_ACCESS_DESC="Allows the users in this group to access the get snippets button." +COM_COMPONENTBUILDER_JOOMLA_MODULE_RUN_EXPANSION_BUTTON_ACCESS="Joomla Module Run Expansion Button Access" +COM_COMPONENTBUILDER_JOOMLA_MODULE_RUN_EXPANSION_BUTTON_ACCESS_DESC="Allows the users in this group to access the run expansion button." COM_COMPONENTBUILDER_JOOMLA_PLUGINS_ACCESS="Joomla Plugins Access" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_ACCESS_DESC="Allows the users in this group to access access joomla plugins" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_BATCH_USE="Joomla Plugins Batch Use" @@ -770,8 +838,6 @@ COM_COMPONENTBUILDER_LAYOUTS_BATCH_USE="Layouts Batch Use" COM_COMPONENTBUILDER_LAYOUTS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch layouts" COM_COMPONENTBUILDER_LAYOUTS_CREATE="Layouts Create" COM_COMPONENTBUILDER_LAYOUTS_CREATE_DESC="Allows the users in this group to create create layouts" -COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_ADD="Layouts Dashboard Add" -COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of layout" COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_LIST="Layouts Dashboard List" COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of layout" COM_COMPONENTBUILDER_LAYOUTS_DELETE="Layouts Delete" @@ -864,6 +930,7 @@ COM_COMPONENTBUILDER_MENU_FIELDS="Fields" COM_COMPONENTBUILDER_MENU_FIELDTYPES="Fieldtypes" COM_COMPONENTBUILDER_MENU_HELP_DOCUMENTS="Help Documents" COM_COMPONENTBUILDER_MENU_JOOMLA_COMPONENTS="Joomla Components" +COM_COMPONENTBUILDER_MENU_JOOMLA_MODULES="Joomla Modules" COM_COMPONENTBUILDER_MENU_JOOMLA_PLUGINS="Joomla Plugins" COM_COMPONENTBUILDER_MENU_LANGUAGE_TRANSLATIONS="Language Translations" COM_COMPONENTBUILDER_MENU_LAYOUTS="Layouts" diff --git a/admin/layouts/fieldtype/fields_fullwidth.php b/admin/layouts/fieldtype/fields_fullwidth.php index d9e3b26cc..c340a7d36 100644 --- a/admin/layouts/fieldtype/fields_fullwidth.php +++ b/admin/layouts/fieldtype/fields_fullwidth.php @@ -13,7 +13,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->vyifields; +$items = $displayData->vymfields; $user = JFactory::getUser(); $id = $displayData->item->id; // set the edit URL diff --git a/admin/layouts/joomla_module/code_fullwidth.php b/admin/layouts/joomla_module/code_fullwidth.php new file mode 100644 index 000000000..f8e931724 --- /dev/null +++ b/admin/layouts/joomla_module/code_fullwidth.php @@ -0,0 +1,45 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'abstract_class_helper_header', + 'abstract_class_helper_code' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + +
+ + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + +
+ diff --git a/admin/layouts/joomla_module/code_left.php b/admin/layouts/joomla_module/code_left.php new file mode 100644 index 000000000..868647ae8 --- /dev/null +++ b/admin/layouts/joomla_module/code_left.php @@ -0,0 +1,43 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'add_abstract_class_helper', + 'add_custom_abstract_class_helper_header' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + + + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + + diff --git a/admin/layouts/joomla_module/code_right.php b/admin/layouts/joomla_module/code_right.php new file mode 100644 index 000000000..f876161b2 --- /dev/null +++ b/admin/layouts/joomla_module/code_right.php @@ -0,0 +1,42 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'custom_get' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + + + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + + diff --git a/admin/layouts/joomla_module/dynamic_integration_left.php b/admin/layouts/joomla_module/dynamic_integration_left.php new file mode 100644 index 000000000..45d0c1960 --- /dev/null +++ b/admin/layouts/joomla_module/dynamic_integration_left.php @@ -0,0 +1,50 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'add_update_server', + 'update_server_url', + 'update_server_target', + 'note_update_server_note_ftp', + 'note_update_server_note_zip', + 'note_update_server_note_other', + 'update_server', + 'add_sales_server', + 'sales_server' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + + + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + + diff --git a/admin/layouts/joomla_module/forms_fields_fullwidth.php b/admin/layouts/joomla_module/forms_fields_fullwidth.php new file mode 100644 index 000000000..c3f86b0bd --- /dev/null +++ b/admin/layouts/joomla_module/forms_fields_fullwidth.php @@ -0,0 +1,44 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'fields' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + +
+ + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + +
+ diff --git a/admin/layouts/joomla_module/html_above.php b/admin/layouts/joomla_module/html_above.php new file mode 100644 index 000000000..8f3287039 --- /dev/null +++ b/admin/layouts/joomla_module/html_above.php @@ -0,0 +1,45 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'system_name', + 'module_version' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + +
+ + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + +
+ diff --git a/admin/layouts/joomla_module/html_fullwidth.php b/admin/layouts/joomla_module/html_fullwidth.php new file mode 100644 index 000000000..3a2d5fca6 --- /dev/null +++ b/admin/layouts/joomla_module/html_fullwidth.php @@ -0,0 +1,46 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'default', + 'note_linked_to_notice', + 'not_required' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + +
+ + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + +
+ diff --git a/admin/layouts/joomla_module/html_left.php b/admin/layouts/joomla_module/html_left.php new file mode 100644 index 000000000..720aebaaf --- /dev/null +++ b/admin/layouts/joomla_module/html_left.php @@ -0,0 +1,46 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'name', + 'description', + 'libraries', + 'note_model', + 'note_add_language_string' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + + + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + + diff --git a/admin/layouts/joomla_module/html_right.php b/admin/layouts/joomla_module/html_right.php new file mode 100644 index 000000000..1f3346970 --- /dev/null +++ b/admin/layouts/joomla_module/html_right.php @@ -0,0 +1,44 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'snippet', + 'note_uikit_snippet', + 'note_snippet_usage' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + + + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + + diff --git a/admin/layouts/joomla_module/index.html b/admin/layouts/joomla_module/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/layouts/joomla_module/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/layouts/joomla_module/mysql_fullwidth.php b/admin/layouts/joomla_module/mysql_fullwidth.php new file mode 100644 index 000000000..95a45a88b --- /dev/null +++ b/admin/layouts/joomla_module/mysql_fullwidth.php @@ -0,0 +1,47 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'add_sql', + 'sql', + 'add_sql_uninstall', + 'sql_uninstall' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + +
+ + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + +
+ diff --git a/admin/layouts/joomla_module/publishing.php b/admin/layouts/joomla_module/publishing.php new file mode 100644 index 000000000..68e3657ce --- /dev/null +++ b/admin/layouts/joomla_module/publishing.php @@ -0,0 +1,45 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'created', + 'created_by', + 'modified', + 'modified_by' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + + + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + + diff --git a/admin/layouts/joomla_module/publlshing.php b/admin/layouts/joomla_module/publlshing.php new file mode 100644 index 000000000..a7ff8580c --- /dev/null +++ b/admin/layouts/joomla_module/publlshing.php @@ -0,0 +1,47 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'published', + 'ordering', + 'access', + 'version', + 'hits', + 'id' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + + + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + + diff --git a/admin/layouts/joomla_module/readme_left.php b/admin/layouts/joomla_module/readme_left.php new file mode 100644 index 000000000..bc6fda557 --- /dev/null +++ b/admin/layouts/joomla_module/readme_left.php @@ -0,0 +1,43 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'addreadme', + 'readme' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + + + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + + diff --git a/admin/layouts/joomla_module/script_file_fullwidth.php b/admin/layouts/joomla_module/script_file_fullwidth.php new file mode 100644 index 000000000..caacca282 --- /dev/null +++ b/admin/layouts/joomla_module/script_file_fullwidth.php @@ -0,0 +1,57 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'add_php_script_construct', + 'php_script_construct', + 'add_php_preflight_install', + 'php_preflight_install', + 'add_php_preflight_update', + 'php_preflight_update', + 'add_php_preflight_uninstall', + 'php_preflight_uninstall', + 'add_php_postflight_install', + 'php_postflight_install', + 'add_php_postflight_update', + 'php_postflight_update', + 'add_php_method_uninstall', + 'php_method_uninstall' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + +
+ + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + +
+ diff --git a/admin/layouts/joomla_module_files_folders_urls/advance_fullwidth.php b/admin/layouts/joomla_module_files_folders_urls/advance_fullwidth.php new file mode 100644 index 000000000..b5112d859 --- /dev/null +++ b/admin/layouts/joomla_module_files_folders_urls/advance_fullwidth.php @@ -0,0 +1,48 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'note_add_files_fullpath', + 'addfilesfullpath', + 'note_add_folders_fullpath', + 'addfoldersfullpath', + 'note_constant_paths' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + +
+ + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + +
+ diff --git a/admin/layouts/joomla_module_files_folders_urls/basic_above.php b/admin/layouts/joomla_module_files_folders_urls/basic_above.php new file mode 100644 index 000000000..1c0538865 --- /dev/null +++ b/admin/layouts/joomla_module_files_folders_urls/basic_above.php @@ -0,0 +1,44 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'joomla_module' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + +
+ + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + +
+ diff --git a/admin/layouts/joomla_module_files_folders_urls/basic_fullwidth.php b/admin/layouts/joomla_module_files_folders_urls/basic_fullwidth.php new file mode 100644 index 000000000..60e54aae2 --- /dev/null +++ b/admin/layouts/joomla_module_files_folders_urls/basic_fullwidth.php @@ -0,0 +1,49 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'note_add_urls', + 'addurls', + 'note_add_files', + 'addfiles', + 'note_add_folders', + 'addfolders' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + +
+ + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + +
+ diff --git a/admin/layouts/joomla_module_files_folders_urls/index.html b/admin/layouts/joomla_module_files_folders_urls/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/layouts/joomla_module_files_folders_urls/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/layouts/joomla_module_files_folders_urls/publishing.php b/admin/layouts/joomla_module_files_folders_urls/publishing.php new file mode 100644 index 000000000..68e3657ce --- /dev/null +++ b/admin/layouts/joomla_module_files_folders_urls/publishing.php @@ -0,0 +1,45 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'created', + 'created_by', + 'modified', + 'modified_by' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + + + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + + diff --git a/admin/layouts/joomla_module_files_folders_urls/publlshing.php b/admin/layouts/joomla_module_files_folders_urls/publlshing.php new file mode 100644 index 000000000..a7ff8580c --- /dev/null +++ b/admin/layouts/joomla_module_files_folders_urls/publlshing.php @@ -0,0 +1,47 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'published', + 'ordering', + 'access', + 'version', + 'hits', + 'id' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + + + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + + diff --git a/admin/layouts/joomla_module_updates/index.html b/admin/layouts/joomla_module_updates/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/layouts/joomla_module_updates/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/layouts/joomla_module_updates/publishing.php b/admin/layouts/joomla_module_updates/publishing.php new file mode 100644 index 000000000..68e3657ce --- /dev/null +++ b/admin/layouts/joomla_module_updates/publishing.php @@ -0,0 +1,45 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'created', + 'created_by', + 'modified', + 'modified_by' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + + + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + + diff --git a/admin/layouts/joomla_module_updates/publlshing.php b/admin/layouts/joomla_module_updates/publlshing.php new file mode 100644 index 000000000..a7ff8580c --- /dev/null +++ b/admin/layouts/joomla_module_updates/publlshing.php @@ -0,0 +1,47 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'published', + 'ordering', + 'access', + 'version', + 'hits', + 'id' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + + + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + + diff --git a/admin/layouts/joomla_module_updates/updates_above.php b/admin/layouts/joomla_module_updates/updates_above.php new file mode 100644 index 000000000..1c0538865 --- /dev/null +++ b/admin/layouts/joomla_module_updates/updates_above.php @@ -0,0 +1,44 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'joomla_module' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + +
+ + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + +
+ diff --git a/admin/layouts/joomla_module_updates/updates_fullwidth.php b/admin/layouts/joomla_module_updates/updates_fullwidth.php new file mode 100644 index 000000000..37710d615 --- /dev/null +++ b/admin/layouts/joomla_module_updates/updates_fullwidth.php @@ -0,0 +1,44 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'version_update' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + +
+ + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + +
+ diff --git a/admin/layouts/server/linked_components_fullwidth.php b/admin/layouts/server/linked_components_fullwidth.php index 000ce8a3a..0adb7539a 100644 --- a/admin/layouts/server/linked_components_fullwidth.php +++ b/admin/layouts/server/linked_components_fullwidth.php @@ -13,7 +13,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->vyslinked_components; +$items = $displayData->vywlinked_components; $user = JFactory::getUser(); $id = $displayData->item->id; // set the edit URL diff --git a/admin/models/ajax.php b/admin/models/ajax.php index 46c2f4ac9..8f4da0c54 100644 --- a/admin/models/ajax.php +++ b/admin/models/ajax.php @@ -2368,7 +2368,7 @@ class ComponentbuilderModelAjax extends JModelList 'search' => 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', 'javascript'), + 'php_site_event', 'javascript', 'readme', 'sql', 'sql_uninstall'), 'views' => 'joomla_components', 'not_base64' => array(), 'name' => 'system_name' diff --git a/admin/models/componentbuilder.php b/admin/models/componentbuilder.php index ac93605d3..0e7f8719a 100644 --- a/admin/models/componentbuilder.php +++ b/admin/models/componentbuilder.php @@ -25,7 +25,7 @@ class ComponentbuilderModelComponentbuilder extends JModelList $icons = array(); // view groups array $viewGroups = array( - 'main' => array('png.compiler', 'png.joomla_components', 'png.joomla_plugins', 'png.admin_view.add', 'png.admin_views', 'png||importjcbpackages||index.php?option=com_componentbuilder&view=joomla_components&task=joomla_components.smartImport', 'png.custom_admin_view.add', 'png.custom_admin_views', 'png.site_view.add', 'png.site_views', 'png.template.add', 'png.templates', 'png.layout.add', 'png.layouts', 'png.dynamic_get.add', 'png.dynamic_gets', 'png.custom_codes', 'png.placeholders', 'png.libraries', 'png.snippets', 'png.get_snippets', 'png.validation_rules', 'png.field.add', 'png.fields', 'png.fields.catid', 'png.fieldtypes', 'png.fieldtypes.catid', 'png.language_translations', 'png.servers', 'png.help_documents') + 'main' => array('png.compiler', 'png.joomla_components', 'png.joomla_modules', 'png.joomla_plugins', 'png||importjcbpackages||index.php?option=com_componentbuilder&view=joomla_components&task=joomla_components.smartImport', 'png.admin_view.add', 'png.admin_views', 'png.custom_admin_view.add', 'png.custom_admin_views', 'png.site_view.add', 'png.site_views', 'png.template.add', 'png.templates', 'png.layouts', 'png.dynamic_get.add', 'png.dynamic_gets', 'png.custom_codes', 'png.placeholders', 'png.libraries', 'png.snippets', 'png.get_snippets', 'png.validation_rules', 'png.field.add', 'png.fields', 'png.fields.catid', 'png.fieldtypes', 'png.fieldtypes.catid', 'png.language_translations', 'png.servers', 'png.help_documents') ); // view access array $viewAccess = array( @@ -38,6 +38,11 @@ class ComponentbuilderModelComponentbuilder extends JModelList 'joomla_component.access' => 'joomla_component.access', 'joomla_components.submenu' => 'joomla_component.submenu', 'joomla_components.dashboard_list' => 'joomla_component.dashboard_list', + 'joomla_module.create' => 'joomla_module.create', + 'joomla_modules.access' => 'joomla_module.access', + 'joomla_module.access' => 'joomla_module.access', + 'joomla_modules.submenu' => 'joomla_module.submenu', + 'joomla_modules.dashboard_list' => 'joomla_module.dashboard_list', 'joomla_plugin.create' => 'joomla_plugin.create', 'joomla_plugins.access' => 'joomla_plugin.access', 'joomla_plugin.access' => 'joomla_plugin.access', @@ -68,7 +73,6 @@ class ComponentbuilderModelComponentbuilder extends JModelList 'layout.access' => 'layout.access', 'layouts.submenu' => 'layout.submenu', 'layouts.dashboard_list' => 'layout.dashboard_list', - 'layout.dashboard_add' => 'layout.dashboard_add', 'dynamic_get.create' => 'dynamic_get.create', 'dynamic_gets.access' => 'dynamic_get.access', 'dynamic_get.access' => 'dynamic_get.access', @@ -192,6 +196,12 @@ class ComponentbuilderModelComponentbuilder extends JModelList 'class_extends.create' => 'class_extends.create', 'class_extendings.access' => 'class_extends.access', 'class_extends.access' => 'class_extends.access', + 'joomla_module_updates.create' => 'joomla_module_updates.create', + 'joomla_modules_updates.access' => 'joomla_module_updates.access', + 'joomla_module_updates.access' => 'joomla_module_updates.access', + 'joomla_module_files_folders_urls.create' => 'joomla_module_files_folders_urls.create', + 'joomla_modules_files_folders_urls.access' => 'joomla_module_files_folders_urls.access', + 'joomla_module_files_folders_urls.access' => 'joomla_module_files_folders_urls.access', 'joomla_plugin_groups.access' => 'joomla_plugin_group.access', 'joomla_plugin_group.access' => 'joomla_plugin_group.access', 'joomla_plugin_updates.create' => 'joomla_plugin_updates.create', @@ -497,7 +507,7 @@ class ComponentbuilderModelComponentbuilder extends JModelList $document->addScript(JURI::root() . "media/com_componentbuilder/js/marked.js"); $document->addScriptDeclaration(' var token = "'.JSession::getFormToken().'"; - var noticeboard = "https://www.vdm.io/componentbuilder-noticeboard-md"; + var noticeboard = "https://vdm.bz/componentbuilder-noticeboard-md"; jQuery(document).ready(function () { jQuery.get(noticeboard) .success(function(board) { @@ -532,9 +542,9 @@ class ComponentbuilderModelComponentbuilder extends JModelList // to check is READ/NEW function getIS(type,notice){ if(type == 1){ - var getUrl = "index.php?option=com_componentbuilder&task=ajax.isNew&format=json"; + var getUrl = "index.php?option=com_componentbuilder&task=ajax.isNew&format=json&raw=true"; } else if (type == 2) { - var getUrl = "index.php?option=com_componentbuilder&task=ajax.isRead&format=json"; + var getUrl = "index.php?option=com_componentbuilder&task=ajax.isRead&format=json&raw=true"; } if(token.length > 0 && notice.length){ var request = "token="+token+"¬ice="+notice; @@ -542,9 +552,9 @@ class ComponentbuilderModelComponentbuilder extends JModelList return jQuery.ajax({ type: "POST", url: getUrl, - dataType: "jsonp", + dataType: "json", data: request, - jsonp: "callback" + jsonp: false }); } @@ -564,6 +574,29 @@ jQuery(document).ready( function($) { return '
'.JText::_('COM_COMPONENTBUILDER_THE_NOTICE_BOARD_IS_LOADING').'..
'; } + public function getProboard() + { + // get the document to load the scripts + $document = JFactory::getDocument(); + $document->addScriptDeclaration(' + var proboard = "https://vdm.bz/componentbuilder-pro-noticeboard-md"; + jQuery(document).ready(function () { + jQuery.get(proboard) + .success(function(board) { + if (board.length > 5) { + jQuery("#proboard-md").html(marked(board)); + } else { + jQuery("#proboard-md").html("'.JText::_('COM_COMPONENTBUILDER_ALL_IS_GOOD_PLEASE_CHECK_AGAIN_LATTER').'"); + } + }) + .error(function(jqXHR, textStatus, errorThrown) { + jQuery("#proboard-md").html("'.JText::_('COM_COMPONENTBUILDER_ALL_IS_GOOD_PLEASE_CHECK_AGAIN_LATTER').'"); + }); + });'); + + return '
'.JText::_('COM_COMPONENTBUILDER_THE_PRO_BOARD_IS_LOADING').'..
'; + } + public function getReadme() { $document = JFactory::getDocument(); diff --git a/admin/models/fields/components.php b/admin/models/fields/components.php index 402a5880c..e34a5349c 100644 --- a/admin/models/fields/components.php +++ b/admin/models/fields/components.php @@ -35,22 +35,23 @@ class JFormFieldComponents extends JFormFieldList */ protected function getOptions() { - $db = JFactory::getDBO(); - $query = $db->getQuery(true); - $query->select($db->quoteName(array('a.id','a.system_name'),array('id','components_system_name'))); - $query->from($db->quoteName('#__componentbuilder_joomla_component', 'a')); - $query->where($db->quoteName('a.published') . ' >= 1'); - $query->order('a.system_name ASC'); - $db->setQuery((string)$query); - $items = $db->loadObjectList(); - $options = array(); - if ($items) - { - foreach($items as $item) - { - $options[] = JHtml::_('select.option', $item->id, $item->components_system_name); - } - } + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + $query->select($db->quoteName(array('a.id','a.system_name'),array('id','components_system_name'))); + $query->from($db->quoteName('#__componentbuilder_joomla_component', 'a')); + $query->where($db->quoteName('a.published') . ' >= 1'); + $query->order('a.system_name ASC'); + $db->setQuery((string)$query); + $items = $db->loadObjectList(); + $options = array(); + if ($items) + { + foreach($items as $item) + { + $options[] = JHtml::_('select.option', $item->id, $item->components_system_name); + } + } + return $options; } } diff --git a/admin/models/fields/joomlamodules.php b/admin/models/fields/joomlamodules.php new file mode 100644 index 000000000..b18f9f1ac --- /dev/null +++ b/admin/models/fields/joomlamodules.php @@ -0,0 +1,71 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the list field type +jimport('joomla.form.helper'); +JFormHelper::loadFieldClass('list'); + +/** + * Joomlamodules Form Field class for the Componentbuilder component + */ +class JFormFieldJoomlamodules extends JFormFieldList +{ + /** + * The joomlamodules field type. + * + * @var string + */ + public $type = 'joomlamodules'; + + /** + * Method to get a list of options for a list input. + * + * @return array An array of JHtml options. + */ + protected function getOptions() + { + // Get the user object. + $user = JFactory::getUser(); + // Get the databse object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + $query->select($db->quoteName(array('a.id','a.system_name'),array('id','joomla_module_system_name'))); + $query->from($db->quoteName('#__componentbuilder_joomla_module', 'a')); + $query->where($db->quoteName('a.published') . ' >= 1'); + $query->order('a.system_name ASC'); + // Implement View Level Access (if set in table) + if (!$user->authorise('core.options', 'com_componentbuilder')) + { + $columns = $db->getTableColumns('#__componentbuilder_joomla_module'); + if(isset($columns['access'])) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + } + $db->setQuery((string)$query); + $items = $db->loadObjectList(); + $options = array(); + if ($items) + { + $options[] = JHtml::_('select.option', '', 'Select a module'); + foreach($items as $item) + { + // set a full class name + $options[] = JHtml::_('select.option', $item->id, $item->joomla_module_system_name); + } + } + return $options; + } +} diff --git a/admin/models/fieldtype.php b/admin/models/fieldtype.php index 927f9594b..8915a5957 100644 --- a/admin/models/fieldtype.php +++ b/admin/models/fieldtype.php @@ -247,7 +247,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getVyifields() + public function getVymfields() { // Get the user object. $user = JFactory::getUser(); @@ -335,13 +335,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin foreach ($items as $nr => &$item) { // convert datatype - $item->datatype = $this->selectionTranslationVyifields($item->datatype, 'datatype'); + $item->datatype = $this->selectionTranslationVymfields($item->datatype, 'datatype'); // convert indexes - $item->indexes = $this->selectionTranslationVyifields($item->indexes, 'indexes'); + $item->indexes = $this->selectionTranslationVymfields($item->indexes, 'indexes'); // convert null_switch - $item->null_switch = $this->selectionTranslationVyifields($item->null_switch, 'null_switch'); + $item->null_switch = $this->selectionTranslationVymfields($item->null_switch, 'null_switch'); // convert store - $item->store = $this->selectionTranslationVyifields($item->store, 'store'); + $item->store = $this->selectionTranslationVymfields($item->store, 'store'); } } @@ -355,7 +355,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin * * @return translatable string */ - public function selectionTranslationVyifields($value,$name) + public function selectionTranslationVymfields($value,$name) { // Array of datatype language strings if ($name === 'datatype') diff --git a/admin/models/forms/admin_view.js b/admin/models/forms/admin_view.js index d4670ad9d..7dfdfea7b 100644 --- a/admin/models/forms/admin_view.js +++ b/admin/models/forms/admin_view.js @@ -9,123 +9,123 @@ */ // Some Global Values -jform_vvvvvyzvwh_required = false; -jform_vvvvvzavwi_required = false; -jform_vvvvvzevwj_required = false; -jform_vvvvvzevwk_required = false; -jform_vvvvvzevwl_required = false; -jform_vvvvvzevwm_required = false; -jform_vvvvvzevwn_required = false; -jform_vvvvvzevwo_required = false; -jform_vvvvvzevwp_required = false; +jform_vvvvvzvvwl_required = false; +jform_vvvvvzwvwm_required = false; +jform_vvvvwaavwn_required = false; +jform_vvvvwaavwo_required = false; +jform_vvvvwaavwp_required = false; +jform_vvvvwaavwq_required = false; +jform_vvvvwaavwr_required = false; +jform_vvvvwaavws_required = false; +jform_vvvvwaavwt_required = false; // Initial Script jQuery(document).ready(function() { - var add_css_view_vvvvvxz = jQuery("#jform_add_css_view input[type='radio']:checked").val(); - vvvvvxz(add_css_view_vvvvvxz); + var add_css_view_vvvvvyv = jQuery("#jform_add_css_view input[type='radio']:checked").val(); + vvvvvyv(add_css_view_vvvvvyv); - var add_css_views_vvvvvya = jQuery("#jform_add_css_views input[type='radio']:checked").val(); - vvvvvya(add_css_views_vvvvvya); + var add_css_views_vvvvvyw = jQuery("#jform_add_css_views input[type='radio']:checked").val(); + vvvvvyw(add_css_views_vvvvvyw); - var add_javascript_view_file_vvvvvyb = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val(); - vvvvvyb(add_javascript_view_file_vvvvvyb); + var add_javascript_view_file_vvvvvyx = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val(); + vvvvvyx(add_javascript_view_file_vvvvvyx); - var add_javascript_views_file_vvvvvyc = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val(); - vvvvvyc(add_javascript_views_file_vvvvvyc); + var add_javascript_views_file_vvvvvyy = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val(); + vvvvvyy(add_javascript_views_file_vvvvvyy); - var add_javascript_view_footer_vvvvvyd = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); - vvvvvyd(add_javascript_view_footer_vvvvvyd); + var add_javascript_view_footer_vvvvvyz = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); + vvvvvyz(add_javascript_view_footer_vvvvvyz); - var add_javascript_views_footer_vvvvvye = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); - vvvvvye(add_javascript_views_footer_vvvvvye); + var add_javascript_views_footer_vvvvvza = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); + vvvvvza(add_javascript_views_footer_vvvvvza); - var add_php_ajax_vvvvvyf = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); - vvvvvyf(add_php_ajax_vvvvvyf); + var add_php_ajax_vvvvvzb = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); + vvvvvzb(add_php_ajax_vvvvvzb); - var add_php_getitem_vvvvvyg = jQuery("#jform_add_php_getitem input[type='radio']:checked").val(); - vvvvvyg(add_php_getitem_vvvvvyg); + var add_php_getitem_vvvvvzc = jQuery("#jform_add_php_getitem input[type='radio']:checked").val(); + vvvvvzc(add_php_getitem_vvvvvzc); - var add_php_getitems_vvvvvyh = jQuery("#jform_add_php_getitems input[type='radio']:checked").val(); - vvvvvyh(add_php_getitems_vvvvvyh); + var add_php_getitems_vvvvvzd = jQuery("#jform_add_php_getitems input[type='radio']:checked").val(); + vvvvvzd(add_php_getitems_vvvvvzd); - var add_php_getitems_after_all_vvvvvyi = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val(); - vvvvvyi(add_php_getitems_after_all_vvvvvyi); + var add_php_getitems_after_all_vvvvvze = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val(); + vvvvvze(add_php_getitems_after_all_vvvvvze); - var add_php_getlistquery_vvvvvyj = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); - vvvvvyj(add_php_getlistquery_vvvvvyj); + var add_php_getlistquery_vvvvvzf = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); + vvvvvzf(add_php_getlistquery_vvvvvzf); - var add_php_getform_vvvvvyk = jQuery("#jform_add_php_getform input[type='radio']:checked").val(); - vvvvvyk(add_php_getform_vvvvvyk); + var add_php_getform_vvvvvzg = jQuery("#jform_add_php_getform input[type='radio']:checked").val(); + vvvvvzg(add_php_getform_vvvvvzg); - var add_php_before_save_vvvvvyl = jQuery("#jform_add_php_before_save input[type='radio']:checked").val(); - vvvvvyl(add_php_before_save_vvvvvyl); + var add_php_before_save_vvvvvzh = jQuery("#jform_add_php_before_save input[type='radio']:checked").val(); + vvvvvzh(add_php_before_save_vvvvvzh); - var add_php_save_vvvvvym = jQuery("#jform_add_php_save input[type='radio']:checked").val(); - vvvvvym(add_php_save_vvvvvym); + var add_php_save_vvvvvzi = jQuery("#jform_add_php_save input[type='radio']:checked").val(); + vvvvvzi(add_php_save_vvvvvzi); - var add_php_postsavehook_vvvvvyn = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); - vvvvvyn(add_php_postsavehook_vvvvvyn); + var add_php_postsavehook_vvvvvzj = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); + vvvvvzj(add_php_postsavehook_vvvvvzj); - var add_php_allowadd_vvvvvyo = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val(); - vvvvvyo(add_php_allowadd_vvvvvyo); + var add_php_allowadd_vvvvvzk = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val(); + vvvvvzk(add_php_allowadd_vvvvvzk); - var add_php_allowedit_vvvvvyp = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); - vvvvvyp(add_php_allowedit_vvvvvyp); + var add_php_allowedit_vvvvvzl = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); + vvvvvzl(add_php_allowedit_vvvvvzl); - var add_php_before_cancel_vvvvvyq = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val(); - vvvvvyq(add_php_before_cancel_vvvvvyq); + var add_php_before_cancel_vvvvvzm = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val(); + vvvvvzm(add_php_before_cancel_vvvvvzm); - var add_php_after_cancel_vvvvvyr = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val(); - vvvvvyr(add_php_after_cancel_vvvvvyr); + var add_php_after_cancel_vvvvvzn = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val(); + vvvvvzn(add_php_after_cancel_vvvvvzn); - var add_php_batchcopy_vvvvvys = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); - vvvvvys(add_php_batchcopy_vvvvvys); + var add_php_batchcopy_vvvvvzo = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); + vvvvvzo(add_php_batchcopy_vvvvvzo); - var add_php_batchmove_vvvvvyt = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); - vvvvvyt(add_php_batchmove_vvvvvyt); + var add_php_batchmove_vvvvvzp = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); + vvvvvzp(add_php_batchmove_vvvvvzp); - var add_php_before_publish_vvvvvyu = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); - vvvvvyu(add_php_before_publish_vvvvvyu); + var add_php_before_publish_vvvvvzq = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); + vvvvvzq(add_php_before_publish_vvvvvzq); - var add_php_after_publish_vvvvvyv = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); - vvvvvyv(add_php_after_publish_vvvvvyv); + var add_php_after_publish_vvvvvzr = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); + vvvvvzr(add_php_after_publish_vvvvvzr); - var add_php_before_delete_vvvvvyw = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); - vvvvvyw(add_php_before_delete_vvvvvyw); + var add_php_before_delete_vvvvvzs = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); + vvvvvzs(add_php_before_delete_vvvvvzs); - var add_php_after_delete_vvvvvyx = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); - vvvvvyx(add_php_after_delete_vvvvvyx); + var add_php_after_delete_vvvvvzt = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); + vvvvvzt(add_php_after_delete_vvvvvzt); - var add_php_document_vvvvvyy = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvyy(add_php_document_vvvvvyy); + var add_php_document_vvvvvzu = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvvzu(add_php_document_vvvvvzu); - var add_sql_vvvvvyz = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvyz(add_sql_vvvvvyz); + var add_sql_vvvvvzv = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvzv(add_sql_vvvvvzv); - var source_vvvvvza = jQuery("#jform_source input[type='radio']:checked").val(); - var add_sql_vvvvvza = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvza(source_vvvvvza,add_sql_vvvvvza); + var source_vvvvvzw = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvzw = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvzw(source_vvvvvzw,add_sql_vvvvvzw); - var source_vvvvvzc = jQuery("#jform_source input[type='radio']:checked").val(); - var add_sql_vvvvvzc = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvzc(source_vvvvvzc,add_sql_vvvvvzc); + var source_vvvvvzy = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvzy = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvzy(source_vvvvvzy,add_sql_vvvvvzy); - var add_custom_import_vvvvvze = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); - vvvvvze(add_custom_import_vvvvvze); + var add_custom_import_vvvvwaa = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); + vvvvwaa(add_custom_import_vvvvwaa); - var add_custom_import_vvvvvzf = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); - vvvvvzf(add_custom_import_vvvvvzf); + var add_custom_import_vvvvwab = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); + vvvvwab(add_custom_import_vvvvwab); - var add_custom_button_vvvvvzg = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); - vvvvvzg(add_custom_button_vvvvvzg); + var add_custom_button_vvvvwac = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvwac(add_custom_button_vvvvwac); }); -// the vvvvvxz function -function vvvvvxz(add_css_view_vvvvvxz) +// the vvvvvyv function +function vvvvvyv(add_css_view_vvvvvyv) { // set the function logic - if (add_css_view_vvvvvxz == 1) + if (add_css_view_vvvvvyv == 1) { jQuery('#jform_css_view-lbl').closest('.control-group').show(); } @@ -135,11 +135,11 @@ function vvvvvxz(add_css_view_vvvvvxz) } } -// the vvvvvya function -function vvvvvya(add_css_views_vvvvvya) +// the vvvvvyw function +function vvvvvyw(add_css_views_vvvvvyw) { // set the function logic - if (add_css_views_vvvvvya == 1) + if (add_css_views_vvvvvyw == 1) { jQuery('#jform_css_views-lbl').closest('.control-group').show(); } @@ -149,11 +149,11 @@ function vvvvvya(add_css_views_vvvvvya) } } -// the vvvvvyb function -function vvvvvyb(add_javascript_view_file_vvvvvyb) +// the vvvvvyx function +function vvvvvyx(add_javascript_view_file_vvvvvyx) { // set the function logic - if (add_javascript_view_file_vvvvvyb == 1) + if (add_javascript_view_file_vvvvvyx == 1) { jQuery('#jform_javascript_view_file-lbl').closest('.control-group').show(); } @@ -163,11 +163,11 @@ function vvvvvyb(add_javascript_view_file_vvvvvyb) } } -// the vvvvvyc function -function vvvvvyc(add_javascript_views_file_vvvvvyc) +// the vvvvvyy function +function vvvvvyy(add_javascript_views_file_vvvvvyy) { // set the function logic - if (add_javascript_views_file_vvvvvyc == 1) + if (add_javascript_views_file_vvvvvyy == 1) { jQuery('#jform_javascript_views_file-lbl').closest('.control-group').show(); } @@ -177,11 +177,11 @@ function vvvvvyc(add_javascript_views_file_vvvvvyc) } } -// the vvvvvyd function -function vvvvvyd(add_javascript_view_footer_vvvvvyd) +// the vvvvvyz function +function vvvvvyz(add_javascript_view_footer_vvvvvyz) { // set the function logic - if (add_javascript_view_footer_vvvvvyd == 1) + if (add_javascript_view_footer_vvvvvyz == 1) { jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show(); } @@ -191,11 +191,11 @@ function vvvvvyd(add_javascript_view_footer_vvvvvyd) } } -// the vvvvvye function -function vvvvvye(add_javascript_views_footer_vvvvvye) +// the vvvvvza function +function vvvvvza(add_javascript_views_footer_vvvvvza) { // set the function logic - if (add_javascript_views_footer_vvvvvye == 1) + if (add_javascript_views_footer_vvvvvza == 1) { jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show(); } @@ -205,11 +205,11 @@ function vvvvvye(add_javascript_views_footer_vvvvvye) } } -// the vvvvvyf function -function vvvvvyf(add_php_ajax_vvvvvyf) +// the vvvvvzb function +function vvvvvzb(add_php_ajax_vvvvvzb) { // set the function logic - if (add_php_ajax_vvvvvyf == 1) + if (add_php_ajax_vvvvvzb == 1) { jQuery('#jform_ajax_input-lbl').closest('.control-group').show(); jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show(); @@ -221,11 +221,11 @@ function vvvvvyf(add_php_ajax_vvvvvyf) } } -// the vvvvvyg function -function vvvvvyg(add_php_getitem_vvvvvyg) +// the vvvvvzc function +function vvvvvzc(add_php_getitem_vvvvvzc) { // set the function logic - if (add_php_getitem_vvvvvyg == 1) + if (add_php_getitem_vvvvvzc == 1) { jQuery('#jform_php_getitem-lbl').closest('.control-group').show(); } @@ -235,11 +235,11 @@ function vvvvvyg(add_php_getitem_vvvvvyg) } } -// the vvvvvyh function -function vvvvvyh(add_php_getitems_vvvvvyh) +// the vvvvvzd function +function vvvvvzd(add_php_getitems_vvvvvzd) { // set the function logic - if (add_php_getitems_vvvvvyh == 1) + if (add_php_getitems_vvvvvzd == 1) { jQuery('#jform_php_getitems-lbl').closest('.control-group').show(); } @@ -249,11 +249,11 @@ function vvvvvyh(add_php_getitems_vvvvvyh) } } -// the vvvvvyi function -function vvvvvyi(add_php_getitems_after_all_vvvvvyi) +// the vvvvvze function +function vvvvvze(add_php_getitems_after_all_vvvvvze) { // set the function logic - if (add_php_getitems_after_all_vvvvvyi == 1) + if (add_php_getitems_after_all_vvvvvze == 1) { jQuery('#jform_php_getitems_after_all-lbl').closest('.control-group').show(); } @@ -263,11 +263,11 @@ function vvvvvyi(add_php_getitems_after_all_vvvvvyi) } } -// the vvvvvyj function -function vvvvvyj(add_php_getlistquery_vvvvvyj) +// the vvvvvzf function +function vvvvvzf(add_php_getlistquery_vvvvvzf) { // set the function logic - if (add_php_getlistquery_vvvvvyj == 1) + if (add_php_getlistquery_vvvvvzf == 1) { jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show(); } @@ -277,11 +277,11 @@ function vvvvvyj(add_php_getlistquery_vvvvvyj) } } -// the vvvvvyk function -function vvvvvyk(add_php_getform_vvvvvyk) +// the vvvvvzg function +function vvvvvzg(add_php_getform_vvvvvzg) { // set the function logic - if (add_php_getform_vvvvvyk == 1) + if (add_php_getform_vvvvvzg == 1) { jQuery('#jform_php_getform-lbl').closest('.control-group').show(); } @@ -291,11 +291,11 @@ function vvvvvyk(add_php_getform_vvvvvyk) } } -// the vvvvvyl function -function vvvvvyl(add_php_before_save_vvvvvyl) +// the vvvvvzh function +function vvvvvzh(add_php_before_save_vvvvvzh) { // set the function logic - if (add_php_before_save_vvvvvyl == 1) + if (add_php_before_save_vvvvvzh == 1) { jQuery('#jform_php_before_save-lbl').closest('.control-group').show(); } @@ -305,11 +305,11 @@ function vvvvvyl(add_php_before_save_vvvvvyl) } } -// the vvvvvym function -function vvvvvym(add_php_save_vvvvvym) +// the vvvvvzi function +function vvvvvzi(add_php_save_vvvvvzi) { // set the function logic - if (add_php_save_vvvvvym == 1) + if (add_php_save_vvvvvzi == 1) { jQuery('#jform_php_save-lbl').closest('.control-group').show(); } @@ -319,11 +319,11 @@ function vvvvvym(add_php_save_vvvvvym) } } -// the vvvvvyn function -function vvvvvyn(add_php_postsavehook_vvvvvyn) +// the vvvvvzj function +function vvvvvzj(add_php_postsavehook_vvvvvzj) { // set the function logic - if (add_php_postsavehook_vvvvvyn == 1) + if (add_php_postsavehook_vvvvvzj == 1) { jQuery('#jform_php_postsavehook-lbl').closest('.control-group').show(); } @@ -333,11 +333,11 @@ function vvvvvyn(add_php_postsavehook_vvvvvyn) } } -// the vvvvvyo function -function vvvvvyo(add_php_allowadd_vvvvvyo) +// the vvvvvzk function +function vvvvvzk(add_php_allowadd_vvvvvzk) { // set the function logic - if (add_php_allowadd_vvvvvyo == 1) + if (add_php_allowadd_vvvvvzk == 1) { jQuery('#jform_php_allowadd-lbl').closest('.control-group').show(); } @@ -347,11 +347,11 @@ function vvvvvyo(add_php_allowadd_vvvvvyo) } } -// the vvvvvyp function -function vvvvvyp(add_php_allowedit_vvvvvyp) +// the vvvvvzl function +function vvvvvzl(add_php_allowedit_vvvvvzl) { // set the function logic - if (add_php_allowedit_vvvvvyp == 1) + if (add_php_allowedit_vvvvvzl == 1) { jQuery('#jform_php_allowedit-lbl').closest('.control-group').show(); } @@ -361,11 +361,11 @@ function vvvvvyp(add_php_allowedit_vvvvvyp) } } -// the vvvvvyq function -function vvvvvyq(add_php_before_cancel_vvvvvyq) +// the vvvvvzm function +function vvvvvzm(add_php_before_cancel_vvvvvzm) { // set the function logic - if (add_php_before_cancel_vvvvvyq == 1) + if (add_php_before_cancel_vvvvvzm == 1) { jQuery('#jform_php_before_cancel-lbl').closest('.control-group').show(); } @@ -375,11 +375,11 @@ function vvvvvyq(add_php_before_cancel_vvvvvyq) } } -// the vvvvvyr function -function vvvvvyr(add_php_after_cancel_vvvvvyr) +// the vvvvvzn function +function vvvvvzn(add_php_after_cancel_vvvvvzn) { // set the function logic - if (add_php_after_cancel_vvvvvyr == 1) + if (add_php_after_cancel_vvvvvzn == 1) { jQuery('#jform_php_after_cancel-lbl').closest('.control-group').show(); } @@ -389,11 +389,11 @@ function vvvvvyr(add_php_after_cancel_vvvvvyr) } } -// the vvvvvys function -function vvvvvys(add_php_batchcopy_vvvvvys) +// the vvvvvzo function +function vvvvvzo(add_php_batchcopy_vvvvvzo) { // set the function logic - if (add_php_batchcopy_vvvvvys == 1) + if (add_php_batchcopy_vvvvvzo == 1) { jQuery('#jform_php_batchcopy-lbl').closest('.control-group').show(); } @@ -403,11 +403,11 @@ function vvvvvys(add_php_batchcopy_vvvvvys) } } -// the vvvvvyt function -function vvvvvyt(add_php_batchmove_vvvvvyt) +// the vvvvvzp function +function vvvvvzp(add_php_batchmove_vvvvvzp) { // set the function logic - if (add_php_batchmove_vvvvvyt == 1) + if (add_php_batchmove_vvvvvzp == 1) { jQuery('#jform_php_batchmove-lbl').closest('.control-group').show(); } @@ -417,11 +417,11 @@ function vvvvvyt(add_php_batchmove_vvvvvyt) } } -// the vvvvvyu function -function vvvvvyu(add_php_before_publish_vvvvvyu) +// the vvvvvzq function +function vvvvvzq(add_php_before_publish_vvvvvzq) { // set the function logic - if (add_php_before_publish_vvvvvyu == 1) + if (add_php_before_publish_vvvvvzq == 1) { jQuery('#jform_php_before_publish-lbl').closest('.control-group').show(); } @@ -431,11 +431,11 @@ function vvvvvyu(add_php_before_publish_vvvvvyu) } } -// the vvvvvyv function -function vvvvvyv(add_php_after_publish_vvvvvyv) +// the vvvvvzr function +function vvvvvzr(add_php_after_publish_vvvvvzr) { // set the function logic - if (add_php_after_publish_vvvvvyv == 1) + if (add_php_after_publish_vvvvvzr == 1) { jQuery('#jform_php_after_publish-lbl').closest('.control-group').show(); } @@ -445,11 +445,11 @@ function vvvvvyv(add_php_after_publish_vvvvvyv) } } -// the vvvvvyw function -function vvvvvyw(add_php_before_delete_vvvvvyw) +// the vvvvvzs function +function vvvvvzs(add_php_before_delete_vvvvvzs) { // set the function logic - if (add_php_before_delete_vvvvvyw == 1) + if (add_php_before_delete_vvvvvzs == 1) { jQuery('#jform_php_before_delete-lbl').closest('.control-group').show(); } @@ -459,11 +459,11 @@ function vvvvvyw(add_php_before_delete_vvvvvyw) } } -// the vvvvvyx function -function vvvvvyx(add_php_after_delete_vvvvvyx) +// the vvvvvzt function +function vvvvvzt(add_php_after_delete_vvvvvzt) { // set the function logic - if (add_php_after_delete_vvvvvyx == 1) + if (add_php_after_delete_vvvvvzt == 1) { jQuery('#jform_php_after_delete-lbl').closest('.control-group').show(); } @@ -473,11 +473,11 @@ function vvvvvyx(add_php_after_delete_vvvvvyx) } } -// the vvvvvyy function -function vvvvvyy(add_php_document_vvvvvyy) +// the vvvvvzu function +function vvvvvzu(add_php_document_vvvvvzu) { // set the function logic - if (add_php_document_vvvvvyy == 1) + if (add_php_document_vvvvvzu == 1) { jQuery('#jform_php_document-lbl').closest('.control-group').show(); } @@ -487,75 +487,75 @@ function vvvvvyy(add_php_document_vvvvvyy) } } -// the vvvvvyz function -function vvvvvyz(add_sql_vvvvvyz) +// the vvvvvzv function +function vvvvvzv(add_sql_vvvvvzv) { // set the function logic - if (add_sql_vvvvvyz == 1) + if (add_sql_vvvvvzv == 1) { jQuery('#jform_source').closest('.control-group').show(); // add required attribute to source field - if (jform_vvvvvyzvwh_required) + if (jform_vvvvvzvvwl_required) { updateFieldRequired('source',0); jQuery('#jform_source').prop('required','required'); jQuery('#jform_source').attr('aria-required',true); jQuery('#jform_source').addClass('required'); - jform_vvvvvyzvwh_required = false; + jform_vvvvvzvvwl_required = false; } } else { jQuery('#jform_source').closest('.control-group').hide(); // remove required attribute from source field - if (!jform_vvvvvyzvwh_required) + if (!jform_vvvvvzvvwl_required) { updateFieldRequired('source',1); jQuery('#jform_source').removeAttr('required'); jQuery('#jform_source').removeAttr('aria-required'); jQuery('#jform_source').removeClass('required'); - jform_vvvvvyzvwh_required = true; + jform_vvvvvzvvwl_required = true; } } } -// the vvvvvza function -function vvvvvza(source_vvvvvza,add_sql_vvvvvza) +// the vvvvvzw function +function vvvvvzw(source_vvvvvzw,add_sql_vvvvvzw) { // set the function logic - if (source_vvvvvza == 2 && add_sql_vvvvvza == 1) + if (source_vvvvvzw == 2 && add_sql_vvvvvzw == 1) { jQuery('#jform_sql').closest('.control-group').show(); // add required attribute to sql field - if (jform_vvvvvzavwi_required) + if (jform_vvvvvzwvwm_required) { updateFieldRequired('sql',0); jQuery('#jform_sql').prop('required','required'); jQuery('#jform_sql').attr('aria-required',true); jQuery('#jform_sql').addClass('required'); - jform_vvvvvzavwi_required = false; + jform_vvvvvzwvwm_required = false; } } else { jQuery('#jform_sql').closest('.control-group').hide(); // remove required attribute from sql field - if (!jform_vvvvvzavwi_required) + if (!jform_vvvvvzwvwm_required) { updateFieldRequired('sql',1); jQuery('#jform_sql').removeAttr('required'); jQuery('#jform_sql').removeAttr('aria-required'); jQuery('#jform_sql').removeClass('required'); - jform_vvvvvzavwi_required = true; + jform_vvvvvzwvwm_required = true; } } } -// the vvvvvzc function -function vvvvvzc(source_vvvvvzc,add_sql_vvvvvzc) +// the vvvvvzy function +function vvvvvzy(source_vvvvvzy,add_sql_vvvvvzy) { // set the function logic - if (source_vvvvvzc == 1 && add_sql_vvvvvzc == 1) + if (source_vvvvvzy == 1 && add_sql_vvvvvzy == 1) { jQuery('#jform_addtables-lbl').closest('.control-group').show(); } @@ -565,165 +565,165 @@ function vvvvvzc(source_vvvvvzc,add_sql_vvvvvzc) } } -// the vvvvvze function -function vvvvvze(add_custom_import_vvvvvze) +// the vvvvwaa function +function vvvvwaa(add_custom_import_vvvvwaa) { // set the function logic - if (add_custom_import_vvvvvze == 1) + if (add_custom_import_vvvvwaa == 1) { jQuery('#jform_html_import_view').closest('.control-group').show(); // add required attribute to html_import_view field - if (jform_vvvvvzevwj_required) + if (jform_vvvvwaavwn_required) { updateFieldRequired('html_import_view',0); jQuery('#jform_html_import_view').prop('required','required'); jQuery('#jform_html_import_view').attr('aria-required',true); jQuery('#jform_html_import_view').addClass('required'); - jform_vvvvvzevwj_required = false; + jform_vvvvwaavwn_required = false; } jQuery('.note_advanced_import').closest('.control-group').show(); jQuery('#jform_php_import_display').closest('.control-group').show(); // add required attribute to php_import_display field - if (jform_vvvvvzevwk_required) + if (jform_vvvvwaavwo_required) { updateFieldRequired('php_import_display',0); jQuery('#jform_php_import_display').prop('required','required'); jQuery('#jform_php_import_display').attr('aria-required',true); jQuery('#jform_php_import_display').addClass('required'); - jform_vvvvvzevwk_required = false; + jform_vvvvwaavwo_required = false; } jQuery('#jform_php_import_ext').closest('.control-group').show(); // add required attribute to php_import_ext field - if (jform_vvvvvzevwl_required) + if (jform_vvvvwaavwp_required) { updateFieldRequired('php_import_ext',0); jQuery('#jform_php_import_ext').prop('required','required'); jQuery('#jform_php_import_ext').attr('aria-required',true); jQuery('#jform_php_import_ext').addClass('required'); - jform_vvvvvzevwl_required = false; + jform_vvvvwaavwp_required = false; } jQuery('#jform_php_import_headers').closest('.control-group').show(); // add required attribute to php_import_headers field - if (jform_vvvvvzevwm_required) + if (jform_vvvvwaavwq_required) { updateFieldRequired('php_import_headers',0); jQuery('#jform_php_import_headers').prop('required','required'); jQuery('#jform_php_import_headers').attr('aria-required',true); jQuery('#jform_php_import_headers').addClass('required'); - jform_vvvvvzevwm_required = false; + jform_vvvvwaavwq_required = false; } jQuery('#jform_php_import').closest('.control-group').show(); // add required attribute to php_import field - if (jform_vvvvvzevwn_required) + if (jform_vvvvwaavwr_required) { updateFieldRequired('php_import',0); jQuery('#jform_php_import').prop('required','required'); jQuery('#jform_php_import').attr('aria-required',true); jQuery('#jform_php_import').addClass('required'); - jform_vvvvvzevwn_required = false; + jform_vvvvwaavwr_required = false; } jQuery('#jform_php_import_save').closest('.control-group').show(); // add required attribute to php_import_save field - if (jform_vvvvvzevwo_required) + if (jform_vvvvwaavws_required) { updateFieldRequired('php_import_save',0); jQuery('#jform_php_import_save').prop('required','required'); jQuery('#jform_php_import_save').attr('aria-required',true); jQuery('#jform_php_import_save').addClass('required'); - jform_vvvvvzevwo_required = false; + jform_vvvvwaavws_required = false; } jQuery('#jform_php_import_setdata').closest('.control-group').show(); // add required attribute to php_import_setdata field - if (jform_vvvvvzevwp_required) + if (jform_vvvvwaavwt_required) { updateFieldRequired('php_import_setdata',0); jQuery('#jform_php_import_setdata').prop('required','required'); jQuery('#jform_php_import_setdata').attr('aria-required',true); jQuery('#jform_php_import_setdata').addClass('required'); - jform_vvvvvzevwp_required = false; + jform_vvvvwaavwt_required = false; } } else { jQuery('#jform_html_import_view').closest('.control-group').hide(); // remove required attribute from html_import_view field - if (!jform_vvvvvzevwj_required) + if (!jform_vvvvwaavwn_required) { updateFieldRequired('html_import_view',1); jQuery('#jform_html_import_view').removeAttr('required'); jQuery('#jform_html_import_view').removeAttr('aria-required'); jQuery('#jform_html_import_view').removeClass('required'); - jform_vvvvvzevwj_required = true; + jform_vvvvwaavwn_required = true; } jQuery('.note_advanced_import').closest('.control-group').hide(); jQuery('#jform_php_import_display').closest('.control-group').hide(); // remove required attribute from php_import_display field - if (!jform_vvvvvzevwk_required) + if (!jform_vvvvwaavwo_required) { updateFieldRequired('php_import_display',1); jQuery('#jform_php_import_display').removeAttr('required'); jQuery('#jform_php_import_display').removeAttr('aria-required'); jQuery('#jform_php_import_display').removeClass('required'); - jform_vvvvvzevwk_required = true; + jform_vvvvwaavwo_required = true; } jQuery('#jform_php_import_ext').closest('.control-group').hide(); // remove required attribute from php_import_ext field - if (!jform_vvvvvzevwl_required) + if (!jform_vvvvwaavwp_required) { updateFieldRequired('php_import_ext',1); jQuery('#jform_php_import_ext').removeAttr('required'); jQuery('#jform_php_import_ext').removeAttr('aria-required'); jQuery('#jform_php_import_ext').removeClass('required'); - jform_vvvvvzevwl_required = true; + jform_vvvvwaavwp_required = true; } jQuery('#jform_php_import_headers').closest('.control-group').hide(); // remove required attribute from php_import_headers field - if (!jform_vvvvvzevwm_required) + if (!jform_vvvvwaavwq_required) { updateFieldRequired('php_import_headers',1); jQuery('#jform_php_import_headers').removeAttr('required'); jQuery('#jform_php_import_headers').removeAttr('aria-required'); jQuery('#jform_php_import_headers').removeClass('required'); - jform_vvvvvzevwm_required = true; + jform_vvvvwaavwq_required = true; } jQuery('#jform_php_import').closest('.control-group').hide(); // remove required attribute from php_import field - if (!jform_vvvvvzevwn_required) + if (!jform_vvvvwaavwr_required) { updateFieldRequired('php_import',1); jQuery('#jform_php_import').removeAttr('required'); jQuery('#jform_php_import').removeAttr('aria-required'); jQuery('#jform_php_import').removeClass('required'); - jform_vvvvvzevwn_required = true; + jform_vvvvwaavwr_required = true; } jQuery('#jform_php_import_save').closest('.control-group').hide(); // remove required attribute from php_import_save field - if (!jform_vvvvvzevwo_required) + if (!jform_vvvvwaavws_required) { updateFieldRequired('php_import_save',1); jQuery('#jform_php_import_save').removeAttr('required'); jQuery('#jform_php_import_save').removeAttr('aria-required'); jQuery('#jform_php_import_save').removeClass('required'); - jform_vvvvvzevwo_required = true; + jform_vvvvwaavws_required = true; } jQuery('#jform_php_import_setdata').closest('.control-group').hide(); // remove required attribute from php_import_setdata field - if (!jform_vvvvvzevwp_required) + if (!jform_vvvvwaavwt_required) { updateFieldRequired('php_import_setdata',1); jQuery('#jform_php_import_setdata').removeAttr('required'); jQuery('#jform_php_import_setdata').removeAttr('aria-required'); jQuery('#jform_php_import_setdata').removeClass('required'); - jform_vvvvvzevwp_required = true; + jform_vvvvwaavwt_required = true; } } } -// the vvvvvzf function -function vvvvvzf(add_custom_import_vvvvvzf) +// the vvvvwab function +function vvvvwab(add_custom_import_vvvvwab) { // set the function logic - if (add_custom_import_vvvvvzf == 0) + if (add_custom_import_vvvvwab == 0) { jQuery('.note_beginner_import').closest('.control-group').show(); } @@ -733,11 +733,11 @@ function vvvvvzf(add_custom_import_vvvvvzf) } } -// the vvvvvzg function -function vvvvvzg(add_custom_button_vvvvvzg) +// the vvvvwac function +function vvvvwac(add_custom_button_vvvvwac) { // set the function logic - if (add_custom_button_vvvvvzg == 1) + if (add_custom_button_vvvvwac == 1) { jQuery('#jform_custom_button-lbl').closest('.control-group').show(); jQuery('#jform_php_controller-lbl').closest('.control-group').show(); diff --git a/admin/models/forms/class_method.js b/admin/models/forms/class_method.js index 3cfc64fa8..5a1c75005 100644 --- a/admin/models/forms/class_method.js +++ b/admin/models/forms/class_method.js @@ -9,29 +9,29 @@ */ // Some Global Values -jform_vvvvwbkvxi_required = false; +jform_vvvvwcgvxm_required = false; // Initial Script jQuery(document).ready(function() { - var extension_type_vvvvwbk = jQuery("#jform_extension_type").val(); - vvvvwbk(extension_type_vvvvwbk); + var extension_type_vvvvwcg = jQuery("#jform_extension_type").val(); + vvvvwcg(extension_type_vvvvwcg); }); -// the vvvvwbk function -function vvvvwbk(extension_type_vvvvwbk) +// the vvvvwcg function +function vvvvwcg(extension_type_vvvvwcg) { - if (isSet(extension_type_vvvvwbk) && extension_type_vvvvwbk.constructor !== Array) + if (isSet(extension_type_vvvvwcg) && extension_type_vvvvwcg.constructor !== Array) { - var temp_vvvvwbk = extension_type_vvvvwbk; - var extension_type_vvvvwbk = []; - extension_type_vvvvwbk.push(temp_vvvvwbk); + var temp_vvvvwcg = extension_type_vvvvwcg; + var extension_type_vvvvwcg = []; + extension_type_vvvvwcg.push(temp_vvvvwcg); } - else if (!isSet(extension_type_vvvvwbk)) + else if (!isSet(extension_type_vvvvwcg)) { - var extension_type_vvvvwbk = []; + var extension_type_vvvvwcg = []; } - var extension_type = extension_type_vvvvwbk.some(extension_type_vvvvwbk_SomeFunc); + var extension_type = extension_type_vvvvwcg.some(extension_type_vvvvwcg_SomeFunc); // set this function logic @@ -39,35 +39,35 @@ function vvvvwbk(extension_type_vvvvwbk) { jQuery('#jform_joomla_plugin_group').closest('.control-group').show(); // add required attribute to joomla_plugin_group field - if (jform_vvvvwbkvxi_required) + if (jform_vvvvwcgvxm_required) { updateFieldRequired('joomla_plugin_group',0); jQuery('#jform_joomla_plugin_group').prop('required','required'); jQuery('#jform_joomla_plugin_group').attr('aria-required',true); jQuery('#jform_joomla_plugin_group').addClass('required'); - jform_vvvvwbkvxi_required = false; + jform_vvvvwcgvxm_required = false; } } else { jQuery('#jform_joomla_plugin_group').closest('.control-group').hide(); // remove required attribute from joomla_plugin_group field - if (!jform_vvvvwbkvxi_required) + if (!jform_vvvvwcgvxm_required) { updateFieldRequired('joomla_plugin_group',1); jQuery('#jform_joomla_plugin_group').removeAttr('required'); jQuery('#jform_joomla_plugin_group').removeAttr('aria-required'); jQuery('#jform_joomla_plugin_group').removeClass('required'); - jform_vvvvwbkvxi_required = true; + jform_vvvvwcgvxm_required = true; } } } -// the vvvvwbk Some function -function extension_type_vvvvwbk_SomeFunc(extension_type_vvvvwbk) +// the vvvvwcg Some function +function extension_type_vvvvwcg_SomeFunc(extension_type_vvvvwcg) { // set the function logic - if (extension_type_vvvvwbk == 'plugins' || extension_type_vvvvwbk == 'plugin') + if (extension_type_vvvvwcg == 'plugins' || extension_type_vvvvwcg == 'plugin') { return true; } diff --git a/admin/models/forms/class_property.js b/admin/models/forms/class_property.js index 380cd414a..90e26773a 100644 --- a/admin/models/forms/class_property.js +++ b/admin/models/forms/class_property.js @@ -9,29 +9,29 @@ */ // Some Global Values -jform_vvvvwbjvxh_required = false; +jform_vvvvwcfvxl_required = false; // Initial Script jQuery(document).ready(function() { - var extension_type_vvvvwbj = jQuery("#jform_extension_type").val(); - vvvvwbj(extension_type_vvvvwbj); + var extension_type_vvvvwcf = jQuery("#jform_extension_type").val(); + vvvvwcf(extension_type_vvvvwcf); }); -// the vvvvwbj function -function vvvvwbj(extension_type_vvvvwbj) +// the vvvvwcf function +function vvvvwcf(extension_type_vvvvwcf) { - if (isSet(extension_type_vvvvwbj) && extension_type_vvvvwbj.constructor !== Array) + if (isSet(extension_type_vvvvwcf) && extension_type_vvvvwcf.constructor !== Array) { - var temp_vvvvwbj = extension_type_vvvvwbj; - var extension_type_vvvvwbj = []; - extension_type_vvvvwbj.push(temp_vvvvwbj); + var temp_vvvvwcf = extension_type_vvvvwcf; + var extension_type_vvvvwcf = []; + extension_type_vvvvwcf.push(temp_vvvvwcf); } - else if (!isSet(extension_type_vvvvwbj)) + else if (!isSet(extension_type_vvvvwcf)) { - var extension_type_vvvvwbj = []; + var extension_type_vvvvwcf = []; } - var extension_type = extension_type_vvvvwbj.some(extension_type_vvvvwbj_SomeFunc); + var extension_type = extension_type_vvvvwcf.some(extension_type_vvvvwcf_SomeFunc); // set this function logic @@ -39,35 +39,35 @@ function vvvvwbj(extension_type_vvvvwbj) { jQuery('#jform_joomla_plugin_group').closest('.control-group').show(); // add required attribute to joomla_plugin_group field - if (jform_vvvvwbjvxh_required) + if (jform_vvvvwcfvxl_required) { updateFieldRequired('joomla_plugin_group',0); jQuery('#jform_joomla_plugin_group').prop('required','required'); jQuery('#jform_joomla_plugin_group').attr('aria-required',true); jQuery('#jform_joomla_plugin_group').addClass('required'); - jform_vvvvwbjvxh_required = false; + jform_vvvvwcfvxl_required = false; } } else { jQuery('#jform_joomla_plugin_group').closest('.control-group').hide(); // remove required attribute from joomla_plugin_group field - if (!jform_vvvvwbjvxh_required) + if (!jform_vvvvwcfvxl_required) { updateFieldRequired('joomla_plugin_group',1); jQuery('#jform_joomla_plugin_group').removeAttr('required'); jQuery('#jform_joomla_plugin_group').removeAttr('aria-required'); jQuery('#jform_joomla_plugin_group').removeClass('required'); - jform_vvvvwbjvxh_required = true; + jform_vvvvwcfvxl_required = true; } } } -// the vvvvwbj Some function -function extension_type_vvvvwbj_SomeFunc(extension_type_vvvvwbj) +// the vvvvwcf Some function +function extension_type_vvvvwcf_SomeFunc(extension_type_vvvvwcf) { // set the function logic - if (extension_type_vvvvwbj == 'plugins' || extension_type_vvvvwbj == 'plugin') + if (extension_type_vvvvwcf == 'plugins' || extension_type_vvvvwcf == 'plugin') { return true; } diff --git a/admin/models/forms/custom_admin_view.js b/admin/models/forms/custom_admin_view.js index ebc8517c7..cfe2bd858 100644 --- a/admin/models/forms/custom_admin_view.js +++ b/admin/models/forms/custom_admin_view.js @@ -11,42 +11,42 @@ // Initial Script jQuery(document).ready(function() { - var add_php_view_vvvvvzh = jQuery("#jform_add_php_view input[type='radio']:checked").val(); - vvvvvzh(add_php_view_vvvvvzh); + var add_php_view_vvvvwad = jQuery("#jform_add_php_view input[type='radio']:checked").val(); + vvvvwad(add_php_view_vvvvwad); - var add_php_jview_display_vvvvvzi = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val(); - vvvvvzi(add_php_jview_display_vvvvvzi); + var add_php_jview_display_vvvvwae = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val(); + vvvvwae(add_php_jview_display_vvvvwae); - var add_php_jview_vvvvvzj = jQuery("#jform_add_php_jview input[type='radio']:checked").val(); - vvvvvzj(add_php_jview_vvvvvzj); + var add_php_jview_vvvvwaf = jQuery("#jform_add_php_jview input[type='radio']:checked").val(); + vvvvwaf(add_php_jview_vvvvwaf); - var add_php_document_vvvvvzk = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvzk(add_php_document_vvvvvzk); + var add_php_document_vvvvwag = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvwag(add_php_document_vvvvwag); - var add_css_document_vvvvvzl = jQuery("#jform_add_css_document input[type='radio']:checked").val(); - vvvvvzl(add_css_document_vvvvvzl); + var add_css_document_vvvvwah = jQuery("#jform_add_css_document input[type='radio']:checked").val(); + vvvvwah(add_css_document_vvvvwah); - var add_javascript_file_vvvvvzm = jQuery("#jform_add_javascript_file input[type='radio']:checked").val(); - vvvvvzm(add_javascript_file_vvvvvzm); + var add_javascript_file_vvvvwai = jQuery("#jform_add_javascript_file input[type='radio']:checked").val(); + vvvvwai(add_javascript_file_vvvvwai); - var add_js_document_vvvvvzn = jQuery("#jform_add_js_document input[type='radio']:checked").val(); - vvvvvzn(add_js_document_vvvvvzn); + var add_js_document_vvvvwaj = jQuery("#jform_add_js_document input[type='radio']:checked").val(); + vvvvwaj(add_js_document_vvvvwaj); - var add_custom_button_vvvvvzo = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); - vvvvvzo(add_custom_button_vvvvvzo); + var add_custom_button_vvvvwak = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvwak(add_custom_button_vvvvwak); - var add_css_vvvvvzp = jQuery("#jform_add_css input[type='radio']:checked").val(); - vvvvvzp(add_css_vvvvvzp); + var add_css_vvvvwal = jQuery("#jform_add_css input[type='radio']:checked").val(); + vvvvwal(add_css_vvvvwal); - var add_php_ajax_vvvvvzq = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); - vvvvvzq(add_php_ajax_vvvvvzq); + var add_php_ajax_vvvvwam = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); + vvvvwam(add_php_ajax_vvvvwam); }); -// the vvvvvzh function -function vvvvvzh(add_php_view_vvvvvzh) +// the vvvvwad function +function vvvvwad(add_php_view_vvvvwad) { // set the function logic - if (add_php_view_vvvvvzh == 1) + if (add_php_view_vvvvwad == 1) { jQuery('#jform_php_view-lbl').closest('.control-group').show(); } @@ -56,11 +56,11 @@ function vvvvvzh(add_php_view_vvvvvzh) } } -// the vvvvvzi function -function vvvvvzi(add_php_jview_display_vvvvvzi) +// the vvvvwae function +function vvvvwae(add_php_jview_display_vvvvwae) { // set the function logic - if (add_php_jview_display_vvvvvzi == 1) + if (add_php_jview_display_vvvvwae == 1) { jQuery('#jform_php_jview_display-lbl').closest('.control-group').show(); } @@ -70,11 +70,11 @@ function vvvvvzi(add_php_jview_display_vvvvvzi) } } -// the vvvvvzj function -function vvvvvzj(add_php_jview_vvvvvzj) +// the vvvvwaf function +function vvvvwaf(add_php_jview_vvvvwaf) { // set the function logic - if (add_php_jview_vvvvvzj == 1) + if (add_php_jview_vvvvwaf == 1) { jQuery('#jform_php_jview-lbl').closest('.control-group').show(); } @@ -84,11 +84,11 @@ function vvvvvzj(add_php_jview_vvvvvzj) } } -// the vvvvvzk function -function vvvvvzk(add_php_document_vvvvvzk) +// the vvvvwag function +function vvvvwag(add_php_document_vvvvwag) { // set the function logic - if (add_php_document_vvvvvzk == 1) + if (add_php_document_vvvvwag == 1) { jQuery('#jform_php_document-lbl').closest('.control-group').show(); } @@ -98,11 +98,11 @@ function vvvvvzk(add_php_document_vvvvvzk) } } -// the vvvvvzl function -function vvvvvzl(add_css_document_vvvvvzl) +// the vvvvwah function +function vvvvwah(add_css_document_vvvvwah) { // set the function logic - if (add_css_document_vvvvvzl == 1) + if (add_css_document_vvvvwah == 1) { jQuery('#jform_css_document-lbl').closest('.control-group').show(); } @@ -112,11 +112,11 @@ function vvvvvzl(add_css_document_vvvvvzl) } } -// the vvvvvzm function -function vvvvvzm(add_javascript_file_vvvvvzm) +// the vvvvwai function +function vvvvwai(add_javascript_file_vvvvwai) { // set the function logic - if (add_javascript_file_vvvvvzm == 1) + if (add_javascript_file_vvvvwai == 1) { jQuery('#jform_javascript_file-lbl').closest('.control-group').show(); } @@ -126,11 +126,11 @@ function vvvvvzm(add_javascript_file_vvvvvzm) } } -// the vvvvvzn function -function vvvvvzn(add_js_document_vvvvvzn) +// the vvvvwaj function +function vvvvwaj(add_js_document_vvvvwaj) { // set the function logic - if (add_js_document_vvvvvzn == 1) + if (add_js_document_vvvvwaj == 1) { jQuery('#jform_js_document-lbl').closest('.control-group').show(); } @@ -140,11 +140,11 @@ function vvvvvzn(add_js_document_vvvvvzn) } } -// the vvvvvzo function -function vvvvvzo(add_custom_button_vvvvvzo) +// the vvvvwak function +function vvvvwak(add_custom_button_vvvvwak) { // set the function logic - if (add_custom_button_vvvvvzo == 1) + if (add_custom_button_vvvvwak == 1) { jQuery('#jform_custom_button-lbl').closest('.control-group').show(); jQuery('#jform_php_controller-lbl').closest('.control-group').show(); @@ -158,11 +158,11 @@ function vvvvvzo(add_custom_button_vvvvvzo) } } -// the vvvvvzp function -function vvvvvzp(add_css_vvvvvzp) +// the vvvvwal function +function vvvvwal(add_css_vvvvwal) { // set the function logic - if (add_css_vvvvvzp == 1) + if (add_css_vvvvwal == 1) { jQuery('#jform_css-lbl').closest('.control-group').show(); } @@ -172,11 +172,11 @@ function vvvvvzp(add_css_vvvvvzp) } } -// the vvvvvzq function -function vvvvvzq(add_php_ajax_vvvvvzq) +// the vvvvwam function +function vvvvwam(add_php_ajax_vvvvwam) { // set the function logic - if (add_php_ajax_vvvvvzq == 1) + if (add_php_ajax_vvvvwam == 1) { jQuery('#jform_ajax_input-lbl').closest('.control-group').show(); jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show(); diff --git a/admin/models/forms/custom_code.js b/admin/models/forms/custom_code.js index 8b4ce9868..b4fbfccdc 100644 --- a/admin/models/forms/custom_code.js +++ b/admin/models/forms/custom_code.js @@ -9,44 +9,44 @@ */ // Some Global Values -jform_vvvvwbfvxd_required = false; -jform_vvvvwbgvxe_required = false; -jform_vvvvwbgvxf_required = false; -jform_vvvvwbgvxg_required = false; +jform_vvvvwcbvxh_required = false; +jform_vvvvwccvxi_required = false; +jform_vvvvwccvxj_required = false; +jform_vvvvwccvxk_required = false; // Initial Script jQuery(document).ready(function() { - var target_vvvvwbf = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwbf(target_vvvvwbf); + var target_vvvvwcb = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwcb(target_vvvvwcb); - var target_vvvvwbg = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwbg(target_vvvvwbg); + var target_vvvvwcc = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwcc(target_vvvvwcc); - var target_vvvvwbh = jQuery("#jform_target input[type='radio']:checked").val(); - var type_vvvvwbh = jQuery("#jform_type input[type='radio']:checked").val(); - vvvvwbh(target_vvvvwbh,type_vvvvwbh); + var target_vvvvwcd = jQuery("#jform_target input[type='radio']:checked").val(); + var type_vvvvwcd = jQuery("#jform_type input[type='radio']:checked").val(); + vvvvwcd(target_vvvvwcd,type_vvvvwcd); - var type_vvvvwbi = jQuery("#jform_type input[type='radio']:checked").val(); - var target_vvvvwbi = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwbi(type_vvvvwbi,target_vvvvwbi); + var type_vvvvwce = jQuery("#jform_type input[type='radio']:checked").val(); + var target_vvvvwce = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwce(type_vvvvwce,target_vvvvwce); }); -// the vvvvwbf function -function vvvvwbf(target_vvvvwbf) +// the vvvvwcb function +function vvvvwcb(target_vvvvwcb) { // set the function logic - if (target_vvvvwbf == 2) + if (target_vvvvwcb == 2) { jQuery('#jform_function_name').closest('.control-group').show(); // add required attribute to function_name field - if (jform_vvvvwbfvxd_required) + if (jform_vvvvwcbvxh_required) { updateFieldRequired('function_name',0); jQuery('#jform_function_name').prop('required','required'); jQuery('#jform_function_name').attr('aria-required',true); jQuery('#jform_function_name').addClass('required'); - jform_vvvvwbfvxd_required = false; + jform_vvvvwcbvxh_required = false; } jQuery('.note_jcb_placeholder').closest('.control-group').show(); jQuery('#jform_system_name').closest('.control-group').show(); @@ -55,102 +55,102 @@ function vvvvwbf(target_vvvvwbf) { jQuery('#jform_function_name').closest('.control-group').hide(); // remove required attribute from function_name field - if (!jform_vvvvwbfvxd_required) + if (!jform_vvvvwcbvxh_required) { updateFieldRequired('function_name',1); jQuery('#jform_function_name').removeAttr('required'); jQuery('#jform_function_name').removeAttr('aria-required'); jQuery('#jform_function_name').removeClass('required'); - jform_vvvvwbfvxd_required = true; + jform_vvvvwcbvxh_required = true; } jQuery('.note_jcb_placeholder').closest('.control-group').hide(); jQuery('#jform_system_name').closest('.control-group').hide(); } } -// the vvvvwbg function -function vvvvwbg(target_vvvvwbg) +// the vvvvwcc function +function vvvvwcc(target_vvvvwcc) { // set the function logic - if (target_vvvvwbg == 1) + if (target_vvvvwcc == 1) { jQuery('#jform_component').closest('.control-group').show(); // add required attribute to component field - if (jform_vvvvwbgvxe_required) + if (jform_vvvvwccvxi_required) { updateFieldRequired('component',0); jQuery('#jform_component').prop('required','required'); jQuery('#jform_component').attr('aria-required',true); jQuery('#jform_component').addClass('required'); - jform_vvvvwbgvxe_required = false; + jform_vvvvwccvxi_required = false; } jQuery('#jform_path').closest('.control-group').show(); // add required attribute to path field - if (jform_vvvvwbgvxf_required) + if (jform_vvvvwccvxj_required) { updateFieldRequired('path',0); jQuery('#jform_path').prop('required','required'); jQuery('#jform_path').attr('aria-required',true); jQuery('#jform_path').addClass('required'); - jform_vvvvwbgvxf_required = false; + jform_vvvvwccvxj_required = false; } jQuery('#jform_from_line').closest('.control-group').show(); jQuery('#jform_hashtarget').closest('.control-group').show(); jQuery('#jform_to_line').closest('.control-group').show(); jQuery('#jform_type').closest('.control-group').show(); // add required attribute to type field - if (jform_vvvvwbgvxg_required) + if (jform_vvvvwccvxk_required) { updateFieldRequired('type',0); jQuery('#jform_type').prop('required','required'); jQuery('#jform_type').attr('aria-required',true); jQuery('#jform_type').addClass('required'); - jform_vvvvwbgvxg_required = false; + jform_vvvvwccvxk_required = false; } } else { jQuery('#jform_component').closest('.control-group').hide(); // remove required attribute from component field - if (!jform_vvvvwbgvxe_required) + if (!jform_vvvvwccvxi_required) { updateFieldRequired('component',1); jQuery('#jform_component').removeAttr('required'); jQuery('#jform_component').removeAttr('aria-required'); jQuery('#jform_component').removeClass('required'); - jform_vvvvwbgvxe_required = true; + jform_vvvvwccvxi_required = true; } jQuery('#jform_path').closest('.control-group').hide(); // remove required attribute from path field - if (!jform_vvvvwbgvxf_required) + if (!jform_vvvvwccvxj_required) { updateFieldRequired('path',1); jQuery('#jform_path').removeAttr('required'); jQuery('#jform_path').removeAttr('aria-required'); jQuery('#jform_path').removeClass('required'); - jform_vvvvwbgvxf_required = true; + jform_vvvvwccvxj_required = true; } jQuery('#jform_from_line').closest('.control-group').hide(); jQuery('#jform_hashtarget').closest('.control-group').hide(); jQuery('#jform_to_line').closest('.control-group').hide(); jQuery('#jform_type').closest('.control-group').hide(); // remove required attribute from type field - if (!jform_vvvvwbgvxg_required) + if (!jform_vvvvwccvxk_required) { updateFieldRequired('type',1); jQuery('#jform_type').removeAttr('required'); jQuery('#jform_type').removeAttr('aria-required'); jQuery('#jform_type').removeClass('required'); - jform_vvvvwbgvxg_required = true; + jform_vvvvwccvxk_required = true; } } } -// the vvvvwbh function -function vvvvwbh(target_vvvvwbh,type_vvvvwbh) +// the vvvvwcd function +function vvvvwcd(target_vvvvwcd,type_vvvvwcd) { // set the function logic - if (target_vvvvwbh == 1 && type_vvvvwbh == 1) + if (target_vvvvwcd == 1 && type_vvvvwcd == 1) { jQuery('#jform_hashendtarget').closest('.control-group').show(); jQuery('#jform_to_line').closest('.control-group').show(); @@ -162,11 +162,11 @@ function vvvvwbh(target_vvvvwbh,type_vvvvwbh) } } -// the vvvvwbi function -function vvvvwbi(type_vvvvwbi,target_vvvvwbi) +// the vvvvwce function +function vvvvwce(type_vvvvwce,target_vvvvwce) { // set the function logic - if (type_vvvvwbi == 1 && target_vvvvwbi == 1) + if (type_vvvvwce == 1 && target_vvvvwce == 1) { jQuery('#jform_hashendtarget').closest('.control-group').show(); jQuery('#jform_to_line').closest('.control-group').show(); diff --git a/admin/models/forms/dynamic_get.js b/admin/models/forms/dynamic_get.js index 75a38bf23..3cdcd91c3 100644 --- a/admin/models/forms/dynamic_get.js +++ b/admin/models/forms/dynamic_get.js @@ -9,112 +9,112 @@ */ // Some Global Values -jform_vvvvwaevwq_required = false; -jform_vvvvwagvwr_required = false; -jform_vvvvwahvws_required = false; -jform_vvvvwaivwt_required = false; -jform_vvvvwajvwu_required = false; -jform_vvvvwauvwv_required = false; -jform_vvvvwauvww_required = false; -jform_vvvvwazvwx_required = false; -jform_vvvvwazvwy_required = false; -jform_vvvvwazvwz_required = false; -jform_vvvvwbavxa_required = false; -jform_vvvvwbbvxb_required = false; -jform_vvvvwbcvxc_required = false; +jform_vvvvwbavwu_required = false; +jform_vvvvwbcvwv_required = false; +jform_vvvvwbdvww_required = false; +jform_vvvvwbevwx_required = false; +jform_vvvvwbfvwy_required = false; +jform_vvvvwbqvwz_required = false; +jform_vvvvwbqvxa_required = false; +jform_vvvvwbvvxb_required = false; +jform_vvvvwbvvxc_required = false; +jform_vvvvwbvvxd_required = false; +jform_vvvvwbwvxe_required = false; +jform_vvvvwbxvxf_required = false; +jform_vvvvwbyvxg_required = false; // Initial Script jQuery(document).ready(function() { - var gettype_vvvvwae = jQuery("#jform_gettype").val(); - vvvvwae(gettype_vvvvwae); - - var main_source_vvvvwaf = jQuery("#jform_main_source").val(); - vvvvwaf(main_source_vvvvwaf); - - var main_source_vvvvwag = jQuery("#jform_main_source").val(); - vvvvwag(main_source_vvvvwag); - - var main_source_vvvvwah = jQuery("#jform_main_source").val(); - vvvvwah(main_source_vvvvwah); - - var main_source_vvvvwai = jQuery("#jform_main_source").val(); - vvvvwai(main_source_vvvvwai); - - var main_source_vvvvwaj = jQuery("#jform_main_source").val(); - vvvvwaj(main_source_vvvvwaj); - - var addcalculation_vvvvwak = jQuery("#jform_addcalculation input[type='radio']:checked").val(); - vvvvwak(addcalculation_vvvvwak); - - var addcalculation_vvvvwal = jQuery("#jform_addcalculation input[type='radio']:checked").val(); - var gettype_vvvvwal = jQuery("#jform_gettype").val(); - vvvvwal(addcalculation_vvvvwal,gettype_vvvvwal); - - var addcalculation_vvvvwam = jQuery("#jform_addcalculation input[type='radio']:checked").val(); - var gettype_vvvvwam = jQuery("#jform_gettype").val(); - vvvvwam(addcalculation_vvvvwam,gettype_vvvvwam); - - var main_source_vvvvwap = jQuery("#jform_main_source").val(); - vvvvwap(main_source_vvvvwap); - - var main_source_vvvvwaq = jQuery("#jform_main_source").val(); - vvvvwaq(main_source_vvvvwaq); - - var add_php_before_getitem_vvvvwar = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val(); - var gettype_vvvvwar = jQuery("#jform_gettype").val(); - vvvvwar(add_php_before_getitem_vvvvwar,gettype_vvvvwar); - - var add_php_after_getitem_vvvvwas = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val(); - var gettype_vvvvwas = jQuery("#jform_gettype").val(); - vvvvwas(add_php_after_getitem_vvvvwas,gettype_vvvvwas); - - var gettype_vvvvwau = jQuery("#jform_gettype").val(); - vvvvwau(gettype_vvvvwau); - - var add_php_getlistquery_vvvvwav = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); - var gettype_vvvvwav = jQuery("#jform_gettype").val(); - vvvvwav(add_php_getlistquery_vvvvwav,gettype_vvvvwav); - - var add_php_before_getitems_vvvvwaw = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val(); - var gettype_vvvvwaw = jQuery("#jform_gettype").val(); - vvvvwaw(add_php_before_getitems_vvvvwaw,gettype_vvvvwaw); - - var add_php_after_getitems_vvvvwax = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val(); - var gettype_vvvvwax = jQuery("#jform_gettype").val(); - vvvvwax(add_php_after_getitems_vvvvwax,gettype_vvvvwax); - - var gettype_vvvvwaz = jQuery("#jform_gettype").val(); - vvvvwaz(gettype_vvvvwaz); - var gettype_vvvvwba = jQuery("#jform_gettype").val(); vvvvwba(gettype_vvvvwba); - var gettype_vvvvwbb = jQuery("#jform_gettype").val(); - vvvvwbb(gettype_vvvvwbb); + var main_source_vvvvwbb = jQuery("#jform_main_source").val(); + vvvvwbb(main_source_vvvvwbb); - var gettype_vvvvwbc = jQuery("#jform_gettype").val(); - var add_php_router_parse_vvvvwbc = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val(); - vvvvwbc(gettype_vvvvwbc,add_php_router_parse_vvvvwbc); + var main_source_vvvvwbc = jQuery("#jform_main_source").val(); + vvvvwbc(main_source_vvvvwbc); - var gettype_vvvvwbe = jQuery("#jform_gettype").val(); - vvvvwbe(gettype_vvvvwbe); + var main_source_vvvvwbd = jQuery("#jform_main_source").val(); + vvvvwbd(main_source_vvvvwbd); + + var main_source_vvvvwbe = jQuery("#jform_main_source").val(); + vvvvwbe(main_source_vvvvwbe); + + var main_source_vvvvwbf = jQuery("#jform_main_source").val(); + vvvvwbf(main_source_vvvvwbf); + + var addcalculation_vvvvwbg = jQuery("#jform_addcalculation input[type='radio']:checked").val(); + vvvvwbg(addcalculation_vvvvwbg); + + var addcalculation_vvvvwbh = jQuery("#jform_addcalculation input[type='radio']:checked").val(); + var gettype_vvvvwbh = jQuery("#jform_gettype").val(); + vvvvwbh(addcalculation_vvvvwbh,gettype_vvvvwbh); + + var addcalculation_vvvvwbi = jQuery("#jform_addcalculation input[type='radio']:checked").val(); + var gettype_vvvvwbi = jQuery("#jform_gettype").val(); + vvvvwbi(addcalculation_vvvvwbi,gettype_vvvvwbi); + + var main_source_vvvvwbl = jQuery("#jform_main_source").val(); + vvvvwbl(main_source_vvvvwbl); + + var main_source_vvvvwbm = jQuery("#jform_main_source").val(); + vvvvwbm(main_source_vvvvwbm); + + var add_php_before_getitem_vvvvwbn = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val(); + var gettype_vvvvwbn = jQuery("#jform_gettype").val(); + vvvvwbn(add_php_before_getitem_vvvvwbn,gettype_vvvvwbn); + + var add_php_after_getitem_vvvvwbo = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val(); + var gettype_vvvvwbo = jQuery("#jform_gettype").val(); + vvvvwbo(add_php_after_getitem_vvvvwbo,gettype_vvvvwbo); + + var gettype_vvvvwbq = jQuery("#jform_gettype").val(); + vvvvwbq(gettype_vvvvwbq); + + var add_php_getlistquery_vvvvwbr = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); + var gettype_vvvvwbr = jQuery("#jform_gettype").val(); + vvvvwbr(add_php_getlistquery_vvvvwbr,gettype_vvvvwbr); + + var add_php_before_getitems_vvvvwbs = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val(); + var gettype_vvvvwbs = jQuery("#jform_gettype").val(); + vvvvwbs(add_php_before_getitems_vvvvwbs,gettype_vvvvwbs); + + var add_php_after_getitems_vvvvwbt = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val(); + var gettype_vvvvwbt = jQuery("#jform_gettype").val(); + vvvvwbt(add_php_after_getitems_vvvvwbt,gettype_vvvvwbt); + + var gettype_vvvvwbv = jQuery("#jform_gettype").val(); + vvvvwbv(gettype_vvvvwbv); + + var gettype_vvvvwbw = jQuery("#jform_gettype").val(); + vvvvwbw(gettype_vvvvwbw); + + var gettype_vvvvwbx = jQuery("#jform_gettype").val(); + vvvvwbx(gettype_vvvvwbx); + + var gettype_vvvvwby = jQuery("#jform_gettype").val(); + var add_php_router_parse_vvvvwby = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val(); + vvvvwby(gettype_vvvvwby,add_php_router_parse_vvvvwby); + + var gettype_vvvvwca = jQuery("#jform_gettype").val(); + vvvvwca(gettype_vvvvwca); }); -// the vvvvwae function -function vvvvwae(gettype_vvvvwae) +// the vvvvwba function +function vvvvwba(gettype_vvvvwba) { - if (isSet(gettype_vvvvwae) && gettype_vvvvwae.constructor !== Array) + if (isSet(gettype_vvvvwba) && gettype_vvvvwba.constructor !== Array) { - var temp_vvvvwae = gettype_vvvvwae; - var gettype_vvvvwae = []; - gettype_vvvvwae.push(temp_vvvvwae); + var temp_vvvvwba = gettype_vvvvwba; + var gettype_vvvvwba = []; + gettype_vvvvwba.push(temp_vvvvwba); } - else if (!isSet(gettype_vvvvwae)) + else if (!isSet(gettype_vvvvwba)) { - var gettype_vvvvwae = []; + var gettype_vvvvwba = []; } - var gettype = gettype_vvvvwae.some(gettype_vvvvwae_SomeFunc); + var gettype = gettype_vvvvwba.some(gettype_vvvvwba_SomeFunc); // set this function logic @@ -122,55 +122,55 @@ function vvvvwae(gettype_vvvvwae) { jQuery('#jform_getcustom').closest('.control-group').show(); // add required attribute to getcustom field - if (jform_vvvvwaevwq_required) + if (jform_vvvvwbavwu_required) { updateFieldRequired('getcustom',0); jQuery('#jform_getcustom').prop('required','required'); jQuery('#jform_getcustom').attr('aria-required',true); jQuery('#jform_getcustom').addClass('required'); - jform_vvvvwaevwq_required = false; + jform_vvvvwbavwu_required = false; } } else { jQuery('#jform_getcustom').closest('.control-group').hide(); // remove required attribute from getcustom field - if (!jform_vvvvwaevwq_required) + if (!jform_vvvvwbavwu_required) { updateFieldRequired('getcustom',1); jQuery('#jform_getcustom').removeAttr('required'); jQuery('#jform_getcustom').removeAttr('aria-required'); jQuery('#jform_getcustom').removeClass('required'); - jform_vvvvwaevwq_required = true; + jform_vvvvwbavwu_required = true; } } } -// the vvvvwae Some function -function gettype_vvvvwae_SomeFunc(gettype_vvvvwae) +// the vvvvwba Some function +function gettype_vvvvwba_SomeFunc(gettype_vvvvwba) { // set the function logic - if (gettype_vvvvwae == 3 || gettype_vvvvwae == 4) + if (gettype_vvvvwba == 3 || gettype_vvvvwba == 4) { return true; } return false; } -// the vvvvwaf function -function vvvvwaf(main_source_vvvvwaf) +// the vvvvwbb function +function vvvvwbb(main_source_vvvvwbb) { - if (isSet(main_source_vvvvwaf) && main_source_vvvvwaf.constructor !== Array) + if (isSet(main_source_vvvvwbb) && main_source_vvvvwbb.constructor !== Array) { - var temp_vvvvwaf = main_source_vvvvwaf; - var main_source_vvvvwaf = []; - main_source_vvvvwaf.push(temp_vvvvwaf); + var temp_vvvvwbb = main_source_vvvvwbb; + var main_source_vvvvwbb = []; + main_source_vvvvwbb.push(temp_vvvvwbb); } - else if (!isSet(main_source_vvvvwaf)) + else if (!isSet(main_source_vvvvwbb)) { - var main_source_vvvvwaf = []; + var main_source_vvvvwbb = []; } - var main_source = main_source_vvvvwaf.some(main_source_vvvvwaf_SomeFunc); + var main_source = main_source_vvvvwbb.some(main_source_vvvvwbb_SomeFunc); // set this function logic @@ -184,31 +184,31 @@ function vvvvwaf(main_source_vvvvwaf) } } -// the vvvvwaf Some function -function main_source_vvvvwaf_SomeFunc(main_source_vvvvwaf) +// the vvvvwbb Some function +function main_source_vvvvwbb_SomeFunc(main_source_vvvvwbb) { // set the function logic - if (main_source_vvvvwaf == 1 || main_source_vvvvwaf == 2) + if (main_source_vvvvwbb == 1 || main_source_vvvvwbb == 2) { return true; } return false; } -// the vvvvwag function -function vvvvwag(main_source_vvvvwag) +// the vvvvwbc function +function vvvvwbc(main_source_vvvvwbc) { - if (isSet(main_source_vvvvwag) && main_source_vvvvwag.constructor !== Array) + if (isSet(main_source_vvvvwbc) && main_source_vvvvwbc.constructor !== Array) { - var temp_vvvvwag = main_source_vvvvwag; - var main_source_vvvvwag = []; - main_source_vvvvwag.push(temp_vvvvwag); + var temp_vvvvwbc = main_source_vvvvwbc; + var main_source_vvvvwbc = []; + main_source_vvvvwbc.push(temp_vvvvwbc); } - else if (!isSet(main_source_vvvvwag)) + else if (!isSet(main_source_vvvvwbc)) { - var main_source_vvvvwag = []; + var main_source_vvvvwbc = []; } - var main_source = main_source_vvvvwag.some(main_source_vvvvwag_SomeFunc); + var main_source = main_source_vvvvwbc.some(main_source_vvvvwbc_SomeFunc); // set this function logic @@ -216,55 +216,55 @@ function vvvvwag(main_source_vvvvwag) { jQuery('#jform_view_table_main').closest('.control-group').show(); // add required attribute to view_table_main field - if (jform_vvvvwagvwr_required) + if (jform_vvvvwbcvwv_required) { updateFieldRequired('view_table_main',0); jQuery('#jform_view_table_main').prop('required','required'); jQuery('#jform_view_table_main').attr('aria-required',true); jQuery('#jform_view_table_main').addClass('required'); - jform_vvvvwagvwr_required = false; + jform_vvvvwbcvwv_required = false; } } else { jQuery('#jform_view_table_main').closest('.control-group').hide(); // remove required attribute from view_table_main field - if (!jform_vvvvwagvwr_required) + if (!jform_vvvvwbcvwv_required) { updateFieldRequired('view_table_main',1); jQuery('#jform_view_table_main').removeAttr('required'); jQuery('#jform_view_table_main').removeAttr('aria-required'); jQuery('#jform_view_table_main').removeClass('required'); - jform_vvvvwagvwr_required = true; + jform_vvvvwbcvwv_required = true; } } } -// the vvvvwag Some function -function main_source_vvvvwag_SomeFunc(main_source_vvvvwag) +// the vvvvwbc Some function +function main_source_vvvvwbc_SomeFunc(main_source_vvvvwbc) { // set the function logic - if (main_source_vvvvwag == 1) + if (main_source_vvvvwbc == 1) { return true; } return false; } -// the vvvvwah function -function vvvvwah(main_source_vvvvwah) +// the vvvvwbd function +function vvvvwbd(main_source_vvvvwbd) { - if (isSet(main_source_vvvvwah) && main_source_vvvvwah.constructor !== Array) + if (isSet(main_source_vvvvwbd) && main_source_vvvvwbd.constructor !== Array) { - var temp_vvvvwah = main_source_vvvvwah; - var main_source_vvvvwah = []; - main_source_vvvvwah.push(temp_vvvvwah); + var temp_vvvvwbd = main_source_vvvvwbd; + var main_source_vvvvwbd = []; + main_source_vvvvwbd.push(temp_vvvvwbd); } - else if (!isSet(main_source_vvvvwah)) + else if (!isSet(main_source_vvvvwbd)) { - var main_source_vvvvwah = []; + var main_source_vvvvwbd = []; } - var main_source = main_source_vvvvwah.some(main_source_vvvvwah_SomeFunc); + var main_source = main_source_vvvvwbd.some(main_source_vvvvwbd_SomeFunc); // set this function logic @@ -272,55 +272,55 @@ function vvvvwah(main_source_vvvvwah) { jQuery('#jform_view_selection').closest('.control-group').show(); // add required attribute to view_selection field - if (jform_vvvvwahvws_required) + if (jform_vvvvwbdvww_required) { updateFieldRequired('view_selection',0); jQuery('#jform_view_selection').prop('required','required'); jQuery('#jform_view_selection').attr('aria-required',true); jQuery('#jform_view_selection').addClass('required'); - jform_vvvvwahvws_required = false; + jform_vvvvwbdvww_required = false; } } else { jQuery('#jform_view_selection').closest('.control-group').hide(); // remove required attribute from view_selection field - if (!jform_vvvvwahvws_required) + if (!jform_vvvvwbdvww_required) { updateFieldRequired('view_selection',1); jQuery('#jform_view_selection').removeAttr('required'); jQuery('#jform_view_selection').removeAttr('aria-required'); jQuery('#jform_view_selection').removeClass('required'); - jform_vvvvwahvws_required = true; + jform_vvvvwbdvww_required = true; } } } -// the vvvvwah Some function -function main_source_vvvvwah_SomeFunc(main_source_vvvvwah) +// the vvvvwbd Some function +function main_source_vvvvwbd_SomeFunc(main_source_vvvvwbd) { // set the function logic - if (main_source_vvvvwah == 1) + if (main_source_vvvvwbd == 1) { return true; } return false; } -// the vvvvwai function -function vvvvwai(main_source_vvvvwai) +// the vvvvwbe function +function vvvvwbe(main_source_vvvvwbe) { - if (isSet(main_source_vvvvwai) && main_source_vvvvwai.constructor !== Array) + if (isSet(main_source_vvvvwbe) && main_source_vvvvwbe.constructor !== Array) { - var temp_vvvvwai = main_source_vvvvwai; - var main_source_vvvvwai = []; - main_source_vvvvwai.push(temp_vvvvwai); + var temp_vvvvwbe = main_source_vvvvwbe; + var main_source_vvvvwbe = []; + main_source_vvvvwbe.push(temp_vvvvwbe); } - else if (!isSet(main_source_vvvvwai)) + else if (!isSet(main_source_vvvvwbe)) { - var main_source_vvvvwai = []; + var main_source_vvvvwbe = []; } - var main_source = main_source_vvvvwai.some(main_source_vvvvwai_SomeFunc); + var main_source = main_source_vvvvwbe.some(main_source_vvvvwbe_SomeFunc); // set this function logic @@ -328,55 +328,55 @@ function vvvvwai(main_source_vvvvwai) { jQuery('#jform_db_table_main').closest('.control-group').show(); // add required attribute to db_table_main field - if (jform_vvvvwaivwt_required) + if (jform_vvvvwbevwx_required) { updateFieldRequired('db_table_main',0); jQuery('#jform_db_table_main').prop('required','required'); jQuery('#jform_db_table_main').attr('aria-required',true); jQuery('#jform_db_table_main').addClass('required'); - jform_vvvvwaivwt_required = false; + jform_vvvvwbevwx_required = false; } } else { jQuery('#jform_db_table_main').closest('.control-group').hide(); // remove required attribute from db_table_main field - if (!jform_vvvvwaivwt_required) + if (!jform_vvvvwbevwx_required) { updateFieldRequired('db_table_main',1); jQuery('#jform_db_table_main').removeAttr('required'); jQuery('#jform_db_table_main').removeAttr('aria-required'); jQuery('#jform_db_table_main').removeClass('required'); - jform_vvvvwaivwt_required = true; + jform_vvvvwbevwx_required = true; } } } -// the vvvvwai Some function -function main_source_vvvvwai_SomeFunc(main_source_vvvvwai) +// the vvvvwbe Some function +function main_source_vvvvwbe_SomeFunc(main_source_vvvvwbe) { // set the function logic - if (main_source_vvvvwai == 2) + if (main_source_vvvvwbe == 2) { return true; } return false; } -// the vvvvwaj function -function vvvvwaj(main_source_vvvvwaj) +// the vvvvwbf function +function vvvvwbf(main_source_vvvvwbf) { - if (isSet(main_source_vvvvwaj) && main_source_vvvvwaj.constructor !== Array) + if (isSet(main_source_vvvvwbf) && main_source_vvvvwbf.constructor !== Array) { - var temp_vvvvwaj = main_source_vvvvwaj; - var main_source_vvvvwaj = []; - main_source_vvvvwaj.push(temp_vvvvwaj); + var temp_vvvvwbf = main_source_vvvvwbf; + var main_source_vvvvwbf = []; + main_source_vvvvwbf.push(temp_vvvvwbf); } - else if (!isSet(main_source_vvvvwaj)) + else if (!isSet(main_source_vvvvwbf)) { - var main_source_vvvvwaj = []; + var main_source_vvvvwbf = []; } - var main_source = main_source_vvvvwaj.some(main_source_vvvvwaj_SomeFunc); + var main_source = main_source_vvvvwbf.some(main_source_vvvvwbf_SomeFunc); // set this function logic @@ -384,46 +384,46 @@ function vvvvwaj(main_source_vvvvwaj) { jQuery('#jform_db_selection').closest('.control-group').show(); // add required attribute to db_selection field - if (jform_vvvvwajvwu_required) + if (jform_vvvvwbfvwy_required) { updateFieldRequired('db_selection',0); jQuery('#jform_db_selection').prop('required','required'); jQuery('#jform_db_selection').attr('aria-required',true); jQuery('#jform_db_selection').addClass('required'); - jform_vvvvwajvwu_required = false; + jform_vvvvwbfvwy_required = false; } } else { jQuery('#jform_db_selection').closest('.control-group').hide(); // remove required attribute from db_selection field - if (!jform_vvvvwajvwu_required) + if (!jform_vvvvwbfvwy_required) { updateFieldRequired('db_selection',1); jQuery('#jform_db_selection').removeAttr('required'); jQuery('#jform_db_selection').removeAttr('aria-required'); jQuery('#jform_db_selection').removeClass('required'); - jform_vvvvwajvwu_required = true; + jform_vvvvwbfvwy_required = true; } } } -// the vvvvwaj Some function -function main_source_vvvvwaj_SomeFunc(main_source_vvvvwaj) +// the vvvvwbf Some function +function main_source_vvvvwbf_SomeFunc(main_source_vvvvwbf) { // set the function logic - if (main_source_vvvvwaj == 2) + if (main_source_vvvvwbf == 2) { return true; } return false; } -// the vvvvwak function -function vvvvwak(addcalculation_vvvvwak) +// the vvvvwbg function +function vvvvwbg(addcalculation_vvvvwbg) { // set the function logic - if (addcalculation_vvvvwak == 1) + if (addcalculation_vvvvwbg == 1) { jQuery('#jform_php_calculation-lbl').closest('.control-group').show(); } @@ -433,32 +433,32 @@ function vvvvwak(addcalculation_vvvvwak) } } -// the vvvvwal function -function vvvvwal(addcalculation_vvvvwal,gettype_vvvvwal) +// the vvvvwbh function +function vvvvwbh(addcalculation_vvvvwbh,gettype_vvvvwbh) { - if (isSet(addcalculation_vvvvwal) && addcalculation_vvvvwal.constructor !== Array) + if (isSet(addcalculation_vvvvwbh) && addcalculation_vvvvwbh.constructor !== Array) { - var temp_vvvvwal = addcalculation_vvvvwal; - var addcalculation_vvvvwal = []; - addcalculation_vvvvwal.push(temp_vvvvwal); + var temp_vvvvwbh = addcalculation_vvvvwbh; + var addcalculation_vvvvwbh = []; + addcalculation_vvvvwbh.push(temp_vvvvwbh); } - else if (!isSet(addcalculation_vvvvwal)) + else if (!isSet(addcalculation_vvvvwbh)) { - var addcalculation_vvvvwal = []; + var addcalculation_vvvvwbh = []; } - var addcalculation = addcalculation_vvvvwal.some(addcalculation_vvvvwal_SomeFunc); + var addcalculation = addcalculation_vvvvwbh.some(addcalculation_vvvvwbh_SomeFunc); - if (isSet(gettype_vvvvwal) && gettype_vvvvwal.constructor !== Array) + if (isSet(gettype_vvvvwbh) && gettype_vvvvwbh.constructor !== Array) { - var temp_vvvvwal = gettype_vvvvwal; - var gettype_vvvvwal = []; - gettype_vvvvwal.push(temp_vvvvwal); + var temp_vvvvwbh = gettype_vvvvwbh; + var gettype_vvvvwbh = []; + gettype_vvvvwbh.push(temp_vvvvwbh); } - else if (!isSet(gettype_vvvvwal)) + else if (!isSet(gettype_vvvvwbh)) { - var gettype_vvvvwal = []; + var gettype_vvvvwbh = []; } - var gettype = gettype_vvvvwal.some(gettype_vvvvwal_SomeFunc); + var gettype = gettype_vvvvwbh.some(gettype_vvvvwbh_SomeFunc); // set this function logic @@ -472,54 +472,54 @@ function vvvvwal(addcalculation_vvvvwal,gettype_vvvvwal) } } -// the vvvvwal Some function -function addcalculation_vvvvwal_SomeFunc(addcalculation_vvvvwal) +// the vvvvwbh Some function +function addcalculation_vvvvwbh_SomeFunc(addcalculation_vvvvwbh) { // set the function logic - if (addcalculation_vvvvwal == 1) + if (addcalculation_vvvvwbh == 1) { return true; } return false; } -// the vvvvwal Some function -function gettype_vvvvwal_SomeFunc(gettype_vvvvwal) +// the vvvvwbh Some function +function gettype_vvvvwbh_SomeFunc(gettype_vvvvwbh) { // set the function logic - if (gettype_vvvvwal == 1 || gettype_vvvvwal == 3) + if (gettype_vvvvwbh == 1 || gettype_vvvvwbh == 3) { return true; } return false; } -// the vvvvwam function -function vvvvwam(addcalculation_vvvvwam,gettype_vvvvwam) +// the vvvvwbi function +function vvvvwbi(addcalculation_vvvvwbi,gettype_vvvvwbi) { - if (isSet(addcalculation_vvvvwam) && addcalculation_vvvvwam.constructor !== Array) + if (isSet(addcalculation_vvvvwbi) && addcalculation_vvvvwbi.constructor !== Array) { - var temp_vvvvwam = addcalculation_vvvvwam; - var addcalculation_vvvvwam = []; - addcalculation_vvvvwam.push(temp_vvvvwam); + var temp_vvvvwbi = addcalculation_vvvvwbi; + var addcalculation_vvvvwbi = []; + addcalculation_vvvvwbi.push(temp_vvvvwbi); } - else if (!isSet(addcalculation_vvvvwam)) + else if (!isSet(addcalculation_vvvvwbi)) { - var addcalculation_vvvvwam = []; + var addcalculation_vvvvwbi = []; } - var addcalculation = addcalculation_vvvvwam.some(addcalculation_vvvvwam_SomeFunc); + var addcalculation = addcalculation_vvvvwbi.some(addcalculation_vvvvwbi_SomeFunc); - if (isSet(gettype_vvvvwam) && gettype_vvvvwam.constructor !== Array) + if (isSet(gettype_vvvvwbi) && gettype_vvvvwbi.constructor !== Array) { - var temp_vvvvwam = gettype_vvvvwam; - var gettype_vvvvwam = []; - gettype_vvvvwam.push(temp_vvvvwam); + var temp_vvvvwbi = gettype_vvvvwbi; + var gettype_vvvvwbi = []; + gettype_vvvvwbi.push(temp_vvvvwbi); } - else if (!isSet(gettype_vvvvwam)) + else if (!isSet(gettype_vvvvwbi)) { - var gettype_vvvvwam = []; + var gettype_vvvvwbi = []; } - var gettype = gettype_vvvvwam.some(gettype_vvvvwam_SomeFunc); + var gettype = gettype_vvvvwbi.some(gettype_vvvvwbi_SomeFunc); // set this function logic @@ -533,42 +533,42 @@ function vvvvwam(addcalculation_vvvvwam,gettype_vvvvwam) } } -// the vvvvwam Some function -function addcalculation_vvvvwam_SomeFunc(addcalculation_vvvvwam) +// the vvvvwbi Some function +function addcalculation_vvvvwbi_SomeFunc(addcalculation_vvvvwbi) { // set the function logic - if (addcalculation_vvvvwam == 1) + if (addcalculation_vvvvwbi == 1) { return true; } return false; } -// the vvvvwam Some function -function gettype_vvvvwam_SomeFunc(gettype_vvvvwam) +// the vvvvwbi Some function +function gettype_vvvvwbi_SomeFunc(gettype_vvvvwbi) { // set the function logic - if (gettype_vvvvwam == 2 || gettype_vvvvwam == 4) + if (gettype_vvvvwbi == 2 || gettype_vvvvwbi == 4) { return true; } return false; } -// the vvvvwap function -function vvvvwap(main_source_vvvvwap) +// the vvvvwbl function +function vvvvwbl(main_source_vvvvwbl) { - if (isSet(main_source_vvvvwap) && main_source_vvvvwap.constructor !== Array) + if (isSet(main_source_vvvvwbl) && main_source_vvvvwbl.constructor !== Array) { - var temp_vvvvwap = main_source_vvvvwap; - var main_source_vvvvwap = []; - main_source_vvvvwap.push(temp_vvvvwap); + var temp_vvvvwbl = main_source_vvvvwbl; + var main_source_vvvvwbl = []; + main_source_vvvvwbl.push(temp_vvvvwbl); } - else if (!isSet(main_source_vvvvwap)) + else if (!isSet(main_source_vvvvwbl)) { - var main_source_vvvvwap = []; + var main_source_vvvvwbl = []; } - var main_source = main_source_vvvvwap.some(main_source_vvvvwap_SomeFunc); + var main_source = main_source_vvvvwbl.some(main_source_vvvvwbl_SomeFunc); // set this function logic @@ -582,31 +582,31 @@ function vvvvwap(main_source_vvvvwap) } } -// the vvvvwap Some function -function main_source_vvvvwap_SomeFunc(main_source_vvvvwap) +// the vvvvwbl Some function +function main_source_vvvvwbl_SomeFunc(main_source_vvvvwbl) { // set the function logic - if (main_source_vvvvwap == 3) + if (main_source_vvvvwbl == 3) { return true; } return false; } -// the vvvvwaq function -function vvvvwaq(main_source_vvvvwaq) +// the vvvvwbm function +function vvvvwbm(main_source_vvvvwbm) { - if (isSet(main_source_vvvvwaq) && main_source_vvvvwaq.constructor !== Array) + if (isSet(main_source_vvvvwbm) && main_source_vvvvwbm.constructor !== Array) { - var temp_vvvvwaq = main_source_vvvvwaq; - var main_source_vvvvwaq = []; - main_source_vvvvwaq.push(temp_vvvvwaq); + var temp_vvvvwbm = main_source_vvvvwbm; + var main_source_vvvvwbm = []; + main_source_vvvvwbm.push(temp_vvvvwbm); } - else if (!isSet(main_source_vvvvwaq)) + else if (!isSet(main_source_vvvvwbm)) { - var main_source_vvvvwaq = []; + var main_source_vvvvwbm = []; } - var main_source = main_source_vvvvwaq.some(main_source_vvvvwaq_SomeFunc); + var main_source = main_source_vvvvwbm.some(main_source_vvvvwbm_SomeFunc); // set this function logic @@ -632,43 +632,43 @@ function vvvvwaq(main_source_vvvvwaq) } } -// the vvvvwaq Some function -function main_source_vvvvwaq_SomeFunc(main_source_vvvvwaq) +// the vvvvwbm Some function +function main_source_vvvvwbm_SomeFunc(main_source_vvvvwbm) { // set the function logic - if (main_source_vvvvwaq == 1 || main_source_vvvvwaq == 2) + if (main_source_vvvvwbm == 1 || main_source_vvvvwbm == 2) { return true; } return false; } -// the vvvvwar function -function vvvvwar(add_php_before_getitem_vvvvwar,gettype_vvvvwar) +// the vvvvwbn function +function vvvvwbn(add_php_before_getitem_vvvvwbn,gettype_vvvvwbn) { - if (isSet(add_php_before_getitem_vvvvwar) && add_php_before_getitem_vvvvwar.constructor !== Array) + if (isSet(add_php_before_getitem_vvvvwbn) && add_php_before_getitem_vvvvwbn.constructor !== Array) { - var temp_vvvvwar = add_php_before_getitem_vvvvwar; - var add_php_before_getitem_vvvvwar = []; - add_php_before_getitem_vvvvwar.push(temp_vvvvwar); + var temp_vvvvwbn = add_php_before_getitem_vvvvwbn; + var add_php_before_getitem_vvvvwbn = []; + add_php_before_getitem_vvvvwbn.push(temp_vvvvwbn); } - else if (!isSet(add_php_before_getitem_vvvvwar)) + else if (!isSet(add_php_before_getitem_vvvvwbn)) { - var add_php_before_getitem_vvvvwar = []; + var add_php_before_getitem_vvvvwbn = []; } - var add_php_before_getitem = add_php_before_getitem_vvvvwar.some(add_php_before_getitem_vvvvwar_SomeFunc); + var add_php_before_getitem = add_php_before_getitem_vvvvwbn.some(add_php_before_getitem_vvvvwbn_SomeFunc); - if (isSet(gettype_vvvvwar) && gettype_vvvvwar.constructor !== Array) + if (isSet(gettype_vvvvwbn) && gettype_vvvvwbn.constructor !== Array) { - var temp_vvvvwar = gettype_vvvvwar; - var gettype_vvvvwar = []; - gettype_vvvvwar.push(temp_vvvvwar); + var temp_vvvvwbn = gettype_vvvvwbn; + var gettype_vvvvwbn = []; + gettype_vvvvwbn.push(temp_vvvvwbn); } - else if (!isSet(gettype_vvvvwar)) + else if (!isSet(gettype_vvvvwbn)) { - var gettype_vvvvwar = []; + var gettype_vvvvwbn = []; } - var gettype = gettype_vvvvwar.some(gettype_vvvvwar_SomeFunc); + var gettype = gettype_vvvvwbn.some(gettype_vvvvwbn_SomeFunc); // set this function logic @@ -682,54 +682,54 @@ function vvvvwar(add_php_before_getitem_vvvvwar,gettype_vvvvwar) } } -// the vvvvwar Some function -function add_php_before_getitem_vvvvwar_SomeFunc(add_php_before_getitem_vvvvwar) +// the vvvvwbn Some function +function add_php_before_getitem_vvvvwbn_SomeFunc(add_php_before_getitem_vvvvwbn) { // set the function logic - if (add_php_before_getitem_vvvvwar == 1) + if (add_php_before_getitem_vvvvwbn == 1) { return true; } return false; } -// the vvvvwar Some function -function gettype_vvvvwar_SomeFunc(gettype_vvvvwar) +// the vvvvwbn Some function +function gettype_vvvvwbn_SomeFunc(gettype_vvvvwbn) { // set the function logic - if (gettype_vvvvwar == 1 || gettype_vvvvwar == 3) + if (gettype_vvvvwbn == 1 || gettype_vvvvwbn == 3) { return true; } return false; } -// the vvvvwas function -function vvvvwas(add_php_after_getitem_vvvvwas,gettype_vvvvwas) +// the vvvvwbo function +function vvvvwbo(add_php_after_getitem_vvvvwbo,gettype_vvvvwbo) { - if (isSet(add_php_after_getitem_vvvvwas) && add_php_after_getitem_vvvvwas.constructor !== Array) + if (isSet(add_php_after_getitem_vvvvwbo) && add_php_after_getitem_vvvvwbo.constructor !== Array) { - var temp_vvvvwas = add_php_after_getitem_vvvvwas; - var add_php_after_getitem_vvvvwas = []; - add_php_after_getitem_vvvvwas.push(temp_vvvvwas); + var temp_vvvvwbo = add_php_after_getitem_vvvvwbo; + var add_php_after_getitem_vvvvwbo = []; + add_php_after_getitem_vvvvwbo.push(temp_vvvvwbo); } - else if (!isSet(add_php_after_getitem_vvvvwas)) + else if (!isSet(add_php_after_getitem_vvvvwbo)) { - var add_php_after_getitem_vvvvwas = []; + var add_php_after_getitem_vvvvwbo = []; } - var add_php_after_getitem = add_php_after_getitem_vvvvwas.some(add_php_after_getitem_vvvvwas_SomeFunc); + var add_php_after_getitem = add_php_after_getitem_vvvvwbo.some(add_php_after_getitem_vvvvwbo_SomeFunc); - if (isSet(gettype_vvvvwas) && gettype_vvvvwas.constructor !== Array) + if (isSet(gettype_vvvvwbo) && gettype_vvvvwbo.constructor !== Array) { - var temp_vvvvwas = gettype_vvvvwas; - var gettype_vvvvwas = []; - gettype_vvvvwas.push(temp_vvvvwas); + var temp_vvvvwbo = gettype_vvvvwbo; + var gettype_vvvvwbo = []; + gettype_vvvvwbo.push(temp_vvvvwbo); } - else if (!isSet(gettype_vvvvwas)) + else if (!isSet(gettype_vvvvwbo)) { - var gettype_vvvvwas = []; + var gettype_vvvvwbo = []; } - var gettype = gettype_vvvvwas.some(gettype_vvvvwas_SomeFunc); + var gettype = gettype_vvvvwbo.some(gettype_vvvvwbo_SomeFunc); // set this function logic @@ -743,42 +743,42 @@ function vvvvwas(add_php_after_getitem_vvvvwas,gettype_vvvvwas) } } -// the vvvvwas Some function -function add_php_after_getitem_vvvvwas_SomeFunc(add_php_after_getitem_vvvvwas) +// the vvvvwbo Some function +function add_php_after_getitem_vvvvwbo_SomeFunc(add_php_after_getitem_vvvvwbo) { // set the function logic - if (add_php_after_getitem_vvvvwas == 1) + if (add_php_after_getitem_vvvvwbo == 1) { return true; } return false; } -// the vvvvwas Some function -function gettype_vvvvwas_SomeFunc(gettype_vvvvwas) +// the vvvvwbo Some function +function gettype_vvvvwbo_SomeFunc(gettype_vvvvwbo) { // set the function logic - if (gettype_vvvvwas == 1 || gettype_vvvvwas == 3) + if (gettype_vvvvwbo == 1 || gettype_vvvvwbo == 3) { return true; } return false; } -// the vvvvwau function -function vvvvwau(gettype_vvvvwau) +// the vvvvwbq function +function vvvvwbq(gettype_vvvvwbq) { - if (isSet(gettype_vvvvwau) && gettype_vvvvwau.constructor !== Array) + if (isSet(gettype_vvvvwbq) && gettype_vvvvwbq.constructor !== Array) { - var temp_vvvvwau = gettype_vvvvwau; - var gettype_vvvvwau = []; - gettype_vvvvwau.push(temp_vvvvwau); + var temp_vvvvwbq = gettype_vvvvwbq; + var gettype_vvvvwbq = []; + gettype_vvvvwbq.push(temp_vvvvwbq); } - else if (!isSet(gettype_vvvvwau)) + else if (!isSet(gettype_vvvvwbq)) { - var gettype_vvvvwau = []; + var gettype_vvvvwbq = []; } - var gettype = gettype_vvvvwau.some(gettype_vvvvwau_SomeFunc); + var gettype = gettype_vvvvwbq.some(gettype_vvvvwbq_SomeFunc); // set this function logic @@ -786,87 +786,87 @@ function vvvvwau(gettype_vvvvwau) { jQuery('#jform_add_php_after_getitem').closest('.control-group').show(); // add required attribute to add_php_after_getitem field - if (jform_vvvvwauvwv_required) + if (jform_vvvvwbqvwz_required) { updateFieldRequired('add_php_after_getitem',0); jQuery('#jform_add_php_after_getitem').prop('required','required'); jQuery('#jform_add_php_after_getitem').attr('aria-required',true); jQuery('#jform_add_php_after_getitem').addClass('required'); - jform_vvvvwauvwv_required = false; + jform_vvvvwbqvwz_required = false; } jQuery('#jform_add_php_before_getitem').closest('.control-group').show(); // add required attribute to add_php_before_getitem field - if (jform_vvvvwauvww_required) + if (jform_vvvvwbqvxa_required) { updateFieldRequired('add_php_before_getitem',0); jQuery('#jform_add_php_before_getitem').prop('required','required'); jQuery('#jform_add_php_before_getitem').attr('aria-required',true); jQuery('#jform_add_php_before_getitem').addClass('required'); - jform_vvvvwauvww_required = false; + jform_vvvvwbqvxa_required = false; } } else { jQuery('#jform_add_php_after_getitem').closest('.control-group').hide(); // remove required attribute from add_php_after_getitem field - if (!jform_vvvvwauvwv_required) + if (!jform_vvvvwbqvwz_required) { updateFieldRequired('add_php_after_getitem',1); jQuery('#jform_add_php_after_getitem').removeAttr('required'); jQuery('#jform_add_php_after_getitem').removeAttr('aria-required'); jQuery('#jform_add_php_after_getitem').removeClass('required'); - jform_vvvvwauvwv_required = true; + jform_vvvvwbqvwz_required = true; } jQuery('#jform_add_php_before_getitem').closest('.control-group').hide(); // remove required attribute from add_php_before_getitem field - if (!jform_vvvvwauvww_required) + if (!jform_vvvvwbqvxa_required) { updateFieldRequired('add_php_before_getitem',1); jQuery('#jform_add_php_before_getitem').removeAttr('required'); jQuery('#jform_add_php_before_getitem').removeAttr('aria-required'); jQuery('#jform_add_php_before_getitem').removeClass('required'); - jform_vvvvwauvww_required = true; + jform_vvvvwbqvxa_required = true; } } } -// the vvvvwau Some function -function gettype_vvvvwau_SomeFunc(gettype_vvvvwau) +// the vvvvwbq Some function +function gettype_vvvvwbq_SomeFunc(gettype_vvvvwbq) { // set the function logic - if (gettype_vvvvwau == 1 || gettype_vvvvwau == 3) + if (gettype_vvvvwbq == 1 || gettype_vvvvwbq == 3) { return true; } return false; } -// the vvvvwav function -function vvvvwav(add_php_getlistquery_vvvvwav,gettype_vvvvwav) +// the vvvvwbr function +function vvvvwbr(add_php_getlistquery_vvvvwbr,gettype_vvvvwbr) { - if (isSet(add_php_getlistquery_vvvvwav) && add_php_getlistquery_vvvvwav.constructor !== Array) + if (isSet(add_php_getlistquery_vvvvwbr) && add_php_getlistquery_vvvvwbr.constructor !== Array) { - var temp_vvvvwav = add_php_getlistquery_vvvvwav; - var add_php_getlistquery_vvvvwav = []; - add_php_getlistquery_vvvvwav.push(temp_vvvvwav); + var temp_vvvvwbr = add_php_getlistquery_vvvvwbr; + var add_php_getlistquery_vvvvwbr = []; + add_php_getlistquery_vvvvwbr.push(temp_vvvvwbr); } - else if (!isSet(add_php_getlistquery_vvvvwav)) + else if (!isSet(add_php_getlistquery_vvvvwbr)) { - var add_php_getlistquery_vvvvwav = []; + var add_php_getlistquery_vvvvwbr = []; } - var add_php_getlistquery = add_php_getlistquery_vvvvwav.some(add_php_getlistquery_vvvvwav_SomeFunc); + var add_php_getlistquery = add_php_getlistquery_vvvvwbr.some(add_php_getlistquery_vvvvwbr_SomeFunc); - if (isSet(gettype_vvvvwav) && gettype_vvvvwav.constructor !== Array) + if (isSet(gettype_vvvvwbr) && gettype_vvvvwbr.constructor !== Array) { - var temp_vvvvwav = gettype_vvvvwav; - var gettype_vvvvwav = []; - gettype_vvvvwav.push(temp_vvvvwav); + var temp_vvvvwbr = gettype_vvvvwbr; + var gettype_vvvvwbr = []; + gettype_vvvvwbr.push(temp_vvvvwbr); } - else if (!isSet(gettype_vvvvwav)) + else if (!isSet(gettype_vvvvwbr)) { - var gettype_vvvvwav = []; + var gettype_vvvvwbr = []; } - var gettype = gettype_vvvvwav.some(gettype_vvvvwav_SomeFunc); + var gettype = gettype_vvvvwbr.some(gettype_vvvvwbr_SomeFunc); // set this function logic @@ -880,54 +880,54 @@ function vvvvwav(add_php_getlistquery_vvvvwav,gettype_vvvvwav) } } -// the vvvvwav Some function -function add_php_getlistquery_vvvvwav_SomeFunc(add_php_getlistquery_vvvvwav) +// the vvvvwbr Some function +function add_php_getlistquery_vvvvwbr_SomeFunc(add_php_getlistquery_vvvvwbr) { // set the function logic - if (add_php_getlistquery_vvvvwav == 1) + if (add_php_getlistquery_vvvvwbr == 1) { return true; } return false; } -// the vvvvwav Some function -function gettype_vvvvwav_SomeFunc(gettype_vvvvwav) +// the vvvvwbr Some function +function gettype_vvvvwbr_SomeFunc(gettype_vvvvwbr) { // set the function logic - if (gettype_vvvvwav == 2 || gettype_vvvvwav == 4) + if (gettype_vvvvwbr == 2 || gettype_vvvvwbr == 4) { return true; } return false; } -// the vvvvwaw function -function vvvvwaw(add_php_before_getitems_vvvvwaw,gettype_vvvvwaw) +// the vvvvwbs function +function vvvvwbs(add_php_before_getitems_vvvvwbs,gettype_vvvvwbs) { - if (isSet(add_php_before_getitems_vvvvwaw) && add_php_before_getitems_vvvvwaw.constructor !== Array) + if (isSet(add_php_before_getitems_vvvvwbs) && add_php_before_getitems_vvvvwbs.constructor !== Array) { - var temp_vvvvwaw = add_php_before_getitems_vvvvwaw; - var add_php_before_getitems_vvvvwaw = []; - add_php_before_getitems_vvvvwaw.push(temp_vvvvwaw); + var temp_vvvvwbs = add_php_before_getitems_vvvvwbs; + var add_php_before_getitems_vvvvwbs = []; + add_php_before_getitems_vvvvwbs.push(temp_vvvvwbs); } - else if (!isSet(add_php_before_getitems_vvvvwaw)) + else if (!isSet(add_php_before_getitems_vvvvwbs)) { - var add_php_before_getitems_vvvvwaw = []; + var add_php_before_getitems_vvvvwbs = []; } - var add_php_before_getitems = add_php_before_getitems_vvvvwaw.some(add_php_before_getitems_vvvvwaw_SomeFunc); + var add_php_before_getitems = add_php_before_getitems_vvvvwbs.some(add_php_before_getitems_vvvvwbs_SomeFunc); - if (isSet(gettype_vvvvwaw) && gettype_vvvvwaw.constructor !== Array) + if (isSet(gettype_vvvvwbs) && gettype_vvvvwbs.constructor !== Array) { - var temp_vvvvwaw = gettype_vvvvwaw; - var gettype_vvvvwaw = []; - gettype_vvvvwaw.push(temp_vvvvwaw); + var temp_vvvvwbs = gettype_vvvvwbs; + var gettype_vvvvwbs = []; + gettype_vvvvwbs.push(temp_vvvvwbs); } - else if (!isSet(gettype_vvvvwaw)) + else if (!isSet(gettype_vvvvwbs)) { - var gettype_vvvvwaw = []; + var gettype_vvvvwbs = []; } - var gettype = gettype_vvvvwaw.some(gettype_vvvvwaw_SomeFunc); + var gettype = gettype_vvvvwbs.some(gettype_vvvvwbs_SomeFunc); // set this function logic @@ -941,54 +941,54 @@ function vvvvwaw(add_php_before_getitems_vvvvwaw,gettype_vvvvwaw) } } -// the vvvvwaw Some function -function add_php_before_getitems_vvvvwaw_SomeFunc(add_php_before_getitems_vvvvwaw) +// the vvvvwbs Some function +function add_php_before_getitems_vvvvwbs_SomeFunc(add_php_before_getitems_vvvvwbs) { // set the function logic - if (add_php_before_getitems_vvvvwaw == 1) + if (add_php_before_getitems_vvvvwbs == 1) { return true; } return false; } -// the vvvvwaw Some function -function gettype_vvvvwaw_SomeFunc(gettype_vvvvwaw) +// the vvvvwbs Some function +function gettype_vvvvwbs_SomeFunc(gettype_vvvvwbs) { // set the function logic - if (gettype_vvvvwaw == 2 || gettype_vvvvwaw == 4) + if (gettype_vvvvwbs == 2 || gettype_vvvvwbs == 4) { return true; } return false; } -// the vvvvwax function -function vvvvwax(add_php_after_getitems_vvvvwax,gettype_vvvvwax) +// the vvvvwbt function +function vvvvwbt(add_php_after_getitems_vvvvwbt,gettype_vvvvwbt) { - if (isSet(add_php_after_getitems_vvvvwax) && add_php_after_getitems_vvvvwax.constructor !== Array) + if (isSet(add_php_after_getitems_vvvvwbt) && add_php_after_getitems_vvvvwbt.constructor !== Array) { - var temp_vvvvwax = add_php_after_getitems_vvvvwax; - var add_php_after_getitems_vvvvwax = []; - add_php_after_getitems_vvvvwax.push(temp_vvvvwax); + var temp_vvvvwbt = add_php_after_getitems_vvvvwbt; + var add_php_after_getitems_vvvvwbt = []; + add_php_after_getitems_vvvvwbt.push(temp_vvvvwbt); } - else if (!isSet(add_php_after_getitems_vvvvwax)) + else if (!isSet(add_php_after_getitems_vvvvwbt)) { - var add_php_after_getitems_vvvvwax = []; + var add_php_after_getitems_vvvvwbt = []; } - var add_php_after_getitems = add_php_after_getitems_vvvvwax.some(add_php_after_getitems_vvvvwax_SomeFunc); + var add_php_after_getitems = add_php_after_getitems_vvvvwbt.some(add_php_after_getitems_vvvvwbt_SomeFunc); - if (isSet(gettype_vvvvwax) && gettype_vvvvwax.constructor !== Array) + if (isSet(gettype_vvvvwbt) && gettype_vvvvwbt.constructor !== Array) { - var temp_vvvvwax = gettype_vvvvwax; - var gettype_vvvvwax = []; - gettype_vvvvwax.push(temp_vvvvwax); + var temp_vvvvwbt = gettype_vvvvwbt; + var gettype_vvvvwbt = []; + gettype_vvvvwbt.push(temp_vvvvwbt); } - else if (!isSet(gettype_vvvvwax)) + else if (!isSet(gettype_vvvvwbt)) { - var gettype_vvvvwax = []; + var gettype_vvvvwbt = []; } - var gettype = gettype_vvvvwax.some(gettype_vvvvwax_SomeFunc); + var gettype = gettype_vvvvwbt.some(gettype_vvvvwbt_SomeFunc); // set this function logic @@ -1002,42 +1002,42 @@ function vvvvwax(add_php_after_getitems_vvvvwax,gettype_vvvvwax) } } -// the vvvvwax Some function -function add_php_after_getitems_vvvvwax_SomeFunc(add_php_after_getitems_vvvvwax) +// the vvvvwbt Some function +function add_php_after_getitems_vvvvwbt_SomeFunc(add_php_after_getitems_vvvvwbt) { // set the function logic - if (add_php_after_getitems_vvvvwax == 1) + if (add_php_after_getitems_vvvvwbt == 1) { return true; } return false; } -// the vvvvwax Some function -function gettype_vvvvwax_SomeFunc(gettype_vvvvwax) +// the vvvvwbt Some function +function gettype_vvvvwbt_SomeFunc(gettype_vvvvwbt) { // set the function logic - if (gettype_vvvvwax == 2 || gettype_vvvvwax == 4) + if (gettype_vvvvwbt == 2 || gettype_vvvvwbt == 4) { return true; } return false; } -// the vvvvwaz function -function vvvvwaz(gettype_vvvvwaz) +// the vvvvwbv function +function vvvvwbv(gettype_vvvvwbv) { - if (isSet(gettype_vvvvwaz) && gettype_vvvvwaz.constructor !== Array) + if (isSet(gettype_vvvvwbv) && gettype_vvvvwbv.constructor !== Array) { - var temp_vvvvwaz = gettype_vvvvwaz; - var gettype_vvvvwaz = []; - gettype_vvvvwaz.push(temp_vvvvwaz); + var temp_vvvvwbv = gettype_vvvvwbv; + var gettype_vvvvwbv = []; + gettype_vvvvwbv.push(temp_vvvvwbv); } - else if (!isSet(gettype_vvvvwaz)) + else if (!isSet(gettype_vvvvwbv)) { - var gettype_vvvvwaz = []; + var gettype_vvvvwbv = []; } - var gettype = gettype_vvvvwaz.some(gettype_vvvvwaz_SomeFunc); + var gettype = gettype_vvvvwbv.some(gettype_vvvvwbv_SomeFunc); // set this function logic @@ -1045,95 +1045,95 @@ function vvvvwaz(gettype_vvvvwaz) { jQuery('#jform_add_php_after_getitems').closest('.control-group').show(); // add required attribute to add_php_after_getitems field - if (jform_vvvvwazvwx_required) + if (jform_vvvvwbvvxb_required) { updateFieldRequired('add_php_after_getitems',0); jQuery('#jform_add_php_after_getitems').prop('required','required'); jQuery('#jform_add_php_after_getitems').attr('aria-required',true); jQuery('#jform_add_php_after_getitems').addClass('required'); - jform_vvvvwazvwx_required = false; + jform_vvvvwbvvxb_required = false; } jQuery('#jform_add_php_before_getitems').closest('.control-group').show(); // add required attribute to add_php_before_getitems field - if (jform_vvvvwazvwy_required) + if (jform_vvvvwbvvxc_required) { updateFieldRequired('add_php_before_getitems',0); jQuery('#jform_add_php_before_getitems').prop('required','required'); jQuery('#jform_add_php_before_getitems').attr('aria-required',true); jQuery('#jform_add_php_before_getitems').addClass('required'); - jform_vvvvwazvwy_required = false; + jform_vvvvwbvvxc_required = false; } jQuery('#jform_add_php_getlistquery').closest('.control-group').show(); // add required attribute to add_php_getlistquery field - if (jform_vvvvwazvwz_required) + if (jform_vvvvwbvvxd_required) { updateFieldRequired('add_php_getlistquery',0); jQuery('#jform_add_php_getlistquery').prop('required','required'); jQuery('#jform_add_php_getlistquery').attr('aria-required',true); jQuery('#jform_add_php_getlistquery').addClass('required'); - jform_vvvvwazvwz_required = false; + jform_vvvvwbvvxd_required = false; } } else { jQuery('#jform_add_php_after_getitems').closest('.control-group').hide(); // remove required attribute from add_php_after_getitems field - if (!jform_vvvvwazvwx_required) + if (!jform_vvvvwbvvxb_required) { updateFieldRequired('add_php_after_getitems',1); jQuery('#jform_add_php_after_getitems').removeAttr('required'); jQuery('#jform_add_php_after_getitems').removeAttr('aria-required'); jQuery('#jform_add_php_after_getitems').removeClass('required'); - jform_vvvvwazvwx_required = true; + jform_vvvvwbvvxb_required = true; } jQuery('#jform_add_php_before_getitems').closest('.control-group').hide(); // remove required attribute from add_php_before_getitems field - if (!jform_vvvvwazvwy_required) + if (!jform_vvvvwbvvxc_required) { updateFieldRequired('add_php_before_getitems',1); jQuery('#jform_add_php_before_getitems').removeAttr('required'); jQuery('#jform_add_php_before_getitems').removeAttr('aria-required'); jQuery('#jform_add_php_before_getitems').removeClass('required'); - jform_vvvvwazvwy_required = true; + jform_vvvvwbvvxc_required = true; } jQuery('#jform_add_php_getlistquery').closest('.control-group').hide(); // remove required attribute from add_php_getlistquery field - if (!jform_vvvvwazvwz_required) + if (!jform_vvvvwbvvxd_required) { updateFieldRequired('add_php_getlistquery',1); jQuery('#jform_add_php_getlistquery').removeAttr('required'); jQuery('#jform_add_php_getlistquery').removeAttr('aria-required'); jQuery('#jform_add_php_getlistquery').removeClass('required'); - jform_vvvvwazvwz_required = true; + jform_vvvvwbvvxd_required = true; } } } -// the vvvvwaz Some function -function gettype_vvvvwaz_SomeFunc(gettype_vvvvwaz) +// the vvvvwbv Some function +function gettype_vvvvwbv_SomeFunc(gettype_vvvvwbv) { // set the function logic - if (gettype_vvvvwaz == 2 || gettype_vvvvwaz == 4) + if (gettype_vvvvwbv == 2 || gettype_vvvvwbv == 4) { return true; } return false; } -// the vvvvwba function -function vvvvwba(gettype_vvvvwba) +// the vvvvwbw function +function vvvvwbw(gettype_vvvvwbw) { - if (isSet(gettype_vvvvwba) && gettype_vvvvwba.constructor !== Array) + if (isSet(gettype_vvvvwbw) && gettype_vvvvwbw.constructor !== Array) { - var temp_vvvvwba = gettype_vvvvwba; - var gettype_vvvvwba = []; - gettype_vvvvwba.push(temp_vvvvwba); + var temp_vvvvwbw = gettype_vvvvwbw; + var gettype_vvvvwbw = []; + gettype_vvvvwbw.push(temp_vvvvwbw); } - else if (!isSet(gettype_vvvvwba)) + else if (!isSet(gettype_vvvvwbw)) { - var gettype_vvvvwba = []; + var gettype_vvvvwbw = []; } - var gettype = gettype_vvvvwba.some(gettype_vvvvwba_SomeFunc); + var gettype = gettype_vvvvwbw.some(gettype_vvvvwbw_SomeFunc); // set this function logic @@ -1141,55 +1141,55 @@ function vvvvwba(gettype_vvvvwba) { jQuery('#jform_pagination').closest('.control-group').show(); // add required attribute to pagination field - if (jform_vvvvwbavxa_required) + if (jform_vvvvwbwvxe_required) { updateFieldRequired('pagination',0); jQuery('#jform_pagination').prop('required','required'); jQuery('#jform_pagination').attr('aria-required',true); jQuery('#jform_pagination').addClass('required'); - jform_vvvvwbavxa_required = false; + jform_vvvvwbwvxe_required = false; } } else { jQuery('#jform_pagination').closest('.control-group').hide(); // remove required attribute from pagination field - if (!jform_vvvvwbavxa_required) + if (!jform_vvvvwbwvxe_required) { updateFieldRequired('pagination',1); jQuery('#jform_pagination').removeAttr('required'); jQuery('#jform_pagination').removeAttr('aria-required'); jQuery('#jform_pagination').removeClass('required'); - jform_vvvvwbavxa_required = true; + jform_vvvvwbwvxe_required = true; } } } -// the vvvvwba Some function -function gettype_vvvvwba_SomeFunc(gettype_vvvvwba) +// the vvvvwbw Some function +function gettype_vvvvwbw_SomeFunc(gettype_vvvvwbw) { // set the function logic - if (gettype_vvvvwba == 2) + if (gettype_vvvvwbw == 2) { return true; } return false; } -// the vvvvwbb function -function vvvvwbb(gettype_vvvvwbb) +// the vvvvwbx function +function vvvvwbx(gettype_vvvvwbx) { - if (isSet(gettype_vvvvwbb) && gettype_vvvvwbb.constructor !== Array) + if (isSet(gettype_vvvvwbx) && gettype_vvvvwbx.constructor !== Array) { - var temp_vvvvwbb = gettype_vvvvwbb; - var gettype_vvvvwbb = []; - gettype_vvvvwbb.push(temp_vvvvwbb); + var temp_vvvvwbx = gettype_vvvvwbx; + var gettype_vvvvwbx = []; + gettype_vvvvwbx.push(temp_vvvvwbx); } - else if (!isSet(gettype_vvvvwbb)) + else if (!isSet(gettype_vvvvwbx)) { - var gettype_vvvvwbb = []; + var gettype_vvvvwbx = []; } - var gettype = gettype_vvvvwbb.some(gettype_vvvvwbb_SomeFunc); + var gettype = gettype_vvvvwbx.some(gettype_vvvvwbx_SomeFunc); // set this function logic @@ -1197,67 +1197,67 @@ function vvvvwbb(gettype_vvvvwbb) { jQuery('#jform_add_php_router_parse').closest('.control-group').show(); // add required attribute to add_php_router_parse field - if (jform_vvvvwbbvxb_required) + if (jform_vvvvwbxvxf_required) { updateFieldRequired('add_php_router_parse',0); jQuery('#jform_add_php_router_parse').prop('required','required'); jQuery('#jform_add_php_router_parse').attr('aria-required',true); jQuery('#jform_add_php_router_parse').addClass('required'); - jform_vvvvwbbvxb_required = false; + jform_vvvvwbxvxf_required = false; } } else { jQuery('#jform_add_php_router_parse').closest('.control-group').hide(); // remove required attribute from add_php_router_parse field - if (!jform_vvvvwbbvxb_required) + if (!jform_vvvvwbxvxf_required) { updateFieldRequired('add_php_router_parse',1); jQuery('#jform_add_php_router_parse').removeAttr('required'); jQuery('#jform_add_php_router_parse').removeAttr('aria-required'); jQuery('#jform_add_php_router_parse').removeClass('required'); - jform_vvvvwbbvxb_required = true; + jform_vvvvwbxvxf_required = true; } } } -// the vvvvwbb Some function -function gettype_vvvvwbb_SomeFunc(gettype_vvvvwbb) +// the vvvvwbx Some function +function gettype_vvvvwbx_SomeFunc(gettype_vvvvwbx) { // set the function logic - if (gettype_vvvvwbb == 1 || gettype_vvvvwbb == 2) + if (gettype_vvvvwbx == 1 || gettype_vvvvwbx == 2) { return true; } return false; } -// the vvvvwbc function -function vvvvwbc(gettype_vvvvwbc,add_php_router_parse_vvvvwbc) +// the vvvvwby function +function vvvvwby(gettype_vvvvwby,add_php_router_parse_vvvvwby) { - if (isSet(gettype_vvvvwbc) && gettype_vvvvwbc.constructor !== Array) + if (isSet(gettype_vvvvwby) && gettype_vvvvwby.constructor !== Array) { - var temp_vvvvwbc = gettype_vvvvwbc; - var gettype_vvvvwbc = []; - gettype_vvvvwbc.push(temp_vvvvwbc); + var temp_vvvvwby = gettype_vvvvwby; + var gettype_vvvvwby = []; + gettype_vvvvwby.push(temp_vvvvwby); } - else if (!isSet(gettype_vvvvwbc)) + else if (!isSet(gettype_vvvvwby)) { - var gettype_vvvvwbc = []; + var gettype_vvvvwby = []; } - var gettype = gettype_vvvvwbc.some(gettype_vvvvwbc_SomeFunc); + var gettype = gettype_vvvvwby.some(gettype_vvvvwby_SomeFunc); - if (isSet(add_php_router_parse_vvvvwbc) && add_php_router_parse_vvvvwbc.constructor !== Array) + if (isSet(add_php_router_parse_vvvvwby) && add_php_router_parse_vvvvwby.constructor !== Array) { - var temp_vvvvwbc = add_php_router_parse_vvvvwbc; - var add_php_router_parse_vvvvwbc = []; - add_php_router_parse_vvvvwbc.push(temp_vvvvwbc); + var temp_vvvvwby = add_php_router_parse_vvvvwby; + var add_php_router_parse_vvvvwby = []; + add_php_router_parse_vvvvwby.push(temp_vvvvwby); } - else if (!isSet(add_php_router_parse_vvvvwbc)) + else if (!isSet(add_php_router_parse_vvvvwby)) { - var add_php_router_parse_vvvvwbc = []; + var add_php_router_parse_vvvvwby = []; } - var add_php_router_parse = add_php_router_parse_vvvvwbc.some(add_php_router_parse_vvvvwbc_SomeFunc); + var add_php_router_parse = add_php_router_parse_vvvvwby.some(add_php_router_parse_vvvvwby_SomeFunc); // set this function logic @@ -1265,66 +1265,66 @@ function vvvvwbc(gettype_vvvvwbc,add_php_router_parse_vvvvwbc) { jQuery('#jform_php_router_parse').closest('.control-group').show(); // add required attribute to php_router_parse field - if (jform_vvvvwbcvxc_required) + if (jform_vvvvwbyvxg_required) { updateFieldRequired('php_router_parse',0); jQuery('#jform_php_router_parse').prop('required','required'); jQuery('#jform_php_router_parse').attr('aria-required',true); jQuery('#jform_php_router_parse').addClass('required'); - jform_vvvvwbcvxc_required = false; + jform_vvvvwbyvxg_required = false; } } else { jQuery('#jform_php_router_parse').closest('.control-group').hide(); // remove required attribute from php_router_parse field - if (!jform_vvvvwbcvxc_required) + if (!jform_vvvvwbyvxg_required) { updateFieldRequired('php_router_parse',1); jQuery('#jform_php_router_parse').removeAttr('required'); jQuery('#jform_php_router_parse').removeAttr('aria-required'); jQuery('#jform_php_router_parse').removeClass('required'); - jform_vvvvwbcvxc_required = true; + jform_vvvvwbyvxg_required = true; } } } -// the vvvvwbc Some function -function gettype_vvvvwbc_SomeFunc(gettype_vvvvwbc) +// the vvvvwby Some function +function gettype_vvvvwby_SomeFunc(gettype_vvvvwby) { // set the function logic - if (gettype_vvvvwbc == 1 || gettype_vvvvwbc == 2) + if (gettype_vvvvwby == 1 || gettype_vvvvwby == 2) { return true; } return false; } -// the vvvvwbc Some function -function add_php_router_parse_vvvvwbc_SomeFunc(add_php_router_parse_vvvvwbc) +// the vvvvwby Some function +function add_php_router_parse_vvvvwby_SomeFunc(add_php_router_parse_vvvvwby) { // set the function logic - if (add_php_router_parse_vvvvwbc == 1) + if (add_php_router_parse_vvvvwby == 1) { return true; } return false; } -// the vvvvwbe function -function vvvvwbe(gettype_vvvvwbe) +// the vvvvwca function +function vvvvwca(gettype_vvvvwca) { - if (isSet(gettype_vvvvwbe) && gettype_vvvvwbe.constructor !== Array) + if (isSet(gettype_vvvvwca) && gettype_vvvvwca.constructor !== Array) { - var temp_vvvvwbe = gettype_vvvvwbe; - var gettype_vvvvwbe = []; - gettype_vvvvwbe.push(temp_vvvvwbe); + var temp_vvvvwca = gettype_vvvvwca; + var gettype_vvvvwca = []; + gettype_vvvvwca.push(temp_vvvvwca); } - else if (!isSet(gettype_vvvvwbe)) + else if (!isSet(gettype_vvvvwca)) { - var gettype_vvvvwbe = []; + var gettype_vvvvwca = []; } - var gettype = gettype_vvvvwbe.some(gettype_vvvvwbe_SomeFunc); + var gettype = gettype_vvvvwca.some(gettype_vvvvwca_SomeFunc); // set this function logic @@ -1338,11 +1338,11 @@ function vvvvwbe(gettype_vvvvwbe) } } -// the vvvvwbe Some function -function gettype_vvvvwbe_SomeFunc(gettype_vvvvwbe) +// the vvvvwca Some function +function gettype_vvvvwca_SomeFunc(gettype_vvvvwca) { // set the function logic - if (gettype_vvvvwbe == 1) + if (gettype_vvvvwca == 1) { return true; } diff --git a/admin/models/forms/field.js b/admin/models/forms/field.js index 69e2fef36..eaebe152a 100644 --- a/admin/models/forms/field.js +++ b/admin/models/forms/field.js @@ -9,77 +9,77 @@ */ // Some Global Values -jform_vvvvwcdvxn_required = false; -jform_vvvvwcevxo_required = false; -jform_vvvvwcfvxp_required = false; -jform_vvvvwcgvxq_required = false; -jform_vvvvwchvxr_required = false; -jform_vvvvwckvxs_required = false; -jform_vvvvwckvxt_required = false; -jform_vvvvwckvxu_required = false; -jform_vvvvwckvxv_required = false; -jform_vvvvwclvxw_required = false; -jform_vvvvwclvxx_required = false; -jform_vvvvwclvxy_required = false; -jform_vvvvwclvxz_required = false; +jform_vvvvwczvxr_required = false; +jform_vvvvwdavxs_required = false; +jform_vvvvwdbvxt_required = false; +jform_vvvvwdcvxu_required = false; +jform_vvvvwddvxv_required = false; +jform_vvvvwdgvxw_required = false; +jform_vvvvwdgvxx_required = false; +jform_vvvvwdgvxy_required = false; +jform_vvvvwdgvxz_required = false; +jform_vvvvwdhvya_required = false; +jform_vvvvwdhvyb_required = false; +jform_vvvvwdhvyc_required = false; +jform_vvvvwdhvyd_required = false; // Initial Script jQuery(document).ready(function() { - var datalenght_vvvvwcd = jQuery("#jform_datalenght").val(); - vvvvwcd(datalenght_vvvvwcd); + var datalenght_vvvvwcz = jQuery("#jform_datalenght").val(); + vvvvwcz(datalenght_vvvvwcz); - var datadefault_vvvvwce = jQuery("#jform_datadefault").val(); - vvvvwce(datadefault_vvvvwce); + var datadefault_vvvvwda = jQuery("#jform_datadefault").val(); + vvvvwda(datadefault_vvvvwda); - var datatype_vvvvwcf = jQuery("#jform_datatype").val(); - vvvvwcf(datatype_vvvvwcf); + var datatype_vvvvwdb = jQuery("#jform_datatype").val(); + vvvvwdb(datatype_vvvvwdb); - var datatype_vvvvwcg = jQuery("#jform_datatype").val(); - vvvvwcg(datatype_vvvvwcg); + var datatype_vvvvwdc = jQuery("#jform_datatype").val(); + vvvvwdc(datatype_vvvvwdc); - var datatype_vvvvwch = jQuery("#jform_datatype").val(); - vvvvwch(datatype_vvvvwch); + var datatype_vvvvwdd = jQuery("#jform_datatype").val(); + vvvvwdd(datatype_vvvvwdd); - var store_vvvvwci = jQuery("#jform_store").val(); - var datatype_vvvvwci = jQuery("#jform_datatype").val(); - vvvvwci(store_vvvvwci,datatype_vvvvwci); + var store_vvvvwde = jQuery("#jform_store").val(); + var datatype_vvvvwde = jQuery("#jform_datatype").val(); + vvvvwde(store_vvvvwde,datatype_vvvvwde); - var store_vvvvwck = jQuery("#jform_store").val(); - var datatype_vvvvwck = jQuery("#jform_datatype").val(); - vvvvwck(store_vvvvwck,datatype_vvvvwck); + var store_vvvvwdg = jQuery("#jform_store").val(); + var datatype_vvvvwdg = jQuery("#jform_datatype").val(); + vvvvwdg(store_vvvvwdg,datatype_vvvvwdg); - var datatype_vvvvwcl = jQuery("#jform_datatype").val(); - var store_vvvvwcl = jQuery("#jform_store").val(); - vvvvwcl(datatype_vvvvwcl,store_vvvvwcl); + var datatype_vvvvwdh = jQuery("#jform_datatype").val(); + var store_vvvvwdh = jQuery("#jform_store").val(); + vvvvwdh(datatype_vvvvwdh,store_vvvvwdh); - var add_css_view_vvvvwcm = jQuery("#jform_add_css_view input[type='radio']:checked").val(); - vvvvwcm(add_css_view_vvvvwcm); + var add_css_view_vvvvwdi = jQuery("#jform_add_css_view input[type='radio']:checked").val(); + vvvvwdi(add_css_view_vvvvwdi); - var add_css_views_vvvvwcn = jQuery("#jform_add_css_views input[type='radio']:checked").val(); - vvvvwcn(add_css_views_vvvvwcn); + var add_css_views_vvvvwdj = jQuery("#jform_add_css_views input[type='radio']:checked").val(); + vvvvwdj(add_css_views_vvvvwdj); - var add_javascript_view_footer_vvvvwco = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); - vvvvwco(add_javascript_view_footer_vvvvwco); + var add_javascript_view_footer_vvvvwdk = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); + vvvvwdk(add_javascript_view_footer_vvvvwdk); - var add_javascript_views_footer_vvvvwcp = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); - vvvvwcp(add_javascript_views_footer_vvvvwcp); + var add_javascript_views_footer_vvvvwdl = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); + vvvvwdl(add_javascript_views_footer_vvvvwdl); }); -// the vvvvwcd function -function vvvvwcd(datalenght_vvvvwcd) +// the vvvvwcz function +function vvvvwcz(datalenght_vvvvwcz) { - if (isSet(datalenght_vvvvwcd) && datalenght_vvvvwcd.constructor !== Array) + if (isSet(datalenght_vvvvwcz) && datalenght_vvvvwcz.constructor !== Array) { - var temp_vvvvwcd = datalenght_vvvvwcd; - var datalenght_vvvvwcd = []; - datalenght_vvvvwcd.push(temp_vvvvwcd); + var temp_vvvvwcz = datalenght_vvvvwcz; + var datalenght_vvvvwcz = []; + datalenght_vvvvwcz.push(temp_vvvvwcz); } - else if (!isSet(datalenght_vvvvwcd)) + else if (!isSet(datalenght_vvvvwcz)) { - var datalenght_vvvvwcd = []; + var datalenght_vvvvwcz = []; } - var datalenght = datalenght_vvvvwcd.some(datalenght_vvvvwcd_SomeFunc); + var datalenght = datalenght_vvvvwcz.some(datalenght_vvvvwcz_SomeFunc); // set this function logic @@ -87,55 +87,55 @@ function vvvvwcd(datalenght_vvvvwcd) { jQuery('#jform_datalenght_other').closest('.control-group').show(); // add required attribute to datalenght_other field - if (jform_vvvvwcdvxn_required) + if (jform_vvvvwczvxr_required) { updateFieldRequired('datalenght_other',0); jQuery('#jform_datalenght_other').prop('required','required'); jQuery('#jform_datalenght_other').attr('aria-required',true); jQuery('#jform_datalenght_other').addClass('required'); - jform_vvvvwcdvxn_required = false; + jform_vvvvwczvxr_required = false; } } else { jQuery('#jform_datalenght_other').closest('.control-group').hide(); // remove required attribute from datalenght_other field - if (!jform_vvvvwcdvxn_required) + if (!jform_vvvvwczvxr_required) { updateFieldRequired('datalenght_other',1); jQuery('#jform_datalenght_other').removeAttr('required'); jQuery('#jform_datalenght_other').removeAttr('aria-required'); jQuery('#jform_datalenght_other').removeClass('required'); - jform_vvvvwcdvxn_required = true; + jform_vvvvwczvxr_required = true; } } } -// the vvvvwcd Some function -function datalenght_vvvvwcd_SomeFunc(datalenght_vvvvwcd) +// the vvvvwcz Some function +function datalenght_vvvvwcz_SomeFunc(datalenght_vvvvwcz) { // set the function logic - if (datalenght_vvvvwcd == 'Other') + if (datalenght_vvvvwcz == 'Other') { return true; } return false; } -// the vvvvwce function -function vvvvwce(datadefault_vvvvwce) +// the vvvvwda function +function vvvvwda(datadefault_vvvvwda) { - if (isSet(datadefault_vvvvwce) && datadefault_vvvvwce.constructor !== Array) + if (isSet(datadefault_vvvvwda) && datadefault_vvvvwda.constructor !== Array) { - var temp_vvvvwce = datadefault_vvvvwce; - var datadefault_vvvvwce = []; - datadefault_vvvvwce.push(temp_vvvvwce); + var temp_vvvvwda = datadefault_vvvvwda; + var datadefault_vvvvwda = []; + datadefault_vvvvwda.push(temp_vvvvwda); } - else if (!isSet(datadefault_vvvvwce)) + else if (!isSet(datadefault_vvvvwda)) { - var datadefault_vvvvwce = []; + var datadefault_vvvvwda = []; } - var datadefault = datadefault_vvvvwce.some(datadefault_vvvvwce_SomeFunc); + var datadefault = datadefault_vvvvwda.some(datadefault_vvvvwda_SomeFunc); // set this function logic @@ -143,55 +143,55 @@ function vvvvwce(datadefault_vvvvwce) { jQuery('#jform_datadefault_other').closest('.control-group').show(); // add required attribute to datadefault_other field - if (jform_vvvvwcevxo_required) + if (jform_vvvvwdavxs_required) { updateFieldRequired('datadefault_other',0); jQuery('#jform_datadefault_other').prop('required','required'); jQuery('#jform_datadefault_other').attr('aria-required',true); jQuery('#jform_datadefault_other').addClass('required'); - jform_vvvvwcevxo_required = false; + jform_vvvvwdavxs_required = false; } } else { jQuery('#jform_datadefault_other').closest('.control-group').hide(); // remove required attribute from datadefault_other field - if (!jform_vvvvwcevxo_required) + if (!jform_vvvvwdavxs_required) { updateFieldRequired('datadefault_other',1); jQuery('#jform_datadefault_other').removeAttr('required'); jQuery('#jform_datadefault_other').removeAttr('aria-required'); jQuery('#jform_datadefault_other').removeClass('required'); - jform_vvvvwcevxo_required = true; + jform_vvvvwdavxs_required = true; } } } -// the vvvvwce Some function -function datadefault_vvvvwce_SomeFunc(datadefault_vvvvwce) +// the vvvvwda Some function +function datadefault_vvvvwda_SomeFunc(datadefault_vvvvwda) { // set the function logic - if (datadefault_vvvvwce == 'Other') + if (datadefault_vvvvwda == 'Other') { return true; } return false; } -// the vvvvwcf function -function vvvvwcf(datatype_vvvvwcf) +// the vvvvwdb function +function vvvvwdb(datatype_vvvvwdb) { - if (isSet(datatype_vvvvwcf) && datatype_vvvvwcf.constructor !== Array) + if (isSet(datatype_vvvvwdb) && datatype_vvvvwdb.constructor !== Array) { - var temp_vvvvwcf = datatype_vvvvwcf; - var datatype_vvvvwcf = []; - datatype_vvvvwcf.push(temp_vvvvwcf); + var temp_vvvvwdb = datatype_vvvvwdb; + var datatype_vvvvwdb = []; + datatype_vvvvwdb.push(temp_vvvvwdb); } - else if (!isSet(datatype_vvvvwcf)) + else if (!isSet(datatype_vvvvwdb)) { - var datatype_vvvvwcf = []; + var datatype_vvvvwdb = []; } - var datatype = datatype_vvvvwcf.some(datatype_vvvvwcf_SomeFunc); + var datatype = datatype_vvvvwdb.some(datatype_vvvvwdb_SomeFunc); // set this function logic @@ -200,13 +200,13 @@ function vvvvwcf(datatype_vvvvwcf) jQuery('#jform_datadefault').closest('.control-group').show(); jQuery('#jform_indexes').closest('.control-group').show(); // add required attribute to indexes field - if (jform_vvvvwcfvxp_required) + if (jform_vvvvwdbvxt_required) { updateFieldRequired('indexes',0); jQuery('#jform_indexes').prop('required','required'); jQuery('#jform_indexes').attr('aria-required',true); jQuery('#jform_indexes').addClass('required'); - jform_vvvvwcfvxp_required = false; + jform_vvvvwdbvxt_required = false; } } else @@ -214,42 +214,42 @@ function vvvvwcf(datatype_vvvvwcf) jQuery('#jform_datadefault').closest('.control-group').hide(); jQuery('#jform_indexes').closest('.control-group').hide(); // remove required attribute from indexes field - if (!jform_vvvvwcfvxp_required) + if (!jform_vvvvwdbvxt_required) { updateFieldRequired('indexes',1); jQuery('#jform_indexes').removeAttr('required'); jQuery('#jform_indexes').removeAttr('aria-required'); jQuery('#jform_indexes').removeClass('required'); - jform_vvvvwcfvxp_required = true; + jform_vvvvwdbvxt_required = true; } } } -// the vvvvwcf Some function -function datatype_vvvvwcf_SomeFunc(datatype_vvvvwcf) +// the vvvvwdb Some function +function datatype_vvvvwdb_SomeFunc(datatype_vvvvwdb) { // set the function logic - if (datatype_vvvvwcf == 'CHAR' || datatype_vvvvwcf == 'VARCHAR' || datatype_vvvvwcf == 'DATETIME' || datatype_vvvvwcf == 'DATE' || datatype_vvvvwcf == 'TIME' || datatype_vvvvwcf == 'INT' || datatype_vvvvwcf == 'TINYINT' || datatype_vvvvwcf == 'BIGINT' || datatype_vvvvwcf == 'FLOAT' || datatype_vvvvwcf == 'DECIMAL' || datatype_vvvvwcf == 'DOUBLE') + if (datatype_vvvvwdb == 'CHAR' || datatype_vvvvwdb == 'VARCHAR' || datatype_vvvvwdb == 'DATETIME' || datatype_vvvvwdb == 'DATE' || datatype_vvvvwdb == 'TIME' || datatype_vvvvwdb == 'INT' || datatype_vvvvwdb == 'TINYINT' || datatype_vvvvwdb == 'BIGINT' || datatype_vvvvwdb == 'FLOAT' || datatype_vvvvwdb == 'DECIMAL' || datatype_vvvvwdb == 'DOUBLE') { return true; } return false; } -// the vvvvwcg function -function vvvvwcg(datatype_vvvvwcg) +// the vvvvwdc function +function vvvvwdc(datatype_vvvvwdc) { - if (isSet(datatype_vvvvwcg) && datatype_vvvvwcg.constructor !== Array) + if (isSet(datatype_vvvvwdc) && datatype_vvvvwdc.constructor !== Array) { - var temp_vvvvwcg = datatype_vvvvwcg; - var datatype_vvvvwcg = []; - datatype_vvvvwcg.push(temp_vvvvwcg); + var temp_vvvvwdc = datatype_vvvvwdc; + var datatype_vvvvwdc = []; + datatype_vvvvwdc.push(temp_vvvvwdc); } - else if (!isSet(datatype_vvvvwcg)) + else if (!isSet(datatype_vvvvwdc)) { - var datatype_vvvvwcg = []; + var datatype_vvvvwdc = []; } - var datatype = datatype_vvvvwcg.some(datatype_vvvvwcg_SomeFunc); + var datatype = datatype_vvvvwdc.some(datatype_vvvvwdc_SomeFunc); // set this function logic @@ -257,55 +257,55 @@ function vvvvwcg(datatype_vvvvwcg) { jQuery('#jform_datalenght').closest('.control-group').show(); // add required attribute to datalenght field - if (jform_vvvvwcgvxq_required) + if (jform_vvvvwdcvxu_required) { updateFieldRequired('datalenght',0); jQuery('#jform_datalenght').prop('required','required'); jQuery('#jform_datalenght').attr('aria-required',true); jQuery('#jform_datalenght').addClass('required'); - jform_vvvvwcgvxq_required = false; + jform_vvvvwdcvxu_required = false; } } else { jQuery('#jform_datalenght').closest('.control-group').hide(); // remove required attribute from datalenght field - if (!jform_vvvvwcgvxq_required) + if (!jform_vvvvwdcvxu_required) { updateFieldRequired('datalenght',1); jQuery('#jform_datalenght').removeAttr('required'); jQuery('#jform_datalenght').removeAttr('aria-required'); jQuery('#jform_datalenght').removeClass('required'); - jform_vvvvwcgvxq_required = true; + jform_vvvvwdcvxu_required = true; } } } -// the vvvvwcg Some function -function datatype_vvvvwcg_SomeFunc(datatype_vvvvwcg) +// the vvvvwdc Some function +function datatype_vvvvwdc_SomeFunc(datatype_vvvvwdc) { // set the function logic - if (datatype_vvvvwcg == 'CHAR' || datatype_vvvvwcg == 'VARCHAR' || datatype_vvvvwcg == 'INT' || datatype_vvvvwcg == 'TINYINT' || datatype_vvvvwcg == 'BIGINT' || datatype_vvvvwcg == 'FLOAT' || datatype_vvvvwcg == 'DECIMAL' || datatype_vvvvwcg == 'DOUBLE') + if (datatype_vvvvwdc == 'CHAR' || datatype_vvvvwdc == 'VARCHAR' || datatype_vvvvwdc == 'INT' || datatype_vvvvwdc == 'TINYINT' || datatype_vvvvwdc == 'BIGINT' || datatype_vvvvwdc == 'FLOAT' || datatype_vvvvwdc == 'DECIMAL' || datatype_vvvvwdc == 'DOUBLE') { return true; } return false; } -// the vvvvwch function -function vvvvwch(datatype_vvvvwch) +// the vvvvwdd function +function vvvvwdd(datatype_vvvvwdd) { - if (isSet(datatype_vvvvwch) && datatype_vvvvwch.constructor !== Array) + if (isSet(datatype_vvvvwdd) && datatype_vvvvwdd.constructor !== Array) { - var temp_vvvvwch = datatype_vvvvwch; - var datatype_vvvvwch = []; - datatype_vvvvwch.push(temp_vvvvwch); + var temp_vvvvwdd = datatype_vvvvwdd; + var datatype_vvvvwdd = []; + datatype_vvvvwdd.push(temp_vvvvwdd); } - else if (!isSet(datatype_vvvvwch)) + else if (!isSet(datatype_vvvvwdd)) { - var datatype_vvvvwch = []; + var datatype_vvvvwdd = []; } - var datatype = datatype_vvvvwch.some(datatype_vvvvwch_SomeFunc); + var datatype = datatype_vvvvwdd.some(datatype_vvvvwdd_SomeFunc); // set this function logic @@ -313,67 +313,67 @@ function vvvvwch(datatype_vvvvwch) { jQuery('#jform_store').closest('.control-group').show(); // add required attribute to store field - if (jform_vvvvwchvxr_required) + if (jform_vvvvwddvxv_required) { updateFieldRequired('store',0); jQuery('#jform_store').prop('required','required'); jQuery('#jform_store').attr('aria-required',true); jQuery('#jform_store').addClass('required'); - jform_vvvvwchvxr_required = false; + jform_vvvvwddvxv_required = false; } } else { jQuery('#jform_store').closest('.control-group').hide(); // remove required attribute from store field - if (!jform_vvvvwchvxr_required) + if (!jform_vvvvwddvxv_required) { updateFieldRequired('store',1); jQuery('#jform_store').removeAttr('required'); jQuery('#jform_store').removeAttr('aria-required'); jQuery('#jform_store').removeClass('required'); - jform_vvvvwchvxr_required = true; + jform_vvvvwddvxv_required = true; } } } -// the vvvvwch Some function -function datatype_vvvvwch_SomeFunc(datatype_vvvvwch) +// the vvvvwdd Some function +function datatype_vvvvwdd_SomeFunc(datatype_vvvvwdd) { // set the function logic - if (datatype_vvvvwch == 'CHAR' || datatype_vvvvwch == 'VARCHAR' || datatype_vvvvwch == 'TEXT' || datatype_vvvvwch == 'MEDIUMTEXT' || datatype_vvvvwch == 'LONGTEXT' || datatype_vvvvwch == 'BLOB' || datatype_vvvvwch == 'TINYBLOB' || datatype_vvvvwch == 'MEDIUMBLOB' || datatype_vvvvwch == 'LONGBLOB') + if (datatype_vvvvwdd == 'CHAR' || datatype_vvvvwdd == 'VARCHAR' || datatype_vvvvwdd == 'TEXT' || datatype_vvvvwdd == 'MEDIUMTEXT' || datatype_vvvvwdd == 'LONGTEXT' || datatype_vvvvwdd == 'BLOB' || datatype_vvvvwdd == 'TINYBLOB' || datatype_vvvvwdd == 'MEDIUMBLOB' || datatype_vvvvwdd == 'LONGBLOB') { return true; } return false; } -// the vvvvwci function -function vvvvwci(store_vvvvwci,datatype_vvvvwci) +// the vvvvwde function +function vvvvwde(store_vvvvwde,datatype_vvvvwde) { - if (isSet(store_vvvvwci) && store_vvvvwci.constructor !== Array) + if (isSet(store_vvvvwde) && store_vvvvwde.constructor !== Array) { - var temp_vvvvwci = store_vvvvwci; - var store_vvvvwci = []; - store_vvvvwci.push(temp_vvvvwci); + var temp_vvvvwde = store_vvvvwde; + var store_vvvvwde = []; + store_vvvvwde.push(temp_vvvvwde); } - else if (!isSet(store_vvvvwci)) + else if (!isSet(store_vvvvwde)) { - var store_vvvvwci = []; + var store_vvvvwde = []; } - var store = store_vvvvwci.some(store_vvvvwci_SomeFunc); + var store = store_vvvvwde.some(store_vvvvwde_SomeFunc); - if (isSet(datatype_vvvvwci) && datatype_vvvvwci.constructor !== Array) + if (isSet(datatype_vvvvwde) && datatype_vvvvwde.constructor !== Array) { - var temp_vvvvwci = datatype_vvvvwci; - var datatype_vvvvwci = []; - datatype_vvvvwci.push(temp_vvvvwci); + var temp_vvvvwde = datatype_vvvvwde; + var datatype_vvvvwde = []; + datatype_vvvvwde.push(temp_vvvvwde); } - else if (!isSet(datatype_vvvvwci)) + else if (!isSet(datatype_vvvvwde)) { - var datatype_vvvvwci = []; + var datatype_vvvvwde = []; } - var datatype = datatype_vvvvwci.some(datatype_vvvvwci_SomeFunc); + var datatype = datatype_vvvvwde.some(datatype_vvvvwde_SomeFunc); // set this function logic @@ -387,54 +387,54 @@ function vvvvwci(store_vvvvwci,datatype_vvvvwci) } } -// the vvvvwci Some function -function store_vvvvwci_SomeFunc(store_vvvvwci) +// the vvvvwde Some function +function store_vvvvwde_SomeFunc(store_vvvvwde) { // set the function logic - if (store_vvvvwci == 4) + if (store_vvvvwde == 4) { return true; } return false; } -// the vvvvwci Some function -function datatype_vvvvwci_SomeFunc(datatype_vvvvwci) +// the vvvvwde Some function +function datatype_vvvvwde_SomeFunc(datatype_vvvvwde) { // set the function logic - if (datatype_vvvvwci == 'CHAR' || datatype_vvvvwci == 'VARCHAR' || datatype_vvvvwci == 'TEXT' || datatype_vvvvwci == 'MEDIUMTEXT' || datatype_vvvvwci == 'LONGTEXT' || datatype_vvvvwci == 'BLOB' || datatype_vvvvwci == 'TINYBLOB' || datatype_vvvvwci == 'MEDIUMBLOB' || datatype_vvvvwci == 'LONGBLOB') + if (datatype_vvvvwde == 'CHAR' || datatype_vvvvwde == 'VARCHAR' || datatype_vvvvwde == 'TEXT' || datatype_vvvvwde == 'MEDIUMTEXT' || datatype_vvvvwde == 'LONGTEXT' || datatype_vvvvwde == 'BLOB' || datatype_vvvvwde == 'TINYBLOB' || datatype_vvvvwde == 'MEDIUMBLOB' || datatype_vvvvwde == 'LONGBLOB') { return true; } return false; } -// the vvvvwck function -function vvvvwck(store_vvvvwck,datatype_vvvvwck) +// the vvvvwdg function +function vvvvwdg(store_vvvvwdg,datatype_vvvvwdg) { - if (isSet(store_vvvvwck) && store_vvvvwck.constructor !== Array) + if (isSet(store_vvvvwdg) && store_vvvvwdg.constructor !== Array) { - var temp_vvvvwck = store_vvvvwck; - var store_vvvvwck = []; - store_vvvvwck.push(temp_vvvvwck); + var temp_vvvvwdg = store_vvvvwdg; + var store_vvvvwdg = []; + store_vvvvwdg.push(temp_vvvvwdg); } - else if (!isSet(store_vvvvwck)) + else if (!isSet(store_vvvvwdg)) { - var store_vvvvwck = []; + var store_vvvvwdg = []; } - var store = store_vvvvwck.some(store_vvvvwck_SomeFunc); + var store = store_vvvvwdg.some(store_vvvvwdg_SomeFunc); - if (isSet(datatype_vvvvwck) && datatype_vvvvwck.constructor !== Array) + if (isSet(datatype_vvvvwdg) && datatype_vvvvwdg.constructor !== Array) { - var temp_vvvvwck = datatype_vvvvwck; - var datatype_vvvvwck = []; - datatype_vvvvwck.push(temp_vvvvwck); + var temp_vvvvwdg = datatype_vvvvwdg; + var datatype_vvvvwdg = []; + datatype_vvvvwdg.push(temp_vvvvwdg); } - else if (!isSet(datatype_vvvvwck)) + else if (!isSet(datatype_vvvvwdg)) { - var datatype_vvvvwck = []; + var datatype_vvvvwdg = []; } - var datatype = datatype_vvvvwck.some(datatype_vvvvwck_SomeFunc); + var datatype = datatype_vvvvwdg.some(datatype_vvvvwdg_SomeFunc); // set this function logic @@ -442,140 +442,140 @@ function vvvvwck(store_vvvvwck,datatype_vvvvwck) { jQuery('#jform_initiator_on_get_model').closest('.control-group').show(); // add required attribute to initiator_on_get_model field - if (jform_vvvvwckvxs_required) + if (jform_vvvvwdgvxw_required) { updateFieldRequired('initiator_on_get_model',0); jQuery('#jform_initiator_on_get_model').prop('required','required'); jQuery('#jform_initiator_on_get_model').attr('aria-required',true); jQuery('#jform_initiator_on_get_model').addClass('required'); - jform_vvvvwckvxs_required = false; + jform_vvvvwdgvxw_required = false; } jQuery('#jform_initiator_on_save_model').closest('.control-group').show(); // add required attribute to initiator_on_save_model field - if (jform_vvvvwckvxt_required) + if (jform_vvvvwdgvxx_required) { updateFieldRequired('initiator_on_save_model',0); jQuery('#jform_initiator_on_save_model').prop('required','required'); jQuery('#jform_initiator_on_save_model').attr('aria-required',true); jQuery('#jform_initiator_on_save_model').addClass('required'); - jform_vvvvwckvxt_required = false; + jform_vvvvwdgvxx_required = false; } jQuery('#jform_on_save_model_field').closest('.control-group').show(); // add required attribute to on_save_model_field field - if (jform_vvvvwckvxu_required) + if (jform_vvvvwdgvxy_required) { updateFieldRequired('on_save_model_field',0); jQuery('#jform_on_save_model_field').prop('required','required'); jQuery('#jform_on_save_model_field').attr('aria-required',true); jQuery('#jform_on_save_model_field').addClass('required'); - jform_vvvvwckvxu_required = false; + jform_vvvvwdgvxy_required = false; } jQuery('.note_expert_field_save_mode').closest('.control-group').show(); jQuery('#jform_on_get_model_field').closest('.control-group').show(); // add required attribute to on_get_model_field field - if (jform_vvvvwckvxv_required) + if (jform_vvvvwdgvxz_required) { updateFieldRequired('on_get_model_field',0); jQuery('#jform_on_get_model_field').prop('required','required'); jQuery('#jform_on_get_model_field').attr('aria-required',true); jQuery('#jform_on_get_model_field').addClass('required'); - jform_vvvvwckvxv_required = false; + jform_vvvvwdgvxz_required = false; } } else { jQuery('#jform_initiator_on_get_model').closest('.control-group').hide(); // remove required attribute from initiator_on_get_model field - if (!jform_vvvvwckvxs_required) + if (!jform_vvvvwdgvxw_required) { updateFieldRequired('initiator_on_get_model',1); jQuery('#jform_initiator_on_get_model').removeAttr('required'); jQuery('#jform_initiator_on_get_model').removeAttr('aria-required'); jQuery('#jform_initiator_on_get_model').removeClass('required'); - jform_vvvvwckvxs_required = true; + jform_vvvvwdgvxw_required = true; } jQuery('#jform_initiator_on_save_model').closest('.control-group').hide(); // remove required attribute from initiator_on_save_model field - if (!jform_vvvvwckvxt_required) + if (!jform_vvvvwdgvxx_required) { updateFieldRequired('initiator_on_save_model',1); jQuery('#jform_initiator_on_save_model').removeAttr('required'); jQuery('#jform_initiator_on_save_model').removeAttr('aria-required'); jQuery('#jform_initiator_on_save_model').removeClass('required'); - jform_vvvvwckvxt_required = true; + jform_vvvvwdgvxx_required = true; } jQuery('#jform_on_save_model_field').closest('.control-group').hide(); // remove required attribute from on_save_model_field field - if (!jform_vvvvwckvxu_required) + if (!jform_vvvvwdgvxy_required) { updateFieldRequired('on_save_model_field',1); jQuery('#jform_on_save_model_field').removeAttr('required'); jQuery('#jform_on_save_model_field').removeAttr('aria-required'); jQuery('#jform_on_save_model_field').removeClass('required'); - jform_vvvvwckvxu_required = true; + jform_vvvvwdgvxy_required = true; } jQuery('.note_expert_field_save_mode').closest('.control-group').hide(); jQuery('#jform_on_get_model_field').closest('.control-group').hide(); // remove required attribute from on_get_model_field field - if (!jform_vvvvwckvxv_required) + if (!jform_vvvvwdgvxz_required) { updateFieldRequired('on_get_model_field',1); jQuery('#jform_on_get_model_field').removeAttr('required'); jQuery('#jform_on_get_model_field').removeAttr('aria-required'); jQuery('#jform_on_get_model_field').removeClass('required'); - jform_vvvvwckvxv_required = true; + jform_vvvvwdgvxz_required = true; } } } -// the vvvvwck Some function -function store_vvvvwck_SomeFunc(store_vvvvwck) +// the vvvvwdg Some function +function store_vvvvwdg_SomeFunc(store_vvvvwdg) { // set the function logic - if (store_vvvvwck == 6) + if (store_vvvvwdg == 6) { return true; } return false; } -// the vvvvwck Some function -function datatype_vvvvwck_SomeFunc(datatype_vvvvwck) +// the vvvvwdg Some function +function datatype_vvvvwdg_SomeFunc(datatype_vvvvwdg) { // set the function logic - if (datatype_vvvvwck == 'CHAR' || datatype_vvvvwck == 'VARCHAR' || datatype_vvvvwck == 'TEXT' || datatype_vvvvwck == 'MEDIUMTEXT' || datatype_vvvvwck == 'LONGTEXT' || datatype_vvvvwck == 'BLOB' || datatype_vvvvwck == 'TINYBLOB' || datatype_vvvvwck == 'MEDIUMBLOB' || datatype_vvvvwck == 'LONGBLOB') + if (datatype_vvvvwdg == 'CHAR' || datatype_vvvvwdg == 'VARCHAR' || datatype_vvvvwdg == 'TEXT' || datatype_vvvvwdg == 'MEDIUMTEXT' || datatype_vvvvwdg == 'LONGTEXT' || datatype_vvvvwdg == 'BLOB' || datatype_vvvvwdg == 'TINYBLOB' || datatype_vvvvwdg == 'MEDIUMBLOB' || datatype_vvvvwdg == 'LONGBLOB') { return true; } return false; } -// the vvvvwcl function -function vvvvwcl(datatype_vvvvwcl,store_vvvvwcl) +// the vvvvwdh function +function vvvvwdh(datatype_vvvvwdh,store_vvvvwdh) { - if (isSet(datatype_vvvvwcl) && datatype_vvvvwcl.constructor !== Array) + if (isSet(datatype_vvvvwdh) && datatype_vvvvwdh.constructor !== Array) { - var temp_vvvvwcl = datatype_vvvvwcl; - var datatype_vvvvwcl = []; - datatype_vvvvwcl.push(temp_vvvvwcl); + var temp_vvvvwdh = datatype_vvvvwdh; + var datatype_vvvvwdh = []; + datatype_vvvvwdh.push(temp_vvvvwdh); } - else if (!isSet(datatype_vvvvwcl)) + else if (!isSet(datatype_vvvvwdh)) { - var datatype_vvvvwcl = []; + var datatype_vvvvwdh = []; } - var datatype = datatype_vvvvwcl.some(datatype_vvvvwcl_SomeFunc); + var datatype = datatype_vvvvwdh.some(datatype_vvvvwdh_SomeFunc); - if (isSet(store_vvvvwcl) && store_vvvvwcl.constructor !== Array) + if (isSet(store_vvvvwdh) && store_vvvvwdh.constructor !== Array) { - var temp_vvvvwcl = store_vvvvwcl; - var store_vvvvwcl = []; - store_vvvvwcl.push(temp_vvvvwcl); + var temp_vvvvwdh = store_vvvvwdh; + var store_vvvvwdh = []; + store_vvvvwdh.push(temp_vvvvwdh); } - else if (!isSet(store_vvvvwcl)) + else if (!isSet(store_vvvvwdh)) { - var store_vvvvwcl = []; + var store_vvvvwdh = []; } - var store = store_vvvvwcl.some(store_vvvvwcl_SomeFunc); + var store = store_vvvvwdh.some(store_vvvvwdh_SomeFunc); // set this function logic @@ -583,119 +583,119 @@ function vvvvwcl(datatype_vvvvwcl,store_vvvvwcl) { jQuery('#jform_initiator_on_get_model').closest('.control-group').show(); // add required attribute to initiator_on_get_model field - if (jform_vvvvwclvxw_required) + if (jform_vvvvwdhvya_required) { updateFieldRequired('initiator_on_get_model',0); jQuery('#jform_initiator_on_get_model').prop('required','required'); jQuery('#jform_initiator_on_get_model').attr('aria-required',true); jQuery('#jform_initiator_on_get_model').addClass('required'); - jform_vvvvwclvxw_required = false; + jform_vvvvwdhvya_required = false; } jQuery('#jform_initiator_on_save_model').closest('.control-group').show(); // add required attribute to initiator_on_save_model field - if (jform_vvvvwclvxx_required) + if (jform_vvvvwdhvyb_required) { updateFieldRequired('initiator_on_save_model',0); jQuery('#jform_initiator_on_save_model').prop('required','required'); jQuery('#jform_initiator_on_save_model').attr('aria-required',true); jQuery('#jform_initiator_on_save_model').addClass('required'); - jform_vvvvwclvxx_required = false; + jform_vvvvwdhvyb_required = false; } jQuery('#jform_on_save_model_field').closest('.control-group').show(); // add required attribute to on_save_model_field field - if (jform_vvvvwclvxy_required) + if (jform_vvvvwdhvyc_required) { updateFieldRequired('on_save_model_field',0); jQuery('#jform_on_save_model_field').prop('required','required'); jQuery('#jform_on_save_model_field').attr('aria-required',true); jQuery('#jform_on_save_model_field').addClass('required'); - jform_vvvvwclvxy_required = false; + jform_vvvvwdhvyc_required = false; } jQuery('.note_expert_field_save_mode').closest('.control-group').show(); jQuery('#jform_on_get_model_field').closest('.control-group').show(); // add required attribute to on_get_model_field field - if (jform_vvvvwclvxz_required) + if (jform_vvvvwdhvyd_required) { updateFieldRequired('on_get_model_field',0); jQuery('#jform_on_get_model_field').prop('required','required'); jQuery('#jform_on_get_model_field').attr('aria-required',true); jQuery('#jform_on_get_model_field').addClass('required'); - jform_vvvvwclvxz_required = false; + jform_vvvvwdhvyd_required = false; } } else { jQuery('#jform_initiator_on_get_model').closest('.control-group').hide(); // remove required attribute from initiator_on_get_model field - if (!jform_vvvvwclvxw_required) + if (!jform_vvvvwdhvya_required) { updateFieldRequired('initiator_on_get_model',1); jQuery('#jform_initiator_on_get_model').removeAttr('required'); jQuery('#jform_initiator_on_get_model').removeAttr('aria-required'); jQuery('#jform_initiator_on_get_model').removeClass('required'); - jform_vvvvwclvxw_required = true; + jform_vvvvwdhvya_required = true; } jQuery('#jform_initiator_on_save_model').closest('.control-group').hide(); // remove required attribute from initiator_on_save_model field - if (!jform_vvvvwclvxx_required) + if (!jform_vvvvwdhvyb_required) { updateFieldRequired('initiator_on_save_model',1); jQuery('#jform_initiator_on_save_model').removeAttr('required'); jQuery('#jform_initiator_on_save_model').removeAttr('aria-required'); jQuery('#jform_initiator_on_save_model').removeClass('required'); - jform_vvvvwclvxx_required = true; + jform_vvvvwdhvyb_required = true; } jQuery('#jform_on_save_model_field').closest('.control-group').hide(); // remove required attribute from on_save_model_field field - if (!jform_vvvvwclvxy_required) + if (!jform_vvvvwdhvyc_required) { updateFieldRequired('on_save_model_field',1); jQuery('#jform_on_save_model_field').removeAttr('required'); jQuery('#jform_on_save_model_field').removeAttr('aria-required'); jQuery('#jform_on_save_model_field').removeClass('required'); - jform_vvvvwclvxy_required = true; + jform_vvvvwdhvyc_required = true; } jQuery('.note_expert_field_save_mode').closest('.control-group').hide(); jQuery('#jform_on_get_model_field').closest('.control-group').hide(); // remove required attribute from on_get_model_field field - if (!jform_vvvvwclvxz_required) + if (!jform_vvvvwdhvyd_required) { updateFieldRequired('on_get_model_field',1); jQuery('#jform_on_get_model_field').removeAttr('required'); jQuery('#jform_on_get_model_field').removeAttr('aria-required'); jQuery('#jform_on_get_model_field').removeClass('required'); - jform_vvvvwclvxz_required = true; + jform_vvvvwdhvyd_required = true; } } } -// the vvvvwcl Some function -function datatype_vvvvwcl_SomeFunc(datatype_vvvvwcl) +// the vvvvwdh Some function +function datatype_vvvvwdh_SomeFunc(datatype_vvvvwdh) { // set the function logic - if (datatype_vvvvwcl == 'CHAR' || datatype_vvvvwcl == 'VARCHAR' || datatype_vvvvwcl == 'TEXT' || datatype_vvvvwcl == 'MEDIUMTEXT' || datatype_vvvvwcl == 'LONGTEXT' || datatype_vvvvwcl == 'BLOB' || datatype_vvvvwcl == 'TINYBLOB' || datatype_vvvvwcl == 'MEDIUMBLOB' || datatype_vvvvwcl == 'LONGBLOB') + if (datatype_vvvvwdh == 'CHAR' || datatype_vvvvwdh == 'VARCHAR' || datatype_vvvvwdh == 'TEXT' || datatype_vvvvwdh == 'MEDIUMTEXT' || datatype_vvvvwdh == 'LONGTEXT' || datatype_vvvvwdh == 'BLOB' || datatype_vvvvwdh == 'TINYBLOB' || datatype_vvvvwdh == 'MEDIUMBLOB' || datatype_vvvvwdh == 'LONGBLOB') { return true; } return false; } -// the vvvvwcl Some function -function store_vvvvwcl_SomeFunc(store_vvvvwcl) +// the vvvvwdh Some function +function store_vvvvwdh_SomeFunc(store_vvvvwdh) { // set the function logic - if (store_vvvvwcl == 6) + if (store_vvvvwdh == 6) { return true; } return false; } -// the vvvvwcm function -function vvvvwcm(add_css_view_vvvvwcm) +// the vvvvwdi function +function vvvvwdi(add_css_view_vvvvwdi) { // set the function logic - if (add_css_view_vvvvwcm == 1) + if (add_css_view_vvvvwdi == 1) { jQuery('#jform_css_view-lbl').closest('.control-group').show(); } @@ -705,11 +705,11 @@ function vvvvwcm(add_css_view_vvvvwcm) } } -// the vvvvwcn function -function vvvvwcn(add_css_views_vvvvwcn) +// the vvvvwdj function +function vvvvwdj(add_css_views_vvvvwdj) { // set the function logic - if (add_css_views_vvvvwcn == 1) + if (add_css_views_vvvvwdj == 1) { jQuery('#jform_css_views-lbl').closest('.control-group').show(); } @@ -719,11 +719,11 @@ function vvvvwcn(add_css_views_vvvvwcn) } } -// the vvvvwco function -function vvvvwco(add_javascript_view_footer_vvvvwco) +// the vvvvwdk function +function vvvvwdk(add_javascript_view_footer_vvvvwdk) { // set the function logic - if (add_javascript_view_footer_vvvvwco == 1) + if (add_javascript_view_footer_vvvvwdk == 1) { jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show(); } @@ -733,11 +733,11 @@ function vvvvwco(add_javascript_view_footer_vvvvwco) } } -// the vvvvwcp function -function vvvvwcp(add_javascript_views_footer_vvvvwcp) +// the vvvvwdl function +function vvvvwdl(add_javascript_views_footer_vvvvwdl) { // set the function logic - if (add_javascript_views_footer_vvvvwcp == 1) + if (add_javascript_views_footer_vvvvwdl == 1) { jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show(); } diff --git a/admin/models/forms/fieldtype.js b/admin/models/forms/fieldtype.js index 1b37f3685..72f876106 100644 --- a/admin/models/forms/fieldtype.js +++ b/admin/models/forms/fieldtype.js @@ -9,87 +9,87 @@ */ // Some Global Values -jform_vvvvwcqvya_required = false; -jform_vvvvwcsvyb_required = false; -jform_vvvvwcuvyc_required = false; -jform_vvvvwcwvyd_required = false; -jform_vvvvwcxvye_required = false; -jform_vvvvwcyvyf_required = false; -jform_vvvvwddvyg_required = false; -jform_vvvvwddvyh_required = false; +jform_vvvvwdmvye_required = false; +jform_vvvvwdovyf_required = false; +jform_vvvvwdqvyg_required = false; +jform_vvvvwdsvyh_required = false; +jform_vvvvwdtvyi_required = false; +jform_vvvvwduvyj_required = false; +jform_vvvvwdzvyk_required = false; +jform_vvvvwdzvyl_required = false; // Initial Script jQuery(document).ready(function() { - var datalenght_vvvvwcq = jQuery("#jform_datalenght").val(); - var has_defaults_vvvvwcq = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwcq(datalenght_vvvvwcq,has_defaults_vvvvwcq); + var datalenght_vvvvwdm = jQuery("#jform_datalenght").val(); + var has_defaults_vvvvwdm = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwdm(datalenght_vvvvwdm,has_defaults_vvvvwdm); - var datadefault_vvvvwcs = jQuery("#jform_datadefault").val(); - var has_defaults_vvvvwcs = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwcs(datadefault_vvvvwcs,has_defaults_vvvvwcs); + var datadefault_vvvvwdo = jQuery("#jform_datadefault").val(); + var has_defaults_vvvvwdo = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwdo(datadefault_vvvvwdo,has_defaults_vvvvwdo); - var datatype_vvvvwcu = jQuery("#jform_datatype").val(); - var has_defaults_vvvvwcu = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwcu(datatype_vvvvwcu,has_defaults_vvvvwcu); + var datatype_vvvvwdq = jQuery("#jform_datatype").val(); + var has_defaults_vvvvwdq = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwdq(datatype_vvvvwdq,has_defaults_vvvvwdq); - var datatype_vvvvwcw = jQuery("#jform_datatype").val(); - var has_defaults_vvvvwcw = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwcw(datatype_vvvvwcw,has_defaults_vvvvwcw); + var datatype_vvvvwds = jQuery("#jform_datatype").val(); + var has_defaults_vvvvwds = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwds(datatype_vvvvwds,has_defaults_vvvvwds); - var has_defaults_vvvvwcx = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - var datatype_vvvvwcx = jQuery("#jform_datatype").val(); - vvvvwcx(has_defaults_vvvvwcx,datatype_vvvvwcx); + var has_defaults_vvvvwdt = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + var datatype_vvvvwdt = jQuery("#jform_datatype").val(); + vvvvwdt(has_defaults_vvvvwdt,datatype_vvvvwdt); - var datatype_vvvvwcy = jQuery("#jform_datatype").val(); - var has_defaults_vvvvwcy = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwcy(datatype_vvvvwcy,has_defaults_vvvvwcy); + var datatype_vvvvwdu = jQuery("#jform_datatype").val(); + var has_defaults_vvvvwdu = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwdu(datatype_vvvvwdu,has_defaults_vvvvwdu); - var store_vvvvwda = jQuery("#jform_store").val(); - var datatype_vvvvwda = jQuery("#jform_datatype").val(); - var has_defaults_vvvvwda = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwda(store_vvvvwda,datatype_vvvvwda,has_defaults_vvvvwda); + var store_vvvvwdw = jQuery("#jform_store").val(); + var datatype_vvvvwdw = jQuery("#jform_datatype").val(); + var has_defaults_vvvvwdw = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwdw(store_vvvvwdw,datatype_vvvvwdw,has_defaults_vvvvwdw); - var datatype_vvvvwdb = jQuery("#jform_datatype").val(); - var store_vvvvwdb = jQuery("#jform_store").val(); - var has_defaults_vvvvwdb = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwdb(datatype_vvvvwdb,store_vvvvwdb,has_defaults_vvvvwdb); + var datatype_vvvvwdx = jQuery("#jform_datatype").val(); + var store_vvvvwdx = jQuery("#jform_store").val(); + var has_defaults_vvvvwdx = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwdx(datatype_vvvvwdx,store_vvvvwdx,has_defaults_vvvvwdx); - var has_defaults_vvvvwdc = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - var store_vvvvwdc = jQuery("#jform_store").val(); - var datatype_vvvvwdc = jQuery("#jform_datatype").val(); - vvvvwdc(has_defaults_vvvvwdc,store_vvvvwdc,datatype_vvvvwdc); + var has_defaults_vvvvwdy = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + var store_vvvvwdy = jQuery("#jform_store").val(); + var datatype_vvvvwdy = jQuery("#jform_datatype").val(); + vvvvwdy(has_defaults_vvvvwdy,store_vvvvwdy,datatype_vvvvwdy); - var has_defaults_vvvvwdd = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwdd(has_defaults_vvvvwdd); + var has_defaults_vvvvwdz = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwdz(has_defaults_vvvvwdz); }); -// the vvvvwcq function -function vvvvwcq(datalenght_vvvvwcq,has_defaults_vvvvwcq) +// the vvvvwdm function +function vvvvwdm(datalenght_vvvvwdm,has_defaults_vvvvwdm) { - if (isSet(datalenght_vvvvwcq) && datalenght_vvvvwcq.constructor !== Array) + if (isSet(datalenght_vvvvwdm) && datalenght_vvvvwdm.constructor !== Array) { - var temp_vvvvwcq = datalenght_vvvvwcq; - var datalenght_vvvvwcq = []; - datalenght_vvvvwcq.push(temp_vvvvwcq); + var temp_vvvvwdm = datalenght_vvvvwdm; + var datalenght_vvvvwdm = []; + datalenght_vvvvwdm.push(temp_vvvvwdm); } - else if (!isSet(datalenght_vvvvwcq)) + else if (!isSet(datalenght_vvvvwdm)) { - var datalenght_vvvvwcq = []; + var datalenght_vvvvwdm = []; } - var datalenght = datalenght_vvvvwcq.some(datalenght_vvvvwcq_SomeFunc); + var datalenght = datalenght_vvvvwdm.some(datalenght_vvvvwdm_SomeFunc); - if (isSet(has_defaults_vvvvwcq) && has_defaults_vvvvwcq.constructor !== Array) + if (isSet(has_defaults_vvvvwdm) && has_defaults_vvvvwdm.constructor !== Array) { - var temp_vvvvwcq = has_defaults_vvvvwcq; - var has_defaults_vvvvwcq = []; - has_defaults_vvvvwcq.push(temp_vvvvwcq); + var temp_vvvvwdm = has_defaults_vvvvwdm; + var has_defaults_vvvvwdm = []; + has_defaults_vvvvwdm.push(temp_vvvvwdm); } - else if (!isSet(has_defaults_vvvvwcq)) + else if (!isSet(has_defaults_vvvvwdm)) { - var has_defaults_vvvvwcq = []; + var has_defaults_vvvvwdm = []; } - var has_defaults = has_defaults_vvvvwcq.some(has_defaults_vvvvwcq_SomeFunc); + var has_defaults = has_defaults_vvvvwdm.some(has_defaults_vvvvwdm_SomeFunc); // set this function logic @@ -97,78 +97,78 @@ function vvvvwcq(datalenght_vvvvwcq,has_defaults_vvvvwcq) { jQuery('#jform_datalenght_other').closest('.control-group').show(); // add required attribute to datalenght_other field - if (jform_vvvvwcqvya_required) + if (jform_vvvvwdmvye_required) { updateFieldRequired('datalenght_other',0); jQuery('#jform_datalenght_other').prop('required','required'); jQuery('#jform_datalenght_other').attr('aria-required',true); jQuery('#jform_datalenght_other').addClass('required'); - jform_vvvvwcqvya_required = false; + jform_vvvvwdmvye_required = false; } } else { jQuery('#jform_datalenght_other').closest('.control-group').hide(); // remove required attribute from datalenght_other field - if (!jform_vvvvwcqvya_required) + if (!jform_vvvvwdmvye_required) { updateFieldRequired('datalenght_other',1); jQuery('#jform_datalenght_other').removeAttr('required'); jQuery('#jform_datalenght_other').removeAttr('aria-required'); jQuery('#jform_datalenght_other').removeClass('required'); - jform_vvvvwcqvya_required = true; + jform_vvvvwdmvye_required = true; } } } -// the vvvvwcq Some function -function datalenght_vvvvwcq_SomeFunc(datalenght_vvvvwcq) +// the vvvvwdm Some function +function datalenght_vvvvwdm_SomeFunc(datalenght_vvvvwdm) { // set the function logic - if (datalenght_vvvvwcq == 'Other') + if (datalenght_vvvvwdm == 'Other') { return true; } return false; } -// the vvvvwcq Some function -function has_defaults_vvvvwcq_SomeFunc(has_defaults_vvvvwcq) +// the vvvvwdm Some function +function has_defaults_vvvvwdm_SomeFunc(has_defaults_vvvvwdm) { // set the function logic - if (has_defaults_vvvvwcq == 1) + if (has_defaults_vvvvwdm == 1) { return true; } return false; } -// the vvvvwcs function -function vvvvwcs(datadefault_vvvvwcs,has_defaults_vvvvwcs) +// the vvvvwdo function +function vvvvwdo(datadefault_vvvvwdo,has_defaults_vvvvwdo) { - if (isSet(datadefault_vvvvwcs) && datadefault_vvvvwcs.constructor !== Array) + if (isSet(datadefault_vvvvwdo) && datadefault_vvvvwdo.constructor !== Array) { - var temp_vvvvwcs = datadefault_vvvvwcs; - var datadefault_vvvvwcs = []; - datadefault_vvvvwcs.push(temp_vvvvwcs); + var temp_vvvvwdo = datadefault_vvvvwdo; + var datadefault_vvvvwdo = []; + datadefault_vvvvwdo.push(temp_vvvvwdo); } - else if (!isSet(datadefault_vvvvwcs)) + else if (!isSet(datadefault_vvvvwdo)) { - var datadefault_vvvvwcs = []; + var datadefault_vvvvwdo = []; } - var datadefault = datadefault_vvvvwcs.some(datadefault_vvvvwcs_SomeFunc); + var datadefault = datadefault_vvvvwdo.some(datadefault_vvvvwdo_SomeFunc); - if (isSet(has_defaults_vvvvwcs) && has_defaults_vvvvwcs.constructor !== Array) + if (isSet(has_defaults_vvvvwdo) && has_defaults_vvvvwdo.constructor !== Array) { - var temp_vvvvwcs = has_defaults_vvvvwcs; - var has_defaults_vvvvwcs = []; - has_defaults_vvvvwcs.push(temp_vvvvwcs); + var temp_vvvvwdo = has_defaults_vvvvwdo; + var has_defaults_vvvvwdo = []; + has_defaults_vvvvwdo.push(temp_vvvvwdo); } - else if (!isSet(has_defaults_vvvvwcs)) + else if (!isSet(has_defaults_vvvvwdo)) { - var has_defaults_vvvvwcs = []; + var has_defaults_vvvvwdo = []; } - var has_defaults = has_defaults_vvvvwcs.some(has_defaults_vvvvwcs_SomeFunc); + var has_defaults = has_defaults_vvvvwdo.some(has_defaults_vvvvwdo_SomeFunc); // set this function logic @@ -176,78 +176,78 @@ function vvvvwcs(datadefault_vvvvwcs,has_defaults_vvvvwcs) { jQuery('#jform_datadefault_other').closest('.control-group').show(); // add required attribute to datadefault_other field - if (jform_vvvvwcsvyb_required) + if (jform_vvvvwdovyf_required) { updateFieldRequired('datadefault_other',0); jQuery('#jform_datadefault_other').prop('required','required'); jQuery('#jform_datadefault_other').attr('aria-required',true); jQuery('#jform_datadefault_other').addClass('required'); - jform_vvvvwcsvyb_required = false; + jform_vvvvwdovyf_required = false; } } else { jQuery('#jform_datadefault_other').closest('.control-group').hide(); // remove required attribute from datadefault_other field - if (!jform_vvvvwcsvyb_required) + if (!jform_vvvvwdovyf_required) { updateFieldRequired('datadefault_other',1); jQuery('#jform_datadefault_other').removeAttr('required'); jQuery('#jform_datadefault_other').removeAttr('aria-required'); jQuery('#jform_datadefault_other').removeClass('required'); - jform_vvvvwcsvyb_required = true; + jform_vvvvwdovyf_required = true; } } } -// the vvvvwcs Some function -function datadefault_vvvvwcs_SomeFunc(datadefault_vvvvwcs) +// the vvvvwdo Some function +function datadefault_vvvvwdo_SomeFunc(datadefault_vvvvwdo) { // set the function logic - if (datadefault_vvvvwcs == 'Other') + if (datadefault_vvvvwdo == 'Other') { return true; } return false; } -// the vvvvwcs Some function -function has_defaults_vvvvwcs_SomeFunc(has_defaults_vvvvwcs) +// the vvvvwdo Some function +function has_defaults_vvvvwdo_SomeFunc(has_defaults_vvvvwdo) { // set the function logic - if (has_defaults_vvvvwcs == 1) + if (has_defaults_vvvvwdo == 1) { return true; } return false; } -// the vvvvwcu function -function vvvvwcu(datatype_vvvvwcu,has_defaults_vvvvwcu) +// the vvvvwdq function +function vvvvwdq(datatype_vvvvwdq,has_defaults_vvvvwdq) { - if (isSet(datatype_vvvvwcu) && datatype_vvvvwcu.constructor !== Array) + if (isSet(datatype_vvvvwdq) && datatype_vvvvwdq.constructor !== Array) { - var temp_vvvvwcu = datatype_vvvvwcu; - var datatype_vvvvwcu = []; - datatype_vvvvwcu.push(temp_vvvvwcu); + var temp_vvvvwdq = datatype_vvvvwdq; + var datatype_vvvvwdq = []; + datatype_vvvvwdq.push(temp_vvvvwdq); } - else if (!isSet(datatype_vvvvwcu)) + else if (!isSet(datatype_vvvvwdq)) { - var datatype_vvvvwcu = []; + var datatype_vvvvwdq = []; } - var datatype = datatype_vvvvwcu.some(datatype_vvvvwcu_SomeFunc); + var datatype = datatype_vvvvwdq.some(datatype_vvvvwdq_SomeFunc); - if (isSet(has_defaults_vvvvwcu) && has_defaults_vvvvwcu.constructor !== Array) + if (isSet(has_defaults_vvvvwdq) && has_defaults_vvvvwdq.constructor !== Array) { - var temp_vvvvwcu = has_defaults_vvvvwcu; - var has_defaults_vvvvwcu = []; - has_defaults_vvvvwcu.push(temp_vvvvwcu); + var temp_vvvvwdq = has_defaults_vvvvwdq; + var has_defaults_vvvvwdq = []; + has_defaults_vvvvwdq.push(temp_vvvvwdq); } - else if (!isSet(has_defaults_vvvvwcu)) + else if (!isSet(has_defaults_vvvvwdq)) { - var has_defaults_vvvvwcu = []; + var has_defaults_vvvvwdq = []; } - var has_defaults = has_defaults_vvvvwcu.some(has_defaults_vvvvwcu_SomeFunc); + var has_defaults = has_defaults_vvvvwdq.some(has_defaults_vvvvwdq_SomeFunc); // set this function logic @@ -255,78 +255,78 @@ function vvvvwcu(datatype_vvvvwcu,has_defaults_vvvvwcu) { jQuery('#jform_datalenght').closest('.control-group').show(); // add required attribute to datalenght field - if (jform_vvvvwcuvyc_required) + if (jform_vvvvwdqvyg_required) { updateFieldRequired('datalenght',0); jQuery('#jform_datalenght').prop('required','required'); jQuery('#jform_datalenght').attr('aria-required',true); jQuery('#jform_datalenght').addClass('required'); - jform_vvvvwcuvyc_required = false; + jform_vvvvwdqvyg_required = false; } } else { jQuery('#jform_datalenght').closest('.control-group').hide(); // remove required attribute from datalenght field - if (!jform_vvvvwcuvyc_required) + if (!jform_vvvvwdqvyg_required) { updateFieldRequired('datalenght',1); jQuery('#jform_datalenght').removeAttr('required'); jQuery('#jform_datalenght').removeAttr('aria-required'); jQuery('#jform_datalenght').removeClass('required'); - jform_vvvvwcuvyc_required = true; + jform_vvvvwdqvyg_required = true; } } } -// the vvvvwcu Some function -function datatype_vvvvwcu_SomeFunc(datatype_vvvvwcu) +// the vvvvwdq Some function +function datatype_vvvvwdq_SomeFunc(datatype_vvvvwdq) { // set the function logic - if (datatype_vvvvwcu == 'CHAR' || datatype_vvvvwcu == 'VARCHAR' || datatype_vvvvwcu == 'INT' || datatype_vvvvwcu == 'TINYINT' || datatype_vvvvwcu == 'BIGINT' || datatype_vvvvwcu == 'FLOAT' || datatype_vvvvwcu == 'DECIMAL' || datatype_vvvvwcu == 'DOUBLE') + if (datatype_vvvvwdq == 'CHAR' || datatype_vvvvwdq == 'VARCHAR' || datatype_vvvvwdq == 'INT' || datatype_vvvvwdq == 'TINYINT' || datatype_vvvvwdq == 'BIGINT' || datatype_vvvvwdq == 'FLOAT' || datatype_vvvvwdq == 'DECIMAL' || datatype_vvvvwdq == 'DOUBLE') { return true; } return false; } -// the vvvvwcu Some function -function has_defaults_vvvvwcu_SomeFunc(has_defaults_vvvvwcu) +// the vvvvwdq Some function +function has_defaults_vvvvwdq_SomeFunc(has_defaults_vvvvwdq) { // set the function logic - if (has_defaults_vvvvwcu == 1) + if (has_defaults_vvvvwdq == 1) { return true; } return false; } -// the vvvvwcw function -function vvvvwcw(datatype_vvvvwcw,has_defaults_vvvvwcw) +// the vvvvwds function +function vvvvwds(datatype_vvvvwds,has_defaults_vvvvwds) { - if (isSet(datatype_vvvvwcw) && datatype_vvvvwcw.constructor !== Array) + if (isSet(datatype_vvvvwds) && datatype_vvvvwds.constructor !== Array) { - var temp_vvvvwcw = datatype_vvvvwcw; - var datatype_vvvvwcw = []; - datatype_vvvvwcw.push(temp_vvvvwcw); + var temp_vvvvwds = datatype_vvvvwds; + var datatype_vvvvwds = []; + datatype_vvvvwds.push(temp_vvvvwds); } - else if (!isSet(datatype_vvvvwcw)) + else if (!isSet(datatype_vvvvwds)) { - var datatype_vvvvwcw = []; + var datatype_vvvvwds = []; } - var datatype = datatype_vvvvwcw.some(datatype_vvvvwcw_SomeFunc); + var datatype = datatype_vvvvwds.some(datatype_vvvvwds_SomeFunc); - if (isSet(has_defaults_vvvvwcw) && has_defaults_vvvvwcw.constructor !== Array) + if (isSet(has_defaults_vvvvwds) && has_defaults_vvvvwds.constructor !== Array) { - var temp_vvvvwcw = has_defaults_vvvvwcw; - var has_defaults_vvvvwcw = []; - has_defaults_vvvvwcw.push(temp_vvvvwcw); + var temp_vvvvwds = has_defaults_vvvvwds; + var has_defaults_vvvvwds = []; + has_defaults_vvvvwds.push(temp_vvvvwds); } - else if (!isSet(has_defaults_vvvvwcw)) + else if (!isSet(has_defaults_vvvvwds)) { - var has_defaults_vvvvwcw = []; + var has_defaults_vvvvwds = []; } - var has_defaults = has_defaults_vvvvwcw.some(has_defaults_vvvvwcw_SomeFunc); + var has_defaults = has_defaults_vvvvwds.some(has_defaults_vvvvwds_SomeFunc); // set this function logic @@ -335,13 +335,13 @@ function vvvvwcw(datatype_vvvvwcw,has_defaults_vvvvwcw) jQuery('#jform_datadefault').closest('.control-group').show(); jQuery('#jform_indexes').closest('.control-group').show(); // add required attribute to indexes field - if (jform_vvvvwcwvyd_required) + if (jform_vvvvwdsvyh_required) { updateFieldRequired('indexes',0); jQuery('#jform_indexes').prop('required','required'); jQuery('#jform_indexes').attr('aria-required',true); jQuery('#jform_indexes').addClass('required'); - jform_vvvvwcwvyd_required = false; + jform_vvvvwdsvyh_required = false; } } else @@ -349,65 +349,65 @@ function vvvvwcw(datatype_vvvvwcw,has_defaults_vvvvwcw) jQuery('#jform_datadefault').closest('.control-group').hide(); jQuery('#jform_indexes').closest('.control-group').hide(); // remove required attribute from indexes field - if (!jform_vvvvwcwvyd_required) + if (!jform_vvvvwdsvyh_required) { updateFieldRequired('indexes',1); jQuery('#jform_indexes').removeAttr('required'); jQuery('#jform_indexes').removeAttr('aria-required'); jQuery('#jform_indexes').removeClass('required'); - jform_vvvvwcwvyd_required = true; + jform_vvvvwdsvyh_required = true; } } } -// the vvvvwcw Some function -function datatype_vvvvwcw_SomeFunc(datatype_vvvvwcw) +// the vvvvwds Some function +function datatype_vvvvwds_SomeFunc(datatype_vvvvwds) { // set the function logic - if (datatype_vvvvwcw == 'CHAR' || datatype_vvvvwcw == 'VARCHAR' || datatype_vvvvwcw == 'DATETIME' || datatype_vvvvwcw == 'DATE' || datatype_vvvvwcw == 'TIME' || datatype_vvvvwcw == 'INT' || datatype_vvvvwcw == 'TINYINT' || datatype_vvvvwcw == 'BIGINT' || datatype_vvvvwcw == 'FLOAT' || datatype_vvvvwcw == 'DECIMAL' || datatype_vvvvwcw == 'DOUBLE') + if (datatype_vvvvwds == 'CHAR' || datatype_vvvvwds == 'VARCHAR' || datatype_vvvvwds == 'DATETIME' || datatype_vvvvwds == 'DATE' || datatype_vvvvwds == 'TIME' || datatype_vvvvwds == 'INT' || datatype_vvvvwds == 'TINYINT' || datatype_vvvvwds == 'BIGINT' || datatype_vvvvwds == 'FLOAT' || datatype_vvvvwds == 'DECIMAL' || datatype_vvvvwds == 'DOUBLE') { return true; } return false; } -// the vvvvwcw Some function -function has_defaults_vvvvwcw_SomeFunc(has_defaults_vvvvwcw) +// the vvvvwds Some function +function has_defaults_vvvvwds_SomeFunc(has_defaults_vvvvwds) { // set the function logic - if (has_defaults_vvvvwcw == 1) + if (has_defaults_vvvvwds == 1) { return true; } return false; } -// the vvvvwcx function -function vvvvwcx(has_defaults_vvvvwcx,datatype_vvvvwcx) +// the vvvvwdt function +function vvvvwdt(has_defaults_vvvvwdt,datatype_vvvvwdt) { - if (isSet(has_defaults_vvvvwcx) && has_defaults_vvvvwcx.constructor !== Array) + if (isSet(has_defaults_vvvvwdt) && has_defaults_vvvvwdt.constructor !== Array) { - var temp_vvvvwcx = has_defaults_vvvvwcx; - var has_defaults_vvvvwcx = []; - has_defaults_vvvvwcx.push(temp_vvvvwcx); + var temp_vvvvwdt = has_defaults_vvvvwdt; + var has_defaults_vvvvwdt = []; + has_defaults_vvvvwdt.push(temp_vvvvwdt); } - else if (!isSet(has_defaults_vvvvwcx)) + else if (!isSet(has_defaults_vvvvwdt)) { - var has_defaults_vvvvwcx = []; + var has_defaults_vvvvwdt = []; } - var has_defaults = has_defaults_vvvvwcx.some(has_defaults_vvvvwcx_SomeFunc); + var has_defaults = has_defaults_vvvvwdt.some(has_defaults_vvvvwdt_SomeFunc); - if (isSet(datatype_vvvvwcx) && datatype_vvvvwcx.constructor !== Array) + if (isSet(datatype_vvvvwdt) && datatype_vvvvwdt.constructor !== Array) { - var temp_vvvvwcx = datatype_vvvvwcx; - var datatype_vvvvwcx = []; - datatype_vvvvwcx.push(temp_vvvvwcx); + var temp_vvvvwdt = datatype_vvvvwdt; + var datatype_vvvvwdt = []; + datatype_vvvvwdt.push(temp_vvvvwdt); } - else if (!isSet(datatype_vvvvwcx)) + else if (!isSet(datatype_vvvvwdt)) { - var datatype_vvvvwcx = []; + var datatype_vvvvwdt = []; } - var datatype = datatype_vvvvwcx.some(datatype_vvvvwcx_SomeFunc); + var datatype = datatype_vvvvwdt.some(datatype_vvvvwdt_SomeFunc); // set this function logic @@ -416,13 +416,13 @@ function vvvvwcx(has_defaults_vvvvwcx,datatype_vvvvwcx) jQuery('#jform_datadefault').closest('.control-group').show(); jQuery('#jform_indexes').closest('.control-group').show(); // add required attribute to indexes field - if (jform_vvvvwcxvye_required) + if (jform_vvvvwdtvyi_required) { updateFieldRequired('indexes',0); jQuery('#jform_indexes').prop('required','required'); jQuery('#jform_indexes').attr('aria-required',true); jQuery('#jform_indexes').addClass('required'); - jform_vvvvwcxvye_required = false; + jform_vvvvwdtvyi_required = false; } } else @@ -430,65 +430,65 @@ function vvvvwcx(has_defaults_vvvvwcx,datatype_vvvvwcx) jQuery('#jform_datadefault').closest('.control-group').hide(); jQuery('#jform_indexes').closest('.control-group').hide(); // remove required attribute from indexes field - if (!jform_vvvvwcxvye_required) + if (!jform_vvvvwdtvyi_required) { updateFieldRequired('indexes',1); jQuery('#jform_indexes').removeAttr('required'); jQuery('#jform_indexes').removeAttr('aria-required'); jQuery('#jform_indexes').removeClass('required'); - jform_vvvvwcxvye_required = true; + jform_vvvvwdtvyi_required = true; } } } -// the vvvvwcx Some function -function has_defaults_vvvvwcx_SomeFunc(has_defaults_vvvvwcx) +// the vvvvwdt Some function +function has_defaults_vvvvwdt_SomeFunc(has_defaults_vvvvwdt) { // set the function logic - if (has_defaults_vvvvwcx == 1) + if (has_defaults_vvvvwdt == 1) { return true; } return false; } -// the vvvvwcx Some function -function datatype_vvvvwcx_SomeFunc(datatype_vvvvwcx) +// the vvvvwdt Some function +function datatype_vvvvwdt_SomeFunc(datatype_vvvvwdt) { // set the function logic - if (datatype_vvvvwcx == 'CHAR' || datatype_vvvvwcx == 'VARCHAR' || datatype_vvvvwcx == 'DATETIME' || datatype_vvvvwcx == 'DATE' || datatype_vvvvwcx == 'TIME' || datatype_vvvvwcx == 'INT' || datatype_vvvvwcx == 'TINYINT' || datatype_vvvvwcx == 'BIGINT' || datatype_vvvvwcx == 'FLOAT' || datatype_vvvvwcx == 'DECIMAL' || datatype_vvvvwcx == 'DOUBLE') + if (datatype_vvvvwdt == 'CHAR' || datatype_vvvvwdt == 'VARCHAR' || datatype_vvvvwdt == 'DATETIME' || datatype_vvvvwdt == 'DATE' || datatype_vvvvwdt == 'TIME' || datatype_vvvvwdt == 'INT' || datatype_vvvvwdt == 'TINYINT' || datatype_vvvvwdt == 'BIGINT' || datatype_vvvvwdt == 'FLOAT' || datatype_vvvvwdt == 'DECIMAL' || datatype_vvvvwdt == 'DOUBLE') { return true; } return false; } -// the vvvvwcy function -function vvvvwcy(datatype_vvvvwcy,has_defaults_vvvvwcy) +// the vvvvwdu function +function vvvvwdu(datatype_vvvvwdu,has_defaults_vvvvwdu) { - if (isSet(datatype_vvvvwcy) && datatype_vvvvwcy.constructor !== Array) + if (isSet(datatype_vvvvwdu) && datatype_vvvvwdu.constructor !== Array) { - var temp_vvvvwcy = datatype_vvvvwcy; - var datatype_vvvvwcy = []; - datatype_vvvvwcy.push(temp_vvvvwcy); + var temp_vvvvwdu = datatype_vvvvwdu; + var datatype_vvvvwdu = []; + datatype_vvvvwdu.push(temp_vvvvwdu); } - else if (!isSet(datatype_vvvvwcy)) + else if (!isSet(datatype_vvvvwdu)) { - var datatype_vvvvwcy = []; + var datatype_vvvvwdu = []; } - var datatype = datatype_vvvvwcy.some(datatype_vvvvwcy_SomeFunc); + var datatype = datatype_vvvvwdu.some(datatype_vvvvwdu_SomeFunc); - if (isSet(has_defaults_vvvvwcy) && has_defaults_vvvvwcy.constructor !== Array) + if (isSet(has_defaults_vvvvwdu) && has_defaults_vvvvwdu.constructor !== Array) { - var temp_vvvvwcy = has_defaults_vvvvwcy; - var has_defaults_vvvvwcy = []; - has_defaults_vvvvwcy.push(temp_vvvvwcy); + var temp_vvvvwdu = has_defaults_vvvvwdu; + var has_defaults_vvvvwdu = []; + has_defaults_vvvvwdu.push(temp_vvvvwdu); } - else if (!isSet(has_defaults_vvvvwcy)) + else if (!isSet(has_defaults_vvvvwdu)) { - var has_defaults_vvvvwcy = []; + var has_defaults_vvvvwdu = []; } - var has_defaults = has_defaults_vvvvwcy.some(has_defaults_vvvvwcy_SomeFunc); + var has_defaults = has_defaults_vvvvwdu.some(has_defaults_vvvvwdu_SomeFunc); // set this function logic @@ -496,90 +496,90 @@ function vvvvwcy(datatype_vvvvwcy,has_defaults_vvvvwcy) { jQuery('#jform_store').closest('.control-group').show(); // add required attribute to store field - if (jform_vvvvwcyvyf_required) + if (jform_vvvvwduvyj_required) { updateFieldRequired('store',0); jQuery('#jform_store').prop('required','required'); jQuery('#jform_store').attr('aria-required',true); jQuery('#jform_store').addClass('required'); - jform_vvvvwcyvyf_required = false; + jform_vvvvwduvyj_required = false; } } else { jQuery('#jform_store').closest('.control-group').hide(); // remove required attribute from store field - if (!jform_vvvvwcyvyf_required) + if (!jform_vvvvwduvyj_required) { updateFieldRequired('store',1); jQuery('#jform_store').removeAttr('required'); jQuery('#jform_store').removeAttr('aria-required'); jQuery('#jform_store').removeClass('required'); - jform_vvvvwcyvyf_required = true; + jform_vvvvwduvyj_required = true; } } } -// the vvvvwcy Some function -function datatype_vvvvwcy_SomeFunc(datatype_vvvvwcy) +// the vvvvwdu Some function +function datatype_vvvvwdu_SomeFunc(datatype_vvvvwdu) { // set the function logic - if (datatype_vvvvwcy == 'CHAR' || datatype_vvvvwcy == 'VARCHAR' || datatype_vvvvwcy == 'TEXT' || datatype_vvvvwcy == 'MEDIUMTEXT' || datatype_vvvvwcy == 'LONGTEXT' || datatype_vvvvwcy == 'BLOB' || datatype_vvvvwcy == 'TINYBLOB' || datatype_vvvvwcy == 'MEDIUMBLOB' || datatype_vvvvwcy == 'LONGBLOB') + if (datatype_vvvvwdu == 'CHAR' || datatype_vvvvwdu == 'VARCHAR' || datatype_vvvvwdu == 'TEXT' || datatype_vvvvwdu == 'MEDIUMTEXT' || datatype_vvvvwdu == 'LONGTEXT' || datatype_vvvvwdu == 'BLOB' || datatype_vvvvwdu == 'TINYBLOB' || datatype_vvvvwdu == 'MEDIUMBLOB' || datatype_vvvvwdu == 'LONGBLOB') { return true; } return false; } -// the vvvvwcy Some function -function has_defaults_vvvvwcy_SomeFunc(has_defaults_vvvvwcy) +// the vvvvwdu Some function +function has_defaults_vvvvwdu_SomeFunc(has_defaults_vvvvwdu) { // set the function logic - if (has_defaults_vvvvwcy == 1) + if (has_defaults_vvvvwdu == 1) { return true; } return false; } -// the vvvvwda function -function vvvvwda(store_vvvvwda,datatype_vvvvwda,has_defaults_vvvvwda) +// the vvvvwdw function +function vvvvwdw(store_vvvvwdw,datatype_vvvvwdw,has_defaults_vvvvwdw) { - if (isSet(store_vvvvwda) && store_vvvvwda.constructor !== Array) + if (isSet(store_vvvvwdw) && store_vvvvwdw.constructor !== Array) { - var temp_vvvvwda = store_vvvvwda; - var store_vvvvwda = []; - store_vvvvwda.push(temp_vvvvwda); + var temp_vvvvwdw = store_vvvvwdw; + var store_vvvvwdw = []; + store_vvvvwdw.push(temp_vvvvwdw); } - else if (!isSet(store_vvvvwda)) + else if (!isSet(store_vvvvwdw)) { - var store_vvvvwda = []; + var store_vvvvwdw = []; } - var store = store_vvvvwda.some(store_vvvvwda_SomeFunc); + var store = store_vvvvwdw.some(store_vvvvwdw_SomeFunc); - if (isSet(datatype_vvvvwda) && datatype_vvvvwda.constructor !== Array) + if (isSet(datatype_vvvvwdw) && datatype_vvvvwdw.constructor !== Array) { - var temp_vvvvwda = datatype_vvvvwda; - var datatype_vvvvwda = []; - datatype_vvvvwda.push(temp_vvvvwda); + var temp_vvvvwdw = datatype_vvvvwdw; + var datatype_vvvvwdw = []; + datatype_vvvvwdw.push(temp_vvvvwdw); } - else if (!isSet(datatype_vvvvwda)) + else if (!isSet(datatype_vvvvwdw)) { - var datatype_vvvvwda = []; + var datatype_vvvvwdw = []; } - var datatype = datatype_vvvvwda.some(datatype_vvvvwda_SomeFunc); + var datatype = datatype_vvvvwdw.some(datatype_vvvvwdw_SomeFunc); - if (isSet(has_defaults_vvvvwda) && has_defaults_vvvvwda.constructor !== Array) + if (isSet(has_defaults_vvvvwdw) && has_defaults_vvvvwdw.constructor !== Array) { - var temp_vvvvwda = has_defaults_vvvvwda; - var has_defaults_vvvvwda = []; - has_defaults_vvvvwda.push(temp_vvvvwda); + var temp_vvvvwdw = has_defaults_vvvvwdw; + var has_defaults_vvvvwdw = []; + has_defaults_vvvvwdw.push(temp_vvvvwdw); } - else if (!isSet(has_defaults_vvvvwda)) + else if (!isSet(has_defaults_vvvvwdw)) { - var has_defaults_vvvvwda = []; + var has_defaults_vvvvwdw = []; } - var has_defaults = has_defaults_vvvvwda.some(has_defaults_vvvvwda_SomeFunc); + var has_defaults = has_defaults_vvvvwdw.some(has_defaults_vvvvwdw_SomeFunc); // set this function logic @@ -593,77 +593,77 @@ function vvvvwda(store_vvvvwda,datatype_vvvvwda,has_defaults_vvvvwda) } } -// the vvvvwda Some function -function store_vvvvwda_SomeFunc(store_vvvvwda) +// the vvvvwdw Some function +function store_vvvvwdw_SomeFunc(store_vvvvwdw) { // set the function logic - if (store_vvvvwda == 4) + if (store_vvvvwdw == 4) { return true; } return false; } -// the vvvvwda Some function -function datatype_vvvvwda_SomeFunc(datatype_vvvvwda) +// the vvvvwdw Some function +function datatype_vvvvwdw_SomeFunc(datatype_vvvvwdw) { // set the function logic - if (datatype_vvvvwda == 'CHAR' || datatype_vvvvwda == 'VARCHAR' || datatype_vvvvwda == 'TEXT' || datatype_vvvvwda == 'MEDIUMTEXT' || datatype_vvvvwda == 'LONGTEXT' || datatype_vvvvwda == 'BLOB' || datatype_vvvvwda == 'TINYBLOB' || datatype_vvvvwda == 'MEDIUMBLOB' || datatype_vvvvwda == 'LONGBLOB') + if (datatype_vvvvwdw == 'CHAR' || datatype_vvvvwdw == 'VARCHAR' || datatype_vvvvwdw == 'TEXT' || datatype_vvvvwdw == 'MEDIUMTEXT' || datatype_vvvvwdw == 'LONGTEXT' || datatype_vvvvwdw == 'BLOB' || datatype_vvvvwdw == 'TINYBLOB' || datatype_vvvvwdw == 'MEDIUMBLOB' || datatype_vvvvwdw == 'LONGBLOB') { return true; } return false; } -// the vvvvwda Some function -function has_defaults_vvvvwda_SomeFunc(has_defaults_vvvvwda) +// the vvvvwdw Some function +function has_defaults_vvvvwdw_SomeFunc(has_defaults_vvvvwdw) { // set the function logic - if (has_defaults_vvvvwda == 1) + if (has_defaults_vvvvwdw == 1) { return true; } return false; } -// the vvvvwdb function -function vvvvwdb(datatype_vvvvwdb,store_vvvvwdb,has_defaults_vvvvwdb) +// the vvvvwdx function +function vvvvwdx(datatype_vvvvwdx,store_vvvvwdx,has_defaults_vvvvwdx) { - if (isSet(datatype_vvvvwdb) && datatype_vvvvwdb.constructor !== Array) + if (isSet(datatype_vvvvwdx) && datatype_vvvvwdx.constructor !== Array) { - var temp_vvvvwdb = datatype_vvvvwdb; - var datatype_vvvvwdb = []; - datatype_vvvvwdb.push(temp_vvvvwdb); + var temp_vvvvwdx = datatype_vvvvwdx; + var datatype_vvvvwdx = []; + datatype_vvvvwdx.push(temp_vvvvwdx); } - else if (!isSet(datatype_vvvvwdb)) + else if (!isSet(datatype_vvvvwdx)) { - var datatype_vvvvwdb = []; + var datatype_vvvvwdx = []; } - var datatype = datatype_vvvvwdb.some(datatype_vvvvwdb_SomeFunc); + var datatype = datatype_vvvvwdx.some(datatype_vvvvwdx_SomeFunc); - if (isSet(store_vvvvwdb) && store_vvvvwdb.constructor !== Array) + if (isSet(store_vvvvwdx) && store_vvvvwdx.constructor !== Array) { - var temp_vvvvwdb = store_vvvvwdb; - var store_vvvvwdb = []; - store_vvvvwdb.push(temp_vvvvwdb); + var temp_vvvvwdx = store_vvvvwdx; + var store_vvvvwdx = []; + store_vvvvwdx.push(temp_vvvvwdx); } - else if (!isSet(store_vvvvwdb)) + else if (!isSet(store_vvvvwdx)) { - var store_vvvvwdb = []; + var store_vvvvwdx = []; } - var store = store_vvvvwdb.some(store_vvvvwdb_SomeFunc); + var store = store_vvvvwdx.some(store_vvvvwdx_SomeFunc); - if (isSet(has_defaults_vvvvwdb) && has_defaults_vvvvwdb.constructor !== Array) + if (isSet(has_defaults_vvvvwdx) && has_defaults_vvvvwdx.constructor !== Array) { - var temp_vvvvwdb = has_defaults_vvvvwdb; - var has_defaults_vvvvwdb = []; - has_defaults_vvvvwdb.push(temp_vvvvwdb); + var temp_vvvvwdx = has_defaults_vvvvwdx; + var has_defaults_vvvvwdx = []; + has_defaults_vvvvwdx.push(temp_vvvvwdx); } - else if (!isSet(has_defaults_vvvvwdb)) + else if (!isSet(has_defaults_vvvvwdx)) { - var has_defaults_vvvvwdb = []; + var has_defaults_vvvvwdx = []; } - var has_defaults = has_defaults_vvvvwdb.some(has_defaults_vvvvwdb_SomeFunc); + var has_defaults = has_defaults_vvvvwdx.some(has_defaults_vvvvwdx_SomeFunc); // set this function logic @@ -677,77 +677,77 @@ function vvvvwdb(datatype_vvvvwdb,store_vvvvwdb,has_defaults_vvvvwdb) } } -// the vvvvwdb Some function -function datatype_vvvvwdb_SomeFunc(datatype_vvvvwdb) +// the vvvvwdx Some function +function datatype_vvvvwdx_SomeFunc(datatype_vvvvwdx) { // set the function logic - if (datatype_vvvvwdb == 'CHAR' || datatype_vvvvwdb == 'VARCHAR' || datatype_vvvvwdb == 'TEXT' || datatype_vvvvwdb == 'MEDIUMTEXT' || datatype_vvvvwdb == 'LONGTEXT' || datatype_vvvvwdb == 'BLOB' || datatype_vvvvwdb == 'TINYBLOB' || datatype_vvvvwdb == 'MEDIUMBLOB' || datatype_vvvvwdb == 'LONGBLOB') + if (datatype_vvvvwdx == 'CHAR' || datatype_vvvvwdx == 'VARCHAR' || datatype_vvvvwdx == 'TEXT' || datatype_vvvvwdx == 'MEDIUMTEXT' || datatype_vvvvwdx == 'LONGTEXT' || datatype_vvvvwdx == 'BLOB' || datatype_vvvvwdx == 'TINYBLOB' || datatype_vvvvwdx == 'MEDIUMBLOB' || datatype_vvvvwdx == 'LONGBLOB') { return true; } return false; } -// the vvvvwdb Some function -function store_vvvvwdb_SomeFunc(store_vvvvwdb) +// the vvvvwdx Some function +function store_vvvvwdx_SomeFunc(store_vvvvwdx) { // set the function logic - if (store_vvvvwdb == 4) + if (store_vvvvwdx == 4) { return true; } return false; } -// the vvvvwdb Some function -function has_defaults_vvvvwdb_SomeFunc(has_defaults_vvvvwdb) +// the vvvvwdx Some function +function has_defaults_vvvvwdx_SomeFunc(has_defaults_vvvvwdx) { // set the function logic - if (has_defaults_vvvvwdb == 1) + if (has_defaults_vvvvwdx == 1) { return true; } return false; } -// the vvvvwdc function -function vvvvwdc(has_defaults_vvvvwdc,store_vvvvwdc,datatype_vvvvwdc) +// the vvvvwdy function +function vvvvwdy(has_defaults_vvvvwdy,store_vvvvwdy,datatype_vvvvwdy) { - if (isSet(has_defaults_vvvvwdc) && has_defaults_vvvvwdc.constructor !== Array) + if (isSet(has_defaults_vvvvwdy) && has_defaults_vvvvwdy.constructor !== Array) { - var temp_vvvvwdc = has_defaults_vvvvwdc; - var has_defaults_vvvvwdc = []; - has_defaults_vvvvwdc.push(temp_vvvvwdc); + var temp_vvvvwdy = has_defaults_vvvvwdy; + var has_defaults_vvvvwdy = []; + has_defaults_vvvvwdy.push(temp_vvvvwdy); } - else if (!isSet(has_defaults_vvvvwdc)) + else if (!isSet(has_defaults_vvvvwdy)) { - var has_defaults_vvvvwdc = []; + var has_defaults_vvvvwdy = []; } - var has_defaults = has_defaults_vvvvwdc.some(has_defaults_vvvvwdc_SomeFunc); + var has_defaults = has_defaults_vvvvwdy.some(has_defaults_vvvvwdy_SomeFunc); - if (isSet(store_vvvvwdc) && store_vvvvwdc.constructor !== Array) + if (isSet(store_vvvvwdy) && store_vvvvwdy.constructor !== Array) { - var temp_vvvvwdc = store_vvvvwdc; - var store_vvvvwdc = []; - store_vvvvwdc.push(temp_vvvvwdc); + var temp_vvvvwdy = store_vvvvwdy; + var store_vvvvwdy = []; + store_vvvvwdy.push(temp_vvvvwdy); } - else if (!isSet(store_vvvvwdc)) + else if (!isSet(store_vvvvwdy)) { - var store_vvvvwdc = []; + var store_vvvvwdy = []; } - var store = store_vvvvwdc.some(store_vvvvwdc_SomeFunc); + var store = store_vvvvwdy.some(store_vvvvwdy_SomeFunc); - if (isSet(datatype_vvvvwdc) && datatype_vvvvwdc.constructor !== Array) + if (isSet(datatype_vvvvwdy) && datatype_vvvvwdy.constructor !== Array) { - var temp_vvvvwdc = datatype_vvvvwdc; - var datatype_vvvvwdc = []; - datatype_vvvvwdc.push(temp_vvvvwdc); + var temp_vvvvwdy = datatype_vvvvwdy; + var datatype_vvvvwdy = []; + datatype_vvvvwdy.push(temp_vvvvwdy); } - else if (!isSet(datatype_vvvvwdc)) + else if (!isSet(datatype_vvvvwdy)) { - var datatype_vvvvwdc = []; + var datatype_vvvvwdy = []; } - var datatype = datatype_vvvvwdc.some(datatype_vvvvwdc_SomeFunc); + var datatype = datatype_vvvvwdy.some(datatype_vvvvwdy_SomeFunc); // set this function logic @@ -761,87 +761,87 @@ function vvvvwdc(has_defaults_vvvvwdc,store_vvvvwdc,datatype_vvvvwdc) } } -// the vvvvwdc Some function -function has_defaults_vvvvwdc_SomeFunc(has_defaults_vvvvwdc) +// the vvvvwdy Some function +function has_defaults_vvvvwdy_SomeFunc(has_defaults_vvvvwdy) { // set the function logic - if (has_defaults_vvvvwdc == 1) + if (has_defaults_vvvvwdy == 1) { return true; } return false; } -// the vvvvwdc Some function -function store_vvvvwdc_SomeFunc(store_vvvvwdc) +// the vvvvwdy Some function +function store_vvvvwdy_SomeFunc(store_vvvvwdy) { // set the function logic - if (store_vvvvwdc == 4) + if (store_vvvvwdy == 4) { return true; } return false; } -// the vvvvwdc Some function -function datatype_vvvvwdc_SomeFunc(datatype_vvvvwdc) +// the vvvvwdy Some function +function datatype_vvvvwdy_SomeFunc(datatype_vvvvwdy) { // set the function logic - if (datatype_vvvvwdc == 'CHAR' || datatype_vvvvwdc == 'VARCHAR' || datatype_vvvvwdc == 'TEXT' || datatype_vvvvwdc == 'MEDIUMTEXT' || datatype_vvvvwdc == 'LONGTEXT' || datatype_vvvvwdc == 'BLOB' || datatype_vvvvwdc == 'TINYBLOB' || datatype_vvvvwdc == 'MEDIUMBLOB' || datatype_vvvvwdc == 'LONGBLOB') + if (datatype_vvvvwdy == 'CHAR' || datatype_vvvvwdy == 'VARCHAR' || datatype_vvvvwdy == 'TEXT' || datatype_vvvvwdy == 'MEDIUMTEXT' || datatype_vvvvwdy == 'LONGTEXT' || datatype_vvvvwdy == 'BLOB' || datatype_vvvvwdy == 'TINYBLOB' || datatype_vvvvwdy == 'MEDIUMBLOB' || datatype_vvvvwdy == 'LONGBLOB') { return true; } return false; } -// the vvvvwdd function -function vvvvwdd(has_defaults_vvvvwdd) +// the vvvvwdz function +function vvvvwdz(has_defaults_vvvvwdz) { // set the function logic - if (has_defaults_vvvvwdd == 1) + if (has_defaults_vvvvwdz == 1) { jQuery('#jform_datatype').closest('.control-group').show(); // add required attribute to datatype field - if (jform_vvvvwddvyg_required) + if (jform_vvvvwdzvyk_required) { updateFieldRequired('datatype',0); jQuery('#jform_datatype').prop('required','required'); jQuery('#jform_datatype').attr('aria-required',true); jQuery('#jform_datatype').addClass('required'); - jform_vvvvwddvyg_required = false; + jform_vvvvwdzvyk_required = false; } jQuery('#jform_null_switch').closest('.control-group').show(); // add required attribute to null_switch field - if (jform_vvvvwddvyh_required) + if (jform_vvvvwdzvyl_required) { updateFieldRequired('null_switch',0); jQuery('#jform_null_switch').prop('required','required'); jQuery('#jform_null_switch').attr('aria-required',true); jQuery('#jform_null_switch').addClass('required'); - jform_vvvvwddvyh_required = false; + jform_vvvvwdzvyl_required = false; } } else { jQuery('#jform_datatype').closest('.control-group').hide(); // remove required attribute from datatype field - if (!jform_vvvvwddvyg_required) + if (!jform_vvvvwdzvyk_required) { updateFieldRequired('datatype',1); jQuery('#jform_datatype').removeAttr('required'); jQuery('#jform_datatype').removeAttr('aria-required'); jQuery('#jform_datatype').removeClass('required'); - jform_vvvvwddvyg_required = true; + jform_vvvvwdzvyk_required = true; } jQuery('#jform_null_switch').closest('.control-group').hide(); // remove required attribute from null_switch field - if (!jform_vvvvwddvyh_required) + if (!jform_vvvvwdzvyl_required) { updateFieldRequired('null_switch',1); jQuery('#jform_null_switch').removeAttr('required'); jQuery('#jform_null_switch').removeAttr('aria-required'); jQuery('#jform_null_switch').removeClass('required'); - jform_vvvvwddvyh_required = true; + jform_vvvvwdzvyl_required = true; } } } diff --git a/admin/models/forms/help_document.js b/admin/models/forms/help_document.js index d452f9156..6931c5877 100644 --- a/admin/models/forms/help_document.js +++ b/admin/models/forms/help_document.js @@ -9,112 +9,112 @@ */ // Some Global Values -jform_vvvvwdovyt_required = false; -jform_vvvvwdpvyu_required = false; -jform_vvvvwdqvyv_required = false; -jform_vvvvwdrvyw_required = false; -jform_vvvvwdtvyx_required = false; +jform_vvvvwekvyx_required = false; +jform_vvvvwelvyy_required = false; +jform_vvvvwemvyz_required = false; +jform_vvvvwenvza_required = false; +jform_vvvvwepvzb_required = false; // Initial Script jQuery(document).ready(function() { - var location_vvvvwdo = jQuery("#jform_location input[type='radio']:checked").val(); - vvvvwdo(location_vvvvwdo); + var location_vvvvwek = jQuery("#jform_location input[type='radio']:checked").val(); + vvvvwek(location_vvvvwek); - var location_vvvvwdp = jQuery("#jform_location input[type='radio']:checked").val(); - vvvvwdp(location_vvvvwdp); + var location_vvvvwel = jQuery("#jform_location input[type='radio']:checked").val(); + vvvvwel(location_vvvvwel); - var type_vvvvwdq = jQuery("#jform_type").val(); - vvvvwdq(type_vvvvwdq); + var type_vvvvwem = jQuery("#jform_type").val(); + vvvvwem(type_vvvvwem); - var type_vvvvwdr = jQuery("#jform_type").val(); - vvvvwdr(type_vvvvwdr); + var type_vvvvwen = jQuery("#jform_type").val(); + vvvvwen(type_vvvvwen); - var type_vvvvwds = jQuery("#jform_type").val(); - vvvvwds(type_vvvvwds); + var type_vvvvweo = jQuery("#jform_type").val(); + vvvvweo(type_vvvvweo); - var target_vvvvwdt = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwdt(target_vvvvwdt); + var target_vvvvwep = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwep(target_vvvvwep); }); -// the vvvvwdo function -function vvvvwdo(location_vvvvwdo) +// the vvvvwek function +function vvvvwek(location_vvvvwek) { // set the function logic - if (location_vvvvwdo == 1) + if (location_vvvvwek == 1) { jQuery('#jform_admin_view').closest('.control-group').show(); // add required attribute to admin_view field - if (jform_vvvvwdovyt_required) + if (jform_vvvvwekvyx_required) { updateFieldRequired('admin_view',0); jQuery('#jform_admin_view').prop('required','required'); jQuery('#jform_admin_view').attr('aria-required',true); jQuery('#jform_admin_view').addClass('required'); - jform_vvvvwdovyt_required = false; + jform_vvvvwekvyx_required = false; } } else { jQuery('#jform_admin_view').closest('.control-group').hide(); // remove required attribute from admin_view field - if (!jform_vvvvwdovyt_required) + if (!jform_vvvvwekvyx_required) { updateFieldRequired('admin_view',1); jQuery('#jform_admin_view').removeAttr('required'); jQuery('#jform_admin_view').removeAttr('aria-required'); jQuery('#jform_admin_view').removeClass('required'); - jform_vvvvwdovyt_required = true; + jform_vvvvwekvyx_required = true; } } } -// the vvvvwdp function -function vvvvwdp(location_vvvvwdp) +// the vvvvwel function +function vvvvwel(location_vvvvwel) { // set the function logic - if (location_vvvvwdp == 2) + if (location_vvvvwel == 2) { jQuery('#jform_site_view').closest('.control-group').show(); // add required attribute to site_view field - if (jform_vvvvwdpvyu_required) + if (jform_vvvvwelvyy_required) { updateFieldRequired('site_view',0); jQuery('#jform_site_view').prop('required','required'); jQuery('#jform_site_view').attr('aria-required',true); jQuery('#jform_site_view').addClass('required'); - jform_vvvvwdpvyu_required = false; + jform_vvvvwelvyy_required = false; } } else { jQuery('#jform_site_view').closest('.control-group').hide(); // remove required attribute from site_view field - if (!jform_vvvvwdpvyu_required) + if (!jform_vvvvwelvyy_required) { updateFieldRequired('site_view',1); jQuery('#jform_site_view').removeAttr('required'); jQuery('#jform_site_view').removeAttr('aria-required'); jQuery('#jform_site_view').removeClass('required'); - jform_vvvvwdpvyu_required = true; + jform_vvvvwelvyy_required = true; } } } -// the vvvvwdq function -function vvvvwdq(type_vvvvwdq) +// the vvvvwem function +function vvvvwem(type_vvvvwem) { - if (isSet(type_vvvvwdq) && type_vvvvwdq.constructor !== Array) + if (isSet(type_vvvvwem) && type_vvvvwem.constructor !== Array) { - var temp_vvvvwdq = type_vvvvwdq; - var type_vvvvwdq = []; - type_vvvvwdq.push(temp_vvvvwdq); + var temp_vvvvwem = type_vvvvwem; + var type_vvvvwem = []; + type_vvvvwem.push(temp_vvvvwem); } - else if (!isSet(type_vvvvwdq)) + else if (!isSet(type_vvvvwem)) { - var type_vvvvwdq = []; + var type_vvvvwem = []; } - var type = type_vvvvwdq.some(type_vvvvwdq_SomeFunc); + var type = type_vvvvwem.some(type_vvvvwem_SomeFunc); // set this function logic @@ -122,55 +122,55 @@ function vvvvwdq(type_vvvvwdq) { jQuery('#jform_url').closest('.control-group').show(); // add required attribute to url field - if (jform_vvvvwdqvyv_required) + if (jform_vvvvwemvyz_required) { updateFieldRequired('url',0); jQuery('#jform_url').prop('required','required'); jQuery('#jform_url').attr('aria-required',true); jQuery('#jform_url').addClass('required'); - jform_vvvvwdqvyv_required = false; + jform_vvvvwemvyz_required = false; } } else { jQuery('#jform_url').closest('.control-group').hide(); // remove required attribute from url field - if (!jform_vvvvwdqvyv_required) + if (!jform_vvvvwemvyz_required) { updateFieldRequired('url',1); jQuery('#jform_url').removeAttr('required'); jQuery('#jform_url').removeAttr('aria-required'); jQuery('#jform_url').removeClass('required'); - jform_vvvvwdqvyv_required = true; + jform_vvvvwemvyz_required = true; } } } -// the vvvvwdq Some function -function type_vvvvwdq_SomeFunc(type_vvvvwdq) +// the vvvvwem Some function +function type_vvvvwem_SomeFunc(type_vvvvwem) { // set the function logic - if (type_vvvvwdq == 3) + if (type_vvvvwem == 3) { return true; } return false; } -// the vvvvwdr function -function vvvvwdr(type_vvvvwdr) +// the vvvvwen function +function vvvvwen(type_vvvvwen) { - if (isSet(type_vvvvwdr) && type_vvvvwdr.constructor !== Array) + if (isSet(type_vvvvwen) && type_vvvvwen.constructor !== Array) { - var temp_vvvvwdr = type_vvvvwdr; - var type_vvvvwdr = []; - type_vvvvwdr.push(temp_vvvvwdr); + var temp_vvvvwen = type_vvvvwen; + var type_vvvvwen = []; + type_vvvvwen.push(temp_vvvvwen); } - else if (!isSet(type_vvvvwdr)) + else if (!isSet(type_vvvvwen)) { - var type_vvvvwdr = []; + var type_vvvvwen = []; } - var type = type_vvvvwdr.some(type_vvvvwdr_SomeFunc); + var type = type_vvvvwen.some(type_vvvvwen_SomeFunc); // set this function logic @@ -178,55 +178,55 @@ function vvvvwdr(type_vvvvwdr) { jQuery('#jform_article').closest('.control-group').show(); // add required attribute to article field - if (jform_vvvvwdrvyw_required) + if (jform_vvvvwenvza_required) { updateFieldRequired('article',0); jQuery('#jform_article').prop('required','required'); jQuery('#jform_article').attr('aria-required',true); jQuery('#jform_article').addClass('required'); - jform_vvvvwdrvyw_required = false; + jform_vvvvwenvza_required = false; } } else { jQuery('#jform_article').closest('.control-group').hide(); // remove required attribute from article field - if (!jform_vvvvwdrvyw_required) + if (!jform_vvvvwenvza_required) { updateFieldRequired('article',1); jQuery('#jform_article').removeAttr('required'); jQuery('#jform_article').removeAttr('aria-required'); jQuery('#jform_article').removeClass('required'); - jform_vvvvwdrvyw_required = true; + jform_vvvvwenvza_required = true; } } } -// the vvvvwdr Some function -function type_vvvvwdr_SomeFunc(type_vvvvwdr) +// the vvvvwen Some function +function type_vvvvwen_SomeFunc(type_vvvvwen) { // set the function logic - if (type_vvvvwdr == 1) + if (type_vvvvwen == 1) { return true; } return false; } -// the vvvvwds function -function vvvvwds(type_vvvvwds) +// the vvvvweo function +function vvvvweo(type_vvvvweo) { - if (isSet(type_vvvvwds) && type_vvvvwds.constructor !== Array) + if (isSet(type_vvvvweo) && type_vvvvweo.constructor !== Array) { - var temp_vvvvwds = type_vvvvwds; - var type_vvvvwds = []; - type_vvvvwds.push(temp_vvvvwds); + var temp_vvvvweo = type_vvvvweo; + var type_vvvvweo = []; + type_vvvvweo.push(temp_vvvvweo); } - else if (!isSet(type_vvvvwds)) + else if (!isSet(type_vvvvweo)) { - var type_vvvvwds = []; + var type_vvvvweo = []; } - var type = type_vvvvwds.some(type_vvvvwds_SomeFunc); + var type = type_vvvvweo.some(type_vvvvweo_SomeFunc); // set this function logic @@ -240,45 +240,45 @@ function vvvvwds(type_vvvvwds) } } -// the vvvvwds Some function -function type_vvvvwds_SomeFunc(type_vvvvwds) +// the vvvvweo Some function +function type_vvvvweo_SomeFunc(type_vvvvweo) { // set the function logic - if (type_vvvvwds == 2) + if (type_vvvvweo == 2) { return true; } return false; } -// the vvvvwdt function -function vvvvwdt(target_vvvvwdt) +// the vvvvwep function +function vvvvwep(target_vvvvwep) { // set the function logic - if (target_vvvvwdt == 1) + if (target_vvvvwep == 1) { jQuery('#jform_groups').closest('.control-group').show(); // add required attribute to groups field - if (jform_vvvvwdtvyx_required) + if (jform_vvvvwepvzb_required) { updateFieldRequired('groups',0); jQuery('#jform_groups').prop('required','required'); jQuery('#jform_groups').attr('aria-required',true); jQuery('#jform_groups').addClass('required'); - jform_vvvvwdtvyx_required = false; + jform_vvvvwepvzb_required = false; } } else { jQuery('#jform_groups').closest('.control-group').hide(); // remove required attribute from groups field - if (!jform_vvvvwdtvyx_required) + if (!jform_vvvvwepvzb_required) { updateFieldRequired('groups',1); jQuery('#jform_groups').removeAttr('required'); jQuery('#jform_groups').removeAttr('aria-required'); jQuery('#jform_groups').removeClass('required'); - jform_vvvvwdtvyx_required = true; + jform_vvvvwepvzb_required = true; } } } diff --git a/admin/models/forms/joomla_module.js b/admin/models/forms/joomla_module.js new file mode 100644 index 000000000..43d0655be --- /dev/null +++ b/admin/models/forms/joomla_module.js @@ -0,0 +1,652 @@ +/** + * @package Joomla.Component.Builder + * + * @created 30th April, 2015 + * @author Llewellyn van der Merwe + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// Some Global Values +jform_vvvvvxbvwd_required = false; +jform_vvvvvxrvwe_required = false; +jform_vvvvvxsvwf_required = false; +jform_vvvvvxtvwg_required = false; + +// Initial Script +jQuery(document).ready(function() +{ + var add_custom_abstract_class_helper_header_vvvvvxb = jQuery("#jform_add_custom_abstract_class_helper_header input[type='radio']:checked").val(); + var add_abstract_class_helper_vvvvvxb = jQuery("#jform_add_abstract_class_helper input[type='radio']:checked").val(); + vvvvvxb(add_custom_abstract_class_helper_header_vvvvvxb,add_abstract_class_helper_vvvvvxb); + + var add_abstract_class_helper_vvvvvxd = jQuery("#jform_add_abstract_class_helper input[type='radio']:checked").val(); + vvvvvxd(add_abstract_class_helper_vvvvvxd); + + var add_php_script_construct_vvvvvxe = jQuery("#jform_add_php_script_construct input[type='radio']:checked").val(); + vvvvvxe(add_php_script_construct_vvvvvxe); + + var add_php_preflight_install_vvvvvxf = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val(); + vvvvvxf(add_php_preflight_install_vvvvvxf); + + var add_php_preflight_update_vvvvvxg = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val(); + vvvvvxg(add_php_preflight_update_vvvvvxg); + + var add_php_preflight_uninstall_vvvvvxh = jQuery("#jform_add_php_preflight_uninstall input[type='radio']:checked").val(); + vvvvvxh(add_php_preflight_uninstall_vvvvvxh); + + var add_php_postflight_install_vvvvvxi = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val(); + vvvvvxi(add_php_postflight_install_vvvvvxi); + + var add_php_postflight_update_vvvvvxj = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val(); + vvvvvxj(add_php_postflight_update_vvvvvxj); + + var add_php_method_uninstall_vvvvvxk = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val(); + vvvvvxk(add_php_method_uninstall_vvvvvxk); + + var update_server_target_vvvvvxl = jQuery("#jform_update_server_target input[type='radio']:checked").val(); + var add_update_server_vvvvvxl = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvxl(update_server_target_vvvvvxl,add_update_server_vvvvvxl); + + var add_update_server_vvvvvxm = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + var update_server_target_vvvvvxm = jQuery("#jform_update_server_target input[type='radio']:checked").val(); + vvvvvxm(add_update_server_vvvvvxm,update_server_target_vvvvvxm); + + var update_server_target_vvvvvxn = jQuery("#jform_update_server_target input[type='radio']:checked").val(); + var add_update_server_vvvvvxn = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvxn(update_server_target_vvvvvxn,add_update_server_vvvvvxn); + + var update_server_target_vvvvvxp = jQuery("#jform_update_server_target input[type='radio']:checked").val(); + var add_update_server_vvvvvxp = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvxp(update_server_target_vvvvvxp,add_update_server_vvvvvxp); + + var add_update_server_vvvvvxr = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvxr(add_update_server_vvvvvxr); + + var add_sql_vvvvvxs = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvxs(add_sql_vvvvvxs); + + var add_sql_uninstall_vvvvvxt = jQuery("#jform_add_sql_uninstall input[type='radio']:checked").val(); + vvvvvxt(add_sql_uninstall_vvvvvxt); + + var add_update_server_vvvvvxu = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvxu(add_update_server_vvvvvxu); + + var add_sales_server_vvvvvxv = jQuery("#jform_add_sales_server input[type='radio']:checked").val(); + vvvvvxv(add_sales_server_vvvvvxv); + + var addreadme_vvvvvxw = jQuery("#jform_addreadme input[type='radio']:checked").val(); + vvvvvxw(addreadme_vvvvvxw); +}); + +// the vvvvvxb function +function vvvvvxb(add_custom_abstract_class_helper_header_vvvvvxb,add_abstract_class_helper_vvvvvxb) +{ + // set the function logic + if (add_custom_abstract_class_helper_header_vvvvvxb == 1 && add_abstract_class_helper_vvvvvxb == 1) + { + jQuery('#jform_abstract_class_helper_header-lbl').closest('.control-group').show(); + // add required attribute to abstract_class_helper_header field + if (jform_vvvvvxbvwd_required) + { + updateFieldRequired('abstract_class_helper_header',0); + jQuery('#jform_abstract_class_helper_header').prop('required','required'); + jQuery('#jform_abstract_class_helper_header').attr('aria-required',true); + jQuery('#jform_abstract_class_helper_header').addClass('required'); + jform_vvvvvxbvwd_required = false; + } + } + else + { + jQuery('#jform_abstract_class_helper_header-lbl').closest('.control-group').hide(); + // remove required attribute from abstract_class_helper_header field + if (!jform_vvvvvxbvwd_required) + { + updateFieldRequired('abstract_class_helper_header',1); + jQuery('#jform_abstract_class_helper_header').removeAttr('required'); + jQuery('#jform_abstract_class_helper_header').removeAttr('aria-required'); + jQuery('#jform_abstract_class_helper_header').removeClass('required'); + jform_vvvvvxbvwd_required = true; + } + } +} + +// the vvvvvxd function +function vvvvvxd(add_abstract_class_helper_vvvvvxd) +{ + // set the function logic + if (add_abstract_class_helper_vvvvvxd == 1) + { + jQuery('#jform_abstract_class_helper_code-lbl').closest('.control-group').show(); + jQuery('#jform_add_custom_abstract_class_helper_header').closest('.control-group').show(); + } + else + { + jQuery('#jform_abstract_class_helper_code-lbl').closest('.control-group').hide(); + jQuery('#jform_add_custom_abstract_class_helper_header').closest('.control-group').hide(); + } +} + +// the vvvvvxe function +function vvvvvxe(add_php_script_construct_vvvvvxe) +{ + // set the function logic + if (add_php_script_construct_vvvvvxe == 1) + { + jQuery('#jform_php_script_construct-lbl').closest('.control-group').show(); + } + else + { + jQuery('#jform_php_script_construct-lbl').closest('.control-group').hide(); + } +} + +// the vvvvvxf function +function vvvvvxf(add_php_preflight_install_vvvvvxf) +{ + // set the function logic + if (add_php_preflight_install_vvvvvxf == 1) + { + jQuery('#jform_php_preflight_install-lbl').closest('.control-group').show(); + } + else + { + jQuery('#jform_php_preflight_install-lbl').closest('.control-group').hide(); + } +} + +// the vvvvvxg function +function vvvvvxg(add_php_preflight_update_vvvvvxg) +{ + // set the function logic + if (add_php_preflight_update_vvvvvxg == 1) + { + jQuery('#jform_php_preflight_update-lbl').closest('.control-group').show(); + } + else + { + jQuery('#jform_php_preflight_update-lbl').closest('.control-group').hide(); + } +} + +// the vvvvvxh function +function vvvvvxh(add_php_preflight_uninstall_vvvvvxh) +{ + // set the function logic + if (add_php_preflight_uninstall_vvvvvxh == 1) + { + jQuery('#jform_php_preflight_uninstall-lbl').closest('.control-group').show(); + } + else + { + jQuery('#jform_php_preflight_uninstall-lbl').closest('.control-group').hide(); + } +} + +// the vvvvvxi function +function vvvvvxi(add_php_postflight_install_vvvvvxi) +{ + // set the function logic + if (add_php_postflight_install_vvvvvxi == 1) + { + jQuery('#jform_php_postflight_install-lbl').closest('.control-group').show(); + } + else + { + jQuery('#jform_php_postflight_install-lbl').closest('.control-group').hide(); + } +} + +// the vvvvvxj function +function vvvvvxj(add_php_postflight_update_vvvvvxj) +{ + // set the function logic + if (add_php_postflight_update_vvvvvxj == 1) + { + jQuery('#jform_php_postflight_update-lbl').closest('.control-group').show(); + } + else + { + jQuery('#jform_php_postflight_update-lbl').closest('.control-group').hide(); + } +} + +// the vvvvvxk function +function vvvvvxk(add_php_method_uninstall_vvvvvxk) +{ + // set the function logic + if (add_php_method_uninstall_vvvvvxk == 1) + { + jQuery('#jform_php_method_uninstall-lbl').closest('.control-group').show(); + } + else + { + jQuery('#jform_php_method_uninstall-lbl').closest('.control-group').hide(); + } +} + +// the vvvvvxl function +function vvvvvxl(update_server_target_vvvvvxl,add_update_server_vvvvvxl) +{ + // set the function logic + if (update_server_target_vvvvvxl == 1 && add_update_server_vvvvvxl == 1) + { + jQuery('#jform_update_server').closest('.control-group').show(); + jQuery('.note_update_server_note_ftp').closest('.control-group').show(); + } + else + { + jQuery('#jform_update_server').closest('.control-group').hide(); + jQuery('.note_update_server_note_ftp').closest('.control-group').hide(); + } +} + +// the vvvvvxm function +function vvvvvxm(add_update_server_vvvvvxm,update_server_target_vvvvvxm) +{ + // set the function logic + if (add_update_server_vvvvvxm == 1 && update_server_target_vvvvvxm == 1) + { + jQuery('#jform_update_server').closest('.control-group').show(); + jQuery('.note_update_server_note_ftp').closest('.control-group').show(); + } + else + { + jQuery('#jform_update_server').closest('.control-group').hide(); + jQuery('.note_update_server_note_ftp').closest('.control-group').hide(); + } +} + +// the vvvvvxn function +function vvvvvxn(update_server_target_vvvvvxn,add_update_server_vvvvvxn) +{ + // set the function logic + if (update_server_target_vvvvvxn == 2 && add_update_server_vvvvvxn == 1) + { + jQuery('.note_update_server_note_zip').closest('.control-group').show(); + } + else + { + jQuery('.note_update_server_note_zip').closest('.control-group').hide(); + } +} + +// the vvvvvxp function +function vvvvvxp(update_server_target_vvvvvxp,add_update_server_vvvvvxp) +{ + // set the function logic + if (update_server_target_vvvvvxp == 3 && add_update_server_vvvvvxp == 1) + { + jQuery('.note_update_server_note_other').closest('.control-group').show(); + } + else + { + jQuery('.note_update_server_note_other').closest('.control-group').hide(); + } +} + +// the vvvvvxr function +function vvvvvxr(add_update_server_vvvvvxr) +{ + // set the function logic + if (add_update_server_vvvvvxr == 1) + { + jQuery('#jform_update_server_target').closest('.control-group').show(); + // add required attribute to update_server_target field + if (jform_vvvvvxrvwe_required) + { + updateFieldRequired('update_server_target',0); + jQuery('#jform_update_server_target').prop('required','required'); + jQuery('#jform_update_server_target').attr('aria-required',true); + jQuery('#jform_update_server_target').addClass('required'); + jform_vvvvvxrvwe_required = false; + } + } + else + { + jQuery('#jform_update_server_target').closest('.control-group').hide(); + // remove required attribute from update_server_target field + if (!jform_vvvvvxrvwe_required) + { + updateFieldRequired('update_server_target',1); + jQuery('#jform_update_server_target').removeAttr('required'); + jQuery('#jform_update_server_target').removeAttr('aria-required'); + jQuery('#jform_update_server_target').removeClass('required'); + jform_vvvvvxrvwe_required = true; + } + } +} + +// the vvvvvxs function +function vvvvvxs(add_sql_vvvvvxs) +{ + // set the function logic + if (add_sql_vvvvvxs == 1) + { + jQuery('#jform_sql').closest('.control-group').show(); + // add required attribute to sql field + if (jform_vvvvvxsvwf_required) + { + updateFieldRequired('sql',0); + jQuery('#jform_sql').prop('required','required'); + jQuery('#jform_sql').attr('aria-required',true); + jQuery('#jform_sql').addClass('required'); + jform_vvvvvxsvwf_required = false; + } + } + else + { + jQuery('#jform_sql').closest('.control-group').hide(); + // remove required attribute from sql field + if (!jform_vvvvvxsvwf_required) + { + updateFieldRequired('sql',1); + jQuery('#jform_sql').removeAttr('required'); + jQuery('#jform_sql').removeAttr('aria-required'); + jQuery('#jform_sql').removeClass('required'); + jform_vvvvvxsvwf_required = true; + } + } +} + +// the vvvvvxt function +function vvvvvxt(add_sql_uninstall_vvvvvxt) +{ + // set the function logic + if (add_sql_uninstall_vvvvvxt == 1) + { + jQuery('#jform_sql_uninstall').closest('.control-group').show(); + // add required attribute to sql_uninstall field + if (jform_vvvvvxtvwg_required) + { + updateFieldRequired('sql_uninstall',0); + jQuery('#jform_sql_uninstall').prop('required','required'); + jQuery('#jform_sql_uninstall').attr('aria-required',true); + jQuery('#jform_sql_uninstall').addClass('required'); + jform_vvvvvxtvwg_required = false; + } + } + else + { + jQuery('#jform_sql_uninstall').closest('.control-group').hide(); + // remove required attribute from sql_uninstall field + if (!jform_vvvvvxtvwg_required) + { + updateFieldRequired('sql_uninstall',1); + jQuery('#jform_sql_uninstall').removeAttr('required'); + jQuery('#jform_sql_uninstall').removeAttr('aria-required'); + jQuery('#jform_sql_uninstall').removeClass('required'); + jform_vvvvvxtvwg_required = true; + } + } +} + +// the vvvvvxu function +function vvvvvxu(add_update_server_vvvvvxu) +{ + // set the function logic + if (add_update_server_vvvvvxu == 1) + { + jQuery('#jform_update_server_url').closest('.control-group').show(); + } + else + { + jQuery('#jform_update_server_url').closest('.control-group').hide(); + } +} + +// the vvvvvxv function +function vvvvvxv(add_sales_server_vvvvvxv) +{ + // set the function logic + if (add_sales_server_vvvvvxv == 1) + { + jQuery('#jform_sales_server').closest('.control-group').show(); + } + else + { + jQuery('#jform_sales_server').closest('.control-group').hide(); + } +} + +// the vvvvvxw function +function vvvvvxw(addreadme_vvvvvxw) +{ + // set the function logic + if (addreadme_vvvvvxw == 1) + { + jQuery('#jform_readme-lbl').closest('.control-group').show(); + } + else + { + jQuery('#jform_readme-lbl').closest('.control-group').hide(); + } +} + +// update required fields +function updateFieldRequired(name,status) +{ + var not_required = jQuery('#jform_not_required').val(); + + if(status == 1) + { + if (isSet(not_required) && not_required != 0) + { + not_required = not_required+','+name; + } + else + { + not_required = ','+name; + } + } + else + { + if (isSet(not_required) && not_required != 0) + { + not_required = not_required.replace(','+name,''); + } + } + + jQuery('#jform_not_required').val(not_required); +} + +// the isSet function +function isSet(val) +{ + if ((val != undefined) && (val != null) && 0 !== val.length){ + return true; + } + return false; +} + + +jQuery(document).ready(function() +{ + // get the linked details + getLinked(); + // check and load all the customcode edit buttons + setTimeout(getEditCustomCodeButtons, 300); +}); + +function getLinked_server(type){ + var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.getLinked&format=json&raw=true&vdm="+vastDevMod); + if(token.length > 0 && type > 0){ + var request = token+'=1&type='+type; + } + return jQuery.ajax({ + type: 'GET', + url: getUrl, + dataType: 'json', + data: request, + jsonp: false + }); +} + +function getLinked(){ + getLinked_server(1).done(function(result) { + if(result){ + jQuery('#display_linked_to').html(result); + } + }); +} + +function getEditCustomCodeButtons_server(id){ + var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.getEditCustomCodeButtons&format=json&raw=true&vdm="+vastDevMod); + if(token.length > 0 && id > 0){ + var request = token+'=1&id='+id+'&return_here='+return_here; + } + return jQuery.ajax({ + type: 'GET', + url: getUrl, + dataType: 'json', + data: request, + jsonp: false + }); +} + +function getEditCustomCodeButtons(){ + // get the id + id = jQuery("#jform_id").val(); + getEditCustomCodeButtons_server(id).done(function(result) { + if(isObject(result)){ + jQuery.each(result, function( field, buttons ) { + jQuery('
').insertBefore(".control-wrapper-"+ field); + jQuery.each(buttons, function( name, button ) { + jQuery(".control-customcode-buttons-"+field).append(button); + }); + }); + } + }) +} + +// check object is not empty +function isObject(obj) { + for(var prop in obj) { + if (Object.prototype.hasOwnProperty.call(obj, prop)) { + return true; + } + } + return false; +} + +function getSnippetDetails_server(snippetId){ + var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json"); + if(token.length > 0 && snippetId > 0){ + var request = token+'=1&id='+snippetId; + } + return jQuery.ajax({ + type: 'GET', + url: getUrl, + dataType: 'jsonp', + data: request, + jsonp: 'callback' + }); +} + +function getSnippetDetails(id){ + getSnippetDetails_server(id).done(function(result) { + if(result.snippet){ + var description = ''; + if (result.description.length > 0) { + description = '

'+result.description+'

'; + } + var library = ''; + if (result.library.length > 0) { + library = ' ('+result.library+')'; + } + var code = '
'+result.name+' ('+result.type+') see more details'+library+'
'+result.heading+'
'; + jQuery('#snippet-code').remove(); + jQuery('.snippet-code').append(code); + // make sure the code block is active + jQuery("#snippet").focus(function() { + var jQuerythis = jQuery(this); + jQuerythis.select(); + + // Work around Chrome's little problem + jQuerythis.mouseup(function() { + // Prevent further mouseup intervention + jQuerythis.unbind("mouseup"); + return false; + }); + }); + } + if(result.usage){ + var usage = '

'+result.usage+'

'; + jQuery('#snippet-usage').remove(); + jQuery('.snippet-usage').append(usage); + } + }) +} + +// set snippets that are on the page +var snippetIds = []; +var snippets = {}; +var snippet = 0; +jQuery(document).ready(function($) +{ + jQuery("#jform_snippet option").each(function() + { + var key = jQuery(this).val(); + var text = jQuery(this).text(); + snippets[key] = text; + snippetIds.push(key); + }); + snippet = jQuery("#jform_snippet").val(); + getSnippets(); +}); + +function getSnippets_server(libraries){ + var getUrl = "index.php?option=com_componentbuilder&task=ajax.getSnippets&raw=true&format=json"; + if(token.length > 0 && libraries.length > 0){ + var request = token+'=1&libraries='+JSON.stringify(libraries); + } + return jQuery.ajax({ + type: 'GET', + url: getUrl, + dataType: 'json', + data: request, + jsonp: false + }); +} +function getSnippets(){ + jQuery("#loading").show(); + // clear the selection + jQuery('#jform_snippet').find('option').remove().end(); + jQuery('#jform_snippet').trigger('liszt:updated'); + // get country value if set + var libraries = jQuery("#jform_libraries").val(); + if (libraries) { + getSnippets_server(libraries).done(function(result) { + setSnippets(result); + jQuery("#loading").hide(); + if (typeof snippetButton !== 'undefined') { + // ensure button is correct + var snippet = jQuery('#jform_snippet').val(); + snippetButton(snippet); + } + }); + } + else + { + // load all snippets in none is selected + setSnippets(snippetIds); + jQuery("#loading").hide(); + } +} +function setSnippets(array){ + if (array) { + jQuery('#jform_snippet').append(''); + jQuery.each( array, function( i, id ) { + if (id in snippets) { + jQuery('#jform_snippet').append(''); + } + if (id == snippet) { + jQuery('#jform_snippet').val(id); + } + }); + } else { + jQuery('#jform_snippet').append(''); + } + jQuery('#jform_snippet').trigger('liszt:updated'); +} diff --git a/admin/models/forms/joomla_module.xml b/admin/models/forms/joomla_module.xml new file mode 100644 index 000000000..bae2c9df6 --- /dev/null +++ b/admin/models/forms/joomla_module.xml @@ -0,0 +1,804 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + + +
+ \ No newline at end of file diff --git a/admin/models/forms/joomla_module_files_folders_urls.js b/admin/models/forms/joomla_module_files_folders_urls.js new file mode 100644 index 000000000..406de38ba --- /dev/null +++ b/admin/models/forms/joomla_module_files_folders_urls.js @@ -0,0 +1,11 @@ +/** + * @package Joomla.Component.Builder + * + * @created 30th April, 2015 + * @author Llewellyn van der Merwe + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + + diff --git a/admin/models/forms/joomla_module_files_folders_urls.xml b/admin/models/forms/joomla_module_files_folders_urls.xml new file mode 100644 index 000000000..afe426e47 --- /dev/null +++ b/admin/models/forms/joomla_module_files_folders_urls.xml @@ -0,0 +1,390 @@ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + + +
+ \ No newline at end of file diff --git a/admin/models/forms/joomla_module_updates.js b/admin/models/forms/joomla_module_updates.js new file mode 100644 index 000000000..406de38ba --- /dev/null +++ b/admin/models/forms/joomla_module_updates.js @@ -0,0 +1,11 @@ +/** + * @package Joomla.Component.Builder + * + * @created 30th April, 2015 + * @author Llewellyn van der Merwe + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + + diff --git a/admin/models/forms/joomla_module_updates.xml b/admin/models/forms/joomla_module_updates.xml new file mode 100644 index 000000000..27329bd60 --- /dev/null +++ b/admin/models/forms/joomla_module_updates.xml @@ -0,0 +1,181 @@ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + + +
+ \ No newline at end of file diff --git a/admin/models/forms/joomla_plugin.js b/admin/models/forms/joomla_plugin.js index 029daacab..5fe6cbff5 100644 --- a/admin/models/forms/joomla_plugin.js +++ b/admin/models/forms/joomla_plugin.js @@ -9,111 +9,111 @@ */ // Some Global Values -jform_vvvvvxevwd_required = false; -jform_vvvvvxtvwe_required = false; -jform_vvvvvxuvwf_required = false; -jform_vvvvvxvvwg_required = false; +jform_vvvvvyavwh_required = false; +jform_vvvvvypvwi_required = false; +jform_vvvvvyqvwj_required = false; +jform_vvvvvyrvwk_required = false; // Initial Script jQuery(document).ready(function() { - var class_extends_vvvvvxb = jQuery("#jform_class_extends").val(); - var joomla_plugin_group_vvvvvxb = jQuery("#jform_joomla_plugin_group").val(); - vvvvvxb(class_extends_vvvvvxb,joomla_plugin_group_vvvvvxb); + var class_extends_vvvvvxx = jQuery("#jform_class_extends").val(); + var joomla_plugin_group_vvvvvxx = jQuery("#jform_joomla_plugin_group").val(); + vvvvvxx(class_extends_vvvvvxx,joomla_plugin_group_vvvvvxx); - var joomla_plugin_group_vvvvvxc = jQuery("#jform_joomla_plugin_group").val(); - var class_extends_vvvvvxc = jQuery("#jform_class_extends").val(); - vvvvvxc(joomla_plugin_group_vvvvvxc,class_extends_vvvvvxc); + var joomla_plugin_group_vvvvvxy = jQuery("#jform_joomla_plugin_group").val(); + var class_extends_vvvvvxy = jQuery("#jform_class_extends").val(); + vvvvvxy(joomla_plugin_group_vvvvvxy,class_extends_vvvvvxy); - var class_extends_vvvvvxd = jQuery("#jform_class_extends").val(); - vvvvvxd(class_extends_vvvvvxd); + var class_extends_vvvvvxz = jQuery("#jform_class_extends").val(); + vvvvvxz(class_extends_vvvvvxz); - var add_head_vvvvvxe = jQuery("#jform_add_head input[type='radio']:checked").val(); - var class_extends_vvvvvxe = jQuery("#jform_class_extends").val(); - vvvvvxe(add_head_vvvvvxe,class_extends_vvvvvxe); + var add_head_vvvvvya = jQuery("#jform_add_head input[type='radio']:checked").val(); + var class_extends_vvvvvya = jQuery("#jform_class_extends").val(); + vvvvvya(add_head_vvvvvya,class_extends_vvvvvya); - var add_php_script_construct_vvvvvxg = jQuery("#jform_add_php_script_construct input[type='radio']:checked").val(); - vvvvvxg(add_php_script_construct_vvvvvxg); + var add_php_script_construct_vvvvvyc = jQuery("#jform_add_php_script_construct input[type='radio']:checked").val(); + vvvvvyc(add_php_script_construct_vvvvvyc); - var add_php_preflight_install_vvvvvxh = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val(); - vvvvvxh(add_php_preflight_install_vvvvvxh); + var add_php_preflight_install_vvvvvyd = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val(); + vvvvvyd(add_php_preflight_install_vvvvvyd); - var add_php_preflight_update_vvvvvxi = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val(); - vvvvvxi(add_php_preflight_update_vvvvvxi); + var add_php_preflight_update_vvvvvye = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val(); + vvvvvye(add_php_preflight_update_vvvvvye); - var add_php_preflight_uninstall_vvvvvxj = jQuery("#jform_add_php_preflight_uninstall input[type='radio']:checked").val(); - vvvvvxj(add_php_preflight_uninstall_vvvvvxj); + var add_php_preflight_uninstall_vvvvvyf = jQuery("#jform_add_php_preflight_uninstall input[type='radio']:checked").val(); + vvvvvyf(add_php_preflight_uninstall_vvvvvyf); - var add_php_postflight_install_vvvvvxk = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val(); - vvvvvxk(add_php_postflight_install_vvvvvxk); + var add_php_postflight_install_vvvvvyg = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val(); + vvvvvyg(add_php_postflight_install_vvvvvyg); - var add_php_postflight_update_vvvvvxl = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val(); - vvvvvxl(add_php_postflight_update_vvvvvxl); + var add_php_postflight_update_vvvvvyh = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val(); + vvvvvyh(add_php_postflight_update_vvvvvyh); - var add_php_method_uninstall_vvvvvxm = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val(); - vvvvvxm(add_php_method_uninstall_vvvvvxm); + var add_php_method_uninstall_vvvvvyi = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val(); + vvvvvyi(add_php_method_uninstall_vvvvvyi); - var update_server_target_vvvvvxn = jQuery("#jform_update_server_target input[type='radio']:checked").val(); - var add_update_server_vvvvvxn = jQuery("#jform_add_update_server input[type='radio']:checked").val(); - vvvvvxn(update_server_target_vvvvvxn,add_update_server_vvvvvxn); + var update_server_target_vvvvvyj = jQuery("#jform_update_server_target input[type='radio']:checked").val(); + var add_update_server_vvvvvyj = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvyj(update_server_target_vvvvvyj,add_update_server_vvvvvyj); - var add_update_server_vvvvvxo = jQuery("#jform_add_update_server input[type='radio']:checked").val(); - var update_server_target_vvvvvxo = jQuery("#jform_update_server_target input[type='radio']:checked").val(); - vvvvvxo(add_update_server_vvvvvxo,update_server_target_vvvvvxo); + var add_update_server_vvvvvyk = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + var update_server_target_vvvvvyk = jQuery("#jform_update_server_target input[type='radio']:checked").val(); + vvvvvyk(add_update_server_vvvvvyk,update_server_target_vvvvvyk); - var update_server_target_vvvvvxp = jQuery("#jform_update_server_target input[type='radio']:checked").val(); - var add_update_server_vvvvvxp = jQuery("#jform_add_update_server input[type='radio']:checked").val(); - vvvvvxp(update_server_target_vvvvvxp,add_update_server_vvvvvxp); + var update_server_target_vvvvvyl = jQuery("#jform_update_server_target input[type='radio']:checked").val(); + var add_update_server_vvvvvyl = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvyl(update_server_target_vvvvvyl,add_update_server_vvvvvyl); - var update_server_target_vvvvvxr = jQuery("#jform_update_server_target input[type='radio']:checked").val(); - var add_update_server_vvvvvxr = jQuery("#jform_add_update_server input[type='radio']:checked").val(); - vvvvvxr(update_server_target_vvvvvxr,add_update_server_vvvvvxr); + var update_server_target_vvvvvyn = jQuery("#jform_update_server_target input[type='radio']:checked").val(); + var add_update_server_vvvvvyn = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvyn(update_server_target_vvvvvyn,add_update_server_vvvvvyn); - var add_update_server_vvvvvxt = jQuery("#jform_add_update_server input[type='radio']:checked").val(); - vvvvvxt(add_update_server_vvvvvxt); + var add_update_server_vvvvvyp = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvyp(add_update_server_vvvvvyp); - var add_sql_vvvvvxu = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxu(add_sql_vvvvvxu); + var add_sql_vvvvvyq = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvyq(add_sql_vvvvvyq); - var add_sql_uninstall_vvvvvxv = jQuery("#jform_add_sql_uninstall input[type='radio']:checked").val(); - vvvvvxv(add_sql_uninstall_vvvvvxv); + var add_sql_uninstall_vvvvvyr = jQuery("#jform_add_sql_uninstall input[type='radio']:checked").val(); + vvvvvyr(add_sql_uninstall_vvvvvyr); - var add_update_server_vvvvvxw = jQuery("#jform_add_update_server input[type='radio']:checked").val(); - vvvvvxw(add_update_server_vvvvvxw); + var add_update_server_vvvvvys = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvys(add_update_server_vvvvvys); - var add_sales_server_vvvvvxx = jQuery("#jform_add_sales_server input[type='radio']:checked").val(); - vvvvvxx(add_sales_server_vvvvvxx); + var add_sales_server_vvvvvyt = jQuery("#jform_add_sales_server input[type='radio']:checked").val(); + vvvvvyt(add_sales_server_vvvvvyt); - var addreadme_vvvvvxy = jQuery("#jform_addreadme input[type='radio']:checked").val(); - vvvvvxy(addreadme_vvvvvxy); + var addreadme_vvvvvyu = jQuery("#jform_addreadme input[type='radio']:checked").val(); + vvvvvyu(addreadme_vvvvvyu); }); -// the vvvvvxb function -function vvvvvxb(class_extends_vvvvvxb,joomla_plugin_group_vvvvvxb) +// the vvvvvxx function +function vvvvvxx(class_extends_vvvvvxx,joomla_plugin_group_vvvvvxx) { - if (isSet(class_extends_vvvvvxb) && class_extends_vvvvvxb.constructor !== Array) + if (isSet(class_extends_vvvvvxx) && class_extends_vvvvvxx.constructor !== Array) { - var temp_vvvvvxb = class_extends_vvvvvxb; - var class_extends_vvvvvxb = []; - class_extends_vvvvvxb.push(temp_vvvvvxb); + var temp_vvvvvxx = class_extends_vvvvvxx; + var class_extends_vvvvvxx = []; + class_extends_vvvvvxx.push(temp_vvvvvxx); } - else if (!isSet(class_extends_vvvvvxb)) + else if (!isSet(class_extends_vvvvvxx)) { - var class_extends_vvvvvxb = []; + var class_extends_vvvvvxx = []; } - var class_extends = class_extends_vvvvvxb.some(class_extends_vvvvvxb_SomeFunc); + var class_extends = class_extends_vvvvvxx.some(class_extends_vvvvvxx_SomeFunc); - if (isSet(joomla_plugin_group_vvvvvxb) && joomla_plugin_group_vvvvvxb.constructor !== Array) + if (isSet(joomla_plugin_group_vvvvvxx) && joomla_plugin_group_vvvvvxx.constructor !== Array) { - var temp_vvvvvxb = joomla_plugin_group_vvvvvxb; - var joomla_plugin_group_vvvvvxb = []; - joomla_plugin_group_vvvvvxb.push(temp_vvvvvxb); + var temp_vvvvvxx = joomla_plugin_group_vvvvvxx; + var joomla_plugin_group_vvvvvxx = []; + joomla_plugin_group_vvvvvxx.push(temp_vvvvvxx); } - else if (!isSet(joomla_plugin_group_vvvvvxb)) + else if (!isSet(joomla_plugin_group_vvvvvxx)) { - var joomla_plugin_group_vvvvvxb = []; + var joomla_plugin_group_vvvvvxx = []; } - var joomla_plugin_group = joomla_plugin_group_vvvvvxb.some(joomla_plugin_group_vvvvvxb_SomeFunc); + var joomla_plugin_group = joomla_plugin_group_vvvvvxx.some(joomla_plugin_group_vvvvvxx_SomeFunc); // set this function logic @@ -131,54 +131,54 @@ function vvvvvxb(class_extends_vvvvvxb,joomla_plugin_group_vvvvvxb) } } -// the vvvvvxb Some function -function class_extends_vvvvvxb_SomeFunc(class_extends_vvvvvxb) +// the vvvvvxx Some function +function class_extends_vvvvvxx_SomeFunc(class_extends_vvvvvxx) { // set the function logic - if (isSet(class_extends_vvvvvxb)) + if (isSet(class_extends_vvvvvxx)) { return true; } return false; } -// the vvvvvxb Some function -function joomla_plugin_group_vvvvvxb_SomeFunc(joomla_plugin_group_vvvvvxb) +// the vvvvvxx Some function +function joomla_plugin_group_vvvvvxx_SomeFunc(joomla_plugin_group_vvvvvxx) { // set the function logic - if (isSet(joomla_plugin_group_vvvvvxb)) + if (isSet(joomla_plugin_group_vvvvvxx)) { return true; } return false; } -// the vvvvvxc function -function vvvvvxc(joomla_plugin_group_vvvvvxc,class_extends_vvvvvxc) +// the vvvvvxy function +function vvvvvxy(joomla_plugin_group_vvvvvxy,class_extends_vvvvvxy) { - if (isSet(joomla_plugin_group_vvvvvxc) && joomla_plugin_group_vvvvvxc.constructor !== Array) + if (isSet(joomla_plugin_group_vvvvvxy) && joomla_plugin_group_vvvvvxy.constructor !== Array) { - var temp_vvvvvxc = joomla_plugin_group_vvvvvxc; - var joomla_plugin_group_vvvvvxc = []; - joomla_plugin_group_vvvvvxc.push(temp_vvvvvxc); + var temp_vvvvvxy = joomla_plugin_group_vvvvvxy; + var joomla_plugin_group_vvvvvxy = []; + joomla_plugin_group_vvvvvxy.push(temp_vvvvvxy); } - else if (!isSet(joomla_plugin_group_vvvvvxc)) + else if (!isSet(joomla_plugin_group_vvvvvxy)) { - var joomla_plugin_group_vvvvvxc = []; + var joomla_plugin_group_vvvvvxy = []; } - var joomla_plugin_group = joomla_plugin_group_vvvvvxc.some(joomla_plugin_group_vvvvvxc_SomeFunc); + var joomla_plugin_group = joomla_plugin_group_vvvvvxy.some(joomla_plugin_group_vvvvvxy_SomeFunc); - if (isSet(class_extends_vvvvvxc) && class_extends_vvvvvxc.constructor !== Array) + if (isSet(class_extends_vvvvvxy) && class_extends_vvvvvxy.constructor !== Array) { - var temp_vvvvvxc = class_extends_vvvvvxc; - var class_extends_vvvvvxc = []; - class_extends_vvvvvxc.push(temp_vvvvvxc); + var temp_vvvvvxy = class_extends_vvvvvxy; + var class_extends_vvvvvxy = []; + class_extends_vvvvvxy.push(temp_vvvvvxy); } - else if (!isSet(class_extends_vvvvvxc)) + else if (!isSet(class_extends_vvvvvxy)) { - var class_extends_vvvvvxc = []; + var class_extends_vvvvvxy = []; } - var class_extends = class_extends_vvvvvxc.some(class_extends_vvvvvxc_SomeFunc); + var class_extends = class_extends_vvvvvxy.some(class_extends_vvvvvxy_SomeFunc); // set this function logic @@ -196,42 +196,42 @@ function vvvvvxc(joomla_plugin_group_vvvvvxc,class_extends_vvvvvxc) } } -// the vvvvvxc Some function -function joomla_plugin_group_vvvvvxc_SomeFunc(joomla_plugin_group_vvvvvxc) +// the vvvvvxy Some function +function joomla_plugin_group_vvvvvxy_SomeFunc(joomla_plugin_group_vvvvvxy) { // set the function logic - if (isSet(joomla_plugin_group_vvvvvxc)) + if (isSet(joomla_plugin_group_vvvvvxy)) { return true; } return false; } -// the vvvvvxc Some function -function class_extends_vvvvvxc_SomeFunc(class_extends_vvvvvxc) +// the vvvvvxy Some function +function class_extends_vvvvvxy_SomeFunc(class_extends_vvvvvxy) { // set the function logic - if (isSet(class_extends_vvvvvxc)) + if (isSet(class_extends_vvvvvxy)) { return true; } return false; } -// the vvvvvxd function -function vvvvvxd(class_extends_vvvvvxd) +// the vvvvvxz function +function vvvvvxz(class_extends_vvvvvxz) { - if (isSet(class_extends_vvvvvxd) && class_extends_vvvvvxd.constructor !== Array) + if (isSet(class_extends_vvvvvxz) && class_extends_vvvvvxz.constructor !== Array) { - var temp_vvvvvxd = class_extends_vvvvvxd; - var class_extends_vvvvvxd = []; - class_extends_vvvvvxd.push(temp_vvvvvxd); + var temp_vvvvvxz = class_extends_vvvvvxz; + var class_extends_vvvvvxz = []; + class_extends_vvvvvxz.push(temp_vvvvvxz); } - else if (!isSet(class_extends_vvvvvxd)) + else if (!isSet(class_extends_vvvvvxz)) { - var class_extends_vvvvvxd = []; + var class_extends_vvvvvxz = []; } - var class_extends = class_extends_vvvvvxd.some(class_extends_vvvvvxd_SomeFunc); + var class_extends = class_extends_vvvvvxz.some(class_extends_vvvvvxz_SomeFunc); // set this function logic @@ -245,43 +245,43 @@ function vvvvvxd(class_extends_vvvvvxd) } } -// the vvvvvxd Some function -function class_extends_vvvvvxd_SomeFunc(class_extends_vvvvvxd) +// the vvvvvxz Some function +function class_extends_vvvvvxz_SomeFunc(class_extends_vvvvvxz) { // set the function logic - if (isSet(class_extends_vvvvvxd)) + if (isSet(class_extends_vvvvvxz)) { return true; } return false; } -// the vvvvvxe function -function vvvvvxe(add_head_vvvvvxe,class_extends_vvvvvxe) +// the vvvvvya function +function vvvvvya(add_head_vvvvvya,class_extends_vvvvvya) { - if (isSet(add_head_vvvvvxe) && add_head_vvvvvxe.constructor !== Array) + if (isSet(add_head_vvvvvya) && add_head_vvvvvya.constructor !== Array) { - var temp_vvvvvxe = add_head_vvvvvxe; - var add_head_vvvvvxe = []; - add_head_vvvvvxe.push(temp_vvvvvxe); + var temp_vvvvvya = add_head_vvvvvya; + var add_head_vvvvvya = []; + add_head_vvvvvya.push(temp_vvvvvya); } - else if (!isSet(add_head_vvvvvxe)) + else if (!isSet(add_head_vvvvvya)) { - var add_head_vvvvvxe = []; + var add_head_vvvvvya = []; } - var add_head = add_head_vvvvvxe.some(add_head_vvvvvxe_SomeFunc); + var add_head = add_head_vvvvvya.some(add_head_vvvvvya_SomeFunc); - if (isSet(class_extends_vvvvvxe) && class_extends_vvvvvxe.constructor !== Array) + if (isSet(class_extends_vvvvvya) && class_extends_vvvvvya.constructor !== Array) { - var temp_vvvvvxe = class_extends_vvvvvxe; - var class_extends_vvvvvxe = []; - class_extends_vvvvvxe.push(temp_vvvvvxe); + var temp_vvvvvya = class_extends_vvvvvya; + var class_extends_vvvvvya = []; + class_extends_vvvvvya.push(temp_vvvvvya); } - else if (!isSet(class_extends_vvvvvxe)) + else if (!isSet(class_extends_vvvvvya)) { - var class_extends_vvvvvxe = []; + var class_extends_vvvvvya = []; } - var class_extends = class_extends_vvvvvxe.some(class_extends_vvvvvxe_SomeFunc); + var class_extends = class_extends_vvvvvya.some(class_extends_vvvvvya_SomeFunc); // set this function logic @@ -289,57 +289,57 @@ function vvvvvxe(add_head_vvvvvxe,class_extends_vvvvvxe) { jQuery('#jform_head-lbl').closest('.control-group').show(); // add required attribute to head field - if (jform_vvvvvxevwd_required) + if (jform_vvvvvyavwh_required) { updateFieldRequired('head',0); jQuery('#jform_head').prop('required','required'); jQuery('#jform_head').attr('aria-required',true); jQuery('#jform_head').addClass('required'); - jform_vvvvvxevwd_required = false; + jform_vvvvvyavwh_required = false; } } else { jQuery('#jform_head-lbl').closest('.control-group').hide(); // remove required attribute from head field - if (!jform_vvvvvxevwd_required) + if (!jform_vvvvvyavwh_required) { updateFieldRequired('head',1); jQuery('#jform_head').removeAttr('required'); jQuery('#jform_head').removeAttr('aria-required'); jQuery('#jform_head').removeClass('required'); - jform_vvvvvxevwd_required = true; + jform_vvvvvyavwh_required = true; } } } -// the vvvvvxe Some function -function add_head_vvvvvxe_SomeFunc(add_head_vvvvvxe) +// the vvvvvya Some function +function add_head_vvvvvya_SomeFunc(add_head_vvvvvya) { // set the function logic - if (add_head_vvvvvxe == 1) + if (add_head_vvvvvya == 1) { return true; } return false; } -// the vvvvvxe Some function -function class_extends_vvvvvxe_SomeFunc(class_extends_vvvvvxe) +// the vvvvvya Some function +function class_extends_vvvvvya_SomeFunc(class_extends_vvvvvya) { // set the function logic - if (isSet(class_extends_vvvvvxe)) + if (isSet(class_extends_vvvvvya)) { return true; } return false; } -// the vvvvvxg function -function vvvvvxg(add_php_script_construct_vvvvvxg) +// the vvvvvyc function +function vvvvvyc(add_php_script_construct_vvvvvyc) { // set the function logic - if (add_php_script_construct_vvvvvxg == 1) + if (add_php_script_construct_vvvvvyc == 1) { jQuery('#jform_php_script_construct-lbl').closest('.control-group').show(); } @@ -349,11 +349,11 @@ function vvvvvxg(add_php_script_construct_vvvvvxg) } } -// the vvvvvxh function -function vvvvvxh(add_php_preflight_install_vvvvvxh) +// the vvvvvyd function +function vvvvvyd(add_php_preflight_install_vvvvvyd) { // set the function logic - if (add_php_preflight_install_vvvvvxh == 1) + if (add_php_preflight_install_vvvvvyd == 1) { jQuery('#jform_php_preflight_install-lbl').closest('.control-group').show(); } @@ -363,11 +363,11 @@ function vvvvvxh(add_php_preflight_install_vvvvvxh) } } -// the vvvvvxi function -function vvvvvxi(add_php_preflight_update_vvvvvxi) +// the vvvvvye function +function vvvvvye(add_php_preflight_update_vvvvvye) { // set the function logic - if (add_php_preflight_update_vvvvvxi == 1) + if (add_php_preflight_update_vvvvvye == 1) { jQuery('#jform_php_preflight_update-lbl').closest('.control-group').show(); } @@ -377,11 +377,11 @@ function vvvvvxi(add_php_preflight_update_vvvvvxi) } } -// the vvvvvxj function -function vvvvvxj(add_php_preflight_uninstall_vvvvvxj) +// the vvvvvyf function +function vvvvvyf(add_php_preflight_uninstall_vvvvvyf) { // set the function logic - if (add_php_preflight_uninstall_vvvvvxj == 1) + if (add_php_preflight_uninstall_vvvvvyf == 1) { jQuery('#jform_php_preflight_uninstall-lbl').closest('.control-group').show(); } @@ -391,11 +391,11 @@ function vvvvvxj(add_php_preflight_uninstall_vvvvvxj) } } -// the vvvvvxk function -function vvvvvxk(add_php_postflight_install_vvvvvxk) +// the vvvvvyg function +function vvvvvyg(add_php_postflight_install_vvvvvyg) { // set the function logic - if (add_php_postflight_install_vvvvvxk == 1) + if (add_php_postflight_install_vvvvvyg == 1) { jQuery('#jform_php_postflight_install-lbl').closest('.control-group').show(); } @@ -405,11 +405,11 @@ function vvvvvxk(add_php_postflight_install_vvvvvxk) } } -// the vvvvvxl function -function vvvvvxl(add_php_postflight_update_vvvvvxl) +// the vvvvvyh function +function vvvvvyh(add_php_postflight_update_vvvvvyh) { // set the function logic - if (add_php_postflight_update_vvvvvxl == 1) + if (add_php_postflight_update_vvvvvyh == 1) { jQuery('#jform_php_postflight_update-lbl').closest('.control-group').show(); } @@ -419,11 +419,11 @@ function vvvvvxl(add_php_postflight_update_vvvvvxl) } } -// the vvvvvxm function -function vvvvvxm(add_php_method_uninstall_vvvvvxm) +// the vvvvvyi function +function vvvvvyi(add_php_method_uninstall_vvvvvyi) { // set the function logic - if (add_php_method_uninstall_vvvvvxm == 1) + if (add_php_method_uninstall_vvvvvyi == 1) { jQuery('#jform_php_method_uninstall-lbl').closest('.control-group').show(); } @@ -433,11 +433,11 @@ function vvvvvxm(add_php_method_uninstall_vvvvvxm) } } -// the vvvvvxn function -function vvvvvxn(update_server_target_vvvvvxn,add_update_server_vvvvvxn) +// the vvvvvyj function +function vvvvvyj(update_server_target_vvvvvyj,add_update_server_vvvvvyj) { // set the function logic - if (update_server_target_vvvvvxn == 1 && add_update_server_vvvvvxn == 1) + if (update_server_target_vvvvvyj == 1 && add_update_server_vvvvvyj == 1) { jQuery('#jform_update_server').closest('.control-group').show(); jQuery('.note_update_server_note_ftp').closest('.control-group').show(); @@ -449,11 +449,11 @@ function vvvvvxn(update_server_target_vvvvvxn,add_update_server_vvvvvxn) } } -// the vvvvvxo function -function vvvvvxo(add_update_server_vvvvvxo,update_server_target_vvvvvxo) +// the vvvvvyk function +function vvvvvyk(add_update_server_vvvvvyk,update_server_target_vvvvvyk) { // set the function logic - if (add_update_server_vvvvvxo == 1 && update_server_target_vvvvvxo == 1) + if (add_update_server_vvvvvyk == 1 && update_server_target_vvvvvyk == 1) { jQuery('#jform_update_server').closest('.control-group').show(); jQuery('.note_update_server_note_ftp').closest('.control-group').show(); @@ -465,11 +465,11 @@ function vvvvvxo(add_update_server_vvvvvxo,update_server_target_vvvvvxo) } } -// the vvvvvxp function -function vvvvvxp(update_server_target_vvvvvxp,add_update_server_vvvvvxp) +// the vvvvvyl function +function vvvvvyl(update_server_target_vvvvvyl,add_update_server_vvvvvyl) { // set the function logic - if (update_server_target_vvvvvxp == 2 && add_update_server_vvvvvxp == 1) + if (update_server_target_vvvvvyl == 2 && add_update_server_vvvvvyl == 1) { jQuery('.note_update_server_note_zip').closest('.control-group').show(); } @@ -479,11 +479,11 @@ function vvvvvxp(update_server_target_vvvvvxp,add_update_server_vvvvvxp) } } -// the vvvvvxr function -function vvvvvxr(update_server_target_vvvvvxr,add_update_server_vvvvvxr) +// the vvvvvyn function +function vvvvvyn(update_server_target_vvvvvyn,add_update_server_vvvvvyn) { // set the function logic - if (update_server_target_vvvvvxr == 3 && add_update_server_vvvvvxr == 1) + if (update_server_target_vvvvvyn == 3 && add_update_server_vvvvvyn == 1) { jQuery('.note_update_server_note_other').closest('.control-group').show(); } @@ -493,107 +493,107 @@ function vvvvvxr(update_server_target_vvvvvxr,add_update_server_vvvvvxr) } } -// the vvvvvxt function -function vvvvvxt(add_update_server_vvvvvxt) +// the vvvvvyp function +function vvvvvyp(add_update_server_vvvvvyp) { // set the function logic - if (add_update_server_vvvvvxt == 1) + if (add_update_server_vvvvvyp == 1) { jQuery('#jform_update_server_target').closest('.control-group').show(); // add required attribute to update_server_target field - if (jform_vvvvvxtvwe_required) + if (jform_vvvvvypvwi_required) { updateFieldRequired('update_server_target',0); jQuery('#jform_update_server_target').prop('required','required'); jQuery('#jform_update_server_target').attr('aria-required',true); jQuery('#jform_update_server_target').addClass('required'); - jform_vvvvvxtvwe_required = false; + jform_vvvvvypvwi_required = false; } } else { jQuery('#jform_update_server_target').closest('.control-group').hide(); // remove required attribute from update_server_target field - if (!jform_vvvvvxtvwe_required) + if (!jform_vvvvvypvwi_required) { updateFieldRequired('update_server_target',1); jQuery('#jform_update_server_target').removeAttr('required'); jQuery('#jform_update_server_target').removeAttr('aria-required'); jQuery('#jform_update_server_target').removeClass('required'); - jform_vvvvvxtvwe_required = true; + jform_vvvvvypvwi_required = true; } } } -// the vvvvvxu function -function vvvvvxu(add_sql_vvvvvxu) +// the vvvvvyq function +function vvvvvyq(add_sql_vvvvvyq) { // set the function logic - if (add_sql_vvvvvxu == 1) + if (add_sql_vvvvvyq == 1) { jQuery('#jform_sql').closest('.control-group').show(); // add required attribute to sql field - if (jform_vvvvvxuvwf_required) + if (jform_vvvvvyqvwj_required) { updateFieldRequired('sql',0); jQuery('#jform_sql').prop('required','required'); jQuery('#jform_sql').attr('aria-required',true); jQuery('#jform_sql').addClass('required'); - jform_vvvvvxuvwf_required = false; + jform_vvvvvyqvwj_required = false; } } else { jQuery('#jform_sql').closest('.control-group').hide(); // remove required attribute from sql field - if (!jform_vvvvvxuvwf_required) + if (!jform_vvvvvyqvwj_required) { updateFieldRequired('sql',1); jQuery('#jform_sql').removeAttr('required'); jQuery('#jform_sql').removeAttr('aria-required'); jQuery('#jform_sql').removeClass('required'); - jform_vvvvvxuvwf_required = true; + jform_vvvvvyqvwj_required = true; } } } -// the vvvvvxv function -function vvvvvxv(add_sql_uninstall_vvvvvxv) +// the vvvvvyr function +function vvvvvyr(add_sql_uninstall_vvvvvyr) { // set the function logic - if (add_sql_uninstall_vvvvvxv == 1) + if (add_sql_uninstall_vvvvvyr == 1) { jQuery('#jform_sql_uninstall').closest('.control-group').show(); // add required attribute to sql_uninstall field - if (jform_vvvvvxvvwg_required) + if (jform_vvvvvyrvwk_required) { updateFieldRequired('sql_uninstall',0); jQuery('#jform_sql_uninstall').prop('required','required'); jQuery('#jform_sql_uninstall').attr('aria-required',true); jQuery('#jform_sql_uninstall').addClass('required'); - jform_vvvvvxvvwg_required = false; + jform_vvvvvyrvwk_required = false; } } else { jQuery('#jform_sql_uninstall').closest('.control-group').hide(); // remove required attribute from sql_uninstall field - if (!jform_vvvvvxvvwg_required) + if (!jform_vvvvvyrvwk_required) { updateFieldRequired('sql_uninstall',1); jQuery('#jform_sql_uninstall').removeAttr('required'); jQuery('#jform_sql_uninstall').removeAttr('aria-required'); jQuery('#jform_sql_uninstall').removeClass('required'); - jform_vvvvvxvvwg_required = true; + jform_vvvvvyrvwk_required = true; } } } -// the vvvvvxw function -function vvvvvxw(add_update_server_vvvvvxw) +// the vvvvvys function +function vvvvvys(add_update_server_vvvvvys) { // set the function logic - if (add_update_server_vvvvvxw == 1) + if (add_update_server_vvvvvys == 1) { jQuery('#jform_update_server_url').closest('.control-group').show(); } @@ -603,11 +603,11 @@ function vvvvvxw(add_update_server_vvvvvxw) } } -// the vvvvvxx function -function vvvvvxx(add_sales_server_vvvvvxx) +// the vvvvvyt function +function vvvvvyt(add_sales_server_vvvvvyt) { // set the function logic - if (add_sales_server_vvvvvxx == 1) + if (add_sales_server_vvvvvyt == 1) { jQuery('#jform_sales_server').closest('.control-group').show(); } @@ -617,11 +617,11 @@ function vvvvvxx(add_sales_server_vvvvvxx) } } -// the vvvvvxy function -function vvvvvxy(addreadme_vvvvvxy) +// the vvvvvyu function +function vvvvvyu(addreadme_vvvvvyu) { // set the function logic - if (addreadme_vvvvvxy == 1) + if (addreadme_vvvvvyu == 1) { jQuery('#jform_readme-lbl').closest('.control-group').show(); } diff --git a/admin/models/forms/layout.js b/admin/models/forms/layout.js index 0144a82b9..bdb830410 100644 --- a/admin/models/forms/layout.js +++ b/admin/models/forms/layout.js @@ -11,15 +11,15 @@ // Initial Script jQuery(document).ready(function() { - var add_php_view_vvvvwad = jQuery("#jform_add_php_view input[type='radio']:checked").val(); - vvvvwad(add_php_view_vvvvwad); + var add_php_view_vvvvwaz = jQuery("#jform_add_php_view input[type='radio']:checked").val(); + vvvvwaz(add_php_view_vvvvwaz); }); -// the vvvvwad function -function vvvvwad(add_php_view_vvvvwad) +// the vvvvwaz function +function vvvvwaz(add_php_view_vvvvwaz) { // set the function logic - if (add_php_view_vvvvwad == 1) + if (add_php_view_vvvvwaz == 1) { jQuery('#jform_php_view-lbl').closest('.control-group').show(); } diff --git a/admin/models/forms/library.js b/admin/models/forms/library.js index b8d339ad6..67406e2cd 100644 --- a/admin/models/forms/library.js +++ b/admin/models/forms/library.js @@ -9,91 +9,91 @@ */ // Some Global Values -jform_vvvvwbnvxj_required = false; -jform_vvvvwbzvxk_required = false; -jform_vvvvwcbvxl_required = false; -jform_vvvvwcbvxm_required = false; +jform_vvvvwcjvxn_required = false; +jform_vvvvwcvvxo_required = false; +jform_vvvvwcxvxp_required = false; +jform_vvvvwcxvxq_required = false; // Initial Script jQuery(document).ready(function() { - var how_vvvvwbl = jQuery("#jform_how").val(); - var target_vvvvwbl = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwbl(how_vvvvwbl,target_vvvvwbl); + var how_vvvvwch = jQuery("#jform_how").val(); + var target_vvvvwch = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwch(how_vvvvwch,target_vvvvwch); - var how_vvvvwbn = jQuery("#jform_how").val(); - var target_vvvvwbn = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwbn(how_vvvvwbn,target_vvvvwbn); + var how_vvvvwcj = jQuery("#jform_how").val(); + var target_vvvvwcj = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwcj(how_vvvvwcj,target_vvvvwcj); - var how_vvvvwbp = jQuery("#jform_how").val(); - var target_vvvvwbp = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwbp(how_vvvvwbp,target_vvvvwbp); + var how_vvvvwcl = jQuery("#jform_how").val(); + var target_vvvvwcl = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwcl(how_vvvvwcl,target_vvvvwcl); - var how_vvvvwbr = jQuery("#jform_how").val(); - var target_vvvvwbr = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwbr(how_vvvvwbr,target_vvvvwbr); + var how_vvvvwcn = jQuery("#jform_how").val(); + var target_vvvvwcn = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwcn(how_vvvvwcn,target_vvvvwcn); - var how_vvvvwbt = jQuery("#jform_how").val(); - var target_vvvvwbt = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwbt(how_vvvvwbt,target_vvvvwbt); + var how_vvvvwcp = jQuery("#jform_how").val(); + var target_vvvvwcp = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwcp(how_vvvvwcp,target_vvvvwcp); - var target_vvvvwbu = jQuery("#jform_target input[type='radio']:checked").val(); - var how_vvvvwbu = jQuery("#jform_how").val(); - vvvvwbu(target_vvvvwbu,how_vvvvwbu); + var target_vvvvwcq = jQuery("#jform_target input[type='radio']:checked").val(); + var how_vvvvwcq = jQuery("#jform_how").val(); + vvvvwcq(target_vvvvwcq,how_vvvvwcq); - var how_vvvvwbv = jQuery("#jform_how").val(); - var target_vvvvwbv = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwbv(how_vvvvwbv,target_vvvvwbv); + var how_vvvvwcr = jQuery("#jform_how").val(); + var target_vvvvwcr = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwcr(how_vvvvwcr,target_vvvvwcr); - var target_vvvvwbw = jQuery("#jform_target input[type='radio']:checked").val(); - var how_vvvvwbw = jQuery("#jform_how").val(); - vvvvwbw(target_vvvvwbw,how_vvvvwbw); + var target_vvvvwcs = jQuery("#jform_target input[type='radio']:checked").val(); + var how_vvvvwcs = jQuery("#jform_how").val(); + vvvvwcs(target_vvvvwcs,how_vvvvwcs); - var how_vvvvwbx = jQuery("#jform_how").val(); - var target_vvvvwbx = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwbx(how_vvvvwbx,target_vvvvwbx); + var how_vvvvwct = jQuery("#jform_how").val(); + var target_vvvvwct = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwct(how_vvvvwct,target_vvvvwct); - var target_vvvvwby = jQuery("#jform_target input[type='radio']:checked").val(); - var how_vvvvwby = jQuery("#jform_how").val(); - vvvvwby(target_vvvvwby,how_vvvvwby); + var target_vvvvwcu = jQuery("#jform_target input[type='radio']:checked").val(); + var how_vvvvwcu = jQuery("#jform_how").val(); + vvvvwcu(target_vvvvwcu,how_vvvvwcu); - var target_vvvvwbz = jQuery("#jform_target input[type='radio']:checked").val(); - var type_vvvvwbz = jQuery("#jform_type input[type='radio']:checked").val(); - vvvvwbz(target_vvvvwbz,type_vvvvwbz); + var target_vvvvwcv = jQuery("#jform_target input[type='radio']:checked").val(); + var type_vvvvwcv = jQuery("#jform_type input[type='radio']:checked").val(); + vvvvwcv(target_vvvvwcv,type_vvvvwcv); - var target_vvvvwcb = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwcb(target_vvvvwcb); + var target_vvvvwcx = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwcx(target_vvvvwcx); - var target_vvvvwcc = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwcc(target_vvvvwcc); + var target_vvvvwcy = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwcy(target_vvvvwcy); }); -// the vvvvwbl function -function vvvvwbl(how_vvvvwbl,target_vvvvwbl) +// the vvvvwch function +function vvvvwch(how_vvvvwch,target_vvvvwch) { - if (isSet(how_vvvvwbl) && how_vvvvwbl.constructor !== Array) + if (isSet(how_vvvvwch) && how_vvvvwch.constructor !== Array) { - var temp_vvvvwbl = how_vvvvwbl; - var how_vvvvwbl = []; - how_vvvvwbl.push(temp_vvvvwbl); + var temp_vvvvwch = how_vvvvwch; + var how_vvvvwch = []; + how_vvvvwch.push(temp_vvvvwch); } - else if (!isSet(how_vvvvwbl)) + else if (!isSet(how_vvvvwch)) { - var how_vvvvwbl = []; + var how_vvvvwch = []; } - var how = how_vvvvwbl.some(how_vvvvwbl_SomeFunc); + var how = how_vvvvwch.some(how_vvvvwch_SomeFunc); - if (isSet(target_vvvvwbl) && target_vvvvwbl.constructor !== Array) + if (isSet(target_vvvvwch) && target_vvvvwch.constructor !== Array) { - var temp_vvvvwbl = target_vvvvwbl; - var target_vvvvwbl = []; - target_vvvvwbl.push(temp_vvvvwbl); + var temp_vvvvwch = target_vvvvwch; + var target_vvvvwch = []; + target_vvvvwch.push(temp_vvvvwch); } - else if (!isSet(target_vvvvwbl)) + else if (!isSet(target_vvvvwch)) { - var target_vvvvwbl = []; + var target_vvvvwch = []; } - var target = target_vvvvwbl.some(target_vvvvwbl_SomeFunc); + var target = target_vvvvwch.some(target_vvvvwch_SomeFunc); // set this function logic @@ -107,54 +107,54 @@ function vvvvwbl(how_vvvvwbl,target_vvvvwbl) } } -// the vvvvwbl Some function -function how_vvvvwbl_SomeFunc(how_vvvvwbl) +// the vvvvwch Some function +function how_vvvvwch_SomeFunc(how_vvvvwch) { // set the function logic - if (how_vvvvwbl == 2) + if (how_vvvvwch == 2) { return true; } return false; } -// the vvvvwbl Some function -function target_vvvvwbl_SomeFunc(target_vvvvwbl) +// the vvvvwch Some function +function target_vvvvwch_SomeFunc(target_vvvvwch) { // set the function logic - if (target_vvvvwbl == 1) + if (target_vvvvwch == 1) { return true; } return false; } -// the vvvvwbn function -function vvvvwbn(how_vvvvwbn,target_vvvvwbn) +// the vvvvwcj function +function vvvvwcj(how_vvvvwcj,target_vvvvwcj) { - if (isSet(how_vvvvwbn) && how_vvvvwbn.constructor !== Array) + if (isSet(how_vvvvwcj) && how_vvvvwcj.constructor !== Array) { - var temp_vvvvwbn = how_vvvvwbn; - var how_vvvvwbn = []; - how_vvvvwbn.push(temp_vvvvwbn); + var temp_vvvvwcj = how_vvvvwcj; + var how_vvvvwcj = []; + how_vvvvwcj.push(temp_vvvvwcj); } - else if (!isSet(how_vvvvwbn)) + else if (!isSet(how_vvvvwcj)) { - var how_vvvvwbn = []; + var how_vvvvwcj = []; } - var how = how_vvvvwbn.some(how_vvvvwbn_SomeFunc); + var how = how_vvvvwcj.some(how_vvvvwcj_SomeFunc); - if (isSet(target_vvvvwbn) && target_vvvvwbn.constructor !== Array) + if (isSet(target_vvvvwcj) && target_vvvvwcj.constructor !== Array) { - var temp_vvvvwbn = target_vvvvwbn; - var target_vvvvwbn = []; - target_vvvvwbn.push(temp_vvvvwbn); + var temp_vvvvwcj = target_vvvvwcj; + var target_vvvvwcj = []; + target_vvvvwcj.push(temp_vvvvwcj); } - else if (!isSet(target_vvvvwbn)) + else if (!isSet(target_vvvvwcj)) { - var target_vvvvwbn = []; + var target_vvvvwcj = []; } - var target = target_vvvvwbn.some(target_vvvvwbn_SomeFunc); + var target = target_vvvvwcj.some(target_vvvvwcj_SomeFunc); // set this function logic @@ -162,78 +162,78 @@ function vvvvwbn(how_vvvvwbn,target_vvvvwbn) { jQuery('#jform_php_setdocument').closest('.control-group').show(); // add required attribute to php_setdocument field - if (jform_vvvvwbnvxj_required) + if (jform_vvvvwcjvxn_required) { updateFieldRequired('php_setdocument',0); jQuery('#jform_php_setdocument').prop('required','required'); jQuery('#jform_php_setdocument').attr('aria-required',true); jQuery('#jform_php_setdocument').addClass('required'); - jform_vvvvwbnvxj_required = false; + jform_vvvvwcjvxn_required = false; } } else { jQuery('#jform_php_setdocument').closest('.control-group').hide(); // remove required attribute from php_setdocument field - if (!jform_vvvvwbnvxj_required) + if (!jform_vvvvwcjvxn_required) { updateFieldRequired('php_setdocument',1); jQuery('#jform_php_setdocument').removeAttr('required'); jQuery('#jform_php_setdocument').removeAttr('aria-required'); jQuery('#jform_php_setdocument').removeClass('required'); - jform_vvvvwbnvxj_required = true; + jform_vvvvwcjvxn_required = true; } } } -// the vvvvwbn Some function -function how_vvvvwbn_SomeFunc(how_vvvvwbn) +// the vvvvwcj Some function +function how_vvvvwcj_SomeFunc(how_vvvvwcj) { // set the function logic - if (how_vvvvwbn == 3) + if (how_vvvvwcj == 3) { return true; } return false; } -// the vvvvwbn Some function -function target_vvvvwbn_SomeFunc(target_vvvvwbn) +// the vvvvwcj Some function +function target_vvvvwcj_SomeFunc(target_vvvvwcj) { // set the function logic - if (target_vvvvwbn == 1) + if (target_vvvvwcj == 1) { return true; } return false; } -// the vvvvwbp function -function vvvvwbp(how_vvvvwbp,target_vvvvwbp) +// the vvvvwcl function +function vvvvwcl(how_vvvvwcl,target_vvvvwcl) { - if (isSet(how_vvvvwbp) && how_vvvvwbp.constructor !== Array) + if (isSet(how_vvvvwcl) && how_vvvvwcl.constructor !== Array) { - var temp_vvvvwbp = how_vvvvwbp; - var how_vvvvwbp = []; - how_vvvvwbp.push(temp_vvvvwbp); + var temp_vvvvwcl = how_vvvvwcl; + var how_vvvvwcl = []; + how_vvvvwcl.push(temp_vvvvwcl); } - else if (!isSet(how_vvvvwbp)) + else if (!isSet(how_vvvvwcl)) { - var how_vvvvwbp = []; + var how_vvvvwcl = []; } - var how = how_vvvvwbp.some(how_vvvvwbp_SomeFunc); + var how = how_vvvvwcl.some(how_vvvvwcl_SomeFunc); - if (isSet(target_vvvvwbp) && target_vvvvwbp.constructor !== Array) + if (isSet(target_vvvvwcl) && target_vvvvwcl.constructor !== Array) { - var temp_vvvvwbp = target_vvvvwbp; - var target_vvvvwbp = []; - target_vvvvwbp.push(temp_vvvvwbp); + var temp_vvvvwcl = target_vvvvwcl; + var target_vvvvwcl = []; + target_vvvvwcl.push(temp_vvvvwcl); } - else if (!isSet(target_vvvvwbp)) + else if (!isSet(target_vvvvwcl)) { - var target_vvvvwbp = []; + var target_vvvvwcl = []; } - var target = target_vvvvwbp.some(target_vvvvwbp_SomeFunc); + var target = target_vvvvwcl.some(target_vvvvwcl_SomeFunc); // set this function logic @@ -247,54 +247,54 @@ function vvvvwbp(how_vvvvwbp,target_vvvvwbp) } } -// the vvvvwbp Some function -function how_vvvvwbp_SomeFunc(how_vvvvwbp) +// the vvvvwcl Some function +function how_vvvvwcl_SomeFunc(how_vvvvwcl) { // set the function logic - if (how_vvvvwbp == 2 || how_vvvvwbp == 3) + if (how_vvvvwcl == 2 || how_vvvvwcl == 3) { return true; } return false; } -// the vvvvwbp Some function -function target_vvvvwbp_SomeFunc(target_vvvvwbp) +// the vvvvwcl Some function +function target_vvvvwcl_SomeFunc(target_vvvvwcl) { // set the function logic - if (target_vvvvwbp == 1) + if (target_vvvvwcl == 1) { return true; } return false; } -// the vvvvwbr function -function vvvvwbr(how_vvvvwbr,target_vvvvwbr) +// the vvvvwcn function +function vvvvwcn(how_vvvvwcn,target_vvvvwcn) { - if (isSet(how_vvvvwbr) && how_vvvvwbr.constructor !== Array) + if (isSet(how_vvvvwcn) && how_vvvvwcn.constructor !== Array) { - var temp_vvvvwbr = how_vvvvwbr; - var how_vvvvwbr = []; - how_vvvvwbr.push(temp_vvvvwbr); + var temp_vvvvwcn = how_vvvvwcn; + var how_vvvvwcn = []; + how_vvvvwcn.push(temp_vvvvwcn); } - else if (!isSet(how_vvvvwbr)) + else if (!isSet(how_vvvvwcn)) { - var how_vvvvwbr = []; + var how_vvvvwcn = []; } - var how = how_vvvvwbr.some(how_vvvvwbr_SomeFunc); + var how = how_vvvvwcn.some(how_vvvvwcn_SomeFunc); - if (isSet(target_vvvvwbr) && target_vvvvwbr.constructor !== Array) + if (isSet(target_vvvvwcn) && target_vvvvwcn.constructor !== Array) { - var temp_vvvvwbr = target_vvvvwbr; - var target_vvvvwbr = []; - target_vvvvwbr.push(temp_vvvvwbr); + var temp_vvvvwcn = target_vvvvwcn; + var target_vvvvwcn = []; + target_vvvvwcn.push(temp_vvvvwcn); } - else if (!isSet(target_vvvvwbr)) + else if (!isSet(target_vvvvwcn)) { - var target_vvvvwbr = []; + var target_vvvvwcn = []; } - var target = target_vvvvwbr.some(target_vvvvwbr_SomeFunc); + var target = target_vvvvwcn.some(target_vvvvwcn_SomeFunc); // set this function logic @@ -308,54 +308,54 @@ function vvvvwbr(how_vvvvwbr,target_vvvvwbr) } } -// the vvvvwbr Some function -function how_vvvvwbr_SomeFunc(how_vvvvwbr) +// the vvvvwcn Some function +function how_vvvvwcn_SomeFunc(how_vvvvwcn) { // set the function logic - if (how_vvvvwbr == 1 || how_vvvvwbr == 2 || how_vvvvwbr == 3) + if (how_vvvvwcn == 1 || how_vvvvwcn == 2 || how_vvvvwcn == 3) { return true; } return false; } -// the vvvvwbr Some function -function target_vvvvwbr_SomeFunc(target_vvvvwbr) +// the vvvvwcn Some function +function target_vvvvwcn_SomeFunc(target_vvvvwcn) { // set the function logic - if (target_vvvvwbr == 1) + if (target_vvvvwcn == 1) { return true; } return false; } -// the vvvvwbt function -function vvvvwbt(how_vvvvwbt,target_vvvvwbt) +// the vvvvwcp function +function vvvvwcp(how_vvvvwcp,target_vvvvwcp) { - if (isSet(how_vvvvwbt) && how_vvvvwbt.constructor !== Array) + if (isSet(how_vvvvwcp) && how_vvvvwcp.constructor !== Array) { - var temp_vvvvwbt = how_vvvvwbt; - var how_vvvvwbt = []; - how_vvvvwbt.push(temp_vvvvwbt); + var temp_vvvvwcp = how_vvvvwcp; + var how_vvvvwcp = []; + how_vvvvwcp.push(temp_vvvvwcp); } - else if (!isSet(how_vvvvwbt)) + else if (!isSet(how_vvvvwcp)) { - var how_vvvvwbt = []; + var how_vvvvwcp = []; } - var how = how_vvvvwbt.some(how_vvvvwbt_SomeFunc); + var how = how_vvvvwcp.some(how_vvvvwcp_SomeFunc); - if (isSet(target_vvvvwbt) && target_vvvvwbt.constructor !== Array) + if (isSet(target_vvvvwcp) && target_vvvvwcp.constructor !== Array) { - var temp_vvvvwbt = target_vvvvwbt; - var target_vvvvwbt = []; - target_vvvvwbt.push(temp_vvvvwbt); + var temp_vvvvwcp = target_vvvvwcp; + var target_vvvvwcp = []; + target_vvvvwcp.push(temp_vvvvwcp); } - else if (!isSet(target_vvvvwbt)) + else if (!isSet(target_vvvvwcp)) { - var target_vvvvwbt = []; + var target_vvvvwcp = []; } - var target = target_vvvvwbt.some(target_vvvvwbt_SomeFunc); + var target = target_vvvvwcp.some(target_vvvvwcp_SomeFunc); // set this function logic @@ -373,54 +373,54 @@ function vvvvwbt(how_vvvvwbt,target_vvvvwbt) } } -// the vvvvwbt Some function -function how_vvvvwbt_SomeFunc(how_vvvvwbt) +// the vvvvwcp Some function +function how_vvvvwcp_SomeFunc(how_vvvvwcp) { // set the function logic - if (how_vvvvwbt == 0) + if (how_vvvvwcp == 0) { return true; } return false; } -// the vvvvwbt Some function -function target_vvvvwbt_SomeFunc(target_vvvvwbt) +// the vvvvwcp Some function +function target_vvvvwcp_SomeFunc(target_vvvvwcp) { // set the function logic - if (target_vvvvwbt == 1) + if (target_vvvvwcp == 1) { return true; } return false; } -// the vvvvwbu function -function vvvvwbu(target_vvvvwbu,how_vvvvwbu) +// the vvvvwcq function +function vvvvwcq(target_vvvvwcq,how_vvvvwcq) { - if (isSet(target_vvvvwbu) && target_vvvvwbu.constructor !== Array) + if (isSet(target_vvvvwcq) && target_vvvvwcq.constructor !== Array) { - var temp_vvvvwbu = target_vvvvwbu; - var target_vvvvwbu = []; - target_vvvvwbu.push(temp_vvvvwbu); + var temp_vvvvwcq = target_vvvvwcq; + var target_vvvvwcq = []; + target_vvvvwcq.push(temp_vvvvwcq); } - else if (!isSet(target_vvvvwbu)) + else if (!isSet(target_vvvvwcq)) { - var target_vvvvwbu = []; + var target_vvvvwcq = []; } - var target = target_vvvvwbu.some(target_vvvvwbu_SomeFunc); + var target = target_vvvvwcq.some(target_vvvvwcq_SomeFunc); - if (isSet(how_vvvvwbu) && how_vvvvwbu.constructor !== Array) + if (isSet(how_vvvvwcq) && how_vvvvwcq.constructor !== Array) { - var temp_vvvvwbu = how_vvvvwbu; - var how_vvvvwbu = []; - how_vvvvwbu.push(temp_vvvvwbu); + var temp_vvvvwcq = how_vvvvwcq; + var how_vvvvwcq = []; + how_vvvvwcq.push(temp_vvvvwcq); } - else if (!isSet(how_vvvvwbu)) + else if (!isSet(how_vvvvwcq)) { - var how_vvvvwbu = []; + var how_vvvvwcq = []; } - var how = how_vvvvwbu.some(how_vvvvwbu_SomeFunc); + var how = how_vvvvwcq.some(how_vvvvwcq_SomeFunc); // set this function logic @@ -438,54 +438,54 @@ function vvvvwbu(target_vvvvwbu,how_vvvvwbu) } } -// the vvvvwbu Some function -function target_vvvvwbu_SomeFunc(target_vvvvwbu) +// the vvvvwcq Some function +function target_vvvvwcq_SomeFunc(target_vvvvwcq) { // set the function logic - if (target_vvvvwbu == 1) + if (target_vvvvwcq == 1) { return true; } return false; } -// the vvvvwbu Some function -function how_vvvvwbu_SomeFunc(how_vvvvwbu) +// the vvvvwcq Some function +function how_vvvvwcq_SomeFunc(how_vvvvwcq) { // set the function logic - if (how_vvvvwbu == 0) + if (how_vvvvwcq == 0) { return true; } return false; } -// the vvvvwbv function -function vvvvwbv(how_vvvvwbv,target_vvvvwbv) +// the vvvvwcr function +function vvvvwcr(how_vvvvwcr,target_vvvvwcr) { - if (isSet(how_vvvvwbv) && how_vvvvwbv.constructor !== Array) + if (isSet(how_vvvvwcr) && how_vvvvwcr.constructor !== Array) { - var temp_vvvvwbv = how_vvvvwbv; - var how_vvvvwbv = []; - how_vvvvwbv.push(temp_vvvvwbv); + var temp_vvvvwcr = how_vvvvwcr; + var how_vvvvwcr = []; + how_vvvvwcr.push(temp_vvvvwcr); } - else if (!isSet(how_vvvvwbv)) + else if (!isSet(how_vvvvwcr)) { - var how_vvvvwbv = []; + var how_vvvvwcr = []; } - var how = how_vvvvwbv.some(how_vvvvwbv_SomeFunc); + var how = how_vvvvwcr.some(how_vvvvwcr_SomeFunc); - if (isSet(target_vvvvwbv) && target_vvvvwbv.constructor !== Array) + if (isSet(target_vvvvwcr) && target_vvvvwcr.constructor !== Array) { - var temp_vvvvwbv = target_vvvvwbv; - var target_vvvvwbv = []; - target_vvvvwbv.push(temp_vvvvwbv); + var temp_vvvvwcr = target_vvvvwcr; + var target_vvvvwcr = []; + target_vvvvwcr.push(temp_vvvvwcr); } - else if (!isSet(target_vvvvwbv)) + else if (!isSet(target_vvvvwcr)) { - var target_vvvvwbv = []; + var target_vvvvwcr = []; } - var target = target_vvvvwbv.some(target_vvvvwbv_SomeFunc); + var target = target_vvvvwcr.some(target_vvvvwcr_SomeFunc); // set this function logic @@ -501,54 +501,54 @@ function vvvvwbv(how_vvvvwbv,target_vvvvwbv) } } -// the vvvvwbv Some function -function how_vvvvwbv_SomeFunc(how_vvvvwbv) +// the vvvvwcr Some function +function how_vvvvwcr_SomeFunc(how_vvvvwcr) { // set the function logic - if (how_vvvvwbv == 1) + if (how_vvvvwcr == 1) { return true; } return false; } -// the vvvvwbv Some function -function target_vvvvwbv_SomeFunc(target_vvvvwbv) +// the vvvvwcr Some function +function target_vvvvwcr_SomeFunc(target_vvvvwcr) { // set the function logic - if (target_vvvvwbv == 1) + if (target_vvvvwcr == 1) { return true; } return false; } -// the vvvvwbw function -function vvvvwbw(target_vvvvwbw,how_vvvvwbw) +// the vvvvwcs function +function vvvvwcs(target_vvvvwcs,how_vvvvwcs) { - if (isSet(target_vvvvwbw) && target_vvvvwbw.constructor !== Array) + if (isSet(target_vvvvwcs) && target_vvvvwcs.constructor !== Array) { - var temp_vvvvwbw = target_vvvvwbw; - var target_vvvvwbw = []; - target_vvvvwbw.push(temp_vvvvwbw); + var temp_vvvvwcs = target_vvvvwcs; + var target_vvvvwcs = []; + target_vvvvwcs.push(temp_vvvvwcs); } - else if (!isSet(target_vvvvwbw)) + else if (!isSet(target_vvvvwcs)) { - var target_vvvvwbw = []; + var target_vvvvwcs = []; } - var target = target_vvvvwbw.some(target_vvvvwbw_SomeFunc); + var target = target_vvvvwcs.some(target_vvvvwcs_SomeFunc); - if (isSet(how_vvvvwbw) && how_vvvvwbw.constructor !== Array) + if (isSet(how_vvvvwcs) && how_vvvvwcs.constructor !== Array) { - var temp_vvvvwbw = how_vvvvwbw; - var how_vvvvwbw = []; - how_vvvvwbw.push(temp_vvvvwbw); + var temp_vvvvwcs = how_vvvvwcs; + var how_vvvvwcs = []; + how_vvvvwcs.push(temp_vvvvwcs); } - else if (!isSet(how_vvvvwbw)) + else if (!isSet(how_vvvvwcs)) { - var how_vvvvwbw = []; + var how_vvvvwcs = []; } - var how = how_vvvvwbw.some(how_vvvvwbw_SomeFunc); + var how = how_vvvvwcs.some(how_vvvvwcs_SomeFunc); // set this function logic @@ -564,54 +564,54 @@ function vvvvwbw(target_vvvvwbw,how_vvvvwbw) } } -// the vvvvwbw Some function -function target_vvvvwbw_SomeFunc(target_vvvvwbw) +// the vvvvwcs Some function +function target_vvvvwcs_SomeFunc(target_vvvvwcs) { // set the function logic - if (target_vvvvwbw == 1) + if (target_vvvvwcs == 1) { return true; } return false; } -// the vvvvwbw Some function -function how_vvvvwbw_SomeFunc(how_vvvvwbw) +// the vvvvwcs Some function +function how_vvvvwcs_SomeFunc(how_vvvvwcs) { // set the function logic - if (how_vvvvwbw == 1) + if (how_vvvvwcs == 1) { return true; } return false; } -// the vvvvwbx function -function vvvvwbx(how_vvvvwbx,target_vvvvwbx) +// the vvvvwct function +function vvvvwct(how_vvvvwct,target_vvvvwct) { - if (isSet(how_vvvvwbx) && how_vvvvwbx.constructor !== Array) + if (isSet(how_vvvvwct) && how_vvvvwct.constructor !== Array) { - var temp_vvvvwbx = how_vvvvwbx; - var how_vvvvwbx = []; - how_vvvvwbx.push(temp_vvvvwbx); + var temp_vvvvwct = how_vvvvwct; + var how_vvvvwct = []; + how_vvvvwct.push(temp_vvvvwct); } - else if (!isSet(how_vvvvwbx)) + else if (!isSet(how_vvvvwct)) { - var how_vvvvwbx = []; + var how_vvvvwct = []; } - var how = how_vvvvwbx.some(how_vvvvwbx_SomeFunc); + var how = how_vvvvwct.some(how_vvvvwct_SomeFunc); - if (isSet(target_vvvvwbx) && target_vvvvwbx.constructor !== Array) + if (isSet(target_vvvvwct) && target_vvvvwct.constructor !== Array) { - var temp_vvvvwbx = target_vvvvwbx; - var target_vvvvwbx = []; - target_vvvvwbx.push(temp_vvvvwbx); + var temp_vvvvwct = target_vvvvwct; + var target_vvvvwct = []; + target_vvvvwct.push(temp_vvvvwct); } - else if (!isSet(target_vvvvwbx)) + else if (!isSet(target_vvvvwct)) { - var target_vvvvwbx = []; + var target_vvvvwct = []; } - var target = target_vvvvwbx.some(target_vvvvwbx_SomeFunc); + var target = target_vvvvwct.some(target_vvvvwct_SomeFunc); // set this function logic @@ -629,54 +629,54 @@ function vvvvwbx(how_vvvvwbx,target_vvvvwbx) } } -// the vvvvwbx Some function -function how_vvvvwbx_SomeFunc(how_vvvvwbx) +// the vvvvwct Some function +function how_vvvvwct_SomeFunc(how_vvvvwct) { // set the function logic - if (how_vvvvwbx == 4) + if (how_vvvvwct == 4) { return true; } return false; } -// the vvvvwbx Some function -function target_vvvvwbx_SomeFunc(target_vvvvwbx) +// the vvvvwct Some function +function target_vvvvwct_SomeFunc(target_vvvvwct) { // set the function logic - if (target_vvvvwbx == 1) + if (target_vvvvwct == 1) { return true; } return false; } -// the vvvvwby function -function vvvvwby(target_vvvvwby,how_vvvvwby) +// the vvvvwcu function +function vvvvwcu(target_vvvvwcu,how_vvvvwcu) { - if (isSet(target_vvvvwby) && target_vvvvwby.constructor !== Array) + if (isSet(target_vvvvwcu) && target_vvvvwcu.constructor !== Array) { - var temp_vvvvwby = target_vvvvwby; - var target_vvvvwby = []; - target_vvvvwby.push(temp_vvvvwby); + var temp_vvvvwcu = target_vvvvwcu; + var target_vvvvwcu = []; + target_vvvvwcu.push(temp_vvvvwcu); } - else if (!isSet(target_vvvvwby)) + else if (!isSet(target_vvvvwcu)) { - var target_vvvvwby = []; + var target_vvvvwcu = []; } - var target = target_vvvvwby.some(target_vvvvwby_SomeFunc); + var target = target_vvvvwcu.some(target_vvvvwcu_SomeFunc); - if (isSet(how_vvvvwby) && how_vvvvwby.constructor !== Array) + if (isSet(how_vvvvwcu) && how_vvvvwcu.constructor !== Array) { - var temp_vvvvwby = how_vvvvwby; - var how_vvvvwby = []; - how_vvvvwby.push(temp_vvvvwby); + var temp_vvvvwcu = how_vvvvwcu; + var how_vvvvwcu = []; + how_vvvvwcu.push(temp_vvvvwcu); } - else if (!isSet(how_vvvvwby)) + else if (!isSet(how_vvvvwcu)) { - var how_vvvvwby = []; + var how_vvvvwcu = []; } - var how = how_vvvvwby.some(how_vvvvwby_SomeFunc); + var how = how_vvvvwcu.some(how_vvvvwcu_SomeFunc); // set this function logic @@ -694,117 +694,117 @@ function vvvvwby(target_vvvvwby,how_vvvvwby) } } -// the vvvvwby Some function -function target_vvvvwby_SomeFunc(target_vvvvwby) +// the vvvvwcu Some function +function target_vvvvwcu_SomeFunc(target_vvvvwcu) { // set the function logic - if (target_vvvvwby == 1) + if (target_vvvvwcu == 1) { return true; } return false; } -// the vvvvwby Some function -function how_vvvvwby_SomeFunc(how_vvvvwby) +// the vvvvwcu Some function +function how_vvvvwcu_SomeFunc(how_vvvvwcu) { // set the function logic - if (how_vvvvwby == 4) + if (how_vvvvwcu == 4) { return true; } return false; } -// the vvvvwbz function -function vvvvwbz(target_vvvvwbz,type_vvvvwbz) +// the vvvvwcv function +function vvvvwcv(target_vvvvwcv,type_vvvvwcv) { // set the function logic - if (target_vvvvwbz == 1 && type_vvvvwbz == 2) + if (target_vvvvwcv == 1 && type_vvvvwcv == 2) { jQuery('#jform_libraries').closest('.control-group').show(); // add required attribute to libraries field - if (jform_vvvvwbzvxk_required) + if (jform_vvvvwcvvxo_required) { updateFieldRequired('libraries',0); jQuery('#jform_libraries').prop('required','required'); jQuery('#jform_libraries').attr('aria-required',true); jQuery('#jform_libraries').addClass('required'); - jform_vvvvwbzvxk_required = false; + jform_vvvvwcvvxo_required = false; } } else { jQuery('#jform_libraries').closest('.control-group').hide(); // remove required attribute from libraries field - if (!jform_vvvvwbzvxk_required) + if (!jform_vvvvwcvvxo_required) { updateFieldRequired('libraries',1); jQuery('#jform_libraries').removeAttr('required'); jQuery('#jform_libraries').removeAttr('aria-required'); jQuery('#jform_libraries').removeClass('required'); - jform_vvvvwbzvxk_required = true; + jform_vvvvwcvvxo_required = true; } } } -// the vvvvwcb function -function vvvvwcb(target_vvvvwcb) +// the vvvvwcx function +function vvvvwcx(target_vvvvwcx) { // set the function logic - if (target_vvvvwcb == 1) + if (target_vvvvwcx == 1) { jQuery('#jform_how').closest('.control-group').show(); // add required attribute to how field - if (jform_vvvvwcbvxl_required) + if (jform_vvvvwcxvxp_required) { updateFieldRequired('how',0); jQuery('#jform_how').prop('required','required'); jQuery('#jform_how').attr('aria-required',true); jQuery('#jform_how').addClass('required'); - jform_vvvvwcbvxl_required = false; + jform_vvvvwcxvxp_required = false; } jQuery('#jform_type').closest('.control-group').show(); // add required attribute to type field - if (jform_vvvvwcbvxm_required) + if (jform_vvvvwcxvxq_required) { updateFieldRequired('type',0); jQuery('#jform_type').prop('required','required'); jQuery('#jform_type').attr('aria-required',true); jQuery('#jform_type').addClass('required'); - jform_vvvvwcbvxm_required = false; + jform_vvvvwcxvxq_required = false; } } else { jQuery('#jform_how').closest('.control-group').hide(); // remove required attribute from how field - if (!jform_vvvvwcbvxl_required) + if (!jform_vvvvwcxvxp_required) { updateFieldRequired('how',1); jQuery('#jform_how').removeAttr('required'); jQuery('#jform_how').removeAttr('aria-required'); jQuery('#jform_how').removeClass('required'); - jform_vvvvwcbvxl_required = true; + jform_vvvvwcxvxp_required = true; } jQuery('#jform_type').closest('.control-group').hide(); // remove required attribute from type field - if (!jform_vvvvwcbvxm_required) + if (!jform_vvvvwcxvxq_required) { updateFieldRequired('type',1); jQuery('#jform_type').removeAttr('required'); jQuery('#jform_type').removeAttr('aria-required'); jQuery('#jform_type').removeClass('required'); - jform_vvvvwcbvxm_required = true; + jform_vvvvwcxvxq_required = true; } } } -// the vvvvwcc function -function vvvvwcc(target_vvvvwcc) +// the vvvvwcy function +function vvvvwcy(target_vvvvwcy) { // set the function logic - if (target_vvvvwcc == 2) + if (target_vvvvwcy == 2) { jQuery('.note_yes_behaviour_library').closest('.control-group').show(); } diff --git a/admin/models/forms/server.js b/admin/models/forms/server.js index 87d264606..cce340b32 100644 --- a/admin/models/forms/server.js +++ b/admin/models/forms/server.js @@ -9,56 +9,56 @@ */ // Some Global Values -jform_vvvvwdevyj_required = false; -jform_vvvvwdevyk_required = false; -jform_vvvvwdevyl_required = false; -jform_vvvvwdevym_required = false; -jform_vvvvwdevyn_required = false; -jform_vvvvwdfvyo_required = false; -jform_vvvvwdgvyp_required = false; -jform_vvvvwdivyq_required = false; -jform_vvvvwdkvyr_required = false; +jform_vvvvweavyn_required = false; +jform_vvvvweavyo_required = false; +jform_vvvvweavyp_required = false; +jform_vvvvweavyq_required = false; +jform_vvvvweavyr_required = false; +jform_vvvvwebvys_required = false; +jform_vvvvwecvyt_required = false; +jform_vvvvweevyu_required = false; +jform_vvvvwegvyv_required = false; // Initial Script jQuery(document).ready(function() { - var protocol_vvvvwde = jQuery("#jform_protocol").val(); - vvvvwde(protocol_vvvvwde); + var protocol_vvvvwea = jQuery("#jform_protocol").val(); + vvvvwea(protocol_vvvvwea); - var protocol_vvvvwdf = jQuery("#jform_protocol").val(); - vvvvwdf(protocol_vvvvwdf); + var protocol_vvvvweb = jQuery("#jform_protocol").val(); + vvvvweb(protocol_vvvvweb); - var protocol_vvvvwdg = jQuery("#jform_protocol").val(); - var authentication_vvvvwdg = jQuery("#jform_authentication").val(); - vvvvwdg(protocol_vvvvwdg,authentication_vvvvwdg); + var protocol_vvvvwec = jQuery("#jform_protocol").val(); + var authentication_vvvvwec = jQuery("#jform_authentication").val(); + vvvvwec(protocol_vvvvwec,authentication_vvvvwec); - var protocol_vvvvwdi = jQuery("#jform_protocol").val(); - var authentication_vvvvwdi = jQuery("#jform_authentication").val(); - vvvvwdi(protocol_vvvvwdi,authentication_vvvvwdi); + var protocol_vvvvwee = jQuery("#jform_protocol").val(); + var authentication_vvvvwee = jQuery("#jform_authentication").val(); + vvvvwee(protocol_vvvvwee,authentication_vvvvwee); - var protocol_vvvvwdk = jQuery("#jform_protocol").val(); - var authentication_vvvvwdk = jQuery("#jform_authentication").val(); - vvvvwdk(protocol_vvvvwdk,authentication_vvvvwdk); + var protocol_vvvvweg = jQuery("#jform_protocol").val(); + var authentication_vvvvweg = jQuery("#jform_authentication").val(); + vvvvweg(protocol_vvvvweg,authentication_vvvvweg); - var protocol_vvvvwdm = jQuery("#jform_protocol").val(); - var authentication_vvvvwdm = jQuery("#jform_authentication").val(); - vvvvwdm(protocol_vvvvwdm,authentication_vvvvwdm); + var protocol_vvvvwei = jQuery("#jform_protocol").val(); + var authentication_vvvvwei = jQuery("#jform_authentication").val(); + vvvvwei(protocol_vvvvwei,authentication_vvvvwei); }); -// the vvvvwde function -function vvvvwde(protocol_vvvvwde) +// the vvvvwea function +function vvvvwea(protocol_vvvvwea) { - if (isSet(protocol_vvvvwde) && protocol_vvvvwde.constructor !== Array) + if (isSet(protocol_vvvvwea) && protocol_vvvvwea.constructor !== Array) { - var temp_vvvvwde = protocol_vvvvwde; - var protocol_vvvvwde = []; - protocol_vvvvwde.push(temp_vvvvwde); + var temp_vvvvwea = protocol_vvvvwea; + var protocol_vvvvwea = []; + protocol_vvvvwea.push(temp_vvvvwea); } - else if (!isSet(protocol_vvvvwde)) + else if (!isSet(protocol_vvvvwea)) { - var protocol_vvvvwde = []; + var protocol_vvvvwea = []; } - var protocol = protocol_vvvvwde.some(protocol_vvvvwde_SomeFunc); + var protocol = protocol_vvvvwea.some(protocol_vvvvwea_SomeFunc); // set this function logic @@ -66,137 +66,137 @@ function vvvvwde(protocol_vvvvwde) { jQuery('#jform_authentication').closest('.control-group').show(); // add required attribute to authentication field - if (jform_vvvvwdevyj_required) + if (jform_vvvvweavyn_required) { updateFieldRequired('authentication',0); jQuery('#jform_authentication').prop('required','required'); jQuery('#jform_authentication').attr('aria-required',true); jQuery('#jform_authentication').addClass('required'); - jform_vvvvwdevyj_required = false; + jform_vvvvweavyn_required = false; } jQuery('#jform_host').closest('.control-group').show(); // add required attribute to host field - if (jform_vvvvwdevyk_required) + if (jform_vvvvweavyo_required) { updateFieldRequired('host',0); jQuery('#jform_host').prop('required','required'); jQuery('#jform_host').attr('aria-required',true); jQuery('#jform_host').addClass('required'); - jform_vvvvwdevyk_required = false; + jform_vvvvweavyo_required = false; } jQuery('#jform_port').closest('.control-group').show(); // add required attribute to port field - if (jform_vvvvwdevyl_required) + if (jform_vvvvweavyp_required) { updateFieldRequired('port',0); jQuery('#jform_port').prop('required','required'); jQuery('#jform_port').attr('aria-required',true); jQuery('#jform_port').addClass('required'); - jform_vvvvwdevyl_required = false; + jform_vvvvweavyp_required = false; } jQuery('#jform_path').closest('.control-group').show(); // add required attribute to path field - if (jform_vvvvwdevym_required) + if (jform_vvvvweavyq_required) { updateFieldRequired('path',0); jQuery('#jform_path').prop('required','required'); jQuery('#jform_path').attr('aria-required',true); jQuery('#jform_path').addClass('required'); - jform_vvvvwdevym_required = false; + jform_vvvvweavyq_required = false; } jQuery('.note_ssh_security').closest('.control-group').show(); jQuery('#jform_username').closest('.control-group').show(); // add required attribute to username field - if (jform_vvvvwdevyn_required) + if (jform_vvvvweavyr_required) { updateFieldRequired('username',0); jQuery('#jform_username').prop('required','required'); jQuery('#jform_username').attr('aria-required',true); jQuery('#jform_username').addClass('required'); - jform_vvvvwdevyn_required = false; + jform_vvvvweavyr_required = false; } } else { jQuery('#jform_authentication').closest('.control-group').hide(); // remove required attribute from authentication field - if (!jform_vvvvwdevyj_required) + if (!jform_vvvvweavyn_required) { updateFieldRequired('authentication',1); jQuery('#jform_authentication').removeAttr('required'); jQuery('#jform_authentication').removeAttr('aria-required'); jQuery('#jform_authentication').removeClass('required'); - jform_vvvvwdevyj_required = true; + jform_vvvvweavyn_required = true; } jQuery('#jform_host').closest('.control-group').hide(); // remove required attribute from host field - if (!jform_vvvvwdevyk_required) + if (!jform_vvvvweavyo_required) { updateFieldRequired('host',1); jQuery('#jform_host').removeAttr('required'); jQuery('#jform_host').removeAttr('aria-required'); jQuery('#jform_host').removeClass('required'); - jform_vvvvwdevyk_required = true; + jform_vvvvweavyo_required = true; } jQuery('#jform_port').closest('.control-group').hide(); // remove required attribute from port field - if (!jform_vvvvwdevyl_required) + if (!jform_vvvvweavyp_required) { updateFieldRequired('port',1); jQuery('#jform_port').removeAttr('required'); jQuery('#jform_port').removeAttr('aria-required'); jQuery('#jform_port').removeClass('required'); - jform_vvvvwdevyl_required = true; + jform_vvvvweavyp_required = true; } jQuery('#jform_path').closest('.control-group').hide(); // remove required attribute from path field - if (!jform_vvvvwdevym_required) + if (!jform_vvvvweavyq_required) { updateFieldRequired('path',1); jQuery('#jform_path').removeAttr('required'); jQuery('#jform_path').removeAttr('aria-required'); jQuery('#jform_path').removeClass('required'); - jform_vvvvwdevym_required = true; + jform_vvvvweavyq_required = true; } jQuery('.note_ssh_security').closest('.control-group').hide(); jQuery('#jform_username').closest('.control-group').hide(); // remove required attribute from username field - if (!jform_vvvvwdevyn_required) + if (!jform_vvvvweavyr_required) { updateFieldRequired('username',1); jQuery('#jform_username').removeAttr('required'); jQuery('#jform_username').removeAttr('aria-required'); jQuery('#jform_username').removeClass('required'); - jform_vvvvwdevyn_required = true; + jform_vvvvweavyr_required = true; } } } -// the vvvvwde Some function -function protocol_vvvvwde_SomeFunc(protocol_vvvvwde) +// the vvvvwea Some function +function protocol_vvvvwea_SomeFunc(protocol_vvvvwea) { // set the function logic - if (protocol_vvvvwde == 2) + if (protocol_vvvvwea == 2) { return true; } return false; } -// the vvvvwdf function -function vvvvwdf(protocol_vvvvwdf) +// the vvvvweb function +function vvvvweb(protocol_vvvvweb) { - if (isSet(protocol_vvvvwdf) && protocol_vvvvwdf.constructor !== Array) + if (isSet(protocol_vvvvweb) && protocol_vvvvweb.constructor !== Array) { - var temp_vvvvwdf = protocol_vvvvwdf; - var protocol_vvvvwdf = []; - protocol_vvvvwdf.push(temp_vvvvwdf); + var temp_vvvvweb = protocol_vvvvweb; + var protocol_vvvvweb = []; + protocol_vvvvweb.push(temp_vvvvweb); } - else if (!isSet(protocol_vvvvwdf)) + else if (!isSet(protocol_vvvvweb)) { - var protocol_vvvvwdf = []; + var protocol_vvvvweb = []; } - var protocol = protocol_vvvvwdf.some(protocol_vvvvwdf_SomeFunc); + var protocol = protocol_vvvvweb.some(protocol_vvvvweb_SomeFunc); // set this function logic @@ -205,13 +205,13 @@ function vvvvwdf(protocol_vvvvwdf) jQuery('.note_ftp_signature').closest('.control-group').show(); jQuery('#jform_signature').closest('.control-group').show(); // add required attribute to signature field - if (jform_vvvvwdfvyo_required) + if (jform_vvvvwebvys_required) { updateFieldRequired('signature',0); jQuery('#jform_signature').prop('required','required'); jQuery('#jform_signature').attr('aria-required',true); jQuery('#jform_signature').addClass('required'); - jform_vvvvwdfvyo_required = false; + jform_vvvvwebvys_required = false; } } else @@ -219,54 +219,54 @@ function vvvvwdf(protocol_vvvvwdf) jQuery('.note_ftp_signature').closest('.control-group').hide(); jQuery('#jform_signature').closest('.control-group').hide(); // remove required attribute from signature field - if (!jform_vvvvwdfvyo_required) + if (!jform_vvvvwebvys_required) { updateFieldRequired('signature',1); jQuery('#jform_signature').removeAttr('required'); jQuery('#jform_signature').removeAttr('aria-required'); jQuery('#jform_signature').removeClass('required'); - jform_vvvvwdfvyo_required = true; + jform_vvvvwebvys_required = true; } } } -// the vvvvwdf Some function -function protocol_vvvvwdf_SomeFunc(protocol_vvvvwdf) +// the vvvvweb Some function +function protocol_vvvvweb_SomeFunc(protocol_vvvvweb) { // set the function logic - if (protocol_vvvvwdf == 1) + if (protocol_vvvvweb == 1) { return true; } return false; } -// the vvvvwdg function -function vvvvwdg(protocol_vvvvwdg,authentication_vvvvwdg) +// the vvvvwec function +function vvvvwec(protocol_vvvvwec,authentication_vvvvwec) { - if (isSet(protocol_vvvvwdg) && protocol_vvvvwdg.constructor !== Array) + if (isSet(protocol_vvvvwec) && protocol_vvvvwec.constructor !== Array) { - var temp_vvvvwdg = protocol_vvvvwdg; - var protocol_vvvvwdg = []; - protocol_vvvvwdg.push(temp_vvvvwdg); + var temp_vvvvwec = protocol_vvvvwec; + var protocol_vvvvwec = []; + protocol_vvvvwec.push(temp_vvvvwec); } - else if (!isSet(protocol_vvvvwdg)) + else if (!isSet(protocol_vvvvwec)) { - var protocol_vvvvwdg = []; + var protocol_vvvvwec = []; } - var protocol = protocol_vvvvwdg.some(protocol_vvvvwdg_SomeFunc); + var protocol = protocol_vvvvwec.some(protocol_vvvvwec_SomeFunc); - if (isSet(authentication_vvvvwdg) && authentication_vvvvwdg.constructor !== Array) + if (isSet(authentication_vvvvwec) && authentication_vvvvwec.constructor !== Array) { - var temp_vvvvwdg = authentication_vvvvwdg; - var authentication_vvvvwdg = []; - authentication_vvvvwdg.push(temp_vvvvwdg); + var temp_vvvvwec = authentication_vvvvwec; + var authentication_vvvvwec = []; + authentication_vvvvwec.push(temp_vvvvwec); } - else if (!isSet(authentication_vvvvwdg)) + else if (!isSet(authentication_vvvvwec)) { - var authentication_vvvvwdg = []; + var authentication_vvvvwec = []; } - var authentication = authentication_vvvvwdg.some(authentication_vvvvwdg_SomeFunc); + var authentication = authentication_vvvvwec.some(authentication_vvvvwec_SomeFunc); // set this function logic @@ -274,78 +274,78 @@ function vvvvwdg(protocol_vvvvwdg,authentication_vvvvwdg) { jQuery('#jform_password').closest('.control-group').show(); // add required attribute to password field - if (jform_vvvvwdgvyp_required) + if (jform_vvvvwecvyt_required) { updateFieldRequired('password',0); jQuery('#jform_password').prop('required','required'); jQuery('#jform_password').attr('aria-required',true); jQuery('#jform_password').addClass('required'); - jform_vvvvwdgvyp_required = false; + jform_vvvvwecvyt_required = false; } } else { jQuery('#jform_password').closest('.control-group').hide(); // remove required attribute from password field - if (!jform_vvvvwdgvyp_required) + if (!jform_vvvvwecvyt_required) { updateFieldRequired('password',1); jQuery('#jform_password').removeAttr('required'); jQuery('#jform_password').removeAttr('aria-required'); jQuery('#jform_password').removeClass('required'); - jform_vvvvwdgvyp_required = true; + jform_vvvvwecvyt_required = true; } } } -// the vvvvwdg Some function -function protocol_vvvvwdg_SomeFunc(protocol_vvvvwdg) +// the vvvvwec Some function +function protocol_vvvvwec_SomeFunc(protocol_vvvvwec) { // set the function logic - if (protocol_vvvvwdg == 2) + if (protocol_vvvvwec == 2) { return true; } return false; } -// the vvvvwdg Some function -function authentication_vvvvwdg_SomeFunc(authentication_vvvvwdg) +// the vvvvwec Some function +function authentication_vvvvwec_SomeFunc(authentication_vvvvwec) { // set the function logic - if (authentication_vvvvwdg == 1 || authentication_vvvvwdg == 3 || authentication_vvvvwdg == 5) + if (authentication_vvvvwec == 1 || authentication_vvvvwec == 3 || authentication_vvvvwec == 5) { return true; } return false; } -// the vvvvwdi function -function vvvvwdi(protocol_vvvvwdi,authentication_vvvvwdi) +// the vvvvwee function +function vvvvwee(protocol_vvvvwee,authentication_vvvvwee) { - if (isSet(protocol_vvvvwdi) && protocol_vvvvwdi.constructor !== Array) + if (isSet(protocol_vvvvwee) && protocol_vvvvwee.constructor !== Array) { - var temp_vvvvwdi = protocol_vvvvwdi; - var protocol_vvvvwdi = []; - protocol_vvvvwdi.push(temp_vvvvwdi); + var temp_vvvvwee = protocol_vvvvwee; + var protocol_vvvvwee = []; + protocol_vvvvwee.push(temp_vvvvwee); } - else if (!isSet(protocol_vvvvwdi)) + else if (!isSet(protocol_vvvvwee)) { - var protocol_vvvvwdi = []; + var protocol_vvvvwee = []; } - var protocol = protocol_vvvvwdi.some(protocol_vvvvwdi_SomeFunc); + var protocol = protocol_vvvvwee.some(protocol_vvvvwee_SomeFunc); - if (isSet(authentication_vvvvwdi) && authentication_vvvvwdi.constructor !== Array) + if (isSet(authentication_vvvvwee) && authentication_vvvvwee.constructor !== Array) { - var temp_vvvvwdi = authentication_vvvvwdi; - var authentication_vvvvwdi = []; - authentication_vvvvwdi.push(temp_vvvvwdi); + var temp_vvvvwee = authentication_vvvvwee; + var authentication_vvvvwee = []; + authentication_vvvvwee.push(temp_vvvvwee); } - else if (!isSet(authentication_vvvvwdi)) + else if (!isSet(authentication_vvvvwee)) { - var authentication_vvvvwdi = []; + var authentication_vvvvwee = []; } - var authentication = authentication_vvvvwdi.some(authentication_vvvvwdi_SomeFunc); + var authentication = authentication_vvvvwee.some(authentication_vvvvwee_SomeFunc); // set this function logic @@ -353,78 +353,78 @@ function vvvvwdi(protocol_vvvvwdi,authentication_vvvvwdi) { jQuery('#jform_private').closest('.control-group').show(); // add required attribute to private field - if (jform_vvvvwdivyq_required) + if (jform_vvvvweevyu_required) { updateFieldRequired('private',0); jQuery('#jform_private').prop('required','required'); jQuery('#jform_private').attr('aria-required',true); jQuery('#jform_private').addClass('required'); - jform_vvvvwdivyq_required = false; + jform_vvvvweevyu_required = false; } } else { jQuery('#jform_private').closest('.control-group').hide(); // remove required attribute from private field - if (!jform_vvvvwdivyq_required) + if (!jform_vvvvweevyu_required) { updateFieldRequired('private',1); jQuery('#jform_private').removeAttr('required'); jQuery('#jform_private').removeAttr('aria-required'); jQuery('#jform_private').removeClass('required'); - jform_vvvvwdivyq_required = true; + jform_vvvvweevyu_required = true; } } } -// the vvvvwdi Some function -function protocol_vvvvwdi_SomeFunc(protocol_vvvvwdi) +// the vvvvwee Some function +function protocol_vvvvwee_SomeFunc(protocol_vvvvwee) { // set the function logic - if (protocol_vvvvwdi == 2) + if (protocol_vvvvwee == 2) { return true; } return false; } -// the vvvvwdi Some function -function authentication_vvvvwdi_SomeFunc(authentication_vvvvwdi) +// the vvvvwee Some function +function authentication_vvvvwee_SomeFunc(authentication_vvvvwee) { // set the function logic - if (authentication_vvvvwdi == 2 || authentication_vvvvwdi == 3) + if (authentication_vvvvwee == 2 || authentication_vvvvwee == 3) { return true; } return false; } -// the vvvvwdk function -function vvvvwdk(protocol_vvvvwdk,authentication_vvvvwdk) +// the vvvvweg function +function vvvvweg(protocol_vvvvweg,authentication_vvvvweg) { - if (isSet(protocol_vvvvwdk) && protocol_vvvvwdk.constructor !== Array) + if (isSet(protocol_vvvvweg) && protocol_vvvvweg.constructor !== Array) { - var temp_vvvvwdk = protocol_vvvvwdk; - var protocol_vvvvwdk = []; - protocol_vvvvwdk.push(temp_vvvvwdk); + var temp_vvvvweg = protocol_vvvvweg; + var protocol_vvvvweg = []; + protocol_vvvvweg.push(temp_vvvvweg); } - else if (!isSet(protocol_vvvvwdk)) + else if (!isSet(protocol_vvvvweg)) { - var protocol_vvvvwdk = []; + var protocol_vvvvweg = []; } - var protocol = protocol_vvvvwdk.some(protocol_vvvvwdk_SomeFunc); + var protocol = protocol_vvvvweg.some(protocol_vvvvweg_SomeFunc); - if (isSet(authentication_vvvvwdk) && authentication_vvvvwdk.constructor !== Array) + if (isSet(authentication_vvvvweg) && authentication_vvvvweg.constructor !== Array) { - var temp_vvvvwdk = authentication_vvvvwdk; - var authentication_vvvvwdk = []; - authentication_vvvvwdk.push(temp_vvvvwdk); + var temp_vvvvweg = authentication_vvvvweg; + var authentication_vvvvweg = []; + authentication_vvvvweg.push(temp_vvvvweg); } - else if (!isSet(authentication_vvvvwdk)) + else if (!isSet(authentication_vvvvweg)) { - var authentication_vvvvwdk = []; + var authentication_vvvvweg = []; } - var authentication = authentication_vvvvwdk.some(authentication_vvvvwdk_SomeFunc); + var authentication = authentication_vvvvweg.some(authentication_vvvvweg_SomeFunc); // set this function logic @@ -432,78 +432,78 @@ function vvvvwdk(protocol_vvvvwdk,authentication_vvvvwdk) { jQuery('#jform_private_key').closest('.control-group').show(); // add required attribute to private_key field - if (jform_vvvvwdkvyr_required) + if (jform_vvvvwegvyv_required) { updateFieldRequired('private_key',0); jQuery('#jform_private_key').prop('required','required'); jQuery('#jform_private_key').attr('aria-required',true); jQuery('#jform_private_key').addClass('required'); - jform_vvvvwdkvyr_required = false; + jform_vvvvwegvyv_required = false; } } else { jQuery('#jform_private_key').closest('.control-group').hide(); // remove required attribute from private_key field - if (!jform_vvvvwdkvyr_required) + if (!jform_vvvvwegvyv_required) { updateFieldRequired('private_key',1); jQuery('#jform_private_key').removeAttr('required'); jQuery('#jform_private_key').removeAttr('aria-required'); jQuery('#jform_private_key').removeClass('required'); - jform_vvvvwdkvyr_required = true; + jform_vvvvwegvyv_required = true; } } } -// the vvvvwdk Some function -function protocol_vvvvwdk_SomeFunc(protocol_vvvvwdk) +// the vvvvweg Some function +function protocol_vvvvweg_SomeFunc(protocol_vvvvweg) { // set the function logic - if (protocol_vvvvwdk == 2) + if (protocol_vvvvweg == 2) { return true; } return false; } -// the vvvvwdk Some function -function authentication_vvvvwdk_SomeFunc(authentication_vvvvwdk) +// the vvvvweg Some function +function authentication_vvvvweg_SomeFunc(authentication_vvvvweg) { // set the function logic - if (authentication_vvvvwdk == 4 || authentication_vvvvwdk == 5) + if (authentication_vvvvweg == 4 || authentication_vvvvweg == 5) { return true; } return false; } -// the vvvvwdm function -function vvvvwdm(protocol_vvvvwdm,authentication_vvvvwdm) +// the vvvvwei function +function vvvvwei(protocol_vvvvwei,authentication_vvvvwei) { - if (isSet(protocol_vvvvwdm) && protocol_vvvvwdm.constructor !== Array) + if (isSet(protocol_vvvvwei) && protocol_vvvvwei.constructor !== Array) { - var temp_vvvvwdm = protocol_vvvvwdm; - var protocol_vvvvwdm = []; - protocol_vvvvwdm.push(temp_vvvvwdm); + var temp_vvvvwei = protocol_vvvvwei; + var protocol_vvvvwei = []; + protocol_vvvvwei.push(temp_vvvvwei); } - else if (!isSet(protocol_vvvvwdm)) + else if (!isSet(protocol_vvvvwei)) { - var protocol_vvvvwdm = []; + var protocol_vvvvwei = []; } - var protocol = protocol_vvvvwdm.some(protocol_vvvvwdm_SomeFunc); + var protocol = protocol_vvvvwei.some(protocol_vvvvwei_SomeFunc); - if (isSet(authentication_vvvvwdm) && authentication_vvvvwdm.constructor !== Array) + if (isSet(authentication_vvvvwei) && authentication_vvvvwei.constructor !== Array) { - var temp_vvvvwdm = authentication_vvvvwdm; - var authentication_vvvvwdm = []; - authentication_vvvvwdm.push(temp_vvvvwdm); + var temp_vvvvwei = authentication_vvvvwei; + var authentication_vvvvwei = []; + authentication_vvvvwei.push(temp_vvvvwei); } - else if (!isSet(authentication_vvvvwdm)) + else if (!isSet(authentication_vvvvwei)) { - var authentication_vvvvwdm = []; + var authentication_vvvvwei = []; } - var authentication = authentication_vvvvwdm.some(authentication_vvvvwdm_SomeFunc); + var authentication = authentication_vvvvwei.some(authentication_vvvvwei_SomeFunc); // set this function logic @@ -517,22 +517,22 @@ function vvvvwdm(protocol_vvvvwdm,authentication_vvvvwdm) } } -// the vvvvwdm Some function -function protocol_vvvvwdm_SomeFunc(protocol_vvvvwdm) +// the vvvvwei Some function +function protocol_vvvvwei_SomeFunc(protocol_vvvvwei) { // set the function logic - if (protocol_vvvvwdm == 2) + if (protocol_vvvvwei == 2) { return true; } return false; } -// the vvvvwdm Some function -function authentication_vvvvwdm_SomeFunc(authentication_vvvvwdm) +// the vvvvwei Some function +function authentication_vvvvwei_SomeFunc(authentication_vvvvwei) { // set the function logic - if (authentication_vvvvwdm == 2 || authentication_vvvvwdm == 3 || authentication_vvvvwdm == 4 || authentication_vvvvwdm == 5) + if (authentication_vvvvwei == 2 || authentication_vvvvwei == 3 || authentication_vvvvwei == 4 || authentication_vvvvwei == 5) { return true; } diff --git a/admin/models/forms/site_view.js b/admin/models/forms/site_view.js index a21c99b01..e3c732922 100644 --- a/admin/models/forms/site_view.js +++ b/admin/models/forms/site_view.js @@ -11,45 +11,45 @@ // Initial Script jQuery(document).ready(function() { - var add_php_view_vvvvvzr = jQuery("#jform_add_php_view input[type='radio']:checked").val(); - vvvvvzr(add_php_view_vvvvvzr); + var add_php_view_vvvvwan = jQuery("#jform_add_php_view input[type='radio']:checked").val(); + vvvvwan(add_php_view_vvvvwan); - var add_php_jview_display_vvvvvzs = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val(); - vvvvvzs(add_php_jview_display_vvvvvzs); + var add_php_jview_display_vvvvwao = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val(); + vvvvwao(add_php_jview_display_vvvvwao); - var add_php_jview_vvvvvzt = jQuery("#jform_add_php_jview input[type='radio']:checked").val(); - vvvvvzt(add_php_jview_vvvvvzt); + var add_php_jview_vvvvwap = jQuery("#jform_add_php_jview input[type='radio']:checked").val(); + vvvvwap(add_php_jview_vvvvwap); - var add_php_document_vvvvvzu = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvzu(add_php_document_vvvvvzu); + var add_php_document_vvvvwaq = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvwaq(add_php_document_vvvvwaq); - var add_css_document_vvvvvzv = jQuery("#jform_add_css_document input[type='radio']:checked").val(); - vvvvvzv(add_css_document_vvvvvzv); + var add_css_document_vvvvwar = jQuery("#jform_add_css_document input[type='radio']:checked").val(); + vvvvwar(add_css_document_vvvvwar); - var add_javascript_file_vvvvvzw = jQuery("#jform_add_javascript_file input[type='radio']:checked").val(); - vvvvvzw(add_javascript_file_vvvvvzw); + var add_javascript_file_vvvvwas = jQuery("#jform_add_javascript_file input[type='radio']:checked").val(); + vvvvwas(add_javascript_file_vvvvwas); - var add_js_document_vvvvvzx = jQuery("#jform_add_js_document input[type='radio']:checked").val(); - vvvvvzx(add_js_document_vvvvvzx); + var add_js_document_vvvvwat = jQuery("#jform_add_js_document input[type='radio']:checked").val(); + vvvvwat(add_js_document_vvvvwat); - var add_css_vvvvvzy = jQuery("#jform_add_css input[type='radio']:checked").val(); - vvvvvzy(add_css_vvvvvzy); + var add_css_vvvvwau = jQuery("#jform_add_css input[type='radio']:checked").val(); + vvvvwau(add_css_vvvvwau); - var add_php_ajax_vvvvvzz = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); - vvvvvzz(add_php_ajax_vvvvvzz); + var add_php_ajax_vvvvwav = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); + vvvvwav(add_php_ajax_vvvvwav); - var add_custom_button_vvvvwaa = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); - vvvvwaa(add_custom_button_vvvvwaa); + var add_custom_button_vvvvwaw = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvwaw(add_custom_button_vvvvwaw); - var button_position_vvvvwab = jQuery("#jform_button_position").val(); - vvvvwab(button_position_vvvvwab); + var button_position_vvvvwax = jQuery("#jform_button_position").val(); + vvvvwax(button_position_vvvvwax); }); -// the vvvvvzr function -function vvvvvzr(add_php_view_vvvvvzr) +// the vvvvwan function +function vvvvwan(add_php_view_vvvvwan) { // set the function logic - if (add_php_view_vvvvvzr == 1) + if (add_php_view_vvvvwan == 1) { jQuery('#jform_php_view-lbl').closest('.control-group').show(); } @@ -59,11 +59,11 @@ function vvvvvzr(add_php_view_vvvvvzr) } } -// the vvvvvzs function -function vvvvvzs(add_php_jview_display_vvvvvzs) +// the vvvvwao function +function vvvvwao(add_php_jview_display_vvvvwao) { // set the function logic - if (add_php_jview_display_vvvvvzs == 1) + if (add_php_jview_display_vvvvwao == 1) { jQuery('#jform_php_jview_display-lbl').closest('.control-group').show(); } @@ -73,11 +73,11 @@ function vvvvvzs(add_php_jview_display_vvvvvzs) } } -// the vvvvvzt function -function vvvvvzt(add_php_jview_vvvvvzt) +// the vvvvwap function +function vvvvwap(add_php_jview_vvvvwap) { // set the function logic - if (add_php_jview_vvvvvzt == 1) + if (add_php_jview_vvvvwap == 1) { jQuery('#jform_php_jview-lbl').closest('.control-group').show(); } @@ -87,11 +87,11 @@ function vvvvvzt(add_php_jview_vvvvvzt) } } -// the vvvvvzu function -function vvvvvzu(add_php_document_vvvvvzu) +// the vvvvwaq function +function vvvvwaq(add_php_document_vvvvwaq) { // set the function logic - if (add_php_document_vvvvvzu == 1) + if (add_php_document_vvvvwaq == 1) { jQuery('#jform_php_document-lbl').closest('.control-group').show(); } @@ -101,11 +101,11 @@ function vvvvvzu(add_php_document_vvvvvzu) } } -// the vvvvvzv function -function vvvvvzv(add_css_document_vvvvvzv) +// the vvvvwar function +function vvvvwar(add_css_document_vvvvwar) { // set the function logic - if (add_css_document_vvvvvzv == 1) + if (add_css_document_vvvvwar == 1) { jQuery('#jform_css_document-lbl').closest('.control-group').show(); } @@ -115,11 +115,11 @@ function vvvvvzv(add_css_document_vvvvvzv) } } -// the vvvvvzw function -function vvvvvzw(add_javascript_file_vvvvvzw) +// the vvvvwas function +function vvvvwas(add_javascript_file_vvvvwas) { // set the function logic - if (add_javascript_file_vvvvvzw == 1) + if (add_javascript_file_vvvvwas == 1) { jQuery('#jform_javascript_file-lbl').closest('.control-group').show(); } @@ -129,11 +129,11 @@ function vvvvvzw(add_javascript_file_vvvvvzw) } } -// the vvvvvzx function -function vvvvvzx(add_js_document_vvvvvzx) +// the vvvvwat function +function vvvvwat(add_js_document_vvvvwat) { // set the function logic - if (add_js_document_vvvvvzx == 1) + if (add_js_document_vvvvwat == 1) { jQuery('#jform_js_document-lbl').closest('.control-group').show(); } @@ -143,11 +143,11 @@ function vvvvvzx(add_js_document_vvvvvzx) } } -// the vvvvvzy function -function vvvvvzy(add_css_vvvvvzy) +// the vvvvwau function +function vvvvwau(add_css_vvvvwau) { // set the function logic - if (add_css_vvvvvzy == 1) + if (add_css_vvvvwau == 1) { jQuery('#jform_css-lbl').closest('.control-group').show(); } @@ -157,11 +157,11 @@ function vvvvvzy(add_css_vvvvvzy) } } -// the vvvvvzz function -function vvvvvzz(add_php_ajax_vvvvvzz) +// the vvvvwav function +function vvvvwav(add_php_ajax_vvvvwav) { // set the function logic - if (add_php_ajax_vvvvvzz == 1) + if (add_php_ajax_vvvvwav == 1) { jQuery('#jform_ajax_input-lbl').closest('.control-group').show(); jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show(); @@ -173,11 +173,11 @@ function vvvvvzz(add_php_ajax_vvvvvzz) } } -// the vvvvwaa function -function vvvvwaa(add_custom_button_vvvvwaa) +// the vvvvwaw function +function vvvvwaw(add_custom_button_vvvvwaw) { // set the function logic - if (add_custom_button_vvvvwaa == 1) + if (add_custom_button_vvvvwaw == 1) { jQuery('#jform_custom_button-lbl').closest('.control-group').show(); jQuery('#jform_php_controller-lbl').closest('.control-group').show(); @@ -191,20 +191,20 @@ function vvvvwaa(add_custom_button_vvvvwaa) } } -// the vvvvwab function -function vvvvwab(button_position_vvvvwab) +// the vvvvwax function +function vvvvwax(button_position_vvvvwax) { - if (isSet(button_position_vvvvwab) && button_position_vvvvwab.constructor !== Array) + if (isSet(button_position_vvvvwax) && button_position_vvvvwax.constructor !== Array) { - var temp_vvvvwab = button_position_vvvvwab; - var button_position_vvvvwab = []; - button_position_vvvvwab.push(temp_vvvvwab); + var temp_vvvvwax = button_position_vvvvwax; + var button_position_vvvvwax = []; + button_position_vvvvwax.push(temp_vvvvwax); } - else if (!isSet(button_position_vvvvwab)) + else if (!isSet(button_position_vvvvwax)) { - var button_position_vvvvwab = []; + var button_position_vvvvwax = []; } - var button_position = button_position_vvvvwab.some(button_position_vvvvwab_SomeFunc); + var button_position = button_position_vvvvwax.some(button_position_vvvvwax_SomeFunc); // set this function logic @@ -218,11 +218,11 @@ function vvvvwab(button_position_vvvvwab) } } -// the vvvvwab Some function -function button_position_vvvvwab_SomeFunc(button_position_vvvvwab) +// the vvvvwax Some function +function button_position_vvvvwax_SomeFunc(button_position_vvvvwax) { // set the function logic - if (button_position_vvvvwab == 5) + if (button_position_vvvvwax == 5) { return true; } diff --git a/admin/models/forms/template.js b/admin/models/forms/template.js index d0cad88e2..44557d815 100644 --- a/admin/models/forms/template.js +++ b/admin/models/forms/template.js @@ -11,15 +11,15 @@ // Initial Script jQuery(document).ready(function() { - var add_php_view_vvvvwac = jQuery("#jform_add_php_view input[type='radio']:checked").val(); - vvvvwac(add_php_view_vvvvwac); + var add_php_view_vvvvway = jQuery("#jform_add_php_view input[type='radio']:checked").val(); + vvvvway(add_php_view_vvvvway); }); -// the vvvvwac function -function vvvvwac(add_php_view_vvvvwac) +// the vvvvway function +function vvvvway(add_php_view_vvvvway) { // set the function logic - if (add_php_view_vvvvwac == 1) + if (add_php_view_vvvvway == 1) { jQuery('#jform_php_view-lbl').closest('.control-group').show(); } diff --git a/admin/models/joomla_components.php b/admin/models/joomla_components.php index 29b095bec..b90f281b4 100644 --- a/admin/models/joomla_components.php +++ b/admin/models/joomla_components.php @@ -1780,7 +1780,7 @@ class ComponentbuilderModelJoomla_components extends JModelList 'search' => 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', 'javascript'), + 'php_site_event', 'javascript', 'readme', 'sql', 'sql_uninstall'), 'views' => 'joomla_components', 'not_base64' => array(), 'name' => 'system_name' diff --git a/admin/models/joomla_module.php b/admin/models/joomla_module.php new file mode 100644 index 000000000..ec5e1a39d --- /dev/null +++ b/admin/models/joomla_module.php @@ -0,0 +1,1366 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +/** + * Componentbuilder Joomla_module Model + */ +class ComponentbuilderModelJoomla_module extends JModelAdmin +{ + /** + * The tab layout fields array. + * + * @var array + */ + protected $tabLayoutFields = array( + 'html' => array( + 'left' => array( + 'name', + 'description', + 'libraries', + 'note_model', + 'note_add_language_string' + ), + 'right' => array( + 'snippet', + 'note_uikit_snippet', + 'note_snippet_usage' + ), + 'fullwidth' => array( + 'default', + 'note_linked_to_notice', + 'not_required' + ), + 'above' => array( + 'system_name', + 'module_version' + ) + ), + 'script_file' => array( + 'fullwidth' => array( + 'add_php_script_construct', + 'php_script_construct', + 'add_php_preflight_install', + 'php_preflight_install', + 'add_php_preflight_update', + 'php_preflight_update', + 'add_php_preflight_uninstall', + 'php_preflight_uninstall', + 'add_php_postflight_install', + 'php_postflight_install', + 'add_php_postflight_update', + 'php_postflight_update', + 'add_php_method_uninstall', + 'php_method_uninstall' + ) + ), + 'dynamic_integration' => array( + 'left' => array( + 'add_update_server', + 'update_server_url', + 'update_server_target', + 'note_update_server_note_ftp', + 'note_update_server_note_zip', + 'note_update_server_note_other', + 'update_server', + 'add_sales_server', + 'sales_server' + ) + ), + 'mysql' => array( + 'fullwidth' => array( + 'add_sql', + 'sql', + 'add_sql_uninstall', + 'sql_uninstall' + ) + ), + 'readme' => array( + 'left' => array( + 'addreadme', + 'readme' + ) + ), + 'code' => array( + 'left' => array( + 'add_abstract_class_helper', + 'add_custom_abstract_class_helper_header' + ), + 'right' => array( + 'custom_get' + ), + 'fullwidth' => array( + 'abstract_class_helper_header', + 'abstract_class_helper_code' + ) + ), + 'forms_fields' => array( + 'fullwidth' => array( + 'fields' + ) + ) + ); + + /** + * @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.joomla_module'; + + /** + * 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 = 'joomla_module', $prefix = 'ComponentbuilderTable', $config = array()) + { + // add table path for when model gets used from other component + $this->addTablePath(JPATH_ADMINISTRATOR . '/components/com_componentbuilder/tables'); + // get instance of the table + return JTable::getInstance($type, $prefix, $config); + } + + + /** + * get VDM internal session key + * + * @return string the session key + * + */ + public function getVDM() + { + if (!isset($this->vastDevMod)) + { + $_id = 0; // new item probably (since it was not set in the getItem method) + + if (empty($_id)) + { + $id = 0; + } + else + { + $id = $_id; + } + // set the id and view name to session + if ($vdm = ComponentbuilderHelper::get('joomla_module__'.$id)) + { + $this->vastDevMod = $vdm; + } + else + { + // set the vast development method key + $this->vastDevMod = ComponentbuilderHelper::randomkey(50); + ComponentbuilderHelper::set($this->vastDevMod, 'joomla_module__'.$id); + ComponentbuilderHelper::set('joomla_module__'.$id, $this->vastDevMod); + // set a return value if found + $jinput = JFactory::getApplication()->input; + $return = $jinput->get('return', null, 'base64'); + ComponentbuilderHelper::set($this->vastDevMod . '__return', $return); + // set a GUID value if found + if (isset($item) && ComponentbuilderHelper::checkObject($item) && isset($item->guid) + && method_exists('ComponentbuilderHelper', 'validGUID') + && ComponentbuilderHelper::validGUID($item->guid)) + { + ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid); + } + } + } + return $this->vastDevMod; + } + + + /** + * 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) && !is_array($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->php_postflight_update)) + { + // base64 Decode php_postflight_update. + $item->php_postflight_update = base64_decode($item->php_postflight_update); + } + + if (!empty($item->php_postflight_install)) + { + // base64 Decode php_postflight_install. + $item->php_postflight_install = base64_decode($item->php_postflight_install); + } + + if (!empty($item->php_preflight_uninstall)) + { + // base64 Decode php_preflight_uninstall. + $item->php_preflight_uninstall = base64_decode($item->php_preflight_uninstall); + } + + if (!empty($item->sql_uninstall)) + { + // base64 Decode sql_uninstall. + $item->sql_uninstall = base64_decode($item->sql_uninstall); + } + + if (!empty($item->default)) + { + // base64 Decode default. + $item->default = base64_decode($item->default); + } + + if (!empty($item->php_method_uninstall)) + { + // base64 Decode php_method_uninstall. + $item->php_method_uninstall = base64_decode($item->php_method_uninstall); + } + + if (!empty($item->sql)) + { + // base64 Decode sql. + $item->sql = base64_decode($item->sql); + } + + if (!empty($item->readme)) + { + // base64 Decode readme. + $item->readme = base64_decode($item->readme); + } + + if (!empty($item->abstract_class_helper_header)) + { + // base64 Decode abstract_class_helper_header. + $item->abstract_class_helper_header = base64_decode($item->abstract_class_helper_header); + } + + if (!empty($item->abstract_class_helper_code)) + { + // base64 Decode abstract_class_helper_code. + $item->abstract_class_helper_code = base64_decode($item->abstract_class_helper_code); + } + + if (!empty($item->php_script_construct)) + { + // base64 Decode php_script_construct. + $item->php_script_construct = base64_decode($item->php_script_construct); + } + + if (!empty($item->php_preflight_install)) + { + // base64 Decode php_preflight_install. + $item->php_preflight_install = base64_decode($item->php_preflight_install); + } + + if (!empty($item->php_preflight_update)) + { + // base64 Decode php_preflight_update. + $item->php_preflight_update = base64_decode($item->php_preflight_update); + } + + if (!empty($item->libraries)) + { + // Convert the libraries field to an array. + $libraries = new Registry; + $libraries->loadString($item->libraries); + $item->libraries = $libraries->toArray(); + } + + if (!empty($item->custom_get)) + { + // Convert the custom_get field to an array. + $custom_get = new Registry; + $custom_get->loadString($item->custom_get); + $item->custom_get = $custom_get->toArray(); + } + + if (!empty($item->fields)) + { + // Convert the fields field to an array. + $fields = new Registry; + $fields->loadString($item->fields); + $item->fields = $fields->toArray(); + } + + + if (empty($item->id)) + { + $id = 0; + } + else + { + $id = $item->id; + } + // set the id and view name to session + if ($vdm = ComponentbuilderHelper::get('joomla_module__'.$id)) + { + $this->vastDevMod = $vdm; + } + else + { + // set the vast development method key + $this->vastDevMod = ComponentbuilderHelper::randomkey(50); + ComponentbuilderHelper::set($this->vastDevMod, 'joomla_module__'.$id); + ComponentbuilderHelper::set('joomla_module__'.$id, $this->vastDevMod); + // set a return value if found + $jinput = JFactory::getApplication()->input; + $return = $jinput->get('return', null, 'base64'); + ComponentbuilderHelper::set($this->vastDevMod . '__return', $return); + // set a GUID value if found + if (isset($item) && ComponentbuilderHelper::checkObject($item) && isset($item->guid) + && method_exists('ComponentbuilderHelper', 'validGUID') + && ComponentbuilderHelper::validGUID($item->guid)) + { + ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid); + } + } + + if (!empty($item->id)) + { + $item->tags = new JHelperTags; + $item->tags->getTagIds($item->id, 'com_componentbuilder.joomla_module'); + } + } + + 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. + * @param array $options Optional array of options for the form creation. + * + * @return mixed A JForm object on success, false on failure + * + * @since 1.6 + */ + public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform')) + { + // set load data option + $options['load_data'] = $loadData; + // // check if xpath was set in options + $xpath = false; + if (isset($options['xpath'])) + { + $xpath = $options['xpath']; + unset($options['xpath']); + } + // // check if clear form was set in options + $clear = false; + if (isset($options['clear'])) + { + $clear = $options['clear']; + unset($options['clear']); + } + + // Get the form. + $form = $this->loadForm('com_componentbuilder.joomla_module', 'joomla_module', $options, $clear, $xpath); + + 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('joomla_module.edit.state', 'com_componentbuilder.joomla_module.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_module.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('joomla_module.edit.created_by', 'com_componentbuilder.joomla_module.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_module.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('joomla_module.edit.created', 'com_componentbuilder.joomla_module.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_module.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 view name + $redirectedView = $jinput->get('ref', null, 'STRING'); + // Set field name (or fall back to view name) + $redirectedField = $jinput->get('field', $redirectedView, 'STRING'); + // Set redirected view id + $redirectedId = $jinput->get('refid', 0, 'INT'); + // Set field id (or fall back to redirected view id) + $redirectedValue = $jinput->get('field_id', $redirectedId, 'INT'); + if (0 != $redirectedValue && $redirectedField) + { + // Now set the local-redirected field default value + $form->setValue($redirectedField, null, $redirectedValue); + } + } + + // update all editors to use this components global editor + $global_editor = JComponentHelper::getParams('com_componentbuilder')->get('editor', 'none'); + // now get all the editor fields + $editors = $form->getXml()->xpath("//field[@type='editor']"); + // check if we found any + if (ComponentbuilderHelper::checkArray($editors)) + { + foreach ($editors as $editor) + { + // get the field names + $name = (string) $editor['name']; + // set the field editor value (with none as fallback) + $form->setFieldAttribute($name, 'editor', $global_editor . '|none'); + } + } + + 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/joomla_module.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('joomla_module.delete', 'com_componentbuilder.joomla_module.' . (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('joomla_module.edit.state', 'com_componentbuilder.joomla_module.' . (int) $recordId); + if (!$permission && !is_null($permission)) + { + return false; + } + } + // In the absense of better information, revert to the component permissions. + return $user->authorise('joomla_module.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('joomla_module.edit', 'com_componentbuilder.joomla_module.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('joomla_module.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_joomla_module')); + $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.joomla_module.data', array()); + + if (empty($data)) + { + $data = $this->getItem(); + // run the perprocess of the data + $this->preprocessData('com_componentbuilder.joomla_module', $data); + } + + return $data; + } + + /** + * Method to validate the form data. + * + * @param JForm $form The form to validate against. + * @param array $data The data to validate. + * @param string $group The name of the field group to validate. + * + * @return mixed Array of filtered data if valid, false otherwise. + * + * @see JFormRule + * @see JFilterInput + * @since 12.2 + */ + public function validate($form, $data, $group = null) + { + // check if the not_required field is set + if (ComponentbuilderHelper::checkString($data['not_required'])) + { + $requiredFields = (array) explode(',',(string) $data['not_required']); + $requiredFields = array_unique($requiredFields); + // now change the required field attributes value + foreach ($requiredFields as $requiredField) + { + // make sure there is a string value + if (ComponentbuilderHelper::checkString($requiredField)) + { + // change to false + $form->setFieldAttribute($requiredField, 'required', 'false'); + // also clear the data set + $data[$requiredField] = ''; + } + } + } + return parent::validate($form, $data, $group); + } + + /** + * 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; + } + + // we must also delete the linked tables found + if (ComponentbuilderHelper::checkArray($pks)) + { + // linked tables to update + $_tablesArray = array( + 'joomla_module_updates' => 'joomla_module', + 'joomla_module_files_folders_urls' => 'joomla_module' + ); + foreach($_tablesArray as $_updateTable => $_key) + { + // get the linked IDs + if ($_pks = ComponentbuilderHelper::getVars($_updateTable, $pks, $_key, 'id')) + { + // load the model + $_Model = ComponentbuilderHelper::getModel($_updateTable); + // change publish state + $_Model->delete($_pks); + } + } + } + + + 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; + } + + // we must also update all linked tables + if (ComponentbuilderHelper::checkArray($pks)) + { + // linked tables to update + $_tablesArray = array( + 'joomla_module_updates' => 'joomla_module', + 'joomla_module_files_folders_urls' => 'joomla_module' + ); + foreach($_tablesArray as $_updateTable => $_key) + { + // get the linked IDs + if ($_pks = ComponentbuilderHelper::getVars($_updateTable, $pks, $_key, 'id')) + { + // load the model + $_Model = ComponentbuilderHelper::getModel($_updateTable); + // change publish state + $_Model->publish($_pks, $value); + } + } + } + + + 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('joomla_module'); + $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->canDo = ComponentbuilderHelper::getActions('joomla_module'); + } + + if (!$this->canDo->get('joomla_module.create') && !$this->canDo->get('joomla_module.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('joomla_module.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('joomla_module.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; + } + } + + // Only for strings + if (ComponentbuilderHelper::checkString($this->table->system_name) && !is_numeric($this->table->system_name)) + { + $this->table->system_name = $this->generateUniqe('system_name',$this->table->system_name); + } + + // 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->canDo = ComponentbuilderHelper::getActions('joomla_module'); + } + + if (!$this->canDo->get('joomla_module.edit') && !$this->canDo->get('joomla_module.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('joomla_module.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('joomla_module.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; + } + + // check if the name has placeholder + if (strpos($data['name'], '[[[') === false && strpos($data['name'], '###') === false) + { + // make sure the name is safe to be used as a function name + $data['name'] = ComponentbuilderHelper::safeClassFunctionName($data['name']); + } + // always reset the snippets + $data['snippet'] = 0; + // if system name is empty create from name + if (empty($data['system_name']) || !ComponentbuilderHelper::checkString($data['system_name'])) + { + $data['system_name'] = $data['name']; + } + + // Set the libraries items to data. + if (isset($data['libraries']) && is_array($data['libraries'])) + { + $libraries = new JRegistry; + $libraries->loadArray($data['libraries']); + $data['libraries'] = (string) $libraries; + } + elseif (!isset($data['libraries'])) + { + // Set the empty libraries to data + $data['libraries'] = ''; + } + + // Set the custom_get items to data. + if (isset($data['custom_get']) && is_array($data['custom_get'])) + { + $custom_get = new JRegistry; + $custom_get->loadArray($data['custom_get']); + $data['custom_get'] = (string) $custom_get; + } + elseif (!isset($data['custom_get'])) + { + // Set the empty custom_get to data + $data['custom_get'] = ''; + } + + // Set the fields items to data. + if (isset($data['fields']) && is_array($data['fields'])) + { + $fields = new JRegistry; + $fields->loadArray($data['fields']); + $data['fields'] = (string) $fields; + } + elseif (!isset($data['fields'])) + { + // Set the empty fields to data + $data['fields'] = ''; + } + + // Set the php_postflight_update string to base64 string. + if (isset($data['php_postflight_update'])) + { + $data['php_postflight_update'] = base64_encode($data['php_postflight_update']); + } + + // Set the php_postflight_install string to base64 string. + if (isset($data['php_postflight_install'])) + { + $data['php_postflight_install'] = base64_encode($data['php_postflight_install']); + } + + // Set the php_preflight_uninstall string to base64 string. + if (isset($data['php_preflight_uninstall'])) + { + $data['php_preflight_uninstall'] = base64_encode($data['php_preflight_uninstall']); + } + + // Set the sql_uninstall string to base64 string. + if (isset($data['sql_uninstall'])) + { + $data['sql_uninstall'] = base64_encode($data['sql_uninstall']); + } + + // Set the default string to base64 string. + if (isset($data['default'])) + { + $data['default'] = base64_encode($data['default']); + } + + // Set the php_method_uninstall string to base64 string. + if (isset($data['php_method_uninstall'])) + { + $data['php_method_uninstall'] = base64_encode($data['php_method_uninstall']); + } + + // Set the sql string to base64 string. + if (isset($data['sql'])) + { + $data['sql'] = base64_encode($data['sql']); + } + + // Set the readme string to base64 string. + if (isset($data['readme'])) + { + $data['readme'] = base64_encode($data['readme']); + } + + // Set the abstract_class_helper_header string to base64 string. + if (isset($data['abstract_class_helper_header'])) + { + $data['abstract_class_helper_header'] = base64_encode($data['abstract_class_helper_header']); + } + + // Set the abstract_class_helper_code string to base64 string. + if (isset($data['abstract_class_helper_code'])) + { + $data['abstract_class_helper_code'] = base64_encode($data['abstract_class_helper_code']); + } + + // Set the php_script_construct string to base64 string. + if (isset($data['php_script_construct'])) + { + $data['php_script_construct'] = base64_encode($data['php_script_construct']); + } + + // Set the php_preflight_install string to base64 string. + if (isset($data['php_preflight_install'])) + { + $data['php_preflight_install'] = base64_encode($data['php_preflight_install']); + } + + // Set the php_preflight_update string to base64 string. + if (isset($data['php_preflight_update'])) + { + $data['php_preflight_update'] = base64_encode($data['php_preflight_update']); + } + + // 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 + * + * @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/joomla_module_files_folders_urls.php b/admin/models/joomla_module_files_folders_urls.php new file mode 100644 index 000000000..918a302ca --- /dev/null +++ b/admin/models/joomla_module_files_folders_urls.php @@ -0,0 +1,995 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +/** + * Componentbuilder Joomla_module_files_folders_urls Model + */ +class ComponentbuilderModelJoomla_module_files_folders_urls extends JModelAdmin +{ + /** + * The tab layout fields array. + * + * @var array + */ + protected $tabLayoutFields = array( + 'basic' => array( + 'fullwidth' => array( + 'note_add_urls', + 'addurls', + 'note_add_files', + 'addfiles', + 'note_add_folders', + 'addfolders' + ), + 'above' => array( + 'joomla_module' + ) + ), + 'advance' => array( + 'fullwidth' => array( + 'note_add_files_fullpath', + 'addfilesfullpath', + 'note_add_folders_fullpath', + 'addfoldersfullpath', + 'note_constant_paths' + ) + ) + ); + + /** + * @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.joomla_module_files_folders_urls'; + + /** + * 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 = 'joomla_module_files_folders_urls', $prefix = 'ComponentbuilderTable', $config = array()) + { + // add table path for when model gets used from other component + $this->addTablePath(JPATH_ADMINISTRATOR . '/components/com_componentbuilder/tables'); + // get instance of the table + 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) && !is_array($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->addfoldersfullpath)) + { + // Convert the addfoldersfullpath field to an array. + $addfoldersfullpath = new Registry; + $addfoldersfullpath->loadString($item->addfoldersfullpath); + $item->addfoldersfullpath = $addfoldersfullpath->toArray(); + } + + if (!empty($item->addfilesfullpath)) + { + // Convert the addfilesfullpath field to an array. + $addfilesfullpath = new Registry; + $addfilesfullpath->loadString($item->addfilesfullpath); + $item->addfilesfullpath = $addfilesfullpath->toArray(); + } + + if (!empty($item->addfolders)) + { + // Convert the addfolders field to an array. + $addfolders = new Registry; + $addfolders->loadString($item->addfolders); + $item->addfolders = $addfolders->toArray(); + } + + if (!empty($item->addfiles)) + { + // Convert the addfiles field to an array. + $addfiles = new Registry; + $addfiles->loadString($item->addfiles); + $item->addfiles = $addfiles->toArray(); + } + + if (!empty($item->addurls)) + { + // Convert the addurls field to an array. + $addurls = new Registry; + $addurls->loadString($item->addurls); + $item->addurls = $addurls->toArray(); + } + + if (!empty($item->id)) + { + $item->tags = new JHelperTags; + $item->tags->getTagIds($item->id, 'com_componentbuilder.joomla_module_files_folders_urls'); + } + } + + 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. + * @param array $options Optional array of options for the form creation. + * + * @return mixed A JForm object on success, false on failure + * + * @since 1.6 + */ + public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform')) + { + // set load data option + $options['load_data'] = $loadData; + // // check if xpath was set in options + $xpath = false; + if (isset($options['xpath'])) + { + $xpath = $options['xpath']; + unset($options['xpath']); + } + // // check if clear form was set in options + $clear = false; + if (isset($options['clear'])) + { + $clear = $options['clear']; + unset($options['clear']); + } + + // Get the form. + $form = $this->loadForm('com_componentbuilder.joomla_module_files_folders_urls', 'joomla_module_files_folders_urls', $options, $clear, $xpath); + + 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('joomla_module_files_folders_urls.edit.state', 'com_componentbuilder.joomla_module_files_folders_urls.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_module_files_folders_urls.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('joomla_module_files_folders_urls.edit.created_by', 'com_componentbuilder.joomla_module_files_folders_urls.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_module_files_folders_urls.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('joomla_module_files_folders_urls.edit.created', 'com_componentbuilder.joomla_module_files_folders_urls.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_module_files_folders_urls.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 view name + $redirectedView = $jinput->get('ref', null, 'STRING'); + // Set field name (or fall back to view name) + $redirectedField = $jinput->get('field', $redirectedView, 'STRING'); + // Set redirected view id + $redirectedId = $jinput->get('refid', 0, 'INT'); + // Set field id (or fall back to redirected view id) + $redirectedValue = $jinput->get('field_id', $redirectedId, '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/joomla_module_files_folders_urls.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('joomla_module_files_folders_urls.delete', 'com_componentbuilder.joomla_module_files_folders_urls.' . (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('joomla_module_files_folders_urls.edit.state', 'com_componentbuilder.joomla_module_files_folders_urls.' . (int) $recordId); + if (!$permission && !is_null($permission)) + { + return false; + } + } + // In the absense of better information, revert to the component permissions. + return $user->authorise('joomla_module_files_folders_urls.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('joomla_module_files_folders_urls.edit', 'com_componentbuilder.joomla_module_files_folders_urls.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('joomla_module_files_folders_urls.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_joomla_module_files_folders_urls')); + $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.joomla_module_files_folders_urls.data', array()); + + if (empty($data)) + { + $data = $this->getItem(); + // run the perprocess of the data + $this->preprocessData('com_componentbuilder.joomla_module_files_folders_urls', $data); + } + + 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('joomla_module_files_folders_urls'); + $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->canDo = ComponentbuilderHelper::getActions('joomla_module_files_folders_urls'); + } + + if (!$this->canDo->get('joomla_module_files_folders_urls.create') && !$this->canDo->get('joomla_module_files_folders_urls.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('joomla_module_files_folders_urls.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('joomla_module_files_folders_urls.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; + } + } + + // Only for strings + if (ComponentbuilderHelper::checkString($this->table->joomla_module) && !is_numeric($this->table->joomla_module)) + { + $this->table->joomla_module = $this->generateUniqe('joomla_module',$this->table->joomla_module); + } + + // 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->canDo = ComponentbuilderHelper::getActions('joomla_module_files_folders_urls'); + } + + if (!$this->canDo->get('joomla_module_files_folders_urls.edit') && !$this->canDo->get('joomla_module_files_folders_urls.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('joomla_module_files_folders_urls.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('joomla_module_files_folders_urls.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 addfoldersfullpath items to data. + if (isset($data['addfoldersfullpath']) && is_array($data['addfoldersfullpath'])) + { + $addfoldersfullpath = new JRegistry; + $addfoldersfullpath->loadArray($data['addfoldersfullpath']); + $data['addfoldersfullpath'] = (string) $addfoldersfullpath; + } + elseif (!isset($data['addfoldersfullpath'])) + { + // Set the empty addfoldersfullpath to data + $data['addfoldersfullpath'] = ''; + } + + // Set the addfilesfullpath items to data. + if (isset($data['addfilesfullpath']) && is_array($data['addfilesfullpath'])) + { + $addfilesfullpath = new JRegistry; + $addfilesfullpath->loadArray($data['addfilesfullpath']); + $data['addfilesfullpath'] = (string) $addfilesfullpath; + } + elseif (!isset($data['addfilesfullpath'])) + { + // Set the empty addfilesfullpath to data + $data['addfilesfullpath'] = ''; + } + + // Set the addfolders items to data. + if (isset($data['addfolders']) && is_array($data['addfolders'])) + { + $addfolders = new JRegistry; + $addfolders->loadArray($data['addfolders']); + $data['addfolders'] = (string) $addfolders; + } + elseif (!isset($data['addfolders'])) + { + // Set the empty addfolders to data + $data['addfolders'] = ''; + } + + // Set the addfiles items to data. + if (isset($data['addfiles']) && is_array($data['addfiles'])) + { + $addfiles = new JRegistry; + $addfiles->loadArray($data['addfiles']); + $data['addfiles'] = (string) $addfiles; + } + elseif (!isset($data['addfiles'])) + { + // Set the empty addfiles to data + $data['addfiles'] = ''; + } + + // Set the addurls items to data. + if (isset($data['addurls']) && is_array($data['addurls'])) + { + $addurls = new JRegistry; + $addurls->loadArray($data['addurls']); + $data['addurls'] = (string) $addurls; + } + elseif (!isset($data['addurls'])) + { + // Set the empty addurls to data + $data['addurls'] = ''; + } + + // 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 + * + * @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/joomla_module_updates.php b/admin/models/joomla_module_updates.php new file mode 100644 index 000000000..b2fdba9be --- /dev/null +++ b/admin/models/joomla_module_updates.php @@ -0,0 +1,897 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +/** + * Componentbuilder Joomla_module_updates Model + */ +class ComponentbuilderModelJoomla_module_updates extends JModelAdmin +{ + /** + * The tab layout fields array. + * + * @var array + */ + protected $tabLayoutFields = array( + 'updates' => array( + 'fullwidth' => array( + 'version_update' + ), + 'above' => array( + 'joomla_module' + ) + ) + ); + + /** + * @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.joomla_module_updates'; + + /** + * 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 = 'joomla_module_updates', $prefix = 'ComponentbuilderTable', $config = array()) + { + // add table path for when model gets used from other component + $this->addTablePath(JPATH_ADMINISTRATOR . '/components/com_componentbuilder/tables'); + // get instance of the table + 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) && !is_array($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->version_update)) + { + // Convert the version_update field to an array. + $version_update = new Registry; + $version_update->loadString($item->version_update); + $item->version_update = $version_update->toArray(); + } + + if (!empty($item->id)) + { + $item->tags = new JHelperTags; + $item->tags->getTagIds($item->id, 'com_componentbuilder.joomla_module_updates'); + } + } + + 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. + * @param array $options Optional array of options for the form creation. + * + * @return mixed A JForm object on success, false on failure + * + * @since 1.6 + */ + public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform')) + { + // set load data option + $options['load_data'] = $loadData; + // // check if xpath was set in options + $xpath = false; + if (isset($options['xpath'])) + { + $xpath = $options['xpath']; + unset($options['xpath']); + } + // // check if clear form was set in options + $clear = false; + if (isset($options['clear'])) + { + $clear = $options['clear']; + unset($options['clear']); + } + + // Get the form. + $form = $this->loadForm('com_componentbuilder.joomla_module_updates', 'joomla_module_updates', $options, $clear, $xpath); + + 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('joomla_module_updates.edit.state', 'com_componentbuilder.joomla_module_updates.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_module_updates.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('joomla_module_updates.edit.created_by', 'com_componentbuilder.joomla_module_updates.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_module_updates.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('joomla_module_updates.edit.created', 'com_componentbuilder.joomla_module_updates.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_module_updates.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 view name + $redirectedView = $jinput->get('ref', null, 'STRING'); + // Set field name (or fall back to view name) + $redirectedField = $jinput->get('field', $redirectedView, 'STRING'); + // Set redirected view id + $redirectedId = $jinput->get('refid', 0, 'INT'); + // Set field id (or fall back to redirected view id) + $redirectedValue = $jinput->get('field_id', $redirectedId, '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/joomla_module_updates.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('joomla_module_updates.delete', 'com_componentbuilder.joomla_module_updates.' . (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('joomla_module_updates.edit.state', 'com_componentbuilder.joomla_module_updates.' . (int) $recordId); + if (!$permission && !is_null($permission)) + { + return false; + } + } + // In the absense of better information, revert to the component permissions. + return $user->authorise('joomla_module_updates.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('joomla_module_updates.edit', 'com_componentbuilder.joomla_module_updates.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('joomla_module_updates.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_joomla_module_updates')); + $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.joomla_module_updates.data', array()); + + if (empty($data)) + { + $data = $this->getItem(); + // run the perprocess of the data + $this->preprocessData('com_componentbuilder.joomla_module_updates', $data); + } + + 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('joomla_module_updates'); + $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->canDo = ComponentbuilderHelper::getActions('joomla_module_updates'); + } + + if (!$this->canDo->get('joomla_module_updates.create') && !$this->canDo->get('joomla_module_updates.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('joomla_module_updates.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('joomla_module_updates.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; + } + } + + // Only for strings + if (ComponentbuilderHelper::checkString($this->table->joomla_module) && !is_numeric($this->table->joomla_module)) + { + $this->table->joomla_module = $this->generateUniqe('joomla_module',$this->table->joomla_module); + } + + // 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->canDo = ComponentbuilderHelper::getActions('joomla_module_updates'); + } + + if (!$this->canDo->get('joomla_module_updates.edit') && !$this->canDo->get('joomla_module_updates.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('joomla_module_updates.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('joomla_module_updates.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 version_update items to data. + if (isset($data['version_update']) && is_array($data['version_update'])) + { + $version_update = new JRegistry; + $version_update->loadArray($data['version_update']); + $data['version_update'] = (string) $version_update; + } + elseif (!isset($data['version_update'])) + { + // Set the empty version_update to data + $data['version_update'] = ''; + } + + // 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 + * + * @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/joomla_modules.php b/admin/models/joomla_modules.php new file mode 100644 index 000000000..86f36c83c --- /dev/null +++ b/admin/models/joomla_modules.php @@ -0,0 +1,262 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Joomla_modules Model + */ +class ComponentbuilderModelJoomla_modules 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', + 'a.system_name','system_name', + 'a.description','description' + ); + } + + 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; + } + $system_name = $this->getUserStateFromRequest($this->context . '.filter.system_name', 'filter_system_name'); + $this->setState('filter.system_name', $system_name); + + $description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description'); + $this->setState('filter.description', $description); + + $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 the user object if not set. + if (!isset($user) || !ComponentbuilderHelper::checkObject($user)) + { + $user = JFactory::getUser(); + } + foreach ($items as $nr => &$item) + { + // Remove items the user can't access. + $access = ($user->authorise('joomla_module.access', 'com_componentbuilder.joomla_module.' . (int) $item->id) && $user->authorise('joomla_module.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_joomla_module', 'a')); + + // 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 . ')'); + } + // Filter by search. + $search = $this->getState('filter.search'); + if (!empty($search)) + { + if (stripos($search, 'id:') === 0) + { + $query->where('a.id = ' . (int) substr($search, 3)); + } + else + { + $search = $db->quote('%' . $db->escape($search) . '%'); + $query->where('(a.system_name LIKE '.$search.' OR a.description LIKE '.$search.' OR a.name LIKE '.$search.')'); + } + } + + + // 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'); + $id .= ':' . $this->getState('filter.system_name'); + $id .= ':' . $this->getState('filter.description'); + + 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_joomla_module')); + $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_joomla_module'))->set($fields)->where($conditions); + + $db->setQuery($query); + + $db->execute(); + } + } + + return false; + } +} diff --git a/admin/models/joomla_modules_files_folders_urls.php b/admin/models/joomla_modules_files_folders_urls.php new file mode 100644 index 000000000..35299fc71 --- /dev/null +++ b/admin/models/joomla_modules_files_folders_urls.php @@ -0,0 +1,243 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Joomla_modules_files_folders_urls Model + */ +class ComponentbuilderModelJoomla_modules_files_folders_urls 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 the user object if not set. + if (!isset($user) || !ComponentbuilderHelper::checkObject($user)) + { + $user = JFactory::getUser(); + } + foreach ($items as $nr => &$item) + { + // Remove items the user can't access. + $access = ($user->authorise('joomla_module_files_folders_urls.access', 'com_componentbuilder.joomla_module_files_folders_urls.' . (int) $item->id) && $user->authorise('joomla_module_files_folders_urls.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_joomla_module_files_folders_urls', 'a')); + + // From the componentbuilder_joomla_module table. + $query->select($db->quoteName('g.system_name','joomla_module_system_name')); + $query->join('LEFT', $db->quoteName('#__componentbuilder_joomla_module', 'g') . ' ON (' . $db->quoteName('a.joomla_module') . ' = ' . $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_joomla_module_files_folders_urls')); + $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_joomla_module_files_folders_urls'))->set($fields)->where($conditions); + + $db->setQuery($query); + + $db->execute(); + } + } + + return false; + } +} diff --git a/admin/models/joomla_modules_updates.php b/admin/models/joomla_modules_updates.php new file mode 100644 index 000000000..46f710dc9 --- /dev/null +++ b/admin/models/joomla_modules_updates.php @@ -0,0 +1,243 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Joomla_modules_updates Model + */ +class ComponentbuilderModelJoomla_modules_updates 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 the user object if not set. + if (!isset($user) || !ComponentbuilderHelper::checkObject($user)) + { + $user = JFactory::getUser(); + } + foreach ($items as $nr => &$item) + { + // Remove items the user can't access. + $access = ($user->authorise('joomla_module_updates.access', 'com_componentbuilder.joomla_module_updates.' . (int) $item->id) && $user->authorise('joomla_module_updates.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_joomla_module_updates', 'a')); + + // From the componentbuilder_joomla_module table. + $query->select($db->quoteName('g.system_name','joomla_module_system_name')); + $query->join('LEFT', $db->quoteName('#__componentbuilder_joomla_module', 'g') . ' ON (' . $db->quoteName('a.joomla_module') . ' = ' . $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_joomla_module_updates')); + $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_joomla_module_updates'))->set($fields)->where($conditions); + + $db->setQuery($query); + + $db->execute(); + } + } + + return false; + } +} diff --git a/admin/models/joomla_plugin.php b/admin/models/joomla_plugin.php index fe600562d..4132052b8 100644 --- a/admin/models/joomla_plugin.php +++ b/admin/models/joomla_plugin.php @@ -1145,6 +1145,11 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin { // make sure the name is safe to be used as a function name $data['name'] = ComponentbuilderHelper::safeClassFunctionName($data['name']); + } + // if system name is empty create from name + if (empty($data['system_name']) || !ComponentbuilderHelper::checkString($data['system_name'])) + { + $data['system_name'] = $data['name']; } // Set the method_selection items to data. diff --git a/admin/models/server.php b/admin/models/server.php index e4950f1a8..38cb576a6 100644 --- a/admin/models/server.php +++ b/admin/models/server.php @@ -189,7 +189,7 @@ class ComponentbuilderModelServer extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getVyslinked_components() + public function getVywlinked_components() { // Get the user object. $user = JFactory::getUser(); diff --git a/admin/sql/install.mysql.utf8.sql b/admin/sql/install.mysql.utf8.sql index ef304476a..64c6a6080 100644 --- a/admin/sql/install.mysql.utf8.sql +++ b/admin/sql/install.mysql.utf8.sql @@ -141,6 +141,83 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` ( KEY `idx_state` (`published`) ) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; +CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_module` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', + `abstract_class_helper_code` MEDIUMTEXT NOT NULL, + `abstract_class_helper_header` TEXT NOT NULL, + `add_abstract_class_helper` TINYINT(1) NOT NULL DEFAULT 0, + `add_custom_abstract_class_helper_header` TINYINT(1) NOT NULL DEFAULT 0, + `add_php_method_uninstall` TINYINT(1) NOT NULL DEFAULT 0, + `add_php_postflight_install` TINYINT(1) NOT NULL DEFAULT 0, + `add_php_postflight_update` TINYINT(1) NOT NULL DEFAULT 0, + `add_php_preflight_install` TINYINT(1) NOT NULL DEFAULT 0, + `add_php_preflight_uninstall` TINYINT(1) NOT NULL DEFAULT 0, + `add_php_preflight_update` TINYINT(1) NOT NULL DEFAULT 0, + `add_php_script_construct` TINYINT(1) NOT NULL DEFAULT 0, + `add_sales_server` TINYINT(1) NOT NULL DEFAULT 0, + `add_sql` TINYINT(1) NOT NULL DEFAULT 0, + `add_sql_uninstall` TINYINT(1) NOT NULL DEFAULT 0, + `add_update_server` TINYINT(1) NOT NULL DEFAULT 0, + `addreadme` TINYINT(1) NOT NULL DEFAULT 0, + `custom_get` TEXT NOT NULL, + `default` TEXT NOT NULL, + `description` TEXT NOT NULL, + `fields` TEXT NOT NULL, + `libraries` TEXT NOT NULL, + `module_version` CHAR(64) NOT NULL DEFAULT '', + `name` VARCHAR(255) NOT NULL DEFAULT '', + `php_method_uninstall` MEDIUMTEXT NOT NULL, + `php_postflight_install` MEDIUMTEXT NOT NULL, + `php_postflight_update` MEDIUMTEXT NOT NULL, + `php_preflight_install` MEDIUMTEXT NOT NULL, + `php_preflight_uninstall` MEDIUMTEXT NOT NULL, + `php_preflight_update` MEDIUMTEXT NOT NULL, + `php_script_construct` MEDIUMTEXT NOT NULL, + `readme` TEXT NOT NULL, + `sales_server` INT(11) NOT NULL DEFAULT 0, + `snippet` INT(11) NOT NULL DEFAULT 0, + `sql` MEDIUMTEXT NOT NULL, + `sql_uninstall` MEDIUMTEXT NOT NULL, + `system_name` VARCHAR(255) NOT NULL DEFAULT '', + `update_server` INT(11) NOT NULL DEFAULT 0, + `update_server_target` TINYINT(1) NOT NULL DEFAULT 0, + `update_server_url` VARCHAR(255) NOT NULL DEFAULT '', + `params` text NOT NULL, + `published` TINYINT(3) NOT NULL DEFAULT 1, + `created_by` INT(10) unsigned NOT NULL DEFAULT 0, + `modified_by` INT(10) unsigned NOT NULL DEFAULT 0, + `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `checked_out` int(11) unsigned NOT NULL DEFAULT 0, + `checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `version` INT(10) unsigned NOT NULL DEFAULT 1, + `hits` INT(10) unsigned NOT NULL DEFAULT 0, + `access` INT(10) unsigned NOT NULL DEFAULT 0, + `ordering` INT(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `idx_system_name` (`system_name`), + KEY `idx_add_sales_server` (`add_sales_server`), + KEY `idx_add_php_preflight_uninstall` (`add_php_preflight_uninstall`), + KEY `idx_add_php_postflight_install` (`add_php_postflight_install`), + KEY `idx_add_php_postflight_update` (`add_php_postflight_update`), + KEY `idx_add_php_method_uninstall` (`add_php_method_uninstall`), + KEY `idx_add_sql` (`add_sql`), + KEY `idx_add_sql_uninstall` (`add_sql_uninstall`), + KEY `idx_add_php_script_construct` (`add_php_script_construct`), + KEY `idx_addreadme` (`addreadme`), + KEY `idx_add_update_server` (`add_update_server`), + KEY `idx_add_php_preflight_install` (`add_php_preflight_install`), + KEY `idx_update_server_target` (`update_server_target`), + KEY `idx_add_php_preflight_update` (`add_php_preflight_update`), + KEY `idx_name` (`name`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_createdby` (`created_by`), + KEY `idx_modifiedby` (`modified_by`), + KEY `idx_state` (`published`) +) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_plugin` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', @@ -1634,6 +1711,62 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_class_extends` ( KEY `idx_state` (`published`) ) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; +CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_module_updates` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', + `joomla_module` INT(11) NOT NULL DEFAULT 0, + `version_update` TEXT NOT NULL, + `params` text NOT NULL, + `published` TINYINT(3) NOT NULL DEFAULT 1, + `created_by` INT(10) unsigned NOT NULL DEFAULT 0, + `modified_by` INT(10) unsigned NOT NULL DEFAULT 0, + `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `checked_out` int(11) unsigned NOT NULL DEFAULT 0, + `checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `version` INT(10) unsigned NOT NULL DEFAULT 1, + `hits` INT(10) unsigned NOT NULL DEFAULT 0, + `access` INT(10) unsigned NOT NULL DEFAULT 0, + `ordering` INT(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `idx_joomla_module` (`joomla_module`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_createdby` (`created_by`), + KEY `idx_modifiedby` (`modified_by`), + KEY `idx_state` (`published`) +) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; + +CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_module_files_folders_urls` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', + `addfiles` TEXT NOT NULL, + `addfilesfullpath` TEXT NOT NULL, + `addfolders` TEXT NOT NULL, + `addfoldersfullpath` TEXT NOT NULL, + `addurls` TEXT NOT NULL, + `joomla_module` INT(11) NOT NULL DEFAULT 0, + `params` text NOT NULL, + `published` TINYINT(3) NOT NULL DEFAULT 1, + `created_by` INT(10) unsigned NOT NULL DEFAULT 0, + `modified_by` INT(10) unsigned NOT NULL DEFAULT 0, + `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `checked_out` int(11) unsigned NOT NULL DEFAULT 0, + `checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `version` INT(10) unsigned NOT NULL DEFAULT 1, + `hits` INT(10) unsigned NOT NULL DEFAULT 0, + `access` INT(10) unsigned NOT NULL DEFAULT 0, + `ordering` INT(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `idx_joomla_module` (`joomla_module`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_createdby` (`created_by`), + KEY `idx_modifiedby` (`modified_by`), + KEY `idx_state` (`published`) +) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; + CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_plugin_group` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', @@ -2231,6 +2364,7 @@ INSERT INTO `#__componentbuilder_library_files_folders_urls` (`id`, `addfiles`, (3, '', '', '{\"addurls0\":{\"url\":\"https:\\/\\/cdnjs.cloudflare.com\\/ajax\\/libs\\/uikit\\/3.0.0-rc.16\\/js\\/uikit.min.js\",\"type\":\"2\"},\"addurls2\":{\"url\":\"https:\\/\\/cdnjs.cloudflare.com\\/ajax\\/libs\\/uikit\\/3.0.0-rc.16\\/js\\/uikit-icons.min.js\",\"type\":\"2\"},\"addurls4\":{\"url\":\"https:\\/\\/cdnjs.cloudflare.com\\/ajax\\/libs\\/uikit\\/3.0.0-rc.16\\/css\\/uikit.min.css\",\"type\":\"2\"}}', 3, '', 1, '2017-11-25 21:47:40', '2018-09-19 14:22:09', 10, '', 3), (4, '{}', '{\"addfolders0\":{\"folder\":\"file_icon_vectors\",\"path\":\"\\/media\\/vector\",\"rename\":\"1\"}}', '{}', 7, '', 1, '2019-10-03 09:24:30', '2019-10-03 09:25:39', 2, '', 4); + CREATE TABLE IF NOT EXISTS `#__componentbuilder_external_code` ( `target` VARCHAR(255) NOT NULL DEFAULT '', `hash` VARCHAR(64) NOT NULL DEFAULT '', diff --git a/admin/sql/uninstall.mysql.utf8.sql b/admin/sql/uninstall.mysql.utf8.sql index 7dc739594..0d177dc9c 100644 --- a/admin/sql/uninstall.mysql.utf8.sql +++ b/admin/sql/uninstall.mysql.utf8.sql @@ -1,4 +1,5 @@ DROP TABLE IF EXISTS `#__componentbuilder_joomla_component`; +DROP TABLE IF EXISTS `#__componentbuilder_joomla_module`; DROP TABLE IF EXISTS `#__componentbuilder_joomla_plugin`; DROP TABLE IF EXISTS `#__componentbuilder_admin_view`; DROP TABLE IF EXISTS `#__componentbuilder_custom_admin_view`; @@ -38,7 +39,10 @@ DROP TABLE IF EXISTS `#__componentbuilder_snippet_type`; DROP TABLE IF EXISTS `#__componentbuilder_library_config`; DROP TABLE IF EXISTS `#__componentbuilder_library_files_folders_urls`; DROP TABLE IF EXISTS `#__componentbuilder_class_extends`; +DROP TABLE IF EXISTS `#__componentbuilder_joomla_module_updates`; +DROP TABLE IF EXISTS `#__componentbuilder_joomla_module_files_folders_urls`; DROP TABLE IF EXISTS `#__componentbuilder_joomla_plugin_group`; DROP TABLE IF EXISTS `#__componentbuilder_joomla_plugin_updates`; DROP TABLE IF EXISTS `#__componentbuilder_joomla_plugin_files_folders_urls`; + DROP TABLE IF EXISTS `#__componentbuilder_external_code`; diff --git a/admin/sql/updates/mysql/2.10.5.sql b/admin/sql/updates/mysql/2.10.5.sql new file mode 100644 index 000000000..ead24b655 --- /dev/null +++ b/admin/sql/updates/mysql/2.10.5.sql @@ -0,0 +1,133 @@ +CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_module` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', + `abstract_class_helper_code` MEDIUMTEXT NOT NULL, + `abstract_class_helper_header` TEXT NOT NULL, + `add_abstract_class_helper` TINYINT(1) NOT NULL DEFAULT 0, + `add_custom_abstract_class_helper_header` TINYINT(1) NOT NULL DEFAULT 0, + `add_php_method_uninstall` TINYINT(1) NOT NULL DEFAULT 0, + `add_php_postflight_install` TINYINT(1) NOT NULL DEFAULT 0, + `add_php_postflight_update` TINYINT(1) NOT NULL DEFAULT 0, + `add_php_preflight_install` TINYINT(1) NOT NULL DEFAULT 0, + `add_php_preflight_uninstall` TINYINT(1) NOT NULL DEFAULT 0, + `add_php_preflight_update` TINYINT(1) NOT NULL DEFAULT 0, + `add_php_script_construct` TINYINT(1) NOT NULL DEFAULT 0, + `add_sales_server` TINYINT(1) NOT NULL DEFAULT 0, + `add_sql` TINYINT(1) NOT NULL DEFAULT 0, + `add_sql_uninstall` TINYINT(1) NOT NULL DEFAULT 0, + `add_update_server` TINYINT(1) NOT NULL DEFAULT 0, + `addreadme` TINYINT(1) NOT NULL DEFAULT 0, + `custom_get` TEXT NOT NULL, + `default` TEXT NOT NULL, + `description` TEXT NOT NULL, + `fields` TEXT NOT NULL, + `libraries` TEXT NOT NULL, + `module_version` CHAR(64) NOT NULL DEFAULT '', + `name` VARCHAR(255) NOT NULL DEFAULT '', + `php_method_uninstall` MEDIUMTEXT NOT NULL, + `php_postflight_install` MEDIUMTEXT NOT NULL, + `php_postflight_update` MEDIUMTEXT NOT NULL, + `php_preflight_install` MEDIUMTEXT NOT NULL, + `php_preflight_uninstall` MEDIUMTEXT NOT NULL, + `php_preflight_update` MEDIUMTEXT NOT NULL, + `php_script_construct` MEDIUMTEXT NOT NULL, + `readme` TEXT NOT NULL, + `sales_server` INT(11) NOT NULL DEFAULT 0, + `snippet_one` TEXT NOT NULL, + `snippet_two` INT(11) NOT NULL DEFAULT 0, + `sql` MEDIUMTEXT NOT NULL, + `sql_uninstall` MEDIUMTEXT NOT NULL, + `system_name` VARCHAR(255) NOT NULL DEFAULT '', + `update_server` INT(11) NOT NULL DEFAULT 0, + `update_server_target` TINYINT(1) NOT NULL DEFAULT 0, + `update_server_url` VARCHAR(255) NOT NULL DEFAULT '', + `params` text NOT NULL, + `published` TINYINT(3) NOT NULL DEFAULT 1, + `created_by` INT(10) unsigned NOT NULL DEFAULT 0, + `modified_by` INT(10) unsigned NOT NULL DEFAULT 0, + `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `checked_out` int(11) unsigned NOT NULL DEFAULT 0, + `checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `version` INT(10) unsigned NOT NULL DEFAULT 1, + `hits` INT(10) unsigned NOT NULL DEFAULT 0, + `access` INT(10) unsigned NOT NULL DEFAULT 0, + `ordering` INT(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `idx_system_name` (`system_name`), + KEY `idx_add_sales_server` (`add_sales_server`), + KEY `idx_add_php_preflight_uninstall` (`add_php_preflight_uninstall`), + KEY `idx_add_php_postflight_install` (`add_php_postflight_install`), + KEY `idx_add_php_postflight_update` (`add_php_postflight_update`), + KEY `idx_add_php_method_uninstall` (`add_php_method_uninstall`), + KEY `idx_add_sql` (`add_sql`), + KEY `idx_add_sql_uninstall` (`add_sql_uninstall`), + KEY `idx_addreadme` (`addreadme`), + KEY `idx_add_php_script_construct` (`add_php_script_construct`), + KEY `idx_add_update_server` (`add_update_server`), + KEY `idx_update_server_target` (`update_server_target`), + KEY `idx_add_php_preflight_install` (`add_php_preflight_install`), + KEY `idx_add_php_preflight_update` (`add_php_preflight_update`), + KEY `idx_name` (`name`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_createdby` (`created_by`), + KEY `idx_modifiedby` (`modified_by`), + KEY `idx_state` (`published`) +) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_module_updates` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', + `joomla_module` INT(11) NOT NULL DEFAULT 0, + `version_update` TEXT NOT NULL, + `params` text NOT NULL, + `published` TINYINT(3) NOT NULL DEFAULT 1, + `created_by` INT(10) unsigned NOT NULL DEFAULT 0, + `modified_by` INT(10) unsigned NOT NULL DEFAULT 0, + `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `checked_out` int(11) unsigned NOT NULL DEFAULT 0, + `checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `version` INT(10) unsigned NOT NULL DEFAULT 1, + `hits` INT(10) unsigned NOT NULL DEFAULT 0, + `access` INT(10) unsigned NOT NULL DEFAULT 0, + `ordering` INT(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `idx_joomla_module` (`joomla_module`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_createdby` (`created_by`), + KEY `idx_modifiedby` (`modified_by`), + KEY `idx_state` (`published`) +) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; + +CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_module_files_folders_urls` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', + `addfiles` TEXT NOT NULL, + `addfilesfullpath` TEXT NOT NULL, + `addfolders` TEXT NOT NULL, + `addfoldersfullpath` TEXT NOT NULL, + `addurls` TEXT NOT NULL, + `joomla_module` INT(11) NOT NULL DEFAULT 0, + `params` text NOT NULL, + `published` TINYINT(3) NOT NULL DEFAULT 1, + `created_by` INT(10) unsigned NOT NULL DEFAULT 0, + `modified_by` INT(10) unsigned NOT NULL DEFAULT 0, + `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `checked_out` int(11) unsigned NOT NULL DEFAULT 0, + `checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `version` INT(10) unsigned NOT NULL DEFAULT 1, + `hits` INT(10) unsigned NOT NULL DEFAULT 0, + `access` INT(10) unsigned NOT NULL DEFAULT 0, + `ordering` INT(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `idx_joomla_module` (`joomla_module`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_createdby` (`created_by`), + KEY `idx_modifiedby` (`modified_by`), + KEY `idx_state` (`published`) +) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; diff --git a/admin/tables/joomla_module.php b/admin/tables/joomla_module.php new file mode 100644 index 000000000..20dc9454f --- /dev/null +++ b/admin/tables/joomla_module.php @@ -0,0 +1,321 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +/** + * Joomla_modules Table class + */ +class ComponentbuilderTableJoomla_module extends JTable +{ + /** + * Ensure the params and metadata in json encoded in the bind method + * + * @var array + * @since 3.3 + */ + protected $_jsonEncode = array('params', 'metadata'); + + /** + * Constructor + * + * @param object Database connector object + */ + function __construct(&$db) + { + parent::__construct('#__componentbuilder_joomla_module', 'id', $db); + + // Adding History Options + JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_componentbuilder.joomla_module')); + } + + public function bind($array, $ignore = '') + { + + if (isset($array['params']) && is_array($array['params'])) + { + $registry = new JRegistry; + $registry->loadArray($array['params']); + $array['params'] = (string) $registry; + } + + if (isset($array['metadata']) && is_array($array['metadata'])) + { + $registry = new JRegistry; + $registry->loadArray($array['metadata']); + $array['metadata'] = (string) $registry; + } + + // Bind the rules. + if (isset($array['rules']) && is_array($array['rules'])) + { + $rules = new JAccessRules($array['rules']); + $this->setRules($rules); + } + return parent::bind($array, $ignore); + } + + /** + * Overload the store method for the Joomla_module table. + * + * @param boolean Toggle whether null values should be updated. + * @return boolean True on success, false on failure. + * @since 1.6 + */ + public function store($updateNulls = false) + { + $date = JFactory::getDate(); + $user = JFactory::getUser(); + + if ($this->id) + { + // Existing item + $this->modified = $date->toSql(); + $this->modified_by = $user->get('id'); + } + else + { + // New joomla_module. A joomla_module created and created_by field can be set by the user, + // so we don't touch either of these if they are set. + if (!(int) $this->created) + { + $this->created = $date->toSql(); + } + if (empty($this->created_by)) + { + $this->created_by = $user->get('id'); + } + } + + if (isset($this->alias)) + { + // Verify that the alias is unique + $table = JTable::getInstance('joomla_module', 'ComponentbuilderTable'); + + if ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) + { + $this->setError(JText::_('COM_COMPONENTBUILDER_JOOMLA_MODULE_ERROR_UNIQUE_ALIAS')); + return false; + } + } + + if (isset($this->url)) + { + // Convert IDN urls to punycode + $this->url = JStringPunycode::urlToPunycode($this->url); + } + if (isset($this->website)) + { + // Convert IDN urls to punycode + $this->website = JStringPunycode::urlToPunycode($this->website); + } + + return parent::store($updateNulls); + } + + /** + * Overloaded check method to ensure data integrity. + * + * @return boolean True on success. + */ + public function check() + { + if (isset($this->alias)) + { + // Generate a valid alias + $this->generateAlias(); + + $table = JTable::getInstance('joomla_module', 'componentbuilderTable'); + + while ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) + { + $this->alias = JString::increment($this->alias, 'dash'); + } + } + + /* + * Clean up keywords -- eliminate extra spaces between phrases + * and cr (\r) and lf (\n) characters from string. + * Only process if not empty. + */ + if (!empty($this->metakey)) + { + // Array of characters to remove. + $bad_characters = array("\n", "\r", "\"", "<", ">"); + + // Remove bad characters. + $after_clean = JString::str_ireplace($bad_characters, "", $this->metakey); + + // Create array using commas as delimiter. + $keys = explode(',', $after_clean); + $clean_keys = array(); + + foreach ($keys as $key) + { + // Ignore blank keywords. + if (trim($key)) + { + $clean_keys[] = trim($key); + } + } + + // Put array back together delimited by ", " + $this->metakey = implode(", ", $clean_keys); + } + + // Clean up description -- eliminate quotes and <> brackets + if (!empty($this->metadesc)) + { + // Only process if not empty + $bad_characters = array("\"", "<", ">"); + $this->metadesc = JString::str_ireplace($bad_characters, "", $this->metadesc); + } + + // If we don't have any access rules set at this point just use an empty JAccessRules class + if (!$this->getRules()) + { + $rules = $this->getDefaultAssetValues('com_componentbuilder.joomla_module.'.$this->id); + $this->setRules($rules); + } + + // Set ordering + if ($this->published < 0) + { + // Set ordering to 0 if state is archived or trashed + $this->ordering = 0; + } + + return true; + } + + /** + * Gets the default asset values for a component. + * + * @param $string $component The component asset name to search for + * + * @return JAccessRules The JAccessRules object for the asset + */ + protected function getDefaultAssetValues($component, $try = true) + { + // Need to find the asset id by the name of the component. + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select($db->quoteName('id')) + ->from($db->quoteName('#__assets')) + ->where($db->quoteName('name') . ' = ' . $db->quote($component)); + $db->setQuery($query); + $db->execute(); + if ($db->loadRowList()) + { + // asset alread set so use saved rules + $assetId = (int) $db->loadResult(); + return JAccess::getAssetRules($assetId); // (TODO) instead of keeping inherited Allowed it becomes Allowed. + } + // try again + elseif ($try) + { + $try = explode('.',$component); + $result = $this->getDefaultAssetValues($try[0], false); + if ($result instanceof JAccessRules) + { + if (isset($try[1])) + { + $_result = (string) $result; + $_result = json_decode($_result); + foreach ($_result as $name => &$rule) + { + $v = explode('.', $name); + if ($try[1] !== $v[0]) + { + // remove since it is not part of this view + unset($_result->$name); + } + else + { + // clear the value since we inherit + $rule = array(); + } + } + // check if there are any view values remaining + if (count( (array) $_result)) + { + $_result = json_encode($_result); + $_result = array($_result); + // Instantiate and return the JAccessRules object for the asset rules. + $rules = new JAccessRules; + $rules->mergeCollection($_result); + + return $rules; + } + } + return $result; + } + } + return JAccess::getAssetRules(0); + } + + /** + * Method to compute the default name of the asset. + * The default name is in the form 'table_name.id' + * where id is the value of the primary key of the table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetName() + { + $k = $this->_tbl_key; + return 'com_componentbuilder.joomla_module.'.(int) $this->$k; + } + + /** + * Method to return the title to use for the asset table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetTitle() + { + if (isset($this->title)) + { + return $this->title; + } + return ''; + } + + /** + * Get the parent asset id for the record + * + * @return int + * @since 2.5 + */ + protected function _getAssetParentId(JTable $table = NULL, $id = NULL) + { + $asset = JTable::getInstance('Asset'); + $asset->loadByName('com_componentbuilder'); + + return $asset->id; + } + + /** + * This view does not actually have an alias + * + * @return bool + */ + public function generateAlias() + { + return false; + } + +} diff --git a/admin/tables/joomla_module_files_folders_urls.php b/admin/tables/joomla_module_files_folders_urls.php new file mode 100644 index 000000000..92df45795 --- /dev/null +++ b/admin/tables/joomla_module_files_folders_urls.php @@ -0,0 +1,321 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +/** + * Joomla_modules_files_folders_urls Table class + */ +class ComponentbuilderTableJoomla_module_files_folders_urls extends JTable +{ + /** + * Ensure the params and metadata in json encoded in the bind method + * + * @var array + * @since 3.3 + */ + protected $_jsonEncode = array('params', 'metadata'); + + /** + * Constructor + * + * @param object Database connector object + */ + function __construct(&$db) + { + parent::__construct('#__componentbuilder_joomla_module_files_folders_urls', 'id', $db); + + // Adding History Options + JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_componentbuilder.joomla_module_files_folders_urls')); + } + + public function bind($array, $ignore = '') + { + + if (isset($array['params']) && is_array($array['params'])) + { + $registry = new JRegistry; + $registry->loadArray($array['params']); + $array['params'] = (string) $registry; + } + + if (isset($array['metadata']) && is_array($array['metadata'])) + { + $registry = new JRegistry; + $registry->loadArray($array['metadata']); + $array['metadata'] = (string) $registry; + } + + // Bind the rules. + if (isset($array['rules']) && is_array($array['rules'])) + { + $rules = new JAccessRules($array['rules']); + $this->setRules($rules); + } + return parent::bind($array, $ignore); + } + + /** + * Overload the store method for the Joomla_module_files_folders_urls table. + * + * @param boolean Toggle whether null values should be updated. + * @return boolean True on success, false on failure. + * @since 1.6 + */ + public function store($updateNulls = false) + { + $date = JFactory::getDate(); + $user = JFactory::getUser(); + + if ($this->id) + { + // Existing item + $this->modified = $date->toSql(); + $this->modified_by = $user->get('id'); + } + else + { + // New joomla_module_files_folders_urls. A joomla_module_files_folders_urls created and created_by field can be set by the user, + // so we don't touch either of these if they are set. + if (!(int) $this->created) + { + $this->created = $date->toSql(); + } + if (empty($this->created_by)) + { + $this->created_by = $user->get('id'); + } + } + + if (isset($this->alias)) + { + // Verify that the alias is unique + $table = JTable::getInstance('joomla_module_files_folders_urls', 'ComponentbuilderTable'); + + if ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) + { + $this->setError(JText::_('COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ERROR_UNIQUE_ALIAS')); + return false; + } + } + + if (isset($this->url)) + { + // Convert IDN urls to punycode + $this->url = JStringPunycode::urlToPunycode($this->url); + } + if (isset($this->website)) + { + // Convert IDN urls to punycode + $this->website = JStringPunycode::urlToPunycode($this->website); + } + + return parent::store($updateNulls); + } + + /** + * Overloaded check method to ensure data integrity. + * + * @return boolean True on success. + */ + public function check() + { + if (isset($this->alias)) + { + // Generate a valid alias + $this->generateAlias(); + + $table = JTable::getInstance('joomla_module_files_folders_urls', 'componentbuilderTable'); + + while ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) + { + $this->alias = JString::increment($this->alias, 'dash'); + } + } + + /* + * Clean up keywords -- eliminate extra spaces between phrases + * and cr (\r) and lf (\n) characters from string. + * Only process if not empty. + */ + if (!empty($this->metakey)) + { + // Array of characters to remove. + $bad_characters = array("\n", "\r", "\"", "<", ">"); + + // Remove bad characters. + $after_clean = JString::str_ireplace($bad_characters, "", $this->metakey); + + // Create array using commas as delimiter. + $keys = explode(',', $after_clean); + $clean_keys = array(); + + foreach ($keys as $key) + { + // Ignore blank keywords. + if (trim($key)) + { + $clean_keys[] = trim($key); + } + } + + // Put array back together delimited by ", " + $this->metakey = implode(", ", $clean_keys); + } + + // Clean up description -- eliminate quotes and <> brackets + if (!empty($this->metadesc)) + { + // Only process if not empty + $bad_characters = array("\"", "<", ">"); + $this->metadesc = JString::str_ireplace($bad_characters, "", $this->metadesc); + } + + // If we don't have any access rules set at this point just use an empty JAccessRules class + if (!$this->getRules()) + { + $rules = $this->getDefaultAssetValues('com_componentbuilder.joomla_module_files_folders_urls.'.$this->id); + $this->setRules($rules); + } + + // Set ordering + if ($this->published < 0) + { + // Set ordering to 0 if state is archived or trashed + $this->ordering = 0; + } + + return true; + } + + /** + * Gets the default asset values for a component. + * + * @param $string $component The component asset name to search for + * + * @return JAccessRules The JAccessRules object for the asset + */ + protected function getDefaultAssetValues($component, $try = true) + { + // Need to find the asset id by the name of the component. + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select($db->quoteName('id')) + ->from($db->quoteName('#__assets')) + ->where($db->quoteName('name') . ' = ' . $db->quote($component)); + $db->setQuery($query); + $db->execute(); + if ($db->loadRowList()) + { + // asset alread set so use saved rules + $assetId = (int) $db->loadResult(); + return JAccess::getAssetRules($assetId); // (TODO) instead of keeping inherited Allowed it becomes Allowed. + } + // try again + elseif ($try) + { + $try = explode('.',$component); + $result = $this->getDefaultAssetValues($try[0], false); + if ($result instanceof JAccessRules) + { + if (isset($try[1])) + { + $_result = (string) $result; + $_result = json_decode($_result); + foreach ($_result as $name => &$rule) + { + $v = explode('.', $name); + if ($try[1] !== $v[0]) + { + // remove since it is not part of this view + unset($_result->$name); + } + else + { + // clear the value since we inherit + $rule = array(); + } + } + // check if there are any view values remaining + if (count( (array) $_result)) + { + $_result = json_encode($_result); + $_result = array($_result); + // Instantiate and return the JAccessRules object for the asset rules. + $rules = new JAccessRules; + $rules->mergeCollection($_result); + + return $rules; + } + } + return $result; + } + } + return JAccess::getAssetRules(0); + } + + /** + * Method to compute the default name of the asset. + * The default name is in the form 'table_name.id' + * where id is the value of the primary key of the table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetName() + { + $k = $this->_tbl_key; + return 'com_componentbuilder.joomla_module_files_folders_urls.'.(int) $this->$k; + } + + /** + * Method to return the title to use for the asset table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetTitle() + { + if (isset($this->title)) + { + return $this->title; + } + return ''; + } + + /** + * Get the parent asset id for the record + * + * @return int + * @since 2.5 + */ + protected function _getAssetParentId(JTable $table = NULL, $id = NULL) + { + $asset = JTable::getInstance('Asset'); + $asset->loadByName('com_componentbuilder'); + + return $asset->id; + } + + /** + * This view does not actually have an alias + * + * @return bool + */ + public function generateAlias() + { + return false; + } + +} diff --git a/admin/tables/joomla_module_updates.php b/admin/tables/joomla_module_updates.php new file mode 100644 index 000000000..26d356ac4 --- /dev/null +++ b/admin/tables/joomla_module_updates.php @@ -0,0 +1,321 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +/** + * Joomla_modules_updates Table class + */ +class ComponentbuilderTableJoomla_module_updates extends JTable +{ + /** + * Ensure the params and metadata in json encoded in the bind method + * + * @var array + * @since 3.3 + */ + protected $_jsonEncode = array('params', 'metadata'); + + /** + * Constructor + * + * @param object Database connector object + */ + function __construct(&$db) + { + parent::__construct('#__componentbuilder_joomla_module_updates', 'id', $db); + + // Adding History Options + JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_componentbuilder.joomla_module_updates')); + } + + public function bind($array, $ignore = '') + { + + if (isset($array['params']) && is_array($array['params'])) + { + $registry = new JRegistry; + $registry->loadArray($array['params']); + $array['params'] = (string) $registry; + } + + if (isset($array['metadata']) && is_array($array['metadata'])) + { + $registry = new JRegistry; + $registry->loadArray($array['metadata']); + $array['metadata'] = (string) $registry; + } + + // Bind the rules. + if (isset($array['rules']) && is_array($array['rules'])) + { + $rules = new JAccessRules($array['rules']); + $this->setRules($rules); + } + return parent::bind($array, $ignore); + } + + /** + * Overload the store method for the Joomla_module_updates table. + * + * @param boolean Toggle whether null values should be updated. + * @return boolean True on success, false on failure. + * @since 1.6 + */ + public function store($updateNulls = false) + { + $date = JFactory::getDate(); + $user = JFactory::getUser(); + + if ($this->id) + { + // Existing item + $this->modified = $date->toSql(); + $this->modified_by = $user->get('id'); + } + else + { + // New joomla_module_updates. A joomla_module_updates created and created_by field can be set by the user, + // so we don't touch either of these if they are set. + if (!(int) $this->created) + { + $this->created = $date->toSql(); + } + if (empty($this->created_by)) + { + $this->created_by = $user->get('id'); + } + } + + if (isset($this->alias)) + { + // Verify that the alias is unique + $table = JTable::getInstance('joomla_module_updates', 'ComponentbuilderTable'); + + if ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) + { + $this->setError(JText::_('COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_ERROR_UNIQUE_ALIAS')); + return false; + } + } + + if (isset($this->url)) + { + // Convert IDN urls to punycode + $this->url = JStringPunycode::urlToPunycode($this->url); + } + if (isset($this->website)) + { + // Convert IDN urls to punycode + $this->website = JStringPunycode::urlToPunycode($this->website); + } + + return parent::store($updateNulls); + } + + /** + * Overloaded check method to ensure data integrity. + * + * @return boolean True on success. + */ + public function check() + { + if (isset($this->alias)) + { + // Generate a valid alias + $this->generateAlias(); + + $table = JTable::getInstance('joomla_module_updates', 'componentbuilderTable'); + + while ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) + { + $this->alias = JString::increment($this->alias, 'dash'); + } + } + + /* + * Clean up keywords -- eliminate extra spaces between phrases + * and cr (\r) and lf (\n) characters from string. + * Only process if not empty. + */ + if (!empty($this->metakey)) + { + // Array of characters to remove. + $bad_characters = array("\n", "\r", "\"", "<", ">"); + + // Remove bad characters. + $after_clean = JString::str_ireplace($bad_characters, "", $this->metakey); + + // Create array using commas as delimiter. + $keys = explode(',', $after_clean); + $clean_keys = array(); + + foreach ($keys as $key) + { + // Ignore blank keywords. + if (trim($key)) + { + $clean_keys[] = trim($key); + } + } + + // Put array back together delimited by ", " + $this->metakey = implode(", ", $clean_keys); + } + + // Clean up description -- eliminate quotes and <> brackets + if (!empty($this->metadesc)) + { + // Only process if not empty + $bad_characters = array("\"", "<", ">"); + $this->metadesc = JString::str_ireplace($bad_characters, "", $this->metadesc); + } + + // If we don't have any access rules set at this point just use an empty JAccessRules class + if (!$this->getRules()) + { + $rules = $this->getDefaultAssetValues('com_componentbuilder.joomla_module_updates.'.$this->id); + $this->setRules($rules); + } + + // Set ordering + if ($this->published < 0) + { + // Set ordering to 0 if state is archived or trashed + $this->ordering = 0; + } + + return true; + } + + /** + * Gets the default asset values for a component. + * + * @param $string $component The component asset name to search for + * + * @return JAccessRules The JAccessRules object for the asset + */ + protected function getDefaultAssetValues($component, $try = true) + { + // Need to find the asset id by the name of the component. + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select($db->quoteName('id')) + ->from($db->quoteName('#__assets')) + ->where($db->quoteName('name') . ' = ' . $db->quote($component)); + $db->setQuery($query); + $db->execute(); + if ($db->loadRowList()) + { + // asset alread set so use saved rules + $assetId = (int) $db->loadResult(); + return JAccess::getAssetRules($assetId); // (TODO) instead of keeping inherited Allowed it becomes Allowed. + } + // try again + elseif ($try) + { + $try = explode('.',$component); + $result = $this->getDefaultAssetValues($try[0], false); + if ($result instanceof JAccessRules) + { + if (isset($try[1])) + { + $_result = (string) $result; + $_result = json_decode($_result); + foreach ($_result as $name => &$rule) + { + $v = explode('.', $name); + if ($try[1] !== $v[0]) + { + // remove since it is not part of this view + unset($_result->$name); + } + else + { + // clear the value since we inherit + $rule = array(); + } + } + // check if there are any view values remaining + if (count( (array) $_result)) + { + $_result = json_encode($_result); + $_result = array($_result); + // Instantiate and return the JAccessRules object for the asset rules. + $rules = new JAccessRules; + $rules->mergeCollection($_result); + + return $rules; + } + } + return $result; + } + } + return JAccess::getAssetRules(0); + } + + /** + * Method to compute the default name of the asset. + * The default name is in the form 'table_name.id' + * where id is the value of the primary key of the table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetName() + { + $k = $this->_tbl_key; + return 'com_componentbuilder.joomla_module_updates.'.(int) $this->$k; + } + + /** + * Method to return the title to use for the asset table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetTitle() + { + if (isset($this->title)) + { + return $this->title; + } + return ''; + } + + /** + * Get the parent asset id for the record + * + * @return int + * @since 2.5 + */ + protected function _getAssetParentId(JTable $table = NULL, $id = NULL) + { + $asset = JTable::getInstance('Asset'); + $asset->loadByName('com_componentbuilder'); + + return $asset->id; + } + + /** + * This view does not actually have an alias + * + * @return bool + */ + public function generateAlias() + { + return false; + } + +} diff --git a/admin/views/admin_view/tmpl/edit.php b/admin/views/admin_view/tmpl/edit.php index 9a7d39db0..54688f84f 100644 --- a/admin/views/admin_view/tmpl/edit.php +++ b/admin/views/admin_view/tmpl/edit.php @@ -208,521 +208,521 @@ $componentParams = $this->params; // will be removed just use $this->params inst + + + diff --git a/admin/views/joomla_module/tmpl/index.html b/admin/views/joomla_module/tmpl/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/views/joomla_module/tmpl/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/views/joomla_module/view.html.php b/admin/views/joomla_module/view.html.php new file mode 100644 index 000000000..d83930f78 --- /dev/null +++ b/admin/views/joomla_module/view.html.php @@ -0,0 +1,245 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Joomla_module View class + */ +class ComponentbuilderViewJoomla_module extends JViewLegacy +{ + /** + * display method of View + * @return void + */ + public function display($tpl = null) + { + // set params + $this->params = JComponentHelper::getParams('com_componentbuilder'); + // 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('joomla_module', $this->item); + // get input + $jinput = JFactory::getApplication()->input; + $this->ref = $jinput->get('ref', 0, 'word'); + $this->refid = $jinput->get('refid', 0, 'int'); + $return = $jinput->get('return', null, 'base64'); + // set the referral string + $this->referral = ''; + if ($this->refid && $this->ref) + { + // return to the item that referred to this item + $this->referral = '&ref=' . (string)$this->ref . '&refid=' . (int)$this->refid; + } + elseif($this->ref) + { + // return to the list view that referred to this item + $this->referral = '&ref=' . (string)$this->ref; + } + // check return value + if (!is_null($return)) + { + // add the return value + $this->referral .= '&return=' . (string)$return; + } + + // 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_JOOMLA_MODULE_NEW' : 'COM_COMPONENTBUILDER_JOOMLA_MODULE_EDIT'), 'pencil-2 article-add'); + // Built the actions for new and existing records. + if (ComponentbuilderHelper::checkString($this->referral)) + { + if ($this->canDo->get('joomla_module.create') && $isNew) + { + // We can create the record. + JToolBarHelper::save('joomla_module.save', 'JTOOLBAR_SAVE'); + } + elseif ($this->canDo->get('joomla_module.edit')) + { + // We can save the record. + JToolBarHelper::save('joomla_module.save', 'JTOOLBAR_SAVE'); + } + if ($isNew) + { + // Do not creat but cancel. + JToolBarHelper::cancel('joomla_module.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + // We can close it. + JToolBarHelper::cancel('joomla_module.cancel', 'JTOOLBAR_CLOSE'); + } + } + else + { + if ($isNew) + { + // For new records, check the create permission. + if ($this->canDo->get('joomla_module.create')) + { + JToolBarHelper::apply('joomla_module.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('joomla_module.save', 'JTOOLBAR_SAVE'); + JToolBarHelper::custom('joomla_module.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + }; + JToolBarHelper::cancel('joomla_module.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + if ($this->canDo->get('joomla_module.edit')) + { + // We can save the new record + JToolBarHelper::apply('joomla_module.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('joomla_module.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('joomla_module.create')) + { + JToolBarHelper::custom('joomla_module.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + } + } + $canVersion = ($this->canDo->get('core.version') && $this->canDo->get('joomla_module.version')); + if ($this->state->params->get('save_history', 1) && $this->canDo->get('joomla_module.edit') && $canVersion) + { + JToolbarHelper::versions('com_componentbuilder.joomla_module', $this->item->id); + } + if ($this->canDo->get('joomla_module.create')) + { + JToolBarHelper::custom('joomla_module.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false); + } + JToolBarHelper::cancel('joomla_module.cancel', 'JTOOLBAR_CLOSE'); + } + } + JToolbarHelper::divider(); + // set help url for this view if found + $help_url = ComponentbuilderHelper::getHelpUrl('joomla_module'); + 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); + if (!isset($this->document)) + { + $this->document = JFactory::getDocument(); + } + $this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_JOOMLA_MODULE_NEW' : 'COM_COMPONENTBUILDER_JOOMLA_MODULE_EDIT')); + $this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/joomla_module.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css'); + // Add Ajax Token + $this->document->addScriptDeclaration("var token = '".JSession::getFormToken()."';"); + $this->document->addScript(JURI::root() . $this->script, (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); + $this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/joomla_module/submitbutton.js", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); + + // add the Uikit v2 style sheets + $this->document->addStyleSheet( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/css/uikit.gradient.min.css' , (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css'); + $this->document->addStyleSheet( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/css/components/notify.gradient.min.css' , (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css'); + + // add Uikit v2 JavaScripts + $this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/uikit.min.js' , (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); + $this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/components/lightbox.min.js', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('type' => 'text/javascript', 'async' => 'async') : true); + $this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/components/notify.min.js', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('type' => 'text/javascript', 'async' => 'async') : true); + // Add the JavaScript for JStore + $this->document->addScript(JURI::root() .'media/com_componentbuilder/js/jquery.json.min.js'); + $this->document->addScript(JURI::root() .'media/com_componentbuilder/js/jstorage.min.js'); + $this->document->addScript(JURI::root() .'media/com_componentbuilder/js/strtotime.js'); + // add var key + $this->document->addScriptDeclaration("var vastDevMod = '" . $this->get('VDM') . "';"); + // add return_here + $this->document->addScriptDeclaration("var return_here = '" . urlencode(base64_encode((string) JUri::getInstance())) . "';"); + // check if we should use browser storage + $setBrowserStorage = $this->params->get('set_browser_storage', null); + if ($setBrowserStorage) + { + // check what (Time To Live) show we use + $storageTimeToLive = $this->params->get('storage_time_to_live', 'global'); + if ('global' == $storageTimeToLive) + { + // use the global session time + $session = JFactory::getSession(); + // must have itin milliseconds + $expire = ($session->getExpire()*60)* 1000; + } + else + { + // use the Componentbuilder Global setting + if (0 != $storageTimeToLive) + { + // this will convert the time into milliseconds + $storageTimeToLive = $storageTimeToLive * 1000; + } + $expire = $storageTimeToLive; + } + } + else + { + // set to use no storage + $expire = 30000; // only 30 seconds + } + // Set the Time To Live To JavaScript + $this->document->addScriptDeclaration("var expire = ". (int) $expire.";"); + JText::script('view not acceptable. Error'); + } +} diff --git a/admin/views/joomla_module_files_folders_urls/submitbutton.js b/admin/views/joomla_module_files_folders_urls/submitbutton.js new file mode 100644 index 000000000..693231058 --- /dev/null +++ b/admin/views/joomla_module_files_folders_urls/submitbutton.js @@ -0,0 +1,25 @@ +/** + * @package Joomla.Component.Builder + * + * @created 30th April, 2015 + * @author Llewellyn van der Merwe + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +Joomla.submitbutton = function(task) +{ + if (task == ''){ + return false; + } else { + var action = task.split('.'); + if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){ + Joomla.submitform(task, document.getElementById("adminForm")); + return true; + } else { + alert(Joomla.JText._('joomla_module_files_folders_urls, some values are not acceptable.','Some values are unacceptable')); + return false; + } + } +} \ No newline at end of file diff --git a/admin/views/joomla_module_files_folders_urls/tmpl/edit.php b/admin/views/joomla_module_files_folders_urls/tmpl/edit.php new file mode 100644 index 000000000..dd9116f84 --- /dev/null +++ b/admin/views/joomla_module_files_folders_urls/tmpl/edit.php @@ -0,0 +1,116 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// 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 = $this->params; // will be removed just use $this->params instead +?> + + diff --git a/admin/views/joomla_module_files_folders_urls/tmpl/index.html b/admin/views/joomla_module_files_folders_urls/tmpl/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/views/joomla_module_files_folders_urls/tmpl/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/views/joomla_module_files_folders_urls/view.html.php b/admin/views/joomla_module_files_folders_urls/view.html.php new file mode 100644 index 000000000..9084e6cc4 --- /dev/null +++ b/admin/views/joomla_module_files_folders_urls/view.html.php @@ -0,0 +1,195 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Joomla_module_files_folders_urls View class + */ +class ComponentbuilderViewJoomla_module_files_folders_urls extends JViewLegacy +{ + /** + * display method of View + * @return void + */ + public function display($tpl = null) + { + // set params + $this->params = JComponentHelper::getParams('com_componentbuilder'); + // 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('joomla_module_files_folders_urls', $this->item); + // get input + $jinput = JFactory::getApplication()->input; + $this->ref = $jinput->get('ref', 0, 'word'); + $this->refid = $jinput->get('refid', 0, 'int'); + $return = $jinput->get('return', null, 'base64'); + // set the referral string + $this->referral = ''; + if ($this->refid && $this->ref) + { + // return to the item that referred to this item + $this->referral = '&ref=' . (string)$this->ref . '&refid=' . (int)$this->refid; + } + elseif($this->ref) + { + // return to the list view that referred to this item + $this->referral = '&ref=' . (string)$this->ref; + } + // check return value + if (!is_null($return)) + { + // add the return value + $this->referral .= '&return=' . (string)$return; + } + + // 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_JOOMLA_MODULE_FILES_FOLDERS_URLS_NEW' : 'COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_EDIT'), 'pencil-2 article-add'); + // Built the actions for new and existing records. + if (ComponentbuilderHelper::checkString($this->referral)) + { + if ($this->canDo->get('joomla_module_files_folders_urls.create') && $isNew) + { + // We can create the record. + JToolBarHelper::save('joomla_module_files_folders_urls.save', 'JTOOLBAR_SAVE'); + } + elseif ($this->canDo->get('joomla_module_files_folders_urls.edit')) + { + // We can save the record. + JToolBarHelper::save('joomla_module_files_folders_urls.save', 'JTOOLBAR_SAVE'); + } + if ($isNew) + { + // Do not creat but cancel. + JToolBarHelper::cancel('joomla_module_files_folders_urls.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + // We can close it. + JToolBarHelper::cancel('joomla_module_files_folders_urls.cancel', 'JTOOLBAR_CLOSE'); + } + } + else + { + if ($isNew) + { + // For new records, check the create permission. + if ($this->canDo->get('joomla_module_files_folders_urls.create')) + { + JToolBarHelper::apply('joomla_module_files_folders_urls.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('joomla_module_files_folders_urls.save', 'JTOOLBAR_SAVE'); + JToolBarHelper::custom('joomla_module_files_folders_urls.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + }; + JToolBarHelper::cancel('joomla_module_files_folders_urls.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + if ($this->canDo->get('joomla_module_files_folders_urls.edit')) + { + // We can save the new record + JToolBarHelper::apply('joomla_module_files_folders_urls.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('joomla_module_files_folders_urls.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('joomla_module_files_folders_urls.create')) + { + JToolBarHelper::custom('joomla_module_files_folders_urls.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + } + } + $canVersion = ($this->canDo->get('core.version') && $this->canDo->get('joomla_module_files_folders_urls.version')); + if ($this->state->params->get('save_history', 1) && $this->canDo->get('joomla_module_files_folders_urls.edit') && $canVersion) + { + JToolbarHelper::versions('com_componentbuilder.joomla_module_files_folders_urls', $this->item->id); + } + if ($this->canDo->get('joomla_module_files_folders_urls.create')) + { + JToolBarHelper::custom('joomla_module_files_folders_urls.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false); + } + JToolBarHelper::cancel('joomla_module_files_folders_urls.cancel', 'JTOOLBAR_CLOSE'); + } + } + JToolbarHelper::divider(); + // set help url for this view if found + $help_url = ComponentbuilderHelper::getHelpUrl('joomla_module_files_folders_urls'); + 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); + if (!isset($this->document)) + { + $this->document = JFactory::getDocument(); + } + $this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NEW' : 'COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_EDIT')); + $this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/joomla_module_files_folders_urls.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css'); + $this->document->addScript(JURI::root() . $this->script, (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); + $this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/joomla_module_files_folders_urls/submitbutton.js", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); + JText::script('view not acceptable. Error'); + } +} diff --git a/admin/views/joomla_module_updates/submitbutton.js b/admin/views/joomla_module_updates/submitbutton.js new file mode 100644 index 000000000..e6e58bebc --- /dev/null +++ b/admin/views/joomla_module_updates/submitbutton.js @@ -0,0 +1,25 @@ +/** + * @package Joomla.Component.Builder + * + * @created 30th April, 2015 + * @author Llewellyn van der Merwe + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +Joomla.submitbutton = function(task) +{ + if (task == ''){ + return false; + } else { + var action = task.split('.'); + if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){ + Joomla.submitform(task, document.getElementById("adminForm")); + return true; + } else { + alert(Joomla.JText._('joomla_module_updates, some values are not acceptable.','Some values are unacceptable')); + return false; + } + } +} \ No newline at end of file diff --git a/admin/views/joomla_module_updates/tmpl/edit.php b/admin/views/joomla_module_updates/tmpl/edit.php new file mode 100644 index 000000000..f84cccec3 --- /dev/null +++ b/admin/views/joomla_module_updates/tmpl/edit.php @@ -0,0 +1,106 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// 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 = $this->params; // will be removed just use $this->params instead +?> + + diff --git a/admin/views/joomla_module_updates/tmpl/index.html b/admin/views/joomla_module_updates/tmpl/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/views/joomla_module_updates/tmpl/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/views/joomla_module_updates/view.html.php b/admin/views/joomla_module_updates/view.html.php new file mode 100644 index 000000000..54d806939 --- /dev/null +++ b/admin/views/joomla_module_updates/view.html.php @@ -0,0 +1,195 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Joomla_module_updates View class + */ +class ComponentbuilderViewJoomla_module_updates extends JViewLegacy +{ + /** + * display method of View + * @return void + */ + public function display($tpl = null) + { + // set params + $this->params = JComponentHelper::getParams('com_componentbuilder'); + // 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('joomla_module_updates', $this->item); + // get input + $jinput = JFactory::getApplication()->input; + $this->ref = $jinput->get('ref', 0, 'word'); + $this->refid = $jinput->get('refid', 0, 'int'); + $return = $jinput->get('return', null, 'base64'); + // set the referral string + $this->referral = ''; + if ($this->refid && $this->ref) + { + // return to the item that referred to this item + $this->referral = '&ref=' . (string)$this->ref . '&refid=' . (int)$this->refid; + } + elseif($this->ref) + { + // return to the list view that referred to this item + $this->referral = '&ref=' . (string)$this->ref; + } + // check return value + if (!is_null($return)) + { + // add the return value + $this->referral .= '&return=' . (string)$return; + } + + // 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_JOOMLA_MODULE_UPDATES_NEW' : 'COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_EDIT'), 'pencil-2 article-add'); + // Built the actions for new and existing records. + if (ComponentbuilderHelper::checkString($this->referral)) + { + if ($this->canDo->get('joomla_module_updates.create') && $isNew) + { + // We can create the record. + JToolBarHelper::save('joomla_module_updates.save', 'JTOOLBAR_SAVE'); + } + elseif ($this->canDo->get('joomla_module_updates.edit')) + { + // We can save the record. + JToolBarHelper::save('joomla_module_updates.save', 'JTOOLBAR_SAVE'); + } + if ($isNew) + { + // Do not creat but cancel. + JToolBarHelper::cancel('joomla_module_updates.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + // We can close it. + JToolBarHelper::cancel('joomla_module_updates.cancel', 'JTOOLBAR_CLOSE'); + } + } + else + { + if ($isNew) + { + // For new records, check the create permission. + if ($this->canDo->get('joomla_module_updates.create')) + { + JToolBarHelper::apply('joomla_module_updates.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('joomla_module_updates.save', 'JTOOLBAR_SAVE'); + JToolBarHelper::custom('joomla_module_updates.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + }; + JToolBarHelper::cancel('joomla_module_updates.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + if ($this->canDo->get('joomla_module_updates.edit')) + { + // We can save the new record + JToolBarHelper::apply('joomla_module_updates.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('joomla_module_updates.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('joomla_module_updates.create')) + { + JToolBarHelper::custom('joomla_module_updates.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + } + } + $canVersion = ($this->canDo->get('core.version') && $this->canDo->get('joomla_module_updates.version')); + if ($this->state->params->get('save_history', 1) && $this->canDo->get('joomla_module_updates.edit') && $canVersion) + { + JToolbarHelper::versions('com_componentbuilder.joomla_module_updates', $this->item->id); + } + if ($this->canDo->get('joomla_module_updates.create')) + { + JToolBarHelper::custom('joomla_module_updates.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false); + } + JToolBarHelper::cancel('joomla_module_updates.cancel', 'JTOOLBAR_CLOSE'); + } + } + JToolbarHelper::divider(); + // set help url for this view if found + $help_url = ComponentbuilderHelper::getHelpUrl('joomla_module_updates'); + 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); + if (!isset($this->document)) + { + $this->document = JFactory::getDocument(); + } + $this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_NEW' : 'COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_EDIT')); + $this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/joomla_module_updates.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css'); + $this->document->addScript(JURI::root() . $this->script, (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); + $this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/joomla_module_updates/submitbutton.js", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); + JText::script('view not acceptable. Error'); + } +} diff --git a/admin/views/joomla_modules/index.html b/admin/views/joomla_modules/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/views/joomla_modules/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/views/joomla_modules/tmpl/default.php b/admin/views/joomla_modules/tmpl/default.php new file mode 100644 index 000000000..a50a3c233 --- /dev/null +++ b/admin/views/joomla_modules/tmpl/default.php @@ -0,0 +1,108 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// load tooltip behavior +JHtml::_('behavior.tooltip'); +JHtml::_('behavior.multiselect'); +JHtml::_('dropdown.init'); +JHtml::_('formbehavior.chosen', 'select'); + +if ($this->saveOrder) +{ + $saveOrderingUrl = 'index.php?option=com_componentbuilder&task=joomla_modules.saveOrderAjax&tmpl=component'; + JHtml::_('sortablelist.sortable', 'joomla_moduleList', 'adminForm', strtolower($this->listDirn), $saveOrderingUrl); +} + +?> + +
+sidebar)): ?> +
+ sidebar; ?> +
+
+ +
+ +items)): ?> + loadTemplate('toolbar');?> +
+ +
+ + loadTemplate('toolbar');?> + + loadTemplate('head');?> + loadTemplate('foot');?> + loadTemplate('body');?> +
+ + canCreate && $this->canEdit) : ?> + JText::_('COM_COMPONENTBUILDER_JOOMLA_MODULES_BATCH_OPTIONS'), + 'footer' => $this->loadTemplate('batch_footer') + ), + $this->loadTemplate('batch_body') + ); ?> + + + + +
+ + + + + \ No newline at end of file diff --git a/admin/views/joomla_modules/tmpl/default_batch_body.php b/admin/views/joomla_modules/tmpl/default_batch_body.php new file mode 100644 index 000000000..e022ff832 --- /dev/null +++ b/admin/views/joomla_modules/tmpl/default_batch_body.php @@ -0,0 +1,18 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + +

+batchDisplay; ?> \ No newline at end of file diff --git a/admin/views/joomla_modules/tmpl/default_batch_footer.php b/admin/views/joomla_modules/tmpl/default_batch_footer.php new file mode 100644 index 000000000..fd495f665 --- /dev/null +++ b/admin/views/joomla_modules/tmpl/default_batch_footer.php @@ -0,0 +1,23 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + + + + \ No newline at end of file diff --git a/admin/views/joomla_modules/tmpl/default_body.php b/admin/views/joomla_modules/tmpl/default_body.php new file mode 100644 index 000000000..15775d09d --- /dev/null +++ b/admin/views/joomla_modules/tmpl/default_body.php @@ -0,0 +1,126 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +$edit = "index.php?option=com_componentbuilder&view=joomla_modules&task=joomla_module.edit"; + +?> +items as $i => $item): ?> + user->authorise('core.manage', 'com_checkin') || $item->checked_out == $this->user->id || $item->checked_out == 0; + $userChkOut = JFactory::getUser($item->checked_out); + $canDo = ComponentbuilderHelper::getActions('joomla_module',$item,'joomla_modules'); + ?> + + + get('joomla_module.edit.state')): ?> + saveOrder) + { + $iconClass = ' inactive'; + } + else + { + $iconClass = ' inactive tip-top" hasTooltip" title="' . JHtml::tooltipText('JORDERINGDISABLED'); + } + ?> + + + + saveOrder) : ?> + + + + ⋮ + + + + get('joomla_module.edit')): ?> + checked_out) : ?> + + id); ?> + + □ + + + id); ?> + + + □ + + + +
+ get('joomla_module.edit')): ?> + escape($item->system_name); ?> + checked_out): ?> + name, $item->checked_out_time, 'joomla_modules.', $canCheckin); ?> + + + escape($item->system_name); ?> + - + escape($item->module_version); ?> +
+ 'joomla_module_updates', + 'views' => 'joomla_modules_updates', + 'title' => JText::_('COM_COMPONENTBUILDER_THE_MODULE_UPDATES'), + 'icon' => 'database'), + array( + 'view' => 'joomla_module_files_folders_urls', + 'views' => 'joomla_modules_files_folders_urls', + 'title' => JText::_('COM_COMPONENTBUILDER_THE_MODULE_FILES_FOLDERS'), + 'icon' => 'briefcase') + ); + } + ?> +
+ + get($_button['view'].'.edit') && ($id = ComponentbuilderHelper::getVar($_button['view'], $item->id, 'joomla_module', 'id')) !== false): ?> + + get($_button['view'].'.create')): ?> + + + +
+ + + escape($item->description); ?> + + + get('joomla_module.edit.state')) : ?> + checked_out) : ?> + + published, $i, 'joomla_modules.', true, 'cb'); ?> + + published, $i, 'joomla_modules.', false, 'cb'); ?> + + + published, $i, 'joomla_modules.', true, 'cb'); ?> + + + published, $i, 'joomla_modules.', false, 'cb'); ?> + + + + id; ?> + + + \ No newline at end of file diff --git a/admin/views/joomla_modules/tmpl/default_foot.php b/admin/views/joomla_modules/tmpl/default_foot.php new file mode 100644 index 000000000..5d5ceb4bf --- /dev/null +++ b/admin/views/joomla_modules/tmpl/default_foot.php @@ -0,0 +1,18 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + + pagination->getListFooter(); ?> + \ No newline at end of file diff --git a/admin/views/joomla_modules/tmpl/default_head.php b/admin/views/joomla_modules/tmpl/default_head.php new file mode 100644 index 000000000..e8e294468 --- /dev/null +++ b/admin/views/joomla_modules/tmpl/default_head.php @@ -0,0 +1,50 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + + canEdit&& $this->canState): ?> + + ', 'ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING'); ?> + + + + + + + ▾ + + + ■ + + + + listDirn, $this->listOrder); ?> + + + listDirn, $this->listOrder); ?> + + canState): ?> + + listDirn, $this->listOrder); ?> + + + + + + + + listDirn, $this->listOrder); ?> + + \ No newline at end of file diff --git a/admin/views/joomla_modules/tmpl/default_toolbar.php b/admin/views/joomla_modules/tmpl/default_toolbar.php new file mode 100644 index 000000000..55a6eade7 --- /dev/null +++ b/admin/views/joomla_modules/tmpl/default_toolbar.php @@ -0,0 +1,45 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +
+ +
+ + +
+
+ + pagination->getLimitBox(); ?> +
+
+ + +
+
+ + +
+
+
\ No newline at end of file diff --git a/admin/views/joomla_modules/tmpl/index.html b/admin/views/joomla_modules/tmpl/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/views/joomla_modules/tmpl/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/views/joomla_modules/view.html.php b/admin/views/joomla_modules/view.html.php new file mode 100644 index 000000000..fe6fd7c5d --- /dev/null +++ b/admin/views/joomla_modules/view.html.php @@ -0,0 +1,238 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Componentbuilder View class for the Joomla_modules + */ +class ComponentbuilderViewJoomla_modules extends JViewLegacy +{ + /** + * Joomla_modules view display method + * @return void + */ + function display($tpl = null) + { + if ($this->getLayout() !== 'modal') + { + // Include helper submenu + ComponentbuilderHelper::addSubmenu('joomla_modules'); + } + + // Assign data to the view + $this->items = $this->get('Items'); + $this->pagination = $this->get('Pagination'); + $this->state = $this->get('State'); + $this->user = JFactory::getUser(); + $this->listOrder = $this->escape($this->state->get('list.ordering')); + $this->listDirn = $this->escape($this->state->get('list.direction')); + $this->saveOrder = $this->listOrder == 'ordering'; + // set the return here value + $this->return_here = urlencode(base64_encode((string) JUri::getInstance())); + // get global action permissions + $this->canDo = ComponentbuilderHelper::getActions('joomla_module'); + $this->canEdit = $this->canDo->get('joomla_module.edit'); + $this->canState = $this->canDo->get('joomla_module.edit.state'); + $this->canCreate = $this->canDo->get('joomla_module.create'); + $this->canDelete = $this->canDo->get('joomla_module.delete'); + $this->canBatch = $this->canDo->get('core.batch'); + + // We don't need toolbar in the modal window. + if ($this->getLayout() !== 'modal') + { + $this->addToolbar(); + $this->sidebar = JHtmlSidebar::render(); + // load the batch html + if ($this->canCreate && $this->canEdit && $this->canState) + { + $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); + + // Set the document + $this->setDocument(); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JToolBarHelper::title(JText::_('COM_COMPONENTBUILDER_JOOMLA_MODULES'), 'cube'); + JHtmlSidebar::setAction('index.php?option=com_componentbuilder&view=joomla_modules'); + JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields'); + + if ($this->canCreate) + { + JToolBarHelper::addNew('joomla_module.add'); + } + + // Only load if there are items + if (ComponentbuilderHelper::checkArray($this->items)) + { + if ($this->canEdit) + { + JToolBarHelper::editList('joomla_module.edit'); + } + + if ($this->canState) + { + JToolBarHelper::publishList('joomla_modules.publish'); + JToolBarHelper::unpublishList('joomla_modules.unpublish'); + JToolBarHelper::archiveList('joomla_modules.archive'); + + if ($this->canDo->get('core.admin')) + { + JToolBarHelper::checkin('joomla_modules.checkin'); + } + } + + // Add a batch button + if ($this->canBatch && $this->canCreate && $this->canEdit && $this->canState) + { + // Get the toolbar object instance + $bar = JToolBar::getInstance('toolbar'); + // set the batch button name + $title = JText::_('JTOOLBAR_BATCH'); + // Instantiate a new JLayoutFile instance and render the batch button + $layout = new JLayoutFile('joomla.toolbar.batch'); + // add the button to the page + $dhtml = $layout->render(array('title' => $title)); + $bar->appendButton('Custom', $dhtml, 'batch'); + } + + if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete)) + { + JToolbarHelper::deleteList('', 'joomla_modules.delete', 'JTOOLBAR_EMPTY_TRASH'); + } + elseif ($this->canState && $this->canDelete) + { + JToolbarHelper::trash('joomla_modules.trash'); + } + } + if ($this->user->authorise('joomla_module.get_snippets', 'com_componentbuilder')) + { + // add Get Snippets button. + JToolBarHelper::custom('joomla_modules.getSnippets', 'search', '', 'COM_COMPONENTBUILDER_GET_SNIPPETS', false); + } + if ($this->user->authorise('joomla_module.run_expansion', 'com_componentbuilder')) + { + // add Run Expansion button. + JToolBarHelper::custom('joomla_modules.runExpansion', 'expand-2', '', 'COM_COMPONENTBUILDER_RUN_EXPANSION', false); + } + + // set help url for this view if found + $help_url = ComponentbuilderHelper::getHelpUrl('joomla_modules'); + if (ComponentbuilderHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); + } + + // add the options comp button + if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) + { + JToolBarHelper::preferences('com_componentbuilder'); + } + + if ($this->canState) + { + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_PUBLISHED'), + 'filter_published', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true) + ); + // only load if batch allowed + if ($this->canBatch) + { + JHtmlBatch_::addListSelection( + JText::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_STATE'), + 'batch[published]', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true) + ); + } + } + + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_ACCESS'), + 'filter_access', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + JHtmlBatch_::addListSelection( + JText::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_ACCESS'), + 'batch[access]', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text') + ); + } + } + + /** + * Method to set up the document properties + * + * @return void + */ + protected function setDocument() + { + if (!isset($this->document)) + { + $this->document = JFactory::getDocument(); + } + $this->document->setTitle(JText::_('COM_COMPONENTBUILDER_JOOMLA_MODULES')); + $this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/joomla_modules.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css'); + } + + /** + * 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) > 50) + { + // use the helper htmlEscape method instead and shorten the string + return ComponentbuilderHelper::htmlEscape($var, $this->_charset, true); + } + // use the helper htmlEscape method instead. + return ComponentbuilderHelper::htmlEscape($var, $this->_charset); + } + + /** + * Returns an array of fields the table can be sorted by + * + * @return array Array containing the field name to sort by as the key and display text as value + */ + protected function getSortFields() + { + return array( + 'a.sorting' => JText::_('JGRID_HEADING_ORDERING'), + 'a.published' => JText::_('JSTATUS'), + 'a.system_name' => JText::_('COM_COMPONENTBUILDER_JOOMLA_MODULE_SYSTEM_NAME_LABEL'), + 'a.description' => JText::_('COM_COMPONENTBUILDER_JOOMLA_MODULE_DESCRIPTION_LABEL'), + 'a.id' => JText::_('JGRID_HEADING_ID') + ); + } +} diff --git a/admin/views/joomla_modules_files_folders_urls/index.html b/admin/views/joomla_modules_files_folders_urls/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/views/joomla_modules_files_folders_urls/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/views/joomla_modules_files_folders_urls/tmpl/default.php b/admin/views/joomla_modules_files_folders_urls/tmpl/default.php new file mode 100644 index 000000000..0b8de40e3 --- /dev/null +++ b/admin/views/joomla_modules_files_folders_urls/tmpl/default.php @@ -0,0 +1,85 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// load tooltip behavior +JHtml::_('behavior.tooltip'); +JHtml::_('behavior.multiselect'); +JHtml::_('dropdown.init'); +JHtml::_('formbehavior.chosen', 'select'); + +if ($this->saveOrder) +{ + $saveOrderingUrl = 'index.php?option=com_componentbuilder&task=joomla_modules_files_folders_urls.saveOrderAjax&tmpl=component'; + JHtml::_('sortablelist.sortable', 'joomla_module_files_folders_urlsList', 'adminForm', strtolower($this->listDirn), $saveOrderingUrl); +} + +?> + +
+sidebar)): ?> +
+ sidebar; ?> +
+
+ +
+ +items)): ?> + loadTemplate('toolbar');?> +
+ +
+ + loadTemplate('toolbar');?> + + loadTemplate('head');?> + loadTemplate('foot');?> + loadTemplate('body');?> +
+ + canCreate && $this->canEdit) : ?> + JText::_('COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_BATCH_OPTIONS'), + 'footer' => $this->loadTemplate('batch_footer') + ), + $this->loadTemplate('batch_body') + ); ?> + + + + +
+ + + + \ No newline at end of file diff --git a/admin/views/joomla_modules_files_folders_urls/tmpl/default_batch_body.php b/admin/views/joomla_modules_files_folders_urls/tmpl/default_batch_body.php new file mode 100644 index 000000000..2e9acabc9 --- /dev/null +++ b/admin/views/joomla_modules_files_folders_urls/tmpl/default_batch_body.php @@ -0,0 +1,18 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + +

+batchDisplay; ?> \ No newline at end of file diff --git a/admin/views/joomla_modules_files_folders_urls/tmpl/default_batch_footer.php b/admin/views/joomla_modules_files_folders_urls/tmpl/default_batch_footer.php new file mode 100644 index 000000000..78bd11d2c --- /dev/null +++ b/admin/views/joomla_modules_files_folders_urls/tmpl/default_batch_footer.php @@ -0,0 +1,23 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + + + + \ No newline at end of file diff --git a/admin/views/joomla_modules_files_folders_urls/tmpl/default_body.php b/admin/views/joomla_modules_files_folders_urls/tmpl/default_body.php new file mode 100644 index 000000000..338dec19d --- /dev/null +++ b/admin/views/joomla_modules_files_folders_urls/tmpl/default_body.php @@ -0,0 +1,94 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +$edit = "index.php?option=com_componentbuilder&view=joomla_modules_files_folders_urls&task=joomla_module_files_folders_urls.edit"; + +?> +items as $i => $item): ?> + user->authorise('core.manage', 'com_checkin') || $item->checked_out == $this->user->id || $item->checked_out == 0; + $userChkOut = JFactory::getUser($item->checked_out); + $canDo = ComponentbuilderHelper::getActions('joomla_module_files_folders_urls',$item,'joomla_modules_files_folders_urls'); + ?> + + + get('joomla_module_files_folders_urls.edit.state')): ?> + saveOrder) + { + $iconClass = ' inactive'; + } + else + { + $iconClass = ' inactive tip-top" hasTooltip" title="' . JHtml::tooltipText('JORDERINGDISABLED'); + } + ?> + + + + saveOrder) : ?> + + + + ⋮ + + + + get('joomla_module_files_folders_urls.edit')): ?> + checked_out) : ?> + + id); ?> + + □ + + + id); ?> + + + □ + + + +
+ get('joomla_module_files_folders_urls.edit')): ?> + escape($item->joomla_module_system_name); ?> + checked_out): ?> + name, $item->checked_out_time, 'joomla_modules_files_folders_urls.', $canCheckin); ?> + + + escape($item->joomla_module_system_name); ?> + +
+ + + get('joomla_module_files_folders_urls.edit.state')) : ?> + checked_out) : ?> + + published, $i, 'joomla_modules_files_folders_urls.', true, 'cb'); ?> + + published, $i, 'joomla_modules_files_folders_urls.', false, 'cb'); ?> + + + published, $i, 'joomla_modules_files_folders_urls.', true, 'cb'); ?> + + + published, $i, 'joomla_modules_files_folders_urls.', false, 'cb'); ?> + + + + id; ?> + + + \ No newline at end of file diff --git a/admin/views/joomla_modules_files_folders_urls/tmpl/default_foot.php b/admin/views/joomla_modules_files_folders_urls/tmpl/default_foot.php new file mode 100644 index 000000000..d020003b6 --- /dev/null +++ b/admin/views/joomla_modules_files_folders_urls/tmpl/default_foot.php @@ -0,0 +1,18 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + + pagination->getListFooter(); ?> + \ No newline at end of file diff --git a/admin/views/joomla_modules_files_folders_urls/tmpl/default_head.php b/admin/views/joomla_modules_files_folders_urls/tmpl/default_head.php new file mode 100644 index 000000000..7e1a20bf5 --- /dev/null +++ b/admin/views/joomla_modules_files_folders_urls/tmpl/default_head.php @@ -0,0 +1,47 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + + canEdit&& $this->canState): ?> + + ', 'ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING'); ?> + + + + + + + ▾ + + + ■ + + + + + + canState): ?> + + listDirn, $this->listOrder); ?> + + + + + + + + listDirn, $this->listOrder); ?> + + \ No newline at end of file diff --git a/admin/views/joomla_modules_files_folders_urls/tmpl/default_toolbar.php b/admin/views/joomla_modules_files_folders_urls/tmpl/default_toolbar.php new file mode 100644 index 000000000..dd568cb68 --- /dev/null +++ b/admin/views/joomla_modules_files_folders_urls/tmpl/default_toolbar.php @@ -0,0 +1,45 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +
+ +
+ + +
+
+ + pagination->getLimitBox(); ?> +
+
+ + +
+
+ + +
+
+
\ No newline at end of file diff --git a/admin/views/joomla_modules_files_folders_urls/tmpl/index.html b/admin/views/joomla_modules_files_folders_urls/tmpl/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/views/joomla_modules_files_folders_urls/tmpl/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/views/joomla_modules_files_folders_urls/view.html.php b/admin/views/joomla_modules_files_folders_urls/view.html.php new file mode 100644 index 000000000..2669b8d50 --- /dev/null +++ b/admin/views/joomla_modules_files_folders_urls/view.html.php @@ -0,0 +1,226 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Componentbuilder View class for the Joomla_modules_files_folders_urls + */ +class ComponentbuilderViewJoomla_modules_files_folders_urls extends JViewLegacy +{ + /** + * Joomla_modules_files_folders_urls view display method + * @return void + */ + function display($tpl = null) + { + if ($this->getLayout() !== 'modal') + { + // Include helper submenu + ComponentbuilderHelper::addSubmenu('joomla_modules_files_folders_urls'); + } + + // Assign data to the view + $this->items = $this->get('Items'); + $this->pagination = $this->get('Pagination'); + $this->state = $this->get('State'); + $this->user = JFactory::getUser(); + $this->listOrder = $this->escape($this->state->get('list.ordering')); + $this->listDirn = $this->escape($this->state->get('list.direction')); + $this->saveOrder = $this->listOrder == 'ordering'; + // set the return here value + $this->return_here = urlencode(base64_encode((string) JUri::getInstance())); + // get global action permissions + $this->canDo = ComponentbuilderHelper::getActions('joomla_module_files_folders_urls'); + $this->canEdit = $this->canDo->get('joomla_module_files_folders_urls.edit'); + $this->canState = $this->canDo->get('joomla_module_files_folders_urls.edit.state'); + $this->canCreate = $this->canDo->get('joomla_module_files_folders_urls.create'); + $this->canDelete = $this->canDo->get('joomla_module_files_folders_urls.delete'); + $this->canBatch = $this->canDo->get('core.batch'); + + // We don't need toolbar in the modal window. + if ($this->getLayout() !== 'modal') + { + $this->addToolbar(); + $this->sidebar = JHtmlSidebar::render(); + // load the batch html + if ($this->canCreate && $this->canEdit && $this->canState) + { + $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); + + // Set the document + $this->setDocument(); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JToolBarHelper::title(JText::_('COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS'), 'joomla'); + JHtmlSidebar::setAction('index.php?option=com_componentbuilder&view=joomla_modules_files_folders_urls'); + JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields'); + + if ($this->canCreate) + { + JToolBarHelper::addNew('joomla_module_files_folders_urls.add'); + } + + // Only load if there are items + if (ComponentbuilderHelper::checkArray($this->items)) + { + if ($this->canEdit) + { + JToolBarHelper::editList('joomla_module_files_folders_urls.edit'); + } + + if ($this->canState) + { + JToolBarHelper::publishList('joomla_modules_files_folders_urls.publish'); + JToolBarHelper::unpublishList('joomla_modules_files_folders_urls.unpublish'); + JToolBarHelper::archiveList('joomla_modules_files_folders_urls.archive'); + + if ($this->canDo->get('core.admin')) + { + JToolBarHelper::checkin('joomla_modules_files_folders_urls.checkin'); + } + } + + // Add a batch button + if ($this->canBatch && $this->canCreate && $this->canEdit && $this->canState) + { + // Get the toolbar object instance + $bar = JToolBar::getInstance('toolbar'); + // set the batch button name + $title = JText::_('JTOOLBAR_BATCH'); + // Instantiate a new JLayoutFile instance and render the batch button + $layout = new JLayoutFile('joomla.toolbar.batch'); + // add the button to the page + $dhtml = $layout->render(array('title' => $title)); + $bar->appendButton('Custom', $dhtml, 'batch'); + } + + if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete)) + { + JToolbarHelper::deleteList('', 'joomla_modules_files_folders_urls.delete', 'JTOOLBAR_EMPTY_TRASH'); + } + elseif ($this->canState && $this->canDelete) + { + JToolbarHelper::trash('joomla_modules_files_folders_urls.trash'); + } + } + + // set help url for this view if found + $help_url = ComponentbuilderHelper::getHelpUrl('joomla_modules_files_folders_urls'); + if (ComponentbuilderHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); + } + + // add the options comp button + if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) + { + JToolBarHelper::preferences('com_componentbuilder'); + } + + if ($this->canState) + { + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_PUBLISHED'), + 'filter_published', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true) + ); + // only load if batch allowed + if ($this->canBatch) + { + JHtmlBatch_::addListSelection( + JText::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_STATE'), + 'batch[published]', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true) + ); + } + } + + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_ACCESS'), + 'filter_access', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + JHtmlBatch_::addListSelection( + JText::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_ACCESS'), + 'batch[access]', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text') + ); + } + } + + /** + * Method to set up the document properties + * + * @return void + */ + protected function setDocument() + { + if (!isset($this->document)) + { + $this->document = JFactory::getDocument(); + } + $this->document->setTitle(JText::_('COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS')); + $this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/joomla_modules_files_folders_urls.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css'); + } + + /** + * 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) > 50) + { + // use the helper htmlEscape method instead and shorten the string + return ComponentbuilderHelper::htmlEscape($var, $this->_charset, true); + } + // use the helper htmlEscape method instead. + return ComponentbuilderHelper::htmlEscape($var, $this->_charset); + } + + /** + * Returns an array of fields the table can be sorted by + * + * @return array Array containing the field name to sort by as the key and display text as value + */ + protected function getSortFields() + { + return array( + 'a.sorting' => JText::_('JGRID_HEADING_ORDERING'), + 'a.published' => JText::_('JSTATUS'), + 'a.id' => JText::_('JGRID_HEADING_ID') + ); + } +} diff --git a/admin/views/joomla_modules_updates/index.html b/admin/views/joomla_modules_updates/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/views/joomla_modules_updates/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/views/joomla_modules_updates/tmpl/default.php b/admin/views/joomla_modules_updates/tmpl/default.php new file mode 100644 index 000000000..1e5d66b2b --- /dev/null +++ b/admin/views/joomla_modules_updates/tmpl/default.php @@ -0,0 +1,85 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// load tooltip behavior +JHtml::_('behavior.tooltip'); +JHtml::_('behavior.multiselect'); +JHtml::_('dropdown.init'); +JHtml::_('formbehavior.chosen', 'select'); + +if ($this->saveOrder) +{ + $saveOrderingUrl = 'index.php?option=com_componentbuilder&task=joomla_modules_updates.saveOrderAjax&tmpl=component'; + JHtml::_('sortablelist.sortable', 'joomla_module_updatesList', 'adminForm', strtolower($this->listDirn), $saveOrderingUrl); +} + +?> + +
+sidebar)): ?> +
+ sidebar; ?> +
+
+ +
+ +items)): ?> + loadTemplate('toolbar');?> +
+ +
+ + loadTemplate('toolbar');?> + + loadTemplate('head');?> + loadTemplate('foot');?> + loadTemplate('body');?> +
+ + canCreate && $this->canEdit) : ?> + JText::_('COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_BATCH_OPTIONS'), + 'footer' => $this->loadTemplate('batch_footer') + ), + $this->loadTemplate('batch_body') + ); ?> + + + + +
+ + + + \ No newline at end of file diff --git a/admin/views/joomla_modules_updates/tmpl/default_batch_body.php b/admin/views/joomla_modules_updates/tmpl/default_batch_body.php new file mode 100644 index 000000000..1b1687e35 --- /dev/null +++ b/admin/views/joomla_modules_updates/tmpl/default_batch_body.php @@ -0,0 +1,18 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + +

+batchDisplay; ?> \ No newline at end of file diff --git a/admin/views/joomla_modules_updates/tmpl/default_batch_footer.php b/admin/views/joomla_modules_updates/tmpl/default_batch_footer.php new file mode 100644 index 000000000..1955ff158 --- /dev/null +++ b/admin/views/joomla_modules_updates/tmpl/default_batch_footer.php @@ -0,0 +1,23 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + + + + \ No newline at end of file diff --git a/admin/views/joomla_modules_updates/tmpl/default_body.php b/admin/views/joomla_modules_updates/tmpl/default_body.php new file mode 100644 index 000000000..b5d57ae32 --- /dev/null +++ b/admin/views/joomla_modules_updates/tmpl/default_body.php @@ -0,0 +1,94 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +$edit = "index.php?option=com_componentbuilder&view=joomla_modules_updates&task=joomla_module_updates.edit"; + +?> +items as $i => $item): ?> + user->authorise('core.manage', 'com_checkin') || $item->checked_out == $this->user->id || $item->checked_out == 0; + $userChkOut = JFactory::getUser($item->checked_out); + $canDo = ComponentbuilderHelper::getActions('joomla_module_updates',$item,'joomla_modules_updates'); + ?> + + + get('joomla_module_updates.edit.state')): ?> + saveOrder) + { + $iconClass = ' inactive'; + } + else + { + $iconClass = ' inactive tip-top" hasTooltip" title="' . JHtml::tooltipText('JORDERINGDISABLED'); + } + ?> + + + + saveOrder) : ?> + + + + ⋮ + + + + get('joomla_module_updates.edit')): ?> + checked_out) : ?> + + id); ?> + + □ + + + id); ?> + + + □ + + + +
+ get('joomla_module_updates.edit')): ?> + escape($item->joomla_module_system_name); ?> + checked_out): ?> + name, $item->checked_out_time, 'joomla_modules_updates.', $canCheckin); ?> + + + escape($item->joomla_module_system_name); ?> + +
+ + + get('joomla_module_updates.edit.state')) : ?> + checked_out) : ?> + + published, $i, 'joomla_modules_updates.', true, 'cb'); ?> + + published, $i, 'joomla_modules_updates.', false, 'cb'); ?> + + + published, $i, 'joomla_modules_updates.', true, 'cb'); ?> + + + published, $i, 'joomla_modules_updates.', false, 'cb'); ?> + + + + id; ?> + + + \ No newline at end of file diff --git a/admin/views/joomla_modules_updates/tmpl/default_foot.php b/admin/views/joomla_modules_updates/tmpl/default_foot.php new file mode 100644 index 000000000..d020003b6 --- /dev/null +++ b/admin/views/joomla_modules_updates/tmpl/default_foot.php @@ -0,0 +1,18 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + + pagination->getListFooter(); ?> + \ No newline at end of file diff --git a/admin/views/joomla_modules_updates/tmpl/default_head.php b/admin/views/joomla_modules_updates/tmpl/default_head.php new file mode 100644 index 000000000..b3b59f82c --- /dev/null +++ b/admin/views/joomla_modules_updates/tmpl/default_head.php @@ -0,0 +1,47 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + + canEdit&& $this->canState): ?> + + ', 'ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING'); ?> + + + + + + + ▾ + + + ■ + + + + + + canState): ?> + + listDirn, $this->listOrder); ?> + + + + + + + + listDirn, $this->listOrder); ?> + + \ No newline at end of file diff --git a/admin/views/joomla_modules_updates/tmpl/default_toolbar.php b/admin/views/joomla_modules_updates/tmpl/default_toolbar.php new file mode 100644 index 000000000..8e2df7875 --- /dev/null +++ b/admin/views/joomla_modules_updates/tmpl/default_toolbar.php @@ -0,0 +1,45 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +
+ +
+ + +
+
+ + pagination->getLimitBox(); ?> +
+
+ + +
+
+ + +
+
+
\ No newline at end of file diff --git a/admin/views/joomla_modules_updates/tmpl/index.html b/admin/views/joomla_modules_updates/tmpl/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/views/joomla_modules_updates/tmpl/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/views/joomla_modules_updates/view.html.php b/admin/views/joomla_modules_updates/view.html.php new file mode 100644 index 000000000..d47af5121 --- /dev/null +++ b/admin/views/joomla_modules_updates/view.html.php @@ -0,0 +1,226 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Componentbuilder View class for the Joomla_modules_updates + */ +class ComponentbuilderViewJoomla_modules_updates extends JViewLegacy +{ + /** + * Joomla_modules_updates view display method + * @return void + */ + function display($tpl = null) + { + if ($this->getLayout() !== 'modal') + { + // Include helper submenu + ComponentbuilderHelper::addSubmenu('joomla_modules_updates'); + } + + // Assign data to the view + $this->items = $this->get('Items'); + $this->pagination = $this->get('Pagination'); + $this->state = $this->get('State'); + $this->user = JFactory::getUser(); + $this->listOrder = $this->escape($this->state->get('list.ordering')); + $this->listDirn = $this->escape($this->state->get('list.direction')); + $this->saveOrder = $this->listOrder == 'ordering'; + // set the return here value + $this->return_here = urlencode(base64_encode((string) JUri::getInstance())); + // get global action permissions + $this->canDo = ComponentbuilderHelper::getActions('joomla_module_updates'); + $this->canEdit = $this->canDo->get('joomla_module_updates.edit'); + $this->canState = $this->canDo->get('joomla_module_updates.edit.state'); + $this->canCreate = $this->canDo->get('joomla_module_updates.create'); + $this->canDelete = $this->canDo->get('joomla_module_updates.delete'); + $this->canBatch = $this->canDo->get('core.batch'); + + // We don't need toolbar in the modal window. + if ($this->getLayout() !== 'modal') + { + $this->addToolbar(); + $this->sidebar = JHtmlSidebar::render(); + // load the batch html + if ($this->canCreate && $this->canEdit && $this->canState) + { + $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); + + // Set the document + $this->setDocument(); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JToolBarHelper::title(JText::_('COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES'), 'joomla'); + JHtmlSidebar::setAction('index.php?option=com_componentbuilder&view=joomla_modules_updates'); + JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields'); + + if ($this->canCreate) + { + JToolBarHelper::addNew('joomla_module_updates.add'); + } + + // Only load if there are items + if (ComponentbuilderHelper::checkArray($this->items)) + { + if ($this->canEdit) + { + JToolBarHelper::editList('joomla_module_updates.edit'); + } + + if ($this->canState) + { + JToolBarHelper::publishList('joomla_modules_updates.publish'); + JToolBarHelper::unpublishList('joomla_modules_updates.unpublish'); + JToolBarHelper::archiveList('joomla_modules_updates.archive'); + + if ($this->canDo->get('core.admin')) + { + JToolBarHelper::checkin('joomla_modules_updates.checkin'); + } + } + + // Add a batch button + if ($this->canBatch && $this->canCreate && $this->canEdit && $this->canState) + { + // Get the toolbar object instance + $bar = JToolBar::getInstance('toolbar'); + // set the batch button name + $title = JText::_('JTOOLBAR_BATCH'); + // Instantiate a new JLayoutFile instance and render the batch button + $layout = new JLayoutFile('joomla.toolbar.batch'); + // add the button to the page + $dhtml = $layout->render(array('title' => $title)); + $bar->appendButton('Custom', $dhtml, 'batch'); + } + + if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete)) + { + JToolbarHelper::deleteList('', 'joomla_modules_updates.delete', 'JTOOLBAR_EMPTY_TRASH'); + } + elseif ($this->canState && $this->canDelete) + { + JToolbarHelper::trash('joomla_modules_updates.trash'); + } + } + + // set help url for this view if found + $help_url = ComponentbuilderHelper::getHelpUrl('joomla_modules_updates'); + if (ComponentbuilderHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); + } + + // add the options comp button + if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) + { + JToolBarHelper::preferences('com_componentbuilder'); + } + + if ($this->canState) + { + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_PUBLISHED'), + 'filter_published', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true) + ); + // only load if batch allowed + if ($this->canBatch) + { + JHtmlBatch_::addListSelection( + JText::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_STATE'), + 'batch[published]', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true) + ); + } + } + + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_ACCESS'), + 'filter_access', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + JHtmlBatch_::addListSelection( + JText::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_ACCESS'), + 'batch[access]', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text') + ); + } + } + + /** + * Method to set up the document properties + * + * @return void + */ + protected function setDocument() + { + if (!isset($this->document)) + { + $this->document = JFactory::getDocument(); + } + $this->document->setTitle(JText::_('COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES')); + $this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/joomla_modules_updates.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css'); + } + + /** + * 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) > 50) + { + // use the helper htmlEscape method instead and shorten the string + return ComponentbuilderHelper::htmlEscape($var, $this->_charset, true); + } + // use the helper htmlEscape method instead. + return ComponentbuilderHelper::htmlEscape($var, $this->_charset); + } + + /** + * Returns an array of fields the table can be sorted by + * + * @return array Array containing the field name to sort by as the key and display text as value + */ + protected function getSortFields() + { + return array( + 'a.sorting' => JText::_('JGRID_HEADING_ORDERING'), + 'a.published' => JText::_('JSTATUS'), + 'a.id' => JText::_('JGRID_HEADING_ID') + ); + } +} diff --git a/admin/views/joomla_plugin/tmpl/edit.php b/admin/views/joomla_plugin/tmpl/edit.php index 83d02bd26..3b927683a 100644 --- a/admin/views/joomla_plugin/tmpl/edit.php +++ b/admin/views/joomla_plugin/tmpl/edit.php @@ -159,451 +159,451 @@ $componentParams = $this->params; // will be removed just use $this->params inst