forked from joomla/Component-Builder
Added Joomla Module builder - GUI
This commit is contained in:
parent
850ee4b7e9
commit
ffbb733576
15
README.md
15
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)
|
||||
|
@ -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)
|
||||
|
@ -324,6 +324,40 @@
|
||||
<action name="joomla_component.edit.state" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_STATE" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_STATE_DESC" />
|
||||
<action name="joomla_component.version" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_DESC" />
|
||||
<action name="joomla_component.submenu" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_SUBMENU" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_SUBMENU_DESC" />
|
||||
<action name="joomla_module.get_snippets" title="COM_COMPONENTBUILDER_JOOMLA_MODULE_GET_SNIPPETS_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_GET_SNIPPETS_BUTTON_ACCESS_DESC" />
|
||||
<action name="joomla_module.run_expansion" title="COM_COMPONENTBUILDER_JOOMLA_MODULE_RUN_EXPANSION_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_RUN_EXPANSION_BUTTON_ACCESS_DESC" />
|
||||
<action name="joomla_module.access" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_ACCESS_DESC" />
|
||||
<action name="joomla_module.batch" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_BATCH_USE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_BATCH_USE_DESC" />
|
||||
<action name="joomla_module.create" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_CREATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_CREATE_DESC" />
|
||||
<action name="joomla_module.dashboard_list" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_DASHBOARD_LIST" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_DASHBOARD_LIST_DESC" />
|
||||
<action name="joomla_module.delete" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_DELETE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_DELETE_DESC" />
|
||||
<action name="joomla_module.edit" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_DESC" />
|
||||
<action name="joomla_module.edit.created_by" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_CREATED_BY" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_CREATED_BY_DESC" />
|
||||
<action name="joomla_module.edit.created" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_CREATED_DATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_CREATED_DATE_DESC" />
|
||||
<action name="joomla_module.edit.own" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_OWN" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_OWN_DESC" />
|
||||
<action name="joomla_module.edit.state" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_STATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_STATE_DESC" />
|
||||
<action name="joomla_module.version" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_VERSION" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_VERSION_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.access" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_ACCESS_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.batch" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_BATCH_USE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_BATCH_USE_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.create" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_CREATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_CREATE_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.delete" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_DELETE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_DELETE_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.edit" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.edit.created_by" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_CREATED_BY" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_CREATED_BY_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.edit.created" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_CREATED_DATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_CREATED_DATE_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.edit.own" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_OWN" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_OWN_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.edit.state" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_STATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_STATE_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.version" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_VERSION" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_VERSION_DESC" />
|
||||
<action name="joomla_module.submenu" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_SUBMENU" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_SUBMENU_DESC" />
|
||||
<action name="joomla_module_updates.access" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_ACCESS_DESC" />
|
||||
<action name="joomla_module_updates.batch" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_BATCH_USE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_BATCH_USE_DESC" />
|
||||
<action name="joomla_module_updates.create" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_CREATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_CREATE_DESC" />
|
||||
<action name="joomla_module_updates.delete" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_DELETE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_DELETE_DESC" />
|
||||
<action name="joomla_module_updates.edit" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_DESC" />
|
||||
<action name="joomla_module_updates.edit.created_by" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_CREATED_BY" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_CREATED_BY_DESC" />
|
||||
<action name="joomla_module_updates.edit.created" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_CREATED_DATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_CREATED_DATE_DESC" />
|
||||
<action name="joomla_module_updates.edit.own" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_OWN" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_OWN_DESC" />
|
||||
<action name="joomla_module_updates.edit.state" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_STATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_STATE_DESC" />
|
||||
<action name="joomla_module_updates.version" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_VERSION" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_VERSION_DESC" />
|
||||
<action name="joomla_plugin.get_boilerplate" title="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GET_BOILERPLATE_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GET_BOILERPLATE_BUTTON_ACCESS_DESC" />
|
||||
<action name="joomla_plugin_group.access" title="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GROUPS_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GROUPS_ACCESS_DESC" />
|
||||
<action name="joomla_plugin_group.batch" title="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GROUPS_BATCH_USE" description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GROUPS_BATCH_USE_DESC" />
|
||||
@ -390,7 +424,6 @@
|
||||
<action name="layout.get_snippets" title="COM_COMPONENTBUILDER_LAYOUT_GET_SNIPPETS_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_LAYOUT_GET_SNIPPETS_BUTTON_ACCESS_DESC" />
|
||||
<action name="layout.access" title="COM_COMPONENTBUILDER_LAYOUTS_ACCESS" description="COM_COMPONENTBUILDER_LAYOUTS_ACCESS_DESC" />
|
||||
<action name="layout.batch" title="COM_COMPONENTBUILDER_LAYOUTS_BATCH_USE" description="COM_COMPONENTBUILDER_LAYOUTS_BATCH_USE_DESC" />
|
||||
<action name="layout.dashboard_add" title="COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_ADD" description="COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_ADD_DESC" />
|
||||
<action name="layout.dashboard_list" title="COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_LIST" description="COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_LIST_DESC" />
|
||||
<action name="layout.version" title="COM_COMPONENTBUILDER_LAYOUTS_EDIT_VERSION" description="COM_COMPONENTBUILDER_LAYOUTS_EDIT_VERSION_DESC" />
|
||||
<action name="layout.export" title="COM_COMPONENTBUILDER_LAYOUTS_EXPORT" description="COM_COMPONENTBUILDER_LAYOUTS_EXPORT_DESC" />
|
||||
@ -513,6 +546,17 @@
|
||||
<action name="joomla_component.access" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS_DESC" />
|
||||
<action name="joomla_component.version" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_DESC" />
|
||||
</section>
|
||||
<section name="joomla_module">
|
||||
<action name="joomla_module.edit" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_DESC" />
|
||||
<action name="joomla_module.edit.own" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_OWN" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_OWN_DESC" />
|
||||
<action name="joomla_module.edit.state" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_STATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_STATE_DESC" />
|
||||
<action name="joomla_module.edit.created_by" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_CREATED_BY" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_CREATED_BY_DESC" />
|
||||
<action name="joomla_module.edit.created" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_CREATED_DATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_CREATED_DATE_DESC" />
|
||||
<action name="joomla_module.create" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_CREATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_CREATE_DESC" />
|
||||
<action name="joomla_module.delete" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_DELETE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_DELETE_DESC" />
|
||||
<action name="joomla_module.access" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_ACCESS_DESC" />
|
||||
<action name="joomla_module.version" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_VERSION" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_VERSION_DESC" />
|
||||
</section>
|
||||
<section name="joomla_plugin">
|
||||
<action name="joomla_plugin.edit" title="COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT" description="COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_DESC" />
|
||||
<action name="joomla_plugin.edit.own" title="COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_OWN" description="COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_OWN_DESC" />
|
||||
@ -912,6 +956,28 @@
|
||||
<action name="class_extends.access" title="COM_COMPONENTBUILDER_CLASS_EXTENDINGS_ACCESS" description="COM_COMPONENTBUILDER_CLASS_EXTENDINGS_ACCESS_DESC" />
|
||||
<action name="class_extends.version" title="COM_COMPONENTBUILDER_CLASS_EXTENDINGS_EDIT_VERSION" description="COM_COMPONENTBUILDER_CLASS_EXTENDINGS_EDIT_VERSION_DESC" />
|
||||
</section>
|
||||
<section name="joomla_module_updates">
|
||||
<action name="joomla_module_updates.edit" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_DESC" />
|
||||
<action name="joomla_module_updates.edit.own" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_OWN" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_OWN_DESC" />
|
||||
<action name="joomla_module_updates.edit.state" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_STATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_STATE_DESC" />
|
||||
<action name="joomla_module_updates.edit.created_by" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_CREATED_BY" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_CREATED_BY_DESC" />
|
||||
<action name="joomla_module_updates.edit.created" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_CREATED_DATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_CREATED_DATE_DESC" />
|
||||
<action name="joomla_module_updates.create" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_CREATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_CREATE_DESC" />
|
||||
<action name="joomla_module_updates.delete" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_DELETE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_DELETE_DESC" />
|
||||
<action name="joomla_module_updates.access" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_ACCESS_DESC" />
|
||||
<action name="joomla_module_updates.version" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_VERSION" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_EDIT_VERSION_DESC" />
|
||||
</section>
|
||||
<section name="joomla_module_files_folders_urls">
|
||||
<action name="joomla_module_files_folders_urls.edit" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.edit.own" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_OWN" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_OWN_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.edit.state" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_STATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_STATE_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.edit.created_by" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_CREATED_BY" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_CREATED_BY_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.edit.created" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_CREATED_DATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_CREATED_DATE_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.create" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_CREATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_CREATE_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.delete" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_DELETE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_DELETE_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.access" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_ACCESS_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.version" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_VERSION" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_VERSION_DESC" />
|
||||
</section>
|
||||
<section name="joomla_plugin_group">
|
||||
<action name="joomla_plugin_group.version" title="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GROUPS_EDIT_VERSION" description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GROUPS_EDIT_VERSION_DESC" />
|
||||
</section>
|
||||
|
19
admin/assets/css/joomla_module.css
Normal file
19
admin/assets/css/joomla_module.css
Normal file
@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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;
|
||||
}
|
16
admin/assets/css/joomla_module_files_folders_urls.css
Normal file
16
admin/assets/css/joomla_module_files_folders_urls.css
Normal file
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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%;
|
||||
}
|
15
admin/assets/css/joomla_module_updates.css
Normal file
15
admin/assets/css/joomla_module_updates.css
Normal file
@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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%; }
|
13
admin/assets/css/joomla_modules.css
Normal file
13
admin/assets/css/joomla_modules.css
Normal file
@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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 */
|
||||
|
||||
|
13
admin/assets/css/joomla_modules_files_folders_urls.css
Normal file
13
admin/assets/css/joomla_modules_files_folders_urls.css
Normal file
@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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 */
|
||||
|
||||
|
13
admin/assets/css/joomla_modules_updates.css
Normal file
13
admin/assets/css/joomla_modules_updates.css
Normal file
@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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 */
|
||||
|
||||
|
BIN
admin/assets/images/icons/joomla_modules.png
Normal file
BIN
admin/assets/images/icons/joomla_modules.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
Binary file not shown.
Before Width: | Height: | Size: 26 KiB |
@ -91,6 +91,7 @@ class ComponentbuilderController extends JControllerLegacy
|
||||
// the view relationships
|
||||
$views = array(
|
||||
'joomla_component' => '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'
|
||||
|
347
admin/controllers/joomla_module.php
Normal file
347
admin/controllers/joomla_module.php
Normal file
@ -0,0 +1,347 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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;
|
||||
}
|
||||
|
||||
}
|
321
admin/controllers/joomla_module_files_folders_urls.php
Normal file
321
admin/controllers/joomla_module_files_folders_urls.php
Normal file
@ -0,0 +1,321 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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;
|
||||
}
|
||||
|
||||
}
|
339
admin/controllers/joomla_module_updates.php
Normal file
339
admin/controllers/joomla_module_updates.php
Normal file
@ -0,0 +1,339 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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;
|
||||
}
|
||||
|
||||
}
|
52
admin/controllers/joomla_modules.php
Normal file
52
admin/controllers/joomla_modules.php
Normal file
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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;
|
||||
}
|
||||
}
|
43
admin/controllers/joomla_modules_files_folders_urls.php
Normal file
43
admin/controllers/joomla_modules_files_folders_urls.php
Normal file
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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);
|
||||
}
|
||||
}
|
43
admin/controllers/joomla_modules_updates.php
Normal file
43
admin/controllers/joomla_modules_updates.php
Normal file
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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);
|
||||
}
|
||||
}
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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 version="1.0" encoding="utf-8"?>';
|
||||
$xml .= PHP_EOL . '<!--' . $this->setLine(__LINE__) . ' default paths of ' . $file . ' form points to ' . $this->componentCodeName . ' -->';
|
||||
$xml .= PHP_EOL . '<form';
|
||||
$xml .= PHP_EOL . $this->_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 . '<form';
|
||||
$xml .= PHP_EOL . $this->_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 . '<form>';
|
||||
}
|
||||
// add the fields
|
||||
foreach ($fields as $field_name => $fieldsets)
|
||||
{
|
||||
// check if we have an double fields naming set
|
||||
|
@ -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) . '<!--' . $this->setLine(__LINE__) . ' Config parameter -->';
|
||||
// add path to plugin rules and custom fields
|
||||
$xml .= PHP_EOL . $this->_t(1) . '<config';
|
||||
$xml .= PHP_EOL . $this->_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) . '<config';
|
||||
$xml .= PHP_EOL . $this->_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) . '<config>';
|
||||
}
|
||||
// add the fields
|
||||
foreach ($plugin->config_fields as $field_name => $fieldsets)
|
||||
{
|
||||
$xml .= PHP_EOL . $this->_t(1) . '<fields name="' . $field_name . '">';
|
||||
@ -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) . '<!--' . $this->setLine(__LINE__) . ' default paths of ' . $fieldset . ' fieldset points to the plugin -->';
|
||||
$xml .= PHP_EOL . $this->_t(1) . '<fieldset name="' . $fieldset . '" label="' . $label . '"';
|
||||
|
@ -37,6 +37,7 @@ abstract class ComponentbuilderHelper
|
||||
self::loadSession();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Locked Libraries (we can not have these change)
|
||||
**/
|
||||
@ -4420,6 +4421,7 @@ abstract class ComponentbuilderHelper
|
||||
// fall back on array sum
|
||||
return array_sum($array);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* the locker
|
||||
@ -5642,6 +5644,10 @@ abstract class ComponentbuilderHelper
|
||||
{
|
||||
JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_JOOMLA_COMPONENTS'), 'index.php?option=com_componentbuilder&view=joomla_components', $submenu === 'joomla_components');
|
||||
}
|
||||
if ($user->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');
|
||||
|
@ -4266,10 +4266,10 @@ COM_COMPONENTBUILDER_DASHBOARD_GET_SNIPPETS="Get Snippets<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_HELP_DOCUMENTS="Help Documents<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_IMPORTJCBPACKAGES="Import JCB Packages<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_JOOMLA_COMPONENTS="Joomla Components<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_JOOMLA_MODULES="Joomla Modules<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_JOOMLA_PLUGINS="Joomla Plugins<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_LANGUAGE_TRANSLATIONS="Language Translations<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_LAYOUTS="Layouts<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_LAYOUT_ADD="Add Layout<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_LIBRARIES="Libraries<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_LIST_OF_RECORDS="Dashboard (list of records)"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_PLACEHOLDERS="Placeholders<br /><br />"
|
||||
@ -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 <b>not to continue</b> 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 <b>custom</b> 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)<br /><b>Please note</b> that you can also <b>use constant paths in your full path</b> (directly without quotes), this is highly recommended to insure portability.<br />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)<br /><b>Please note</b> that you can also <b>use constant paths in your full path</b> (directly without quotes), this is highly recommended to insure portability.<br />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 <b>(default)</b> or to get the file content and add it to the component <b>(get)</b> or as both local and link <b>(dynamic)</b>"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_URLS_LABEL="Adding Urls"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_CONSTANT_PATHS_DESCRIPTION="<p>// The path to the administrator folder.<br />
|
||||
<b>JPATH_ADMINISTRATOR</b><br />
|
||||
// The path to the installed Joomla! site, or JPATH_ROOT/administrator if executed from the backend.<br />
|
||||
<b>JPATH_BASE</b><br />
|
||||
// The path to the cache folder.<br />
|
||||
<b>JPATH_CACHE</b><br />
|
||||
// The path to the administration folder of JCB component.<br />
|
||||
<b>JPATH_COMPONENT_ADMINISTRATOR</b> <small>no ideal to use</small><br />
|
||||
// The path to the site folder of JCB component.<br />
|
||||
<b>JPATH_COMPONENT_SITE</b> <small>no ideal to use</small><br />
|
||||
// The path to the JCB component.<br />
|
||||
<b>JPATH_COMPONENT</b> <small>no ideal to use</small><br />
|
||||
// The path to folder containing the configuration.php file.<br />
|
||||
<b>JPATH_CONFIGURATION</b><br />
|
||||
// The path to the installation folder.<br />
|
||||
<b>JPATH_INSTALLATION</b><br />
|
||||
// The path to the libraries folder.<br />
|
||||
<b>JPATH_LIBRARIES</b><br />
|
||||
// The path to the plugins folder.<br />
|
||||
<b>JPATH_PLUGINS</b><br />
|
||||
// The path to the installed Joomla! site.<br />
|
||||
<b>JPATH_ROOT</b><br />
|
||||
// The path to the installed Joomla! site.<br />
|
||||
<b>JPATH_SITE</b><br />
|
||||
// The path to the templates folder.<br />
|
||||
<b>JPATH_THEMES</b></p>
|
||||
|
||||
<p>JPATH_SITE is meant to represent the root path of the JSite application,<br />
|
||||
just as JPATH_ADMINISTRATOR is mean to represent the root path of the JAdministrator application.<br />
|
||||
JPATH_BASE is the root path for the current requested application.... so if you are in the administrator application:<br />
|
||||
JPATH_BASE == JPATH_ADMINISTRATOR<br />
|
||||
If you are in the site application:<br />
|
||||
JPATH_BASE == JPATH_SITE<br />
|
||||
If you are in the installation application:<br />
|
||||
JPATH_BASE == JPATH_INSTALLATION.<br />
|
||||
JPATH_ROOT is the root path for the Joomla install and does not depend upon any application.</p>"
|
||||
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, <b>unzip the compiled zip file</b> 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 <b>file</b>."
|
||||
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="<code><?php echo JText::_('Text'); ?></code>"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_ADD_LANGUAGE_STRING_LABEL="Add Language String"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_LINKED_TO_NOTICE_DESCRIPTION="<div id='display_linked_to'>Searching the database.<span class='loading-dots'></span></div>"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_LINKED_TO_NOTICE_LABEL="Linked To"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_MODEL_DESCRIPTION="<p>So over here you are able to manually code your model.</p><p>We have also added some code via the <a href='https://github.com/vdm-io/boilerplate' title='look at the boilerplate repo' target='_blank'>boilerplate repo</a> that can serve as a starting point, simple select them and it will be added to your code.</p><p><p>If you have added any fields in the Config/Params tab, these fields will be available to you in the <code>$this->params</code> object, and can be accessed via the field name <code>$this->params->get('fieldname');</code> with the get method.</p>"
|
||||
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 <b>update server</b> 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 <b>update server</b> 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 <b>update server</b> 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 <b>%s</b> 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 (<b>%s</b>) can not be changed to <b>%s</b> 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: <code>%s</code>"
|
||||
@ -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 <b>%s</b> server!"
|
||||
COM_COMPONENTBUILDER_THE_PRIVATE_KEY_FILE_COULD_NOT_BE_LOADEDFOUND_FOR_BSB_SERVER="The private key file could not be loaded/found for <b>%s</b> 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 <b>names</b> of either or the <b>snippet, library or snippet types</b> 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 <b>keep to the community naming</b> 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 <b>(ID: %s)</b> 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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
45
admin/layouts/joomla_module/code_fullwidth.php
Normal file
45
admin/layouts/joomla_module/code_fullwidth.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<div class="form-vertical">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
43
admin/layouts/joomla_module/code_left.php
Normal file
43
admin/layouts/joomla_module/code_left.php
Normal file
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
42
admin/layouts/joomla_module/code_right.php
Normal file
42
admin/layouts/joomla_module/code_right.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
50
admin/layouts/joomla_module/dynamic_integration_left.php
Normal file
50
admin/layouts/joomla_module/dynamic_integration_left.php
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
44
admin/layouts/joomla_module/forms_fields_fullwidth.php
Normal file
44
admin/layouts/joomla_module/forms_fields_fullwidth.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<div class="form-vertical">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
45
admin/layouts/joomla_module/html_above.php
Normal file
45
admin/layouts/joomla_module/html_above.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<div class="form-inline form-inline-header">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
46
admin/layouts/joomla_module/html_fullwidth.php
Normal file
46
admin/layouts/joomla_module/html_fullwidth.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<div class="form-vertical">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
46
admin/layouts/joomla_module/html_left.php
Normal file
46
admin/layouts/joomla_module/html_left.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
44
admin/layouts/joomla_module/html_right.php
Normal file
44
admin/layouts/joomla_module/html_right.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
1
admin/layouts/joomla_module/index.html
Normal file
1
admin/layouts/joomla_module/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
47
admin/layouts/joomla_module/mysql_fullwidth.php
Normal file
47
admin/layouts/joomla_module/mysql_fullwidth.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<div class="form-vertical">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
45
admin/layouts/joomla_module/publishing.php
Normal file
45
admin/layouts/joomla_module/publishing.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
47
admin/layouts/joomla_module/publlshing.php
Normal file
47
admin/layouts/joomla_module/publlshing.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
43
admin/layouts/joomla_module/readme_left.php
Normal file
43
admin/layouts/joomla_module/readme_left.php
Normal file
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
57
admin/layouts/joomla_module/script_file_fullwidth.php
Normal file
57
admin/layouts/joomla_module/script_file_fullwidth.php
Normal file
@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<div class="form-vertical">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<div class="form-vertical">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<div class="form-inline form-inline-header">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<div class="form-vertical">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
1
admin/layouts/joomla_module_updates/index.html
Normal file
1
admin/layouts/joomla_module_updates/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
45
admin/layouts/joomla_module_updates/publishing.php
Normal file
45
admin/layouts/joomla_module_updates/publishing.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
47
admin/layouts/joomla_module_updates/publlshing.php
Normal file
47
admin/layouts/joomla_module_updates/publlshing.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
44
admin/layouts/joomla_module_updates/updates_above.php
Normal file
44
admin/layouts/joomla_module_updates/updates_above.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<div class="form-inline form-inline-header">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
44
admin/layouts/joomla_module_updates/updates_fullwidth.php
Normal file
44
admin/layouts/joomla_module_updates/updates_fullwidth.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<div class="form-vertical">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
@ -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
|
||||
|
@ -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'
|
||||
|
@ -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 '<div id="noticeboard-md">'.JText::_('COM_COMPONENTBUILDER_THE_NOTICE_BOARD_IS_LOADING').'.<span class="loading-dots">.</span></small></div>';
|
||||
}
|
||||
|
||||
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 '<div id="proboard-md">'.JText::_('COM_COMPONENTBUILDER_THE_PRO_BOARD_IS_LOADING').'.<span class="loading-dots">.</span></small></div>';
|
||||
}
|
||||
|
||||
public function getReadme()
|
||||
{
|
||||
$document = JFactory::getDocument();
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
71
admin/models/fields/joomlamodules.php
Normal file
71
admin/models/fields/joomlamodules.php
Normal file
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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;
|
||||
}
|
||||
}
|
@ -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')
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -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();
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
652
admin/models/forms/joomla_module.js
Normal file
652
admin/models/forms/joomla_module.js
Normal file
@ -0,0 +1,652 @@
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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('<div class="control-group"><div class="control-label"><label>Add/Edit Customcode</label></div><div class="controls control-customcode-buttons-'+field+'"></div></div>').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 = '<p>'+result.description+'</p>';
|
||||
}
|
||||
var library = '';
|
||||
if (result.library.length > 0) {
|
||||
library = ' <b>('+result.library+')</b>';
|
||||
}
|
||||
var code = '<div id="snippet-code"><b>'+result.name+' ('+result.type+')</b> <a href="'+result.url+'" target="_blank" >see more details'+library+'</a><br /><em>'+result.heading+'</em><br /><textarea id="snippet" class="span12" rows="11">'+result.snippet+'</textarea></div>';
|
||||
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 = '<div id="snippet-usage"><p>'+result.usage+'</p></div>';
|
||||
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('<option value="">'+select_a_snippet+'</option>');
|
||||
jQuery.each( array, function( i, id ) {
|
||||
if (id in snippets) {
|
||||
jQuery('#jform_snippet').append('<option value="'+id+'">'+snippets[id]+'</option>');
|
||||
}
|
||||
if (id == snippet) {
|
||||
jQuery('#jform_snippet').val(id);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
jQuery('#jform_snippet').append('<option value="">'+create_a_snippet+'</option>');
|
||||
}
|
||||
jQuery('#jform_snippet').trigger('liszt:updated');
|
||||
}
|
804
admin/models/forms/joomla_module.xml
Normal file
804
admin/models/forms/joomla_module.xml
Normal file
@ -0,0 +1,804 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_componentbuilder/models/rules"
|
||||
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
|
||||
>
|
||||
<fieldset name="details">
|
||||
<!-- Default Fields. -->
|
||||
<!-- Id Field. Type: Text (joomla) -->
|
||||
<field
|
||||
name="id"
|
||||
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
|
||||
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
|
||||
readonly="true"
|
||||
/>
|
||||
<!-- Date Created Field. Type: Calendar (joomla) -->
|
||||
<field
|
||||
name="created"
|
||||
type="calendar"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_CREATED_DATE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_CREATED_DATE_DESC"
|
||||
size="22"
|
||||
format="%Y-%m-%d %H:%M:%S"
|
||||
filter="user_utc"
|
||||
/>
|
||||
<!-- User Created Field. Type: User (joomla) -->
|
||||
<field
|
||||
name="created_by"
|
||||
type="user"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_CREATED_BY_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_CREATED_BY_DESC"
|
||||
/>
|
||||
<!-- Published Field. Type: List (joomla) -->
|
||||
<field name="published" type="list" label="JSTATUS"
|
||||
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
|
||||
filter="intval" size="1" default="1" >
|
||||
<option value="1">
|
||||
JPUBLISHED</option>
|
||||
<option value="0">
|
||||
JUNPUBLISHED</option>
|
||||
<option value="2">
|
||||
JARCHIVED</option>
|
||||
<option value="-2">
|
||||
JTRASHED</option>
|
||||
</field>
|
||||
<!-- Date Modified Field. Type: Calendar (joomla) -->
|
||||
<field name="modified" type="calendar" class="readonly"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_MODIFIED_DATE_DESC"
|
||||
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
|
||||
<!-- User Modified Field. Type: User (joomla) -->
|
||||
<field name="modified_by" type="user"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_MODIFIED_BY_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_MODIFIED_BY_DESC"
|
||||
class="readonly"
|
||||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- Access Field. Type: Accesslevel (joomla) -->
|
||||
<field name="access"
|
||||
type="accesslevel"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
description="JFIELD_ACCESS_DESC"
|
||||
default="1"
|
||||
required="false"
|
||||
/>
|
||||
<!-- Ordering Field. Type: Numbers (joomla) -->
|
||||
<field
|
||||
name="ordering"
|
||||
type="number"
|
||||
class="inputbox validate-ordering"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ORDERING_LABEL"
|
||||
description=""
|
||||
default="0"
|
||||
size="6"
|
||||
required="false"
|
||||
/>
|
||||
<!-- Version Field. Type: Text (joomla) -->
|
||||
<field
|
||||
name="version"
|
||||
type="text"
|
||||
class="readonly"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_VERSION_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_VERSION_DESC"
|
||||
size="6"
|
||||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- Dynamic Fields. -->
|
||||
<!-- System_name Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="system_name"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_SYSTEM_NAME_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
default=""
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_SYSTEM_NAME_DESCRIPTION"
|
||||
class="text_area"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_SYSTEM_NAME_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_SYSTEM_NAME_HINT"
|
||||
/>
|
||||
<!-- Description Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
name="description"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_DESCRIPTION_LABEL"
|
||||
rows="11"
|
||||
cols="10"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_DESCRIPTION_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="HTML"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_DESCRIPTION_HINT"
|
||||
/>
|
||||
<!-- Php_postflight_update Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_postflight_update"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_POSTFLIGHT_UPDATE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_POSTFLIGHT_UPDATE_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Php_postflight_install Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_postflight_install"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_POSTFLIGHT_INSTALL_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_POSTFLIGHT_INSTALL_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Php_preflight_uninstall Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_preflight_uninstall"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_UNINSTALL_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_UNINSTALL_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Note_update_server_note_other Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_update_server_note_other" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_UPDATE_SERVER_NOTE_OTHER_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_UPDATE_SERVER_NOTE_OTHER_DESCRIPTION" heading="h4" class="alert alert-success note_update_server_note_other" />
|
||||
<!-- Update_server_url Field. Type: Url. (joomla) -->
|
||||
<field
|
||||
type="url"
|
||||
name="update_server_url"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_URL_LABEL"
|
||||
size="60"
|
||||
maxlength="150"
|
||||
default=""
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_URL_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="url"
|
||||
validated="url"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_URL_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_URL_HINT"
|
||||
/>
|
||||
<!-- Sql_uninstall Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
name="sql_uninstall"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_UNINSTALL_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_UNINSTALL_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_UNINSTALL_HINT"
|
||||
required="true"
|
||||
/>
|
||||
<!-- Default Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="default"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_DEFAULT_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_DEFAULT_DESCRIPTION"
|
||||
width="100%"
|
||||
height="500px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="html"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_SNIPPET_USAGE_LABEL" heading="h4" class="snippet-usage note_snippet_usage" />
|
||||
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_uikit_snippet" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_UIKIT_SNIPPET_LABEL" heading="h4" class="snippet-code note_uikit_snippet" />
|
||||
<!-- Snippet Field. Type: Snippets. (custom) -->
|
||||
<field
|
||||
type="snippets"
|
||||
name="snippet"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_SNIPPET_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_SNIPPET_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="false"
|
||||
required="false"
|
||||
button="true"
|
||||
/>
|
||||
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_add_language_string" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_ADD_LANGUAGE_STRING_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION" heading="h4" class="note_add_language_string" />
|
||||
<!-- Note_model Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_model" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_MODEL_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_MODEL_DESCRIPTION" heading="h4" class="alert alert-info note_model" />
|
||||
<!-- Libraries Field. Type: Libraries. (custom) -->
|
||||
<field
|
||||
type="libraries"
|
||||
name="libraries"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_LIBRARIES_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_LIBRARIES_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="true"
|
||||
default="0"
|
||||
required="false"
|
||||
button="true"
|
||||
/>
|
||||
<!-- Php_method_uninstall Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_method_uninstall"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_METHOD_UNINSTALL_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_METHOD_UNINSTALL_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Sql Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
name="sql"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_HINT"
|
||||
required="true"
|
||||
/>
|
||||
<!-- Note_linked_to_notice Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_linked_to_notice" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_LINKED_TO_NOTICE_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_LINKED_TO_NOTICE_DESCRIPTION" heading="h4" class="note_linked_to_notice" />
|
||||
<!-- Readme Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="readme"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_README_LABEL"
|
||||
default="You can use all the normal markdown, including the place-holders."
|
||||
width="100%"
|
||||
height="1200px"
|
||||
buttons="false"
|
||||
editor="none"
|
||||
filter="raw"
|
||||
/>
|
||||
<!-- Not_required Field. Type: Hidden. (joomla) -->
|
||||
<field
|
||||
type="hidden"
|
||||
name="not_required"
|
||||
default="[]"
|
||||
/>
|
||||
<!-- Note_update_server_note_ftp Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_update_server_note_ftp" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_UPDATE_SERVER_NOTE_FTP_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_UPDATE_SERVER_NOTE_FTP_DESCRIPTION" heading="h4" class="alert alert-success note_update_server_note_ftp" />
|
||||
<!-- Module_version Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="module_version"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_VERSION_LABEL"
|
||||
size="40"
|
||||
maxlength="50"
|
||||
default="1.0.0"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_VERSION_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="CMD"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_VERSION_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_VERSION_HINT"
|
||||
/>
|
||||
<!-- Add_sales_server Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_sales_server"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_SALES_SERVER_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
|
||||
</field>
|
||||
<!-- Add_abstract_class_helper Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_abstract_class_helper"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_ABSTRACT_CLASS_HELPER_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_ABSTRACT_CLASS_HELPER_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
|
||||
</field>
|
||||
<!-- Add_php_preflight_uninstall Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_php_preflight_uninstall"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_PREFLIGHT_UNINSTALL_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
|
||||
</field>
|
||||
<!-- Add_custom_abstract_class_helper_header Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_custom_abstract_class_helper_header"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_CUSTOM_ABSTRACT_CLASS_HELPER_HEADER_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_CUSTOM_ABSTRACT_CLASS_HELPER_HEADER_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
|
||||
</field>
|
||||
<!-- Add_php_postflight_install Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_php_postflight_install"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_POSTFLIGHT_INSTALL_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
|
||||
</field>
|
||||
<!-- Custom_get Field. Type: Customgets. (custom) -->
|
||||
<field
|
||||
type="customgets"
|
||||
name="custom_get"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_CUSTOM_GET_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_CUSTOM_GET_DESCRIPTION"
|
||||
multiple="true"
|
||||
default=""
|
||||
/>
|
||||
<!-- Add_php_postflight_update Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_php_postflight_update"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_POSTFLIGHT_UPDATE_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
|
||||
</field>
|
||||
<!-- Abstract_class_helper_header Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="abstract_class_helper_header"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ABSTRACT_CLASS_HELPER_HEADER_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_ABSTRACT_CLASS_HELPER_HEADER_DESCRIPTION"
|
||||
width="100%"
|
||||
height="100px"
|
||||
cols="15"
|
||||
rows="10"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
required="false"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Add_php_method_uninstall Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_php_method_uninstall"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_METHOD_UNINSTALL_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
|
||||
</field>
|
||||
<!-- Abstract_class_helper_code Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="abstract_class_helper_code"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ABSTRACT_CLASS_HELPER_CODE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_ABSTRACT_CLASS_HELPER_CODE_DESCRIPTION"
|
||||
width="100%"
|
||||
height="800px"
|
||||
cols="40"
|
||||
rows="300"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Add_sql Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_sql"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_SQL_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
|
||||
</field>
|
||||
<!-- Fields Field. Type: Subform. (joomla) -->
|
||||
<field
|
||||
type="subform"
|
||||
name="fields"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_LABEL"
|
||||
layout="joomla.form.field.subform.repeatable"
|
||||
multiple="true"
|
||||
buttons="add,remove,move"
|
||||
icon="list"
|
||||
max="10">
|
||||
<form hidden="true" name="list_fields_modal" repeat="true">
|
||||
<!-- Module Field. Type: Checkbox. (joomla) -->
|
||||
<field
|
||||
type="checkbox"
|
||||
name="module"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_LABEL"
|
||||
value="1"
|
||||
default="1"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_DESCRIPTION"
|
||||
class="inputbox"
|
||||
/>
|
||||
<!-- File Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="file"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILE_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
default="config"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILE_DESCRIPTION"
|
||||
class="text_area"
|
||||
filter="WORD"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILE_HINT"
|
||||
autocomplete="on"
|
||||
/>
|
||||
<!-- Fields_name Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="fields_name"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_NAME_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
default="params"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_NAME_DESCRIPTION"
|
||||
class="text_area"
|
||||
filter="CMD"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_NAME_HINT"
|
||||
autocomplete="on"
|
||||
/>
|
||||
<!-- Fieldset Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="fieldset"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDSET_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
default="basic"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDSET_DESCRIPTION"
|
||||
class="text_area"
|
||||
filter="WORD"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDSET_HINT"
|
||||
autocomplete="on"
|
||||
/>
|
||||
<!-- Label Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="label"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_LABEL_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_LABEL_DESCRIPTION"
|
||||
class="text_area"
|
||||
filter="String"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_LABEL_HINT"
|
||||
autocomplete="on"
|
||||
/>
|
||||
<!-- Fields_rules_paths Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="fields_rules_paths"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_RULES_PATHS_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_RULES_PATHS_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="false"
|
||||
validate="number"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_COMPONENT</option>
|
||||
<option value="2">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE</option>
|
||||
</field>
|
||||
<!-- Fields Field. Type: Subform. (joomla) -->
|
||||
<field
|
||||
type="subform"
|
||||
name="fields"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_LABEL"
|
||||
layout="joomla.form.field.subform.repeatable-table"
|
||||
multiple="true"
|
||||
buttons="add,remove,move"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_DESCRIPTION"
|
||||
icon="list"
|
||||
max="50"
|
||||
nested_depth="1">
|
||||
<form hidden="true" name="list_fields_modal" repeat="true">
|
||||
<!-- Field Field. Type: Fields. (custom) -->
|
||||
<field
|
||||
type="fields"
|
||||
name="field"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELD_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELD_DESCRIPTION"
|
||||
class="list_class fieldFull"
|
||||
multiple="false"
|
||||
required="true"
|
||||
button="false"
|
||||
/>
|
||||
<!-- Custom_value Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
name="custom_value"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_CUSTOM_VALUE_LABEL"
|
||||
rows="2"
|
||||
cols="4"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_CUSTOM_VALUE_DESCRIPTION"
|
||||
class="text_area"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_CUSTOM_VALUE_HINT"
|
||||
required="false"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
/>
|
||||
</form>
|
||||
</field>
|
||||
</form>
|
||||
</field>
|
||||
<!-- Add_sql_uninstall Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_sql_uninstall"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_SQL_UNINSTALL_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
|
||||
</field>
|
||||
<!-- Add_php_script_construct Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_php_script_construct"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_SCRIPT_CONSTRUCT_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
|
||||
</field>
|
||||
<!-- Addreadme Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="addreadme"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDREADME_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
|
||||
</field>
|
||||
<!-- Php_script_construct Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_script_construct"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_SCRIPT_CONSTRUCT_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_SCRIPT_CONSTRUCT_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Add_update_server Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_update_server"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_UPDATE_SERVER_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
|
||||
</field>
|
||||
<!-- Add_php_preflight_install Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_php_preflight_install"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_PREFLIGHT_INSTALL_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
|
||||
</field>
|
||||
<!-- Update_server_target Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="update_server_target"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_TARGET_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_TARGET_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_SERVER</option>
|
||||
<option value="2">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_ZIP</option>
|
||||
<option value="3">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_OTHER</option>
|
||||
</field>
|
||||
<!-- Php_preflight_install Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_preflight_install"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_INSTALL_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_INSTALL_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Note_update_server_note_zip Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_update_server_note_zip" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_UPDATE_SERVER_NOTE_ZIP_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_UPDATE_SERVER_NOTE_ZIP_DESCRIPTION" heading="h4" class="alert alert-info note_update_server_note_zip" />
|
||||
<!-- Add_php_preflight_update Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_php_preflight_update"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_PREFLIGHT_UPDATE_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
|
||||
</field>
|
||||
<!-- Update_server Field. Type: Servers. (custom) -->
|
||||
<field
|
||||
type="servers"
|
||||
name="update_server"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="false"
|
||||
default="0"
|
||||
button="true"
|
||||
/>
|
||||
<!-- Php_preflight_update Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_preflight_update"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_UPDATE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_UPDATE_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Sales_server Field. Type: Servers. (custom) -->
|
||||
<field
|
||||
type="servers"
|
||||
name="sales_server"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_SALES_SERVER_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_SALES_SERVER_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="false"
|
||||
default="0"
|
||||
button="true"
|
||||
/>
|
||||
<!-- Name Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="name"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_NAME_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_NAME_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="true"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_NAME_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_NAME_HINT"
|
||||
/>
|
||||
</fieldset>
|
||||
|
||||
<!-- Access Control Fields. -->
|
||||
<fieldset name="accesscontrol">
|
||||
<!-- Asset Id Field. Type: Hidden (joomla) -->
|
||||
<field
|
||||
name="asset_id"
|
||||
type="hidden"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- Rules Field. Type: Rules (joomla) -->
|
||||
<field
|
||||
name="rules"
|
||||
type="rules"
|
||||
label="Permissions in relation to this joomla_module"
|
||||
translate_label="false"
|
||||
filter="rules"
|
||||
validate="rules"
|
||||
class="inputbox"
|
||||
component="com_componentbuilder"
|
||||
section="joomla_module"
|
||||
/>
|
||||
</fieldset>
|
||||
</form>
|
11
admin/models/forms/joomla_module_files_folders_urls.js
Normal file
11
admin/models/forms/joomla_module_files_folders_urls.js
Normal file
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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
|
||||
*/
|
||||
|
||||
|
390
admin/models/forms/joomla_module_files_folders_urls.xml
Normal file
390
admin/models/forms/joomla_module_files_folders_urls.xml
Normal file
@ -0,0 +1,390 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_componentbuilder/models/rules"
|
||||
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
|
||||
>
|
||||
<fieldset name="details">
|
||||
<!-- Default Fields. -->
|
||||
<!-- Id Field. Type: Text (joomla) -->
|
||||
<field
|
||||
name="id"
|
||||
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
|
||||
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
|
||||
readonly="true"
|
||||
/>
|
||||
<!-- Date Created Field. Type: Calendar (joomla) -->
|
||||
<field
|
||||
name="created"
|
||||
type="calendar"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_CREATED_DATE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_CREATED_DATE_DESC"
|
||||
size="22"
|
||||
format="%Y-%m-%d %H:%M:%S"
|
||||
filter="user_utc"
|
||||
/>
|
||||
<!-- User Created Field. Type: User (joomla) -->
|
||||
<field
|
||||
name="created_by"
|
||||
type="user"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_CREATED_BY_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_CREATED_BY_DESC"
|
||||
/>
|
||||
<!-- Published Field. Type: List (joomla) -->
|
||||
<field name="published" type="list" label="JSTATUS"
|
||||
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
|
||||
filter="intval" size="1" default="1" >
|
||||
<option value="1">
|
||||
JPUBLISHED</option>
|
||||
<option value="0">
|
||||
JUNPUBLISHED</option>
|
||||
<option value="2">
|
||||
JARCHIVED</option>
|
||||
<option value="-2">
|
||||
JTRASHED</option>
|
||||
</field>
|
||||
<!-- Date Modified Field. Type: Calendar (joomla) -->
|
||||
<field name="modified" type="calendar" class="readonly"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_MODIFIED_DATE_DESC"
|
||||
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
|
||||
<!-- User Modified Field. Type: User (joomla) -->
|
||||
<field name="modified_by" type="user"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_MODIFIED_BY_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_MODIFIED_BY_DESC"
|
||||
class="readonly"
|
||||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- Access Field. Type: Accesslevel (joomla) -->
|
||||
<field name="access"
|
||||
type="accesslevel"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
description="JFIELD_ACCESS_DESC"
|
||||
default="1"
|
||||
required="false"
|
||||
/>
|
||||
<!-- Ordering Field. Type: Numbers (joomla) -->
|
||||
<field
|
||||
name="ordering"
|
||||
type="number"
|
||||
class="inputbox validate-ordering"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ORDERING_LABEL"
|
||||
description=""
|
||||
default="0"
|
||||
size="6"
|
||||
required="false"
|
||||
/>
|
||||
<!-- Version Field. Type: Text (joomla) -->
|
||||
<field
|
||||
name="version"
|
||||
type="text"
|
||||
class="readonly"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_VERSION_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_VERSION_DESC"
|
||||
size="6"
|
||||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- Dynamic Fields. -->
|
||||
<!-- Joomla_module Field. Type: Joomlamodules. (custom) -->
|
||||
<field
|
||||
type="joomlamodules"
|
||||
name="joomla_module"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_JOOMLA_MODULE_LABEL"
|
||||
description="JFIELD_TITLE_DESC"
|
||||
class="list_class span12"
|
||||
multiple="false"
|
||||
default="0"
|
||||
readonly="true"
|
||||
/>
|
||||
<!-- Note_constant_paths Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_constant_paths" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_CONSTANT_PATHS_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_CONSTANT_PATHS_DESCRIPTION" heading="h4" class="alert alert-info note_constant_paths" />
|
||||
<!-- Addfoldersfullpath Field. Type: Subform. (joomla) -->
|
||||
<field
|
||||
type="subform"
|
||||
name="addfoldersfullpath"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFOLDERSFULLPATH_LABEL"
|
||||
layout="joomla.form.field.subform.repeatable-table"
|
||||
multiple="true"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFOLDERSFULLPATH_DESCRIPTION"
|
||||
default=""
|
||||
icon="list">
|
||||
<form hidden="true" name="list_addfoldersfullpath_modal" repeat="true">
|
||||
<!-- Folderpath Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="folderpath"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDERPATH_LABEL"
|
||||
size="70"
|
||||
maxlength="300"
|
||||
default=""
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDERPATH_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="false"
|
||||
filter="PATH"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDERPATH_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDERPATH_HINT"
|
||||
/>
|
||||
<!-- Path Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="path"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="true"
|
||||
filter="PATH"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_HINT"
|
||||
/>
|
||||
<!-- Rename Field. Type: Checkbox. (joomla) -->
|
||||
<field
|
||||
type="checkbox"
|
||||
name="rename"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_RENAME_LABEL"
|
||||
value="1"
|
||||
default=""
|
||||
class="inputbox"
|
||||
/>
|
||||
</form>
|
||||
</field>
|
||||
<!-- Note_add_folders_fullpath Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_add_folders_fullpath" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_FULLPATH_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_FULLPATH_DESCRIPTION" heading="h4" class="alert alert-info note_add_folders_fullpath" />
|
||||
<!-- Addfilesfullpath Field. Type: Subform. (joomla) -->
|
||||
<field
|
||||
type="subform"
|
||||
name="addfilesfullpath"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFILESFULLPATH_LABEL"
|
||||
layout="joomla.form.field.subform.repeatable-table"
|
||||
multiple="true"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFILESFULLPATH_DESCRIPTION"
|
||||
default=""
|
||||
icon="list">
|
||||
<form hidden="true" name="list_addfilesfullpath_modal" repeat="true">
|
||||
<!-- Filepath Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="filepath"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILEPATH_LABEL"
|
||||
size="70"
|
||||
maxlength="300"
|
||||
default=""
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILEPATH_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="false"
|
||||
filter="PATH"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILEPATH_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILEPATH_HINT"
|
||||
/>
|
||||
<!-- Path Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="path"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="true"
|
||||
filter="PATH"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_HINT"
|
||||
/>
|
||||
<!-- Notnew Field. Type: Checkbox. (joomla) -->
|
||||
<field
|
||||
type="checkbox"
|
||||
name="notnew"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTNEW_LABEL"
|
||||
value="1"
|
||||
default=""
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTNEW_DESCRIPTION"
|
||||
class="inputbox"
|
||||
/>
|
||||
</form>
|
||||
</field>
|
||||
<!-- Note_add_files_fullpath Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_add_files_fullpath" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FILES_FULLPATH_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FILES_FULLPATH_DESCRIPTION" heading="h4" class="alert alert-info note_add_files_fullpath" />
|
||||
<!-- Addfolders Field. Type: Subform. (joomla) -->
|
||||
<field
|
||||
type="subform"
|
||||
name="addfolders"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFOLDERS_LABEL"
|
||||
layout="joomla.form.field.subform.repeatable-table"
|
||||
multiple="true"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFOLDERS_DESCRIPTION"
|
||||
default=""
|
||||
icon="list">
|
||||
<form hidden="true" name="list_addfolders_modal" repeat="true">
|
||||
<!-- Folder Field. Type: Customfolderlist. (custom) -->
|
||||
<field
|
||||
type="customfolderlist"
|
||||
name="folder"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDER_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDER_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="false"
|
||||
default="0"
|
||||
required="true"
|
||||
button="false"
|
||||
/>
|
||||
<!-- Path Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="path"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="true"
|
||||
filter="PATH"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_HINT"
|
||||
/>
|
||||
<!-- Rename Field. Type: Checkbox. (joomla) -->
|
||||
<field
|
||||
type="checkbox"
|
||||
name="rename"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_RENAME_LABEL"
|
||||
value="1"
|
||||
default=""
|
||||
class="inputbox"
|
||||
/>
|
||||
</form>
|
||||
</field>
|
||||
<!-- Note_add_folders Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_add_folders" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_DESCRIPTION" heading="h4" class="alert alert-info note_add_folders" />
|
||||
<!-- Addfiles Field. Type: Subform. (joomla) -->
|
||||
<field
|
||||
type="subform"
|
||||
name="addfiles"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFILES_LABEL"
|
||||
layout="joomla.form.field.subform.repeatable-table"
|
||||
multiple="true"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFILES_DESCRIPTION"
|
||||
default=""
|
||||
icon="list">
|
||||
<form hidden="true" name="list_addfiles_modal" repeat="true">
|
||||
<!-- File Field. Type: Customfilelist. (custom) -->
|
||||
<field
|
||||
type="customfilelist"
|
||||
name="file"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILE_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="false"
|
||||
default="0"
|
||||
required="true"
|
||||
button="false"
|
||||
/>
|
||||
<!-- Path Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="path"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="true"
|
||||
filter="PATH"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_HINT"
|
||||
/>
|
||||
<!-- Notnew Field. Type: Checkbox. (joomla) -->
|
||||
<field
|
||||
type="checkbox"
|
||||
name="notnew"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTNEW_LABEL"
|
||||
value="1"
|
||||
default=""
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTNEW_DESCRIPTION"
|
||||
class="inputbox"
|
||||
/>
|
||||
</form>
|
||||
</field>
|
||||
<!-- Note_add_files Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_add_files" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FILES_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FILES_DESCRIPTION" heading="h4" class="alert alert-info note_add_files" />
|
||||
<!-- Addurls Field. Type: Subform. (joomla) -->
|
||||
<field
|
||||
type="subform"
|
||||
name="addurls"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDURLS_LABEL"
|
||||
layout="joomla.form.field.subform.repeatable-table"
|
||||
multiple="true"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDURLS_DESCRIPTION"
|
||||
default=""
|
||||
icon="list">
|
||||
<form hidden="true" name="list_addurls_modal" repeat="true">
|
||||
<!-- Url Field. Type: Url. (joomla) -->
|
||||
<field
|
||||
type="url"
|
||||
name="url"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_URL_LABEL"
|
||||
size="150"
|
||||
maxlength="250"
|
||||
default=""
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_URL_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="url"
|
||||
validated="url"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_URL_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_URL_HINT"
|
||||
/>
|
||||
<!-- Type Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="type"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_TYPE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_TYPE_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="false"
|
||||
filter="INT"
|
||||
required="true"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_DEFAULT_LINK</option>
|
||||
<option value="2">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_LOCAL_GET</option>
|
||||
<option value="3">
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_LINK_LOCAL_DYNAMIC</option>
|
||||
</field>
|
||||
</form>
|
||||
</field>
|
||||
<!-- Note_add_urls Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_add_urls" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_URLS_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_URLS_DESCRIPTION" heading="h4" class="alert alert-info note_add_urls" />
|
||||
</fieldset>
|
||||
|
||||
<!-- Access Control Fields. -->
|
||||
<fieldset name="accesscontrol">
|
||||
<!-- Asset Id Field. Type: Hidden (joomla) -->
|
||||
<field
|
||||
name="asset_id"
|
||||
type="hidden"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- Rules Field. Type: Rules (joomla) -->
|
||||
<field
|
||||
name="rules"
|
||||
type="rules"
|
||||
label="Permissions in relation to this joomla_module_files_folders_urls"
|
||||
translate_label="false"
|
||||
filter="rules"
|
||||
validate="rules"
|
||||
class="inputbox"
|
||||
component="com_componentbuilder"
|
||||
section="joomla_module_files_folders_urls"
|
||||
/>
|
||||
</fieldset>
|
||||
</form>
|
11
admin/models/forms/joomla_module_updates.js
Normal file
11
admin/models/forms/joomla_module_updates.js
Normal file
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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
|
||||
*/
|
||||
|
||||
|
181
admin/models/forms/joomla_module_updates.xml
Normal file
181
admin/models/forms/joomla_module_updates.xml
Normal file
@ -0,0 +1,181 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_componentbuilder/models/rules"
|
||||
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
|
||||
>
|
||||
<fieldset name="details">
|
||||
<!-- Default Fields. -->
|
||||
<!-- Id Field. Type: Text (joomla) -->
|
||||
<field
|
||||
name="id"
|
||||
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
|
||||
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
|
||||
readonly="true"
|
||||
/>
|
||||
<!-- Date Created Field. Type: Calendar (joomla) -->
|
||||
<field
|
||||
name="created"
|
||||
type="calendar"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_CREATED_DATE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_CREATED_DATE_DESC"
|
||||
size="22"
|
||||
format="%Y-%m-%d %H:%M:%S"
|
||||
filter="user_utc"
|
||||
/>
|
||||
<!-- User Created Field. Type: User (joomla) -->
|
||||
<field
|
||||
name="created_by"
|
||||
type="user"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_CREATED_BY_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_CREATED_BY_DESC"
|
||||
/>
|
||||
<!-- Published Field. Type: List (joomla) -->
|
||||
<field name="published" type="list" label="JSTATUS"
|
||||
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
|
||||
filter="intval" size="1" default="1" >
|
||||
<option value="1">
|
||||
JPUBLISHED</option>
|
||||
<option value="0">
|
||||
JUNPUBLISHED</option>
|
||||
<option value="2">
|
||||
JARCHIVED</option>
|
||||
<option value="-2">
|
||||
JTRASHED</option>
|
||||
</field>
|
||||
<!-- Date Modified Field. Type: Calendar (joomla) -->
|
||||
<field name="modified" type="calendar" class="readonly"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MODIFIED_DATE_DESC"
|
||||
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
|
||||
<!-- User Modified Field. Type: User (joomla) -->
|
||||
<field name="modified_by" type="user"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MODIFIED_BY_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MODIFIED_BY_DESC"
|
||||
class="readonly"
|
||||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- Access Field. Type: Accesslevel (joomla) -->
|
||||
<field name="access"
|
||||
type="accesslevel"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
description="JFIELD_ACCESS_DESC"
|
||||
default="1"
|
||||
required="false"
|
||||
/>
|
||||
<!-- Ordering Field. Type: Numbers (joomla) -->
|
||||
<field
|
||||
name="ordering"
|
||||
type="number"
|
||||
class="inputbox validate-ordering"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_ORDERING_LABEL"
|
||||
description=""
|
||||
default="0"
|
||||
size="6"
|
||||
required="false"
|
||||
/>
|
||||
<!-- Version Field. Type: Text (joomla) -->
|
||||
<field
|
||||
name="version"
|
||||
type="text"
|
||||
class="readonly"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_DESC"
|
||||
size="6"
|
||||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- Dynamic Fields. -->
|
||||
<!-- Joomla_module Field. Type: Joomlamodules. (custom) -->
|
||||
<field
|
||||
type="joomlamodules"
|
||||
name="joomla_module"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_JOOMLA_MODULE_LABEL"
|
||||
description="JFIELD_TITLE_DESC"
|
||||
class="list_class span12"
|
||||
multiple="false"
|
||||
default="0"
|
||||
readonly="true"
|
||||
/>
|
||||
<!-- Version_update Field. Type: Subform. (joomla) -->
|
||||
<field
|
||||
type="subform"
|
||||
name="version_update"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_UPDATE_LABEL"
|
||||
layout="joomla.form.field.subform.repeatable-table"
|
||||
multiple="true"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_UPDATE_DESCRIPTION"
|
||||
default=""
|
||||
icon="list">
|
||||
<form hidden="true" name="list_version_update_modal" repeat="true">
|
||||
<!-- Version Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="version"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
default=""
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="false"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_HINT"
|
||||
/>
|
||||
<!-- Mysql Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
name="mysql"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MYSQL_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
default=""
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MYSQL_DESCRIPTION"
|
||||
class="text_area mysql_update"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MYSQL_HINT"
|
||||
/>
|
||||
<!-- Url Field. Type: Url. (joomla) -->
|
||||
<field
|
||||
type="url"
|
||||
name="url"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_URL_LABEL"
|
||||
size="60"
|
||||
maxlength="150"
|
||||
default=""
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_URL_DESCRIPTION"
|
||||
class="text_area version_url"
|
||||
required="true"
|
||||
filter="raw"
|
||||
validated="url"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_URL_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_URL_HINT"
|
||||
/>
|
||||
</form>
|
||||
</field>
|
||||
</fieldset>
|
||||
|
||||
<!-- Access Control Fields. -->
|
||||
<fieldset name="accesscontrol">
|
||||
<!-- Asset Id Field. Type: Hidden (joomla) -->
|
||||
<field
|
||||
name="asset_id"
|
||||
type="hidden"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- Rules Field. Type: Rules (joomla) -->
|
||||
<field
|
||||
name="rules"
|
||||
type="rules"
|
||||
label="Permissions in relation to this joomla_module_updates"
|
||||
translate_label="false"
|
||||
filter="rules"
|
||||
validate="rules"
|
||||
class="inputbox"
|
||||
component="com_componentbuilder"
|
||||
section="joomla_module_updates"
|
||||
/>
|
||||
</fieldset>
|
||||
</form>
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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'
|
||||
|
1366
admin/models/joomla_module.php
Normal file
1366
admin/models/joomla_module.php
Normal file
File diff suppressed because it is too large
Load Diff
995
admin/models/joomla_module_files_folders_urls.php
Normal file
995
admin/models/joomla_module_files_folders_urls.php
Normal file
@ -0,0 +1,995 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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;
|
||||
}
|
||||
}
|
897
admin/models/joomla_module_updates.php
Normal file
897
admin/models/joomla_module_updates.php
Normal file
@ -0,0 +1,897 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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;
|
||||
}
|
||||
}
|
262
admin/models/joomla_modules.php
Normal file
262
admin/models/joomla_modules.php
Normal file
@ -0,0 +1,262 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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;
|
||||
}
|
||||
}
|
243
admin/models/joomla_modules_files_folders_urls.php
Normal file
243
admin/models/joomla_modules_files_folders_urls.php
Normal file
@ -0,0 +1,243 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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;
|
||||
}
|
||||
}
|
243
admin/models/joomla_modules_updates.php
Normal file
243
admin/models/joomla_modules_updates.php
Normal file
@ -0,0 +1,243 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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;
|
||||
}
|
||||
}
|
@ -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.
|
||||
|
@ -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();
|
||||
|
@ -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 '',
|
||||
|
@ -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`;
|
||||
|
133
admin/sql/updates/mysql/2.10.5.sql
Normal file
133
admin/sql/updates/mysql/2.10.5.sql
Normal file
@ -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;
|
321
admin/tables/joomla_module.php
Normal file
321
admin/tables/joomla_module.php
Normal file
@ -0,0 +1,321 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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;
|
||||
}
|
||||
|
||||
}
|
321
admin/tables/joomla_module_files_folders_urls.php
Normal file
321
admin/tables/joomla_module_files_folders_urls.php
Normal file
@ -0,0 +1,321 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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;
|
||||
}
|
||||
|
||||
}
|
321
admin/tables/joomla_module_updates.php
Normal file
321
admin/tables/joomla_module_updates.php
Normal file
@ -0,0 +1,321 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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;
|
||||
}
|
||||
|
||||
}
|
@ -208,521 +208,521 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_add_css_view listeners for add_css_view_vvvvvxz function
|
||||
// #jform_add_css_view listeners for add_css_view_vvvvvyv function
|
||||
jQuery('#jform_add_css_view').on('keyup',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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css_view',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_css_views listeners for add_css_views_vvvvvya function
|
||||
// #jform_add_css_views listeners for add_css_views_vvvvvyw function
|
||||
jQuery('#jform_add_css_views').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css_views',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_view_file listeners for add_javascript_view_file_vvvvvyb function
|
||||
// #jform_add_javascript_view_file listeners for add_javascript_view_file_vvvvvyx function
|
||||
jQuery('#jform_add_javascript_view_file').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_view_file',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_views_file listeners for add_javascript_views_file_vvvvvyc function
|
||||
// #jform_add_javascript_views_file listeners for add_javascript_views_file_vvvvvyy function
|
||||
jQuery('#jform_add_javascript_views_file').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_views_file',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvvyd function
|
||||
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvvyz function
|
||||
jQuery('#jform_add_javascript_view_footer').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_view_footer',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvvye function
|
||||
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvvza function
|
||||
jQuery('#jform_add_javascript_views_footer').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_views_footer',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_ajax listeners for add_php_ajax_vvvvvyf function
|
||||
// #jform_add_php_ajax listeners for add_php_ajax_vvvvvzb function
|
||||
jQuery('#jform_add_php_ajax').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_ajax',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getitem listeners for add_php_getitem_vvvvvyg function
|
||||
// #jform_add_php_getitem listeners for add_php_getitem_vvvvvzc function
|
||||
jQuery('#jform_add_php_getitem').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getitem',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getitems listeners for add_php_getitems_vvvvvyh function
|
||||
// #jform_add_php_getitems listeners for add_php_getitems_vvvvvzd function
|
||||
jQuery('#jform_add_php_getitems').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getitems',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getitems_after_all listeners for add_php_getitems_after_all_vvvvvyi function
|
||||
// #jform_add_php_getitems_after_all listeners for add_php_getitems_after_all_vvvvvze function
|
||||
jQuery('#jform_add_php_getitems_after_all').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getitems_after_all',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getlistquery listeners for add_php_getlistquery_vvvvvyj function
|
||||
// #jform_add_php_getlistquery listeners for add_php_getlistquery_vvvvvzf function
|
||||
jQuery('#jform_add_php_getlistquery').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getlistquery',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getform listeners for add_php_getform_vvvvvyk function
|
||||
// #jform_add_php_getform listeners for add_php_getform_vvvvvzg function
|
||||
jQuery('#jform_add_php_getform').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getform',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_save listeners for add_php_before_save_vvvvvyl function
|
||||
// #jform_add_php_before_save listeners for add_php_before_save_vvvvvzh function
|
||||
jQuery('#jform_add_php_before_save').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_save',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_save listeners for add_php_save_vvvvvym function
|
||||
// #jform_add_php_save listeners for add_php_save_vvvvvzi function
|
||||
jQuery('#jform_add_php_save').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_save',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_postsavehook listeners for add_php_postsavehook_vvvvvyn function
|
||||
// #jform_add_php_postsavehook listeners for add_php_postsavehook_vvvvvzj function
|
||||
jQuery('#jform_add_php_postsavehook').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_postsavehook',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_allowadd listeners for add_php_allowadd_vvvvvyo function
|
||||
// #jform_add_php_allowadd listeners for add_php_allowadd_vvvvvzk function
|
||||
jQuery('#jform_add_php_allowadd').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_allowadd',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_allowedit listeners for add_php_allowedit_vvvvvyp function
|
||||
// #jform_add_php_allowedit listeners for add_php_allowedit_vvvvvzl function
|
||||
jQuery('#jform_add_php_allowedit').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_allowedit',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_cancel listeners for add_php_before_cancel_vvvvvyq function
|
||||
// #jform_add_php_before_cancel listeners for add_php_before_cancel_vvvvvzm function
|
||||
jQuery('#jform_add_php_before_cancel').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_cancel',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_after_cancel listeners for add_php_after_cancel_vvvvvyr function
|
||||
// #jform_add_php_after_cancel listeners for add_php_after_cancel_vvvvvzn function
|
||||
jQuery('#jform_add_php_after_cancel').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_cancel',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_batchcopy listeners for add_php_batchcopy_vvvvvys function
|
||||
// #jform_add_php_batchcopy listeners for add_php_batchcopy_vvvvvzo function
|
||||
jQuery('#jform_add_php_batchcopy').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_batchcopy',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_batchmove listeners for add_php_batchmove_vvvvvyt function
|
||||
// #jform_add_php_batchmove listeners for add_php_batchmove_vvvvvzp function
|
||||
jQuery('#jform_add_php_batchmove').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_batchmove',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_publish listeners for add_php_before_publish_vvvvvyu function
|
||||
// #jform_add_php_before_publish listeners for add_php_before_publish_vvvvvzq function
|
||||
jQuery('#jform_add_php_before_publish').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_publish',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_after_publish listeners for add_php_after_publish_vvvvvyv function
|
||||
// #jform_add_php_after_publish listeners for add_php_after_publish_vvvvvzr function
|
||||
jQuery('#jform_add_php_after_publish').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_publish',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_delete listeners for add_php_before_delete_vvvvvyw function
|
||||
// #jform_add_php_before_delete listeners for add_php_before_delete_vvvvvzs function
|
||||
jQuery('#jform_add_php_before_delete').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_delete',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_after_delete listeners for add_php_after_delete_vvvvvyx function
|
||||
// #jform_add_php_after_delete listeners for add_php_after_delete_vvvvvzt function
|
||||
jQuery('#jform_add_php_after_delete').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_delete',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_document listeners for add_php_document_vvvvvyy function
|
||||
// #jform_add_php_document listeners for add_php_document_vvvvvzu function
|
||||
jQuery('#jform_add_php_document').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_document',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_sql listeners for add_sql_vvvvvyz function
|
||||
// #jform_add_sql listeners for add_sql_vvvvvzv function
|
||||
jQuery('#jform_add_sql').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_source listeners for source_vvvvvza function
|
||||
// #jform_source listeners for source_vvvvvzw function
|
||||
jQuery('#jform_source').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_sql listeners for add_sql_vvvvvza function
|
||||
// #jform_add_sql listeners for add_sql_vvvvvzw function
|
||||
jQuery('#jform_add_sql').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_source listeners for source_vvvvvzc function
|
||||
// #jform_source listeners for source_vvvvvzy function
|
||||
jQuery('#jform_source').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_sql listeners for add_sql_vvvvvzc function
|
||||
// #jform_add_sql listeners for add_sql_vvvvvzy function
|
||||
jQuery('#jform_add_sql').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_custom_import listeners for add_custom_import_vvvvvze function
|
||||
// #jform_add_custom_import listeners for add_custom_import_vvvvwaa function
|
||||
jQuery('#jform_add_custom_import').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_custom_import',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_custom_import listeners for add_custom_import_vvvvvzf function
|
||||
// #jform_add_custom_import listeners for add_custom_import_vvvvwab function
|
||||
jQuery('#jform_add_custom_import').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_custom_import',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_custom_button listeners for add_custom_button_vvvvvzg function
|
||||
// #jform_add_custom_button listeners for add_custom_button_vvvvwac function
|
||||
jQuery('#jform_add_custom_button').on('keyup',function()
|
||||
{
|
||||
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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_custom_button',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
|
@ -112,18 +112,18 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_extension_type listeners for extension_type_vvvvwbk function
|
||||
// #jform_extension_type listeners for extension_type_vvvvwcg function
|
||||
jQuery('#jform_extension_type').on('keyup',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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_extension_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
|
@ -107,18 +107,18 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_extension_type listeners for extension_type_vvvvwbj function
|
||||
// #jform_extension_type listeners for extension_type_vvvvwcf function
|
||||
jQuery('#jform_extension_type').on('keyup',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);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_extension_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
|
@ -138,12 +138,24 @@ jQuery('<div id="loading"></div>')
|
||||
<div class="span7">
|
||||
<div id="component-details"><?php echo $selectNotice; ?></div>
|
||||
<div id="noticeboard">
|
||||
<div class="well well-small">
|
||||
<h2 class="module-title nav-header"><?php echo JText::_('COM_COMPONENTBUILDER_VDM_NOTICE_BOARD'); ?><span id="vdm-new-notice" style="display:none; color:red;"> (<?php echo JText::_('COM_COMPONENTBUILDER_NEW_NOTICE'); ?>)</span></h2>
|
||||
<div id="noticeboard-md"><small><?php echo JText::_('COM_COMPONENTBUILDER_THE_NOTICE_BOARD_IS_LOADING'); ?><span class="loading-dots">.</span></small></div>
|
||||
<div style="text-align:right;"><small><a href="https://github.com/Llewellynvdm" target="_blank" style="color:gray"><<ewe>>yn</a></small></div>
|
||||
</div>
|
||||
<div><?php echo ComponentbuilderHelper::getDynamicContent('banner', '728-90'); ?></div>
|
||||
<?php echo JHtml::_('bootstrap.startTabSet', 'compiler_tab', array('active' => 'vdm-noticeboard')); ?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'compiler_tab', 'vdm-noticeboard', JText::_('COM_COMPONENTBUILDER_VDM_BOARD', true)); ?>
|
||||
<div class="well well-small">
|
||||
<h2 class="module-title nav-header"><?php echo JText::_('COM_COMPONENTBUILDER_VDM_NOTICE_BOARD'); ?><span id="vdm-new-notice" style="display:none; color:red;"> (<?php echo JText::_('COM_COMPONENTBUILDER_NEW_NOTICE'); ?>)</span></h2>
|
||||
<div id="noticeboard-md"><small><?php echo JText::_('COM_COMPONENTBUILDER_THE_NOTICE_BOARD_IS_LOADING'); ?><span class="loading-dots">.</span></small></div>
|
||||
<div style="text-align:right;"><small><a href="https://github.com/Llewellynvdm" target="_blank" style="color:gray"><<ewe>>yn</a></small></div>
|
||||
</div>
|
||||
<div><?php echo ComponentbuilderHelper::getDynamicContent('banner', '728-90'); ?></div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'compiler_tab', 'proboard', JText::_('COM_COMPONENTBUILDER_JCB_PRO_BOARD', true)); ?>
|
||||
<div class="well well-small">
|
||||
<h2 class="module-title nav-header"><?php echo JText::_('COM_COMPONENTBUILDER_JCB_PRO_NOTICE_BOARD'); ?></h2>
|
||||
<div id="proboard-md"><small><?php echo JText::_('COM_COMPONENTBUILDER_THE_PRO_BOARD_IS_LOADING'); ?><span class="loading-dots">.</span></small></div>
|
||||
<div style="text-align:right;"><small><a href="https://vdm.bz/get-jcb-pro-membership" target="_blank" style="color:gray">JCB PRO</a></small></div>
|
||||
</div>
|
||||
<div><?php echo ComponentbuilderHelper::getDynamicContent('banner', '728-90'); ?></div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endTabSet'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -250,7 +250,8 @@ class ComponentbuilderViewCompiler extends JViewLegacy
|
||||
}
|
||||
});
|
||||
}
|
||||
var noticeboard = \"https://www.vdm.io/componentbuilder-noticeboard-md\";
|
||||
var noticeboard = \"https://vdm.bz/componentbuilder-noticeboard-md\";
|
||||
var proboard = \"https://vdm.bz/componentbuilder-pro-noticeboard-md\";
|
||||
jQuery(document).ready(function () {
|
||||
jQuery.get(noticeboard)
|
||||
.success(function(board) {
|
||||
@ -269,6 +270,17 @@ class ComponentbuilderViewCompiler extends JViewLegacy
|
||||
.error(function(jqXHR, textStatus, errorThrown) {
|
||||
jQuery(\"#noticeboard-md\").html(all_is_good);
|
||||
});
|
||||
jQuery.get(proboard)
|
||||
.success(function(board) {
|
||||
if (board.length > 5) {
|
||||
jQuery(\"#proboard-md\").html(marked(board));
|
||||
} else {
|
||||
jQuery(\"#proboard-md\").html(all_is_good);
|
||||
}
|
||||
})
|
||||
.error(function(jqXHR, textStatus, errorThrown) {
|
||||
jQuery(\"#proboard-md\").html(all_is_good);
|
||||
});
|
||||
});
|
||||
// to check is READ/NEW
|
||||
function getIS(type,notice){
|
||||
|
@ -84,6 +84,9 @@ JHtml::_('behavior.tooltip');
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'notice_board_accordian', 'Vast Development Method', 'notice_board_one'); ?>
|
||||
<?php echo $this->loadTemplate('notice_board_vast_development_method');?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'notice_board_accordian', 'JCB Pro Membership', 'notice_board_two'); ?>
|
||||
<?php echo $this->loadTemplate('notice_board_jcb_pro_membership');?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endAccordion'); ?>
|
||||
</div>
|
||||
<div class="span2">
|
||||
|
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/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');
|
||||
|
||||
?>
|
||||
<?php echo $this->proboard; ?>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user