Compare commits
36 Commits
Author | SHA1 | Date | |
---|---|---|---|
e36b84f301 | |||
a6013c4b22 | |||
812857da81 | |||
6dd654c745 | |||
0a7b91829f | |||
b42a3a5420 | |||
2cf6f6ab11 | |||
21254738a8 | |||
a62476d260 | |||
0ca49414d2 | |||
3a4a0e613b | |||
9fd59f2353 | |||
2b39af94a2 | |||
1a19a510dc | |||
769e31061c | |||
69d358ca06 | |||
a9a0952ff3 | |||
25650efa47 | |||
1312e45d4a | |||
fd93feac42 | |||
e774bf1002 | |||
568ff0ff9c | |||
2b3acf5368 | |||
0c7d7265dd | |||
3db9deb534 | |||
8402051a94 | |||
2ca5419106 | |||
ffbd380b10 | |||
01149bfb7c | |||
640c96ce38 | |||
7f325b1233 | |||
a7c3a6e8f2 | |||
f7be7ddad0 | |||
fef3460772 | |||
84b683182a | |||
2543d11277 |
16
README.md
16
README.md
@ -9,7 +9,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!
|
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.7.10) 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.8.5) 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)
|
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||||
|
|
||||||
@ -125,14 +125,14 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 18th May, 2018
|
+ *Last Build*: 30th July, 2018
|
||||||
+ *Version*: 2.7.10
|
+ *Version*: 2.8.5
|
||||||
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
+ *Line count*: **181594**
|
+ *Line count*: **186360**
|
||||||
+ *Field count*: **1036**
|
+ *Field count*: **1059**
|
||||||
+ *File count*: **1203**
|
+ *File count*: **1239**
|
||||||
+ *Folder count*: **193**
|
+ *Folder count*: **197**
|
||||||
|
|
||||||
> This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com).
|
> This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||||
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
@ -140,6 +140,6 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo
|
|||||||
## Donations
|
## Donations
|
||||||
|
|
||||||
Come on buy VDM a coffee :)
|
Come on buy VDM a coffee :)
|
||||||
* PayPal: [paypal.me/asseblief](https://www.paypal.me/asseblief)
|
* PayPal: [paypal.me/asseblief](https://www.paypal.me/asseblief) (Asseblief = Please) in Afrikaans
|
||||||
* Bitcoin: 18vURxYpPFjvNk8BnUy1ovCAyQmY3MzkSf
|
* Bitcoin: 18vURxYpPFjvNk8BnUy1ovCAyQmY3MzkSf
|
||||||
* Ethereum: 0x9548144662b47327c954f3e214edb96662d51218
|
* Ethereum: 0x9548144662b47327c954f3e214edb96662d51218
|
@ -9,7 +9,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!
|
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.7.10) 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.8.5) 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)
|
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||||
|
|
||||||
@ -125,14 +125,14 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 18th May, 2018
|
+ *Last Build*: 30th July, 2018
|
||||||
+ *Version*: 2.7.10
|
+ *Version*: 2.8.5
|
||||||
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
+ *Line count*: **181594**
|
+ *Line count*: **186360**
|
||||||
+ *Field count*: **1036**
|
+ *Field count*: **1059**
|
||||||
+ *File count*: **1203**
|
+ *File count*: **1239**
|
||||||
+ *Folder count*: **193**
|
+ *Folder count*: **197**
|
||||||
|
|
||||||
> This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com).
|
> This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||||
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
@ -140,6 +140,6 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo
|
|||||||
## Donations
|
## Donations
|
||||||
|
|
||||||
Come on buy VDM a coffee :)
|
Come on buy VDM a coffee :)
|
||||||
* PayPal: [paypal.me/asseblief](https://www.paypal.me/asseblief)
|
* PayPal: [paypal.me/asseblief](https://www.paypal.me/asseblief) (Asseblief = Please) in Afrikaans
|
||||||
* Bitcoin: 18vURxYpPFjvNk8BnUy1ovCAyQmY3MzkSf
|
* Bitcoin: 18vURxYpPFjvNk8BnUy1ovCAyQmY3MzkSf
|
||||||
* Ethereum: 0x9548144662b47327c954f3e214edb96662d51218
|
* Ethereum: 0x9548144662b47327c954f3e214edb96662d51218
|
@ -50,6 +50,16 @@
|
|||||||
<action name="admin_fields.edit.own" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_OWN" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_OWN_DESC" />
|
<action name="admin_fields.edit.own" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_OWN" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_OWN_DESC" />
|
||||||
<action name="admin_fields.edit.state" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_STATE" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_STATE_DESC" />
|
<action name="admin_fields.edit.state" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_STATE" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_STATE_DESC" />
|
||||||
<action name="admin_fields.version" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_VERSION" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_VERSION_DESC" />
|
<action name="admin_fields.version" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_VERSION" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_VERSION_DESC" />
|
||||||
|
<action name="admin_fields_relations.access" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_ACCESS" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_ACCESS_DESC" />
|
||||||
|
<action name="admin_fields_relations.batch" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_BATCH_USE" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_BATCH_USE_DESC" />
|
||||||
|
<action name="admin_fields_relations.create" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_CREATE" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_CREATE_DESC" />
|
||||||
|
<action name="admin_fields_relations.delete" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_DELETE" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_DELETE_DESC" />
|
||||||
|
<action name="admin_fields_relations.edit" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_DESC" />
|
||||||
|
<action name="admin_fields_relations.edit.created_by" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_CREATED_BY" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_CREATED_BY_DESC" />
|
||||||
|
<action name="admin_fields_relations.edit.created" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_CREATED_DATE" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_CREATED_DATE_DESC" />
|
||||||
|
<action name="admin_fields_relations.edit.own" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_OWN" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_OWN_DESC" />
|
||||||
|
<action name="admin_fields_relations.edit.state" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_STATE" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_STATE_DESC" />
|
||||||
|
<action name="admin_fields_relations.version" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_VERSION" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_VERSION_DESC" />
|
||||||
<action name="compiler.access" title="COM_COMPONENTBUILDER_COMPILER_ACCESS" description="COM_COMPONENTBUILDER_COMPILER_ACCESS_DESC" />
|
<action name="compiler.access" title="COM_COMPONENTBUILDER_COMPILER_ACCESS" description="COM_COMPONENTBUILDER_COMPILER_ACCESS_DESC" />
|
||||||
<action name="compiler.clear_tmp" title="COM_COMPONENTBUILDER_COMPILER_CLEAR_TMP_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_COMPILER_CLEAR_TMP_BUTTON_ACCESS_DESC" />
|
<action name="compiler.clear_tmp" title="COM_COMPONENTBUILDER_COMPILER_CLEAR_TMP_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_COMPILER_CLEAR_TMP_BUTTON_ACCESS_DESC" />
|
||||||
<action name="compiler.dashboard_list" title="COM_COMPONENTBUILDER_COMPILER_DASHBOARD_LIST" description="COM_COMPONENTBUILDER_COMPILER_DASHBOARD_LIST_DESC" />
|
<action name="compiler.dashboard_list" title="COM_COMPONENTBUILDER_COMPILER_DASHBOARD_LIST" description="COM_COMPONENTBUILDER_COMPILER_DASHBOARD_LIST_DESC" />
|
||||||
@ -199,16 +209,16 @@
|
|||||||
<action name="fieldtype.dashboard_add" title="COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_ADD" description="COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_ADD_DESC" />
|
<action name="fieldtype.dashboard_add" title="COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_ADD" description="COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_ADD_DESC" />
|
||||||
<action name="fieldtype.dashboard_list" title="COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_LIST" description="COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_LIST_DESC" />
|
<action name="fieldtype.dashboard_list" title="COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_LIST" description="COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_LIST_DESC" />
|
||||||
<action name="fieldtype.delete" title="COM_COMPONENTBUILDER_FIELDTYPES_DELETE" description="COM_COMPONENTBUILDER_FIELDTYPES_DELETE_DESC" />
|
<action name="fieldtype.delete" title="COM_COMPONENTBUILDER_FIELDTYPES_DELETE" description="COM_COMPONENTBUILDER_FIELDTYPES_DELETE_DESC" />
|
||||||
|
<action name="fieldtype..description" title="COM_COMPONENTBUILDER_FIELDTYPES_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELDTYPES_DESCRIPTION_DESC" />
|
||||||
<action name="fieldtype.edit" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESC" />
|
<action name="fieldtype.edit" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESC" />
|
||||||
<action name="fieldtype.edit.description" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESCRIPTION_DESC" />
|
|
||||||
<action name="fieldtype.edit.name" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_NAME" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_NAME_DESC" />
|
|
||||||
<action name="fieldtype.edit.own" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_OWN" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_OWN_DESC" />
|
<action name="fieldtype.edit.own" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_OWN" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_OWN_DESC" />
|
||||||
<action name="fieldtype.edit.properties" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES_DESC" />
|
|
||||||
<action name="fieldtype.edit.short_description" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_SHORT_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_SHORT_DESCRIPTION_DESC" />
|
|
||||||
<action name="fieldtype.edit.state" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_STATE" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_STATE_DESC" />
|
<action name="fieldtype.edit.state" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_STATE" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_STATE_DESC" />
|
||||||
<action name="fieldtype.version" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION_DESC" />
|
<action name="fieldtype.version" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION_DESC" />
|
||||||
<action name="fieldtype.export" title="COM_COMPONENTBUILDER_FIELDTYPES_EXPORT" description="COM_COMPONENTBUILDER_FIELDTYPES_EXPORT_DESC" />
|
<action name="fieldtype.export" title="COM_COMPONENTBUILDER_FIELDTYPES_EXPORT" description="COM_COMPONENTBUILDER_FIELDTYPES_EXPORT_DESC" />
|
||||||
<action name="fieldtype.import" title="COM_COMPONENTBUILDER_FIELDTYPES_IMPORT" description="COM_COMPONENTBUILDER_FIELDTYPES_IMPORT_DESC" />
|
<action name="fieldtype.import" title="COM_COMPONENTBUILDER_FIELDTYPES_IMPORT" description="COM_COMPONENTBUILDER_FIELDTYPES_IMPORT_DESC" />
|
||||||
|
<action name="fieldtype..name" title="COM_COMPONENTBUILDER_FIELDTYPES_NAME" description="COM_COMPONENTBUILDER_FIELDTYPES_NAME_DESC" />
|
||||||
|
<action name="fieldtype..properties" title="COM_COMPONENTBUILDER_FIELDTYPES_PROPERTIES" description="COM_COMPONENTBUILDER_FIELDTYPES_PROPERTIES_DESC" />
|
||||||
|
<action name="fieldtype..short_description" title="COM_COMPONENTBUILDER_FIELDTYPES_SHORT_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELDTYPES_SHORT_DESCRIPTION_DESC" />
|
||||||
<action name="fieldtype.submenu" title="COM_COMPONENTBUILDER_FIELDTYPES_SUBMENU" description="COM_COMPONENTBUILDER_FIELDTYPES_SUBMENU_DESC" />
|
<action name="fieldtype.submenu" title="COM_COMPONENTBUILDER_FIELDTYPES_SUBMENU" description="COM_COMPONENTBUILDER_FIELDTYPES_SUBMENU_DESC" />
|
||||||
<action name="get_snippets.access" title="COM_COMPONENTBUILDER_GET_SNIPPETS_ACCESS" description="COM_COMPONENTBUILDER_GET_SNIPPETS_ACCESS_DESC" />
|
<action name="get_snippets.access" title="COM_COMPONENTBUILDER_GET_SNIPPETS_ACCESS" description="COM_COMPONENTBUILDER_GET_SNIPPETS_ACCESS_DESC" />
|
||||||
<action name="get_snippets.custom_admin_views" title="COM_COMPONENTBUILDER_GET_SNIPPETS_CUSTOM_ADMIN_VIEWS_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_GET_SNIPPETS_CUSTOM_ADMIN_VIEWS_BUTTON_ACCESS_DESC" />
|
<action name="get_snippets.custom_admin_views" title="COM_COMPONENTBUILDER_GET_SNIPPETS_CUSTOM_ADMIN_VIEWS_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_GET_SNIPPETS_CUSTOM_ADMIN_VIEWS_BUTTON_ACCESS_DESC" />
|
||||||
@ -495,10 +505,10 @@
|
|||||||
<action name="fieldtype.create" title="COM_COMPONENTBUILDER_FIELDTYPES_CREATE" description="COM_COMPONENTBUILDER_FIELDTYPES_CREATE_DESC" />
|
<action name="fieldtype.create" title="COM_COMPONENTBUILDER_FIELDTYPES_CREATE" description="COM_COMPONENTBUILDER_FIELDTYPES_CREATE_DESC" />
|
||||||
<action name="fieldtype.delete" title="COM_COMPONENTBUILDER_FIELDTYPES_DELETE" description="COM_COMPONENTBUILDER_FIELDTYPES_DELETE_DESC" />
|
<action name="fieldtype.delete" title="COM_COMPONENTBUILDER_FIELDTYPES_DELETE" description="COM_COMPONENTBUILDER_FIELDTYPES_DELETE_DESC" />
|
||||||
<action name="fieldtype.access" title="COM_COMPONENTBUILDER_FIELDTYPES_ACCESS" description="COM_COMPONENTBUILDER_FIELDTYPES_ACCESS_DESC" />
|
<action name="fieldtype.access" title="COM_COMPONENTBUILDER_FIELDTYPES_ACCESS" description="COM_COMPONENTBUILDER_FIELDTYPES_ACCESS_DESC" />
|
||||||
<action name="fieldtype.edit.name" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_NAME" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_NAME_DESC" />
|
<action name="fieldtype..name" title="COM_COMPONENTBUILDER_FIELDTYPES_NAME" description="COM_COMPONENTBUILDER_FIELDTYPES_NAME_DESC" />
|
||||||
<action name="fieldtype.edit.properties" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES_DESC" />
|
<action name="fieldtype..properties" title="COM_COMPONENTBUILDER_FIELDTYPES_PROPERTIES" description="COM_COMPONENTBUILDER_FIELDTYPES_PROPERTIES_DESC" />
|
||||||
<action name="fieldtype.edit.description" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESCRIPTION_DESC" />
|
<action name="fieldtype..description" title="COM_COMPONENTBUILDER_FIELDTYPES_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELDTYPES_DESCRIPTION_DESC" />
|
||||||
<action name="fieldtype.edit.short_description" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_SHORT_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_SHORT_DESCRIPTION_DESC" />
|
<action name="fieldtype..short_description" title="COM_COMPONENTBUILDER_FIELDTYPES_SHORT_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELDTYPES_SHORT_DESCRIPTION_DESC" />
|
||||||
<action name="fieldtype.version" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION_DESC" />
|
<action name="fieldtype.version" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION_DESC" />
|
||||||
</section>
|
</section>
|
||||||
<section name="language_translation">
|
<section name="language_translation">
|
||||||
@ -561,6 +571,17 @@
|
|||||||
<action name="admin_fields_conditions.access" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_ACCESS" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_ACCESS_DESC" />
|
<action name="admin_fields_conditions.access" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_ACCESS" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_ACCESS_DESC" />
|
||||||
<action name="admin_fields_conditions.version" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_VERSION" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_VERSION_DESC" />
|
<action name="admin_fields_conditions.version" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_VERSION" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_EDIT_VERSION_DESC" />
|
||||||
</section>
|
</section>
|
||||||
|
<section name="admin_fields_relations">
|
||||||
|
<action name="admin_fields_relations.edit" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_DESC" />
|
||||||
|
<action name="admin_fields_relations.edit.own" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_OWN" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_OWN_DESC" />
|
||||||
|
<action name="admin_fields_relations.edit.state" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_STATE" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_STATE_DESC" />
|
||||||
|
<action name="admin_fields_relations.edit.created_by" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_CREATED_BY" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_CREATED_BY_DESC" />
|
||||||
|
<action name="admin_fields_relations.edit.created" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_CREATED_DATE" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_CREATED_DATE_DESC" />
|
||||||
|
<action name="admin_fields_relations.create" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_CREATE" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_CREATE_DESC" />
|
||||||
|
<action name="admin_fields_relations.delete" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_DELETE" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_DELETE_DESC" />
|
||||||
|
<action name="admin_fields_relations.access" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_ACCESS" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_ACCESS_DESC" />
|
||||||
|
<action name="admin_fields_relations.version" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_VERSION" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_VERSION_DESC" />
|
||||||
|
</section>
|
||||||
<section name="component_admin_views">
|
<section name="component_admin_views">
|
||||||
<action name="component_admin_views.edit" title="COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_EDIT" description="COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_EDIT_DESC" />
|
<action name="component_admin_views.edit" title="COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_EDIT" description="COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_EDIT_DESC" />
|
||||||
<action name="component_admin_views.edit.own" title="COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_EDIT_OWN" description="COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_EDIT_OWN_DESC" />
|
<action name="component_admin_views.edit.own" title="COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_EDIT_OWN" description="COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_EDIT_OWN_DESC" />
|
||||||
|
16
admin/assets/css/admin_fields_relations.css
Normal file
16
admin/assets/css/admin_fields_relations.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 - 2018 Vast Development Method. All rights reserved.
|
||||||
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* CSS Document */
|
||||||
|
|
||||||
|
|
||||||
|
.codefield {
|
||||||
|
width: 500px;
|
||||||
|
}
|
13
admin/assets/css/admins_fields_relations.css
Normal file
13
admin/assets/css/admins_fields_relations.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 - 2018 Vast Development Method. All rights reserved.
|
||||||
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* CSS Document */
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 393 KiB After Width: | Height: | Size: 395 KiB |
@ -248,16 +248,16 @@ abstract class ###Component###Helper
|
|||||||
{
|
{
|
||||||
if ($external)
|
if ($external)
|
||||||
{
|
{
|
||||||
if ($name = self::getVar(null, $val, $id, $name, '=', $table))
|
if ($_name = self::getVar(null, $val, $id, $name, '=', $table))
|
||||||
{
|
{
|
||||||
$names[] = $name;
|
$names[] = $_name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ($name = self::getVar($table, $val, $id, $name))
|
if ($_name = self::getVar($table, $val, $id, $name))
|
||||||
{
|
{
|
||||||
$names[] = $name;
|
$names[] = $_name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -647,7 +647,7 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// check if there are any view values remaining
|
// check if there are any view values remaining
|
||||||
if (count($_result))
|
if (count((array)$_result))
|
||||||
{
|
{
|
||||||
$_result = json_encode($_result);
|
$_result = json_encode($_result);
|
||||||
$_result = array($_result);
|
$_result = array($_result);
|
||||||
@ -841,7 +841,7 @@ abstract class ###Component###Helper
|
|||||||
**/
|
**/
|
||||||
public static function checkArray($array, $removeEmptyString = false)
|
public static function checkArray($array, $removeEmptyString = false)
|
||||||
{
|
{
|
||||||
if (isset($array) && is_array($array) && count($array) > 0)
|
if (isset($array) && is_array($array) && count((array)$array) > 0)
|
||||||
{
|
{
|
||||||
// also make sure the empty strings are removed
|
// also make sure the empty strings are removed
|
||||||
if ($removeEmptyString)
|
if ($removeEmptyString)
|
||||||
@ -944,7 +944,7 @@ abstract class ###Component###Helper
|
|||||||
{
|
{
|
||||||
$initial = strlen($string);
|
$initial = strlen($string);
|
||||||
$words = preg_split('/([\s\n\r]+)/', $string, null, PREG_SPLIT_DELIM_CAPTURE);
|
$words = preg_split('/([\s\n\r]+)/', $string, null, PREG_SPLIT_DELIM_CAPTURE);
|
||||||
$words_count = count($words);
|
$words_count = count((array)$words);
|
||||||
|
|
||||||
$word_length = 0;
|
$word_length = 0;
|
||||||
$last_word = 0;
|
$last_word = 0;
|
||||||
@ -979,7 +979,7 @@ abstract class ###Component###Helper
|
|||||||
*
|
*
|
||||||
* @returns string on success
|
* @returns string on success
|
||||||
**/
|
**/
|
||||||
public static function safeString($string, $type = 'L', $spacer = '_', $replaceNumbers = true)
|
public static function safeString($string, $type = 'L', $spacer = '_', $replaceNumbers = true, $keepOnlyCharacters = true)
|
||||||
{
|
{
|
||||||
if ($replaceNumbers === true)
|
if ($replaceNumbers === true)
|
||||||
{
|
{
|
||||||
@ -1008,7 +1008,16 @@ abstract class ###Component###Helper
|
|||||||
$string = trim($string);
|
$string = trim($string);
|
||||||
$string = preg_replace('/'.$spacer.'+/', ' ', $string);
|
$string = preg_replace('/'.$spacer.'+/', ' ', $string);
|
||||||
$string = preg_replace('/\s+/', ' ', $string);
|
$string = preg_replace('/\s+/', ' ', $string);
|
||||||
|
// remove all and keep only characters
|
||||||
|
if ($keepOnlyCharacters)
|
||||||
|
{
|
||||||
$string = preg_replace("/[^A-Za-z ]/", '', $string);
|
$string = preg_replace("/[^A-Za-z ]/", '', $string);
|
||||||
|
}
|
||||||
|
// keep both numbers and characters
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$string = preg_replace("/[^A-Za-z0-9 ]/", '', $string);
|
||||||
|
}
|
||||||
// select final adaptations
|
// select final adaptations
|
||||||
if ($type === 'L' || $type === 'strtolower')
|
if ($type === 'L' || $type === 'strtolower')
|
||||||
{
|
{
|
||||||
|
@ -45,6 +45,13 @@ abstract class ###Component###Email
|
|||||||
*/
|
*/
|
||||||
public static $mailer = null;
|
public static $mailer = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Custom Headers
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected static $header = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a configuration object
|
* Get a configuration object
|
||||||
*
|
*
|
||||||
@ -132,16 +139,16 @@ abstract class ###Component###Email
|
|||||||
$replytoname = $conf->get('replytoname');
|
$replytoname = $conf->get('replytoname');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set global sender
|
||||||
|
$mail->setSender(array($mailfrom, $fromname));
|
||||||
|
|
||||||
// set the global reply-to if found
|
// set the global reply-to if found
|
||||||
if ($replyto && $replytoname)
|
if ($replyto && $replytoname)
|
||||||
{
|
{
|
||||||
$mail->ClearReplyTos();
|
$mail->ClearReplyTos();
|
||||||
$mail->addReplyTo( array( $replyto, $replytoname ) );
|
$mail->addReplyTo($replyto, $replytoname);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set global sender
|
|
||||||
$mail->setSender(array($mailfrom, $fromname));
|
|
||||||
|
|
||||||
// Default mailer is to use PHP's mail function
|
// Default mailer is to use PHP's mail function
|
||||||
switch ($mailer)
|
switch ($mailer)
|
||||||
{
|
{
|
||||||
@ -164,6 +171,17 @@ abstract class ###Component###Email
|
|||||||
return $mail;
|
return $mail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set a Mail custom header.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public static function setHeader($target, $value)
|
||||||
|
{
|
||||||
|
// set the header
|
||||||
|
self::$header[$target] = $value;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Send an email
|
* Send an email
|
||||||
*
|
*
|
||||||
@ -172,16 +190,12 @@ abstract class ###Component###Email
|
|||||||
*/
|
*/
|
||||||
public static function send($recipient, $subject, $body, $textonly, $mode = 0, $bounce_email = null, $idsession = null, $mailreply = null, $replyname = null , $mailfrom = null, $fromname = null, $cc = null, $bcc = null, $attachment = null, $embeded = null , $embeds = null)
|
public static function send($recipient, $subject, $body, $textonly, $mode = 0, $bounce_email = null, $idsession = null, $mailreply = null, $replyname = null , $mailfrom = null, $fromname = null, $cc = null, $bcc = null, $attachment = null, $embeded = null , $embeds = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Get a JMail instance
|
// Get a JMail instance
|
||||||
$mail = self::getMailer();
|
$mail = self::getMailer();
|
||||||
|
|
||||||
// set component params
|
// set component params
|
||||||
$conf = self::getConfig();
|
$conf = self::getConfig();
|
||||||
|
|
||||||
// do some house cleaning
|
|
||||||
$mail->ClearReplyTos();
|
|
||||||
|
|
||||||
// set if we have override
|
// set if we have override
|
||||||
if ($mailfrom && $fromname)
|
if ($mailfrom && $fromname)
|
||||||
{
|
{
|
||||||
@ -200,6 +214,15 @@ abstract class ###Component###Email
|
|||||||
$mail->addCustomHeader('X-VDMmethodID:'.$idsession);
|
$mail->addCustomHeader('X-VDMmethodID:'.$idsession);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set headers if found
|
||||||
|
if (isset(self::$header) && is_array(self::$header) && count((array)self::$header) > 0)
|
||||||
|
{
|
||||||
|
foreach (self::$header as $_target => $_value)
|
||||||
|
{
|
||||||
|
$mail->addCustomHeader($_target.':'.$_value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// set the subject & Body
|
// set the subject & Body
|
||||||
$mail->setSubject($subject);
|
$mail->setSubject($subject);
|
||||||
$mail->setBody($body);
|
$mail->setBody($body);
|
||||||
@ -232,7 +255,7 @@ abstract class ###Component###Email
|
|||||||
if (is_array($mailreply))
|
if (is_array($mailreply))
|
||||||
{
|
{
|
||||||
$mail->ClearReplyTos();
|
$mail->ClearReplyTos();
|
||||||
$numReplyTo = count($mailreply);
|
$numReplyTo = count((array)$mailreply);
|
||||||
for ($i=0; $i < $numReplyTo; $i++)
|
for ($i=0; $i < $numReplyTo; $i++)
|
||||||
{
|
{
|
||||||
$mail->addReplyTo($mailreply[$i], $replyname[$i]);
|
$mail->addReplyTo($mailreply[$i], $replyname[$i]);
|
||||||
|
@ -58,16 +58,16 @@ abstract class ###Component###Helper
|
|||||||
{
|
{
|
||||||
if ($external)
|
if ($external)
|
||||||
{
|
{
|
||||||
if ($name = self::getVar(null, $val, $id, $name, '=', $table))
|
if ($_name = self::getVar(null, $val, $id, $name, '=', $table))
|
||||||
{
|
{
|
||||||
$names[] = $name;
|
$names[] = $_name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ($name = self::getVar($table, $val, $id, $name))
|
if ($_name = self::getVar($table, $val, $id, $name))
|
||||||
{
|
{
|
||||||
$names[] = $name;
|
$names[] = $_name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -293,7 +293,7 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// check if there are any view values remaining
|
// check if there are any view values remaining
|
||||||
if (count($_result))
|
if (count((array)$_result))
|
||||||
{
|
{
|
||||||
$_result = json_encode($_result);
|
$_result = json_encode($_result);
|
||||||
$_result = array($_result);
|
$_result = array($_result);
|
||||||
@ -833,7 +833,7 @@ abstract class ###Component###Helper
|
|||||||
**/
|
**/
|
||||||
public static function checkArray($array, $removeEmptyString = false)
|
public static function checkArray($array, $removeEmptyString = false)
|
||||||
{
|
{
|
||||||
if (isset($array) && is_array($array) && count($array) > 0)
|
if (isset($array) && is_array($array) && count((array)$array) > 0)
|
||||||
{
|
{
|
||||||
// also make sure the empty strings are removed
|
// also make sure the empty strings are removed
|
||||||
if ($removeEmptyString)
|
if ($removeEmptyString)
|
||||||
@ -936,7 +936,7 @@ abstract class ###Component###Helper
|
|||||||
{
|
{
|
||||||
$initial = strlen($string);
|
$initial = strlen($string);
|
||||||
$words = preg_split('/([\s\n\r]+)/', $string, null, PREG_SPLIT_DELIM_CAPTURE);
|
$words = preg_split('/([\s\n\r]+)/', $string, null, PREG_SPLIT_DELIM_CAPTURE);
|
||||||
$words_count = count($words);
|
$words_count = count((array)$words);
|
||||||
|
|
||||||
$word_length = 0;
|
$word_length = 0;
|
||||||
$last_word = 0;
|
$last_word = 0;
|
||||||
@ -971,7 +971,7 @@ abstract class ###Component###Helper
|
|||||||
*
|
*
|
||||||
* @returns string on success
|
* @returns string on success
|
||||||
**/
|
**/
|
||||||
public static function safeString($string, $type = 'L', $spacer = '_', $replaceNumbers = true)
|
public static function safeString($string, $type = 'L', $spacer = '_', $replaceNumbers = true, $keepOnlyCharacters = true)
|
||||||
{
|
{
|
||||||
if ($replaceNumbers === true)
|
if ($replaceNumbers === true)
|
||||||
{
|
{
|
||||||
@ -1000,7 +1000,16 @@ abstract class ###Component###Helper
|
|||||||
$string = trim($string);
|
$string = trim($string);
|
||||||
$string = preg_replace('/'.$spacer.'+/', ' ', $string);
|
$string = preg_replace('/'.$spacer.'+/', ' ', $string);
|
||||||
$string = preg_replace('/\s+/', ' ', $string);
|
$string = preg_replace('/\s+/', ' ', $string);
|
||||||
|
// remove all and keep only characters
|
||||||
|
if ($keepOnlyCharacters)
|
||||||
|
{
|
||||||
$string = preg_replace("/[^A-Za-z ]/", '', $string);
|
$string = preg_replace("/[^A-Za-z ]/", '', $string);
|
||||||
|
}
|
||||||
|
// keep both numbers and characters
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$string = preg_replace("/[^A-Za-z0-9 ]/", '', $string);
|
||||||
|
}
|
||||||
// select final adaptations
|
// select final adaptations
|
||||||
if ($type === 'L' || $type === 'strtolower')
|
if ($type === 'L' || $type === 'strtolower')
|
||||||
{
|
{
|
||||||
|
@ -47,6 +47,20 @@
|
|||||||
/>
|
/>
|
||||||
<field type="spacer" name="spacerHistory" hr="true" />
|
<field type="spacer" name="spacerHistory" hr="true" />
|
||||||
|
|
||||||
|
<!-- Editor Field. Type: Plugins. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="plugins"
|
||||||
|
name="editor"
|
||||||
|
label="COM_COMPONENTBUILDER_CONFIG_EDITOR_LABEL"
|
||||||
|
default="none"
|
||||||
|
description="COM_COMPONENTBUILDER_CONFIG_EDITOR_DESCRIPTION"
|
||||||
|
folder="editors"
|
||||||
|
filter="cmd"
|
||||||
|
/>
|
||||||
|
<!-- No Manual Options Were Added In Field Settings. -->
|
||||||
|
|
||||||
|
<!-- Spacer_hr_one Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||||
|
<field type="spacer" name="spacer_hr_one" hr="true" class="spacer_hr_one" />
|
||||||
<!-- Manage_jcb_package_directories Field. Type: Radio. (joomla) -->
|
<!-- Manage_jcb_package_directories Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -79,8 +93,8 @@
|
|||||||
<option value="jcb">
|
<option value="jcb">
|
||||||
COM_COMPONENTBUILDER_CONFIG_JCB_COMMUNITY_PACKAGES</option>
|
COM_COMPONENTBUILDER_CONFIG_JCB_COMMUNITY_PACKAGES</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- Spacer_hr_one Field. Type: Spacer. A None Database Field. (joomla) -->
|
<!-- Spacer_hr_two Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||||
<field type="spacer" name="spacer_hr_one" hr="true" class="spacer_hr_one" />
|
<field type="spacer" name="spacer_hr_two" hr="true" class="spacer_hr_two" />
|
||||||
<!-- Add_menu_prefix Field. Type: Radio. (joomla) -->
|
<!-- Add_menu_prefix Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -111,8 +125,8 @@
|
|||||||
autocomplete="on"
|
autocomplete="on"
|
||||||
showon="add_menu_prefix:1"
|
showon="add_menu_prefix:1"
|
||||||
/>
|
/>
|
||||||
<!-- Spacer_hr_two Field. Type: Spacer. A None Database Field. (joomla) -->
|
<!-- Spacer_hr_three Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||||
<field type="spacer" name="spacer_hr_two" hr="true" class="spacer_hr_two" />
|
<field type="spacer" name="spacer_hr_three" hr="true" class="spacer_hr_three" />
|
||||||
<!-- Minify Field. Type: Radio. (joomla) -->
|
<!-- Minify Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -127,8 +141,8 @@
|
|||||||
<option value="0">
|
<option value="0">
|
||||||
COM_COMPONENTBUILDER_CONFIG_NO</option>
|
COM_COMPONENTBUILDER_CONFIG_NO</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- Spacer_hr_three Field. Type: Spacer. A None Database Field. (joomla) -->
|
<!-- Spacer_hr_four Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||||
<field type="spacer" name="spacer_hr_three" hr="true" class="spacer_hr_three" />
|
<field type="spacer" name="spacer_hr_four" hr="true" class="spacer_hr_four" />
|
||||||
<!-- Set_browser_storage Field. Type: Radio. (joomla) -->
|
<!-- Set_browser_storage Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -180,8 +194,8 @@
|
|||||||
<option value="0">
|
<option value="0">
|
||||||
COM_COMPONENTBUILDER_CONFIG_NEVER_UPDATE</option>
|
COM_COMPONENTBUILDER_CONFIG_NEVER_UPDATE</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- Spacer_hr_four Field. Type: Spacer. A None Database Field. (joomla) -->
|
<!-- Spacer_hr_five Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||||
<field type="spacer" name="spacer_hr_four" hr="true" class="spacer_hr_four" />
|
<field type="spacer" name="spacer_hr_five" hr="true" class="spacer_hr_five" />
|
||||||
<!-- Note_language_global Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_language_global Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_language_global" label="COM_COMPONENTBUILDER_CONFIG_NOTE_LANGUAGE_GLOBAL_LABEL" description="COM_COMPONENTBUILDER_CONFIG_NOTE_LANGUAGE_GLOBAL_DESCRIPTION" heading="h4" class="alert alert-info note_language_global" />
|
<field type="note" name="note_language_global" label="COM_COMPONENTBUILDER_CONFIG_NOTE_LANGUAGE_GLOBAL_LABEL" description="COM_COMPONENTBUILDER_CONFIG_NOTE_LANGUAGE_GLOBAL_DESCRIPTION" heading="h4" class="alert alert-info note_language_global" />
|
||||||
<!-- Language Field. Type: Lang. (custom) -->
|
<!-- Language Field. Type: Lang. (custom) -->
|
||||||
@ -208,8 +222,8 @@
|
|||||||
max="100"
|
max="100"
|
||||||
step="10"
|
step="10"
|
||||||
/>
|
/>
|
||||||
<!-- Spacer_hr_five Field. Type: Spacer. A None Database Field. (joomla) -->
|
<!-- Spacer_hr_six Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||||
<field type="spacer" name="spacer_hr_five" hr="true" class="spacer_hr_five" />
|
<field type="spacer" name="spacer_hr_six" hr="true" class="spacer_hr_six" />
|
||||||
<!-- Compiler_field_builder_type Field. Type: List. (joomla) -->
|
<!-- Compiler_field_builder_type Field. Type: List. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="list"
|
type="list"
|
||||||
@ -226,8 +240,8 @@
|
|||||||
<option value="2">
|
<option value="2">
|
||||||
COM_COMPONENTBUILDER_CONFIG_SIMPLEXMLELEMENT_CLASS</option>
|
COM_COMPONENTBUILDER_CONFIG_SIMPLEXMLELEMENT_CLASS</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- Spacer_hr_six Field. Type: Spacer. A None Database Field. (joomla) -->
|
<!-- Spacer_hr_seven Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||||
<field type="spacer" name="spacer_hr_six" hr="true" class="spacer_hr_six" />
|
<field type="spacer" name="spacer_hr_seven" hr="true" class="spacer_hr_seven" />
|
||||||
<!-- Api Field. Type: User. (joomla) -->
|
<!-- Api Field. Type: User. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="user"
|
type="user"
|
||||||
@ -235,8 +249,8 @@
|
|||||||
label="COM_COMPONENTBUILDER_CONFIG_API_LABEL"
|
label="COM_COMPONENTBUILDER_CONFIG_API_LABEL"
|
||||||
description="COM_COMPONENTBUILDER_CONFIG_API_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CONFIG_API_DESCRIPTION"
|
||||||
/>
|
/>
|
||||||
<!-- Spacer_hr_seven Field. Type: Spacer. A None Database Field. (joomla) -->
|
<!-- Spacer_hr_eight Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||||
<field type="spacer" name="spacer_hr_seven" hr="true" class="spacer_hr_seven" />
|
<field type="spacer" name="spacer_hr_eight" hr="true" class="spacer_hr_eight" />
|
||||||
<field name="autorTitle"
|
<field name="autorTitle"
|
||||||
type="spacer"
|
type="spacer"
|
||||||
label="COM_COMPONENTBUILDER_CONFIG_AUTHOR"
|
label="COM_COMPONENTBUILDER_CONFIG_AUTHOR"
|
||||||
@ -1017,6 +1031,7 @@
|
|||||||
required="false"
|
required="false"
|
||||||
filter="url"
|
filter="url"
|
||||||
validated="url"
|
validated="url"
|
||||||
|
scheme="http,https"
|
||||||
message="COM_COMPONENTBUILDER_CONFIG_EXPORT_BUY_LINK_MESSAGE"
|
message="COM_COMPONENTBUILDER_CONFIG_EXPORT_BUY_LINK_MESSAGE"
|
||||||
hint="COM_COMPONENTBUILDER_CONFIG_EXPORT_BUY_LINK_HINT"
|
hint="COM_COMPONENTBUILDER_CONFIG_EXPORT_BUY_LINK_HINT"
|
||||||
/>
|
/>
|
||||||
|
@ -112,6 +112,7 @@ class ComponentbuilderController extends JControllerLegacy
|
|||||||
'help_document' => 'help_documents',
|
'help_document' => 'help_documents',
|
||||||
'admin_fields' => 'admins_fields',
|
'admin_fields' => 'admins_fields',
|
||||||
'admin_fields_conditions' => 'admins_fields_conditions',
|
'admin_fields_conditions' => 'admins_fields_conditions',
|
||||||
|
'admin_fields_relations' => 'admins_fields_relations',
|
||||||
'component_admin_views' => 'components_admin_views',
|
'component_admin_views' => 'components_admin_views',
|
||||||
'component_site_views' => 'components_site_views',
|
'component_site_views' => 'components_site_views',
|
||||||
'component_custom_admin_views' => 'components_custom_admin_views',
|
'component_custom_admin_views' => 'components_custom_admin_views',
|
||||||
|
312
admin/controllers/admin_fields_relations.php
Normal file
312
admin/controllers/admin_fields_relations.php
Normal file
@ -0,0 +1,312 @@
|
|||||||
|
<?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 - 2018 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 Joomla controllerform library
|
||||||
|
jimport('joomla.application.component.controllerform');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Admin_fields_relations Controller
|
||||||
|
*/
|
||||||
|
class ComponentbuilderControllerAdmin_fields_relations extends JControllerForm
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Current or most recently performed task.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 12.2
|
||||||
|
* @note Replaces _task.
|
||||||
|
*/
|
||||||
|
protected $task;
|
||||||
|
|
||||||
|
public function __construct($config = array())
|
||||||
|
{
|
||||||
|
$this->view_list = 'Admins_fields_relations'; // safeguard for setting the return view listing to the main view.
|
||||||
|
parent::__construct($config);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method override to check if you can add a new record.
|
||||||
|
*
|
||||||
|
* @param array $data An array of input data.
|
||||||
|
*
|
||||||
|
* @return boolean
|
||||||
|
*
|
||||||
|
* @since 1.6
|
||||||
|
*/
|
||||||
|
protected function allowAdd($data = array())
|
||||||
|
{
|
||||||
|
// Access check.
|
||||||
|
$access = JFactory::getUser()->authorise('admin_fields_relations.access', 'com_componentbuilder');
|
||||||
|
if (!$access)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// In the absense of better information, revert to the component permissions.
|
||||||
|
return JFactory::getUser()->authorise('admin_fields_relations.create', $this->option);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method override to check if you can edit an existing record.
|
||||||
|
*
|
||||||
|
* @param array $data An array of input data.
|
||||||
|
* @param string $key The name of the key for the primary key.
|
||||||
|
*
|
||||||
|
* @return boolean
|
||||||
|
*
|
||||||
|
* @since 1.6
|
||||||
|
*/
|
||||||
|
protected function allowEdit($data = array(), $key = 'id')
|
||||||
|
{
|
||||||
|
// get user object.
|
||||||
|
$user = JFactory::getUser();
|
||||||
|
// get record id.
|
||||||
|
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||||
|
|
||||||
|
|
||||||
|
// Access check.
|
||||||
|
$access = ($user->authorise('admin_fields_relations.access', 'com_componentbuilder.admin_fields_relations.' . (int) $recordId) && $user->authorise('admin_fields_relations.access', 'com_componentbuilder'));
|
||||||
|
if (!$access)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($recordId)
|
||||||
|
{
|
||||||
|
// The record has been set. Check the record permissions.
|
||||||
|
$permission = $user->authorise('admin_fields_relations.edit', 'com_componentbuilder.admin_fields_relations.' . (int) $recordId);
|
||||||
|
if (!$permission)
|
||||||
|
{
|
||||||
|
if ($user->authorise('admin_fields_relations.edit.own', 'com_componentbuilder.admin_fields_relations.' . $recordId))
|
||||||
|
{
|
||||||
|
// Now test the owner is the user.
|
||||||
|
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||||
|
if (empty($ownerId))
|
||||||
|
{
|
||||||
|
// Need to do a lookup from the model.
|
||||||
|
$record = $this->getModel()->getItem($recordId);
|
||||||
|
|
||||||
|
if (empty($record))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
$ownerId = $record->created_by;
|
||||||
|
}
|
||||||
|
|
||||||
|
// If the owner matches 'me' then allow.
|
||||||
|
if ($ownerId == $user->id)
|
||||||
|
{
|
||||||
|
if ($user->authorise('admin_fields_relations.edit.own', 'com_componentbuilder'))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Since there is no permission, revert to the component permissions.
|
||||||
|
return $user->authorise('admin_fields_relations.edit', $this->option);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the URL arguments to append to an item redirect.
|
||||||
|
*
|
||||||
|
* @param integer $recordId The primary key id for the item.
|
||||||
|
* @param string $urlVar The name of the URL variable for the id.
|
||||||
|
*
|
||||||
|
* @return string The arguments to append to the redirect URL.
|
||||||
|
*
|
||||||
|
* @since 12.2
|
||||||
|
*/
|
||||||
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
|
{
|
||||||
|
$tmpl = $this->input->get('tmpl');
|
||||||
|
$layout = $this->input->get('layout', 'edit', 'string');
|
||||||
|
|
||||||
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
|
// Setup redirect info.
|
||||||
|
|
||||||
|
$append = '';
|
||||||
|
|
||||||
|
if ($refid)
|
||||||
|
{
|
||||||
|
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
|
||||||
|
}
|
||||||
|
elseif ($ref)
|
||||||
|
{
|
||||||
|
$append .= '&ref='.(string)$ref;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($tmpl)
|
||||||
|
{
|
||||||
|
$append .= '&tmpl=' . $tmpl;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($layout)
|
||||||
|
{
|
||||||
|
$append .= '&layout=' . $layout;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($recordId)
|
||||||
|
{
|
||||||
|
$append .= '&' . $urlVar . '=' . $recordId;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $append;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to run batch operations.
|
||||||
|
*
|
||||||
|
* @param object $model The model.
|
||||||
|
*
|
||||||
|
* @return boolean True if successful, false otherwise and internal error is set.
|
||||||
|
*
|
||||||
|
* @since 2.5
|
||||||
|
*/
|
||||||
|
public function batch($model = null)
|
||||||
|
{
|
||||||
|
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
|
||||||
|
|
||||||
|
// Set the model
|
||||||
|
$model = $this->getModel('Admin_fields_relations', '', array());
|
||||||
|
|
||||||
|
// Preset the redirect
|
||||||
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=admins_fields_relations' . $this->getRedirectToListAppend(), false));
|
||||||
|
|
||||||
|
return parent::batch($model);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to cancel an edit.
|
||||||
|
*
|
||||||
|
* @param string $key The name of the primary key of the URL variable.
|
||||||
|
*
|
||||||
|
* @return boolean True if access level checks pass, false otherwise.
|
||||||
|
*
|
||||||
|
* @since 12.2
|
||||||
|
*/
|
||||||
|
public function cancel($key = null)
|
||||||
|
{
|
||||||
|
// get the referal details
|
||||||
|
$this->ref = $this->input->get('ref', 0, 'word');
|
||||||
|
$this->refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
|
$cancel = parent::cancel($key);
|
||||||
|
|
||||||
|
if ($cancel)
|
||||||
|
{
|
||||||
|
if ($this->refid)
|
||||||
|
{
|
||||||
|
$redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid;
|
||||||
|
|
||||||
|
// Redirect to the item screen.
|
||||||
|
$this->setRedirect(
|
||||||
|
JRoute::_(
|
||||||
|
'index.php?option=' . $this->option . $redirect, false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
elseif ($this->ref)
|
||||||
|
{
|
||||||
|
$redirect = '&view='.(string)$this->ref;
|
||||||
|
|
||||||
|
// Redirect to the list screen.
|
||||||
|
$this->setRedirect(
|
||||||
|
JRoute::_(
|
||||||
|
'index.php?option=' . $this->option . $redirect, false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Redirect to the items screen.
|
||||||
|
$this->setRedirect(
|
||||||
|
JRoute::_(
|
||||||
|
'index.php?option=' . $this->option . '&view=' . $this->view_list, false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return $cancel;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to save a record.
|
||||||
|
*
|
||||||
|
* @param string $key The name of the primary key of the URL variable.
|
||||||
|
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
|
||||||
|
*
|
||||||
|
* @return boolean True if successful, false otherwise.
|
||||||
|
*
|
||||||
|
* @since 12.2
|
||||||
|
*/
|
||||||
|
public function save($key = null, $urlVar = null)
|
||||||
|
{
|
||||||
|
// get the referal details
|
||||||
|
$this->ref = $this->input->get('ref', 0, 'word');
|
||||||
|
$this->refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
|
if ($this->ref || $this->refid)
|
||||||
|
{
|
||||||
|
// to make sure the item is checkedin on redirect
|
||||||
|
$this->task = 'save';
|
||||||
|
}
|
||||||
|
|
||||||
|
$saved = parent::save($key, $urlVar);
|
||||||
|
|
||||||
|
if ($this->refid && $saved)
|
||||||
|
{
|
||||||
|
$redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid;
|
||||||
|
|
||||||
|
// Redirect to the item screen.
|
||||||
|
$this->setRedirect(
|
||||||
|
JRoute::_(
|
||||||
|
'index.php?option=' . $this->option . $redirect, false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
elseif ($this->ref && $saved)
|
||||||
|
{
|
||||||
|
$redirect = '&view='.(string)$this->ref;
|
||||||
|
|
||||||
|
// Redirect to the list screen.
|
||||||
|
$this->setRedirect(
|
||||||
|
JRoute::_(
|
||||||
|
'index.php?option=' . $this->option . $redirect, false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return $saved;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Function that allows child controller access to model data
|
||||||
|
* after the data has been saved.
|
||||||
|
*
|
||||||
|
* @param JModel &$model The data model object.
|
||||||
|
* @param array $validData The validated data.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
protected function postSaveHook(JModelLegacy $model, $validData = array())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -318,7 +318,8 @@ class ComponentbuilderControllerAdmin_view extends JControllerForm
|
|||||||
// linked tables to update
|
// linked tables to update
|
||||||
$_tablesArray = array(
|
$_tablesArray = array(
|
||||||
'admin_fields',
|
'admin_fields',
|
||||||
'admin_fields_conditions'
|
'admin_fields_conditions',
|
||||||
|
'admin_fields_relations'
|
||||||
);
|
);
|
||||||
foreach($_tablesArray as $_updateTable)
|
foreach($_tablesArray as $_updateTable)
|
||||||
{
|
{
|
||||||
|
34
admin/controllers/admins_fields_relations.php
Normal file
34
admin/controllers/admins_fields_relations.php
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<?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 - 2018 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 Joomla controlleradmin library
|
||||||
|
jimport('joomla.application.component.controlleradmin');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Admins_fields_relations Controller
|
||||||
|
*/
|
||||||
|
class ComponentbuilderControllerAdmins_fields_relations extends JControllerAdmin
|
||||||
|
{
|
||||||
|
protected $text_prefix = 'COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS';
|
||||||
|
/**
|
||||||
|
* Proxy for getModel.
|
||||||
|
* @since 2.5
|
||||||
|
*/
|
||||||
|
public function getModel($name = 'Admin_fields_relations', $prefix = 'ComponentbuilderModel', $config = array())
|
||||||
|
{
|
||||||
|
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
|
||||||
|
|
||||||
|
return $model;
|
||||||
|
}
|
||||||
|
}
|
@ -53,6 +53,7 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
|
|||||||
$this->registerTask('checkRuleName', 'ajax');
|
$this->registerTask('checkRuleName', 'ajax');
|
||||||
$this->registerTask('fieldOptions', 'ajax');
|
$this->registerTask('fieldOptions', 'ajax');
|
||||||
$this->registerTask('getFieldPropertyDesc', 'ajax');
|
$this->registerTask('getFieldPropertyDesc', 'ajax');
|
||||||
|
$this->registerTask('getCodeGlueOptions', 'ajax');
|
||||||
$this->registerTask('snippetDetails', 'ajax');
|
$this->registerTask('snippetDetails', 'ajax');
|
||||||
$this->registerTask('setSnippetGithub', 'ajax');
|
$this->registerTask('setSnippetGithub', 'ajax');
|
||||||
$this->registerTask('getSnippets', 'ajax');
|
$this->registerTask('getSnippets', 'ajax');
|
||||||
@ -1032,6 +1033,47 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'getCodeGlueOptions':
|
||||||
|
try
|
||||||
|
{
|
||||||
|
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
|
||||||
|
$listfieldValue = $jinput->get('listfield', NULL, 'INT');
|
||||||
|
$joinfieldsValue = $jinput->get('joinfields', NULL, 'STRING');
|
||||||
|
$typeValue = $jinput->get('type', NULL, 'INT');
|
||||||
|
$areaValue = $jinput->get('area', NULL, 'INT');
|
||||||
|
if($listfieldValue && $joinfieldsValue && $typeValue && $areaValue && $user->id != 0)
|
||||||
|
{
|
||||||
|
$result = $this->getModel('ajax')->getCodeGlueOptions($listfieldValue, $joinfieldsValue, $typeValue, $areaValue);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$result = false;
|
||||||
|
}
|
||||||
|
if($callback = $jinput->get('callback', null, 'CMD'))
|
||||||
|
{
|
||||||
|
echo $callback . "(".json_encode($result).");";
|
||||||
|
}
|
||||||
|
elseif($returnRaw)
|
||||||
|
{
|
||||||
|
echo json_encode($result);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo "(".json_encode($result).");";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(Exception $e)
|
||||||
|
{
|
||||||
|
if($callback = $jinput->get('callback', null, 'CMD'))
|
||||||
|
{
|
||||||
|
echo $callback."(".json_encode($e).");";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo "(".json_encode($e).");";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 'snippetDetails':
|
case 'snippetDetails':
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -35,6 +35,31 @@ class ComponentbuilderControllerJoomla_component extends JControllerForm
|
|||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function refresh()
|
||||||
|
{
|
||||||
|
// Check for request forgeries
|
||||||
|
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||||
|
// check if import is allowed for this user.
|
||||||
|
$user = JFactory::getUser();
|
||||||
|
if ($user->authorise('joomla_component.import', 'com_componentbuilder') && $user->authorise('core.import', 'com_componentbuilder'))
|
||||||
|
{
|
||||||
|
$session = JFactory::getSession();
|
||||||
|
$session->set('backto_VDM_IMPORT', 'joomla_components');
|
||||||
|
$session->set('dataType_VDM_IMPORTINTO', 'smart_package');
|
||||||
|
// clear the session
|
||||||
|
ComponentbuilderHelper::set('vdmGithubPackages', null);
|
||||||
|
ComponentbuilderHelper::set('communityGithubPackages', null);
|
||||||
|
// Redirect to import view.
|
||||||
|
$message = JText::_('COM_COMPONENTBUILDER_YOU_CAN_NOW_SELECT_THE_COMPONENT_BZIPB_PACKAGE_YOU_WOULD_LIKE_TO_IMPORTBR_SMALLPLEASE_NOTE_THAT_SMART_COMPONENT_IMPORT_ONLY_WORKS_WITH_THE_FOLLOWING_FORMAT_BZIPBSMALL');
|
||||||
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=import_joomla_components&target=smartPackage', false), $message);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// Redirect to the list screen with error.
|
||||||
|
$message = JText::_('COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_IMPORT_A_COMPONENT_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_HELP');
|
||||||
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_components', false), $message, 'error');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method override to check if you can add a new record.
|
* Method override to check if you can add a new record.
|
||||||
*
|
*
|
||||||
|
@ -355,6 +355,8 @@ class ComponentbuilderControllerJoomla_components extends JControllerAdmin
|
|||||||
|
|
||||||
public function cloner()
|
public function cloner()
|
||||||
{
|
{
|
||||||
|
// Check for request forgeries
|
||||||
|
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||||
// Get the model
|
// Get the model
|
||||||
$model = $this->getModel('Joomla_components');
|
$model = $this->getModel('Joomla_components');
|
||||||
// check if export is allowed for this user.
|
// check if export is allowed for this user.
|
||||||
|
@ -25,7 +25,6 @@ class Compiler extends Infusion
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
|
|
||||||
private $tempPath;
|
private $tempPath;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -72,7 +71,7 @@ class Compiler extends Infusion
|
|||||||
// first remove the files and folders
|
// first remove the files and folders
|
||||||
$this->removeFolder($this->componentPath . '/site');
|
$this->removeFolder($this->componentPath . '/site');
|
||||||
// clear form component xml
|
// clear form component xml
|
||||||
$xmlPath = $this->componentPath . '/' . $this->fileContentStatic['###component###'] . '.xml';
|
$xmlPath = $this->componentPath . '/' . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . '.xml';
|
||||||
$componentXML = ComponentbuilderHelper::getFileContents($xmlPath);
|
$componentXML = ComponentbuilderHelper::getFileContents($xmlPath);
|
||||||
$textToSite = ComponentbuilderHelper::getBetween($componentXML, '<files folder="site">', '</files>');
|
$textToSite = ComponentbuilderHelper::getBetween($componentXML, '<files folder="site">', '</files>');
|
||||||
$textToSiteLang = ComponentbuilderHelper::getBetween($componentXML, '<languages folder="site">', '</languages>');
|
$textToSiteLang = ComponentbuilderHelper::getBetween($componentXML, '<languages folder="site">', '</languages>');
|
||||||
@ -155,7 +154,7 @@ class Compiler extends Infusion
|
|||||||
foreach ($mismatch as $string)
|
foreach ($mismatch as $string)
|
||||||
{
|
{
|
||||||
$constant = $this->langPrefix . '_' . ComponentbuilderHelper::safeString($string, 'U');
|
$constant = $this->langPrefix . '_' . ComponentbuilderHelper::safeString($string, 'U');
|
||||||
$this->app->enqueueMessage(JText::sprintf('The <b>Joomla.JText._(\'%s\')</b> language constant for <b>%s</b> does not have a corresponding <code>JText::script(\'%s\')</code> decalaration, please add it.', $constant, $string, $string), 'Warning');
|
$this->app->enqueueMessage(JText::sprintf('The <b>Joomla.JText._('%s')</b> language constant for <b>%s</b> does not have a corresponding <code>JText::script('%s')</code> decalaration, please add it.', $constant, $string, $string), 'Warning');
|
||||||
}
|
}
|
||||||
$this->app->enqueueMessage('<hr />', 'Warning');
|
$this->app->enqueueMessage('<hr />', 'Warning');
|
||||||
}
|
}
|
||||||
@ -215,28 +214,7 @@ class Compiler extends Infusion
|
|||||||
{
|
{
|
||||||
if (JFile::exists($static['path']))
|
if (JFile::exists($static['path']))
|
||||||
{
|
{
|
||||||
$this->fileContentStatic['###FILENAME###'] = $static['name'];
|
$this->setFileContent($static['name'], $static['path'], $bom);
|
||||||
$php = '';
|
|
||||||
if (ComponentbuilderHelper::checkFileType($static['name'], 'php'))
|
|
||||||
{
|
|
||||||
$php = "<?php\n";
|
|
||||||
}
|
|
||||||
$string = ComponentbuilderHelper::getFileContents($static['path']);
|
|
||||||
if (strpos($string, '###BOM###') !== false)
|
|
||||||
{
|
|
||||||
list($wast, $code) = explode('###BOM###', $string);
|
|
||||||
$string = $php . $bom . $code;
|
|
||||||
$answer = $this->setPlaceholders($string, $this->fileContentStatic, 3);
|
|
||||||
// add to zip array
|
|
||||||
$this->writeFile($static['path'], $answer);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$answer = $this->setPlaceholders($string, $this->fileContentStatic, 3);
|
|
||||||
// add to zip array
|
|
||||||
$this->writeFile($static['path'], $answer);
|
|
||||||
}
|
|
||||||
$this->lineCount = $this->lineCount + substr_count($answer, PHP_EOL);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// now we do the dynamic files
|
// now we do the dynamic files
|
||||||
@ -250,32 +228,7 @@ class Compiler extends Infusion
|
|||||||
{
|
{
|
||||||
if (JFile::exists($file['path']))
|
if (JFile::exists($file['path']))
|
||||||
{
|
{
|
||||||
$this->fileContentStatic['###FILENAME###'] = $file['name'];
|
$this->setFileContent($file['name'], $file['path'], $bom, $file['view']);
|
||||||
// do some weird stuff to improve the verion and dates being added to the license
|
|
||||||
$this->fixLicenseValues($file);
|
|
||||||
$php = '';
|
|
||||||
if (ComponentbuilderHelper::checkFileType($file['name'], 'php'))
|
|
||||||
{
|
|
||||||
$php = "<?php\n";
|
|
||||||
}
|
|
||||||
$string = ComponentbuilderHelper::getFileContents($file['path']);
|
|
||||||
if (strpos($string, '###BOM###') !== false)
|
|
||||||
{
|
|
||||||
list($bin, $code) = explode('###BOM###', $string);
|
|
||||||
$string = $php . $bom . $code;
|
|
||||||
$answer = $this->setPlaceholders($string, $this->fileContentStatic, 3);
|
|
||||||
$answer = $this->setPlaceholders($answer, $this->fileContentDynamic[$view], 3);
|
|
||||||
// add to zip array
|
|
||||||
$this->writeFile($file['path'], $answer);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$answer = $this->setPlaceholders($string, $this->fileContentStatic, 3);
|
|
||||||
$answer = $this->setPlaceholders($answer, $this->fileContentDynamic[$view], 3);
|
|
||||||
// add to zip array
|
|
||||||
$this->writeFile($file['path'], $answer);
|
|
||||||
}
|
|
||||||
$this->lineCount = $this->lineCount + substr_count($answer, PHP_EOL);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -290,6 +243,43 @@ class Compiler extends Infusion
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set the file content
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
protected function setFileContent(&$name, &$path, &$bom, $view = null)
|
||||||
|
{
|
||||||
|
// set the file name
|
||||||
|
$this->fileContentStatic[$this->hhh . 'FILENAME' . $this->hhh] = $name;
|
||||||
|
// check if the file should get PHP opening
|
||||||
|
$php = '';
|
||||||
|
if (ComponentbuilderHelper::checkFileType($name, 'php'))
|
||||||
|
{
|
||||||
|
$php = "<?php\n";
|
||||||
|
}
|
||||||
|
// get content of the file
|
||||||
|
$string = ComponentbuilderHelper::getFileContents($path);
|
||||||
|
// see if we should add a BOM
|
||||||
|
if (strpos($string, $this->hhh . 'BOM' . $this->hhh) !== false)
|
||||||
|
{
|
||||||
|
list($wast, $code) = explode($this->hhh . 'BOM' . $this->hhh, $string);
|
||||||
|
$string = $php . $bom . $code;
|
||||||
|
}
|
||||||
|
// set the answer
|
||||||
|
$answer = $this->setPlaceholders($string, $this->fileContentStatic, 3);
|
||||||
|
// set the dynamic answer
|
||||||
|
if ($view)
|
||||||
|
{
|
||||||
|
$answer = $this->setPlaceholders($answer, $this->fileContentDynamic[$view], 3);
|
||||||
|
}
|
||||||
|
// add answer back to file
|
||||||
|
$this->writeFile($path, $answer);
|
||||||
|
// count the file lines
|
||||||
|
$this->lineCount = $this->lineCount + substr_count($answer, PHP_EOL);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* move the local update server xml file to a remote ftp server
|
* move the local update server xml file to a remote ftp server
|
||||||
*
|
*
|
||||||
@ -321,7 +311,7 @@ class Compiler extends Infusion
|
|||||||
{
|
{
|
||||||
foreach ($data['config'] as $key => $value)
|
foreach ($data['config'] as $key => $value)
|
||||||
{
|
{
|
||||||
if ('###VERSION###' === $key)
|
if ($this->hhh . 'VERSION' . $this->hhh === $key)
|
||||||
{
|
{
|
||||||
// hmm we sould in some way make it known that this version number
|
// hmm we sould in some way make it known that this version number
|
||||||
// is not in relation the the project but to the file only... any ideas?
|
// is not in relation the the project but to the file only... any ideas?
|
||||||
@ -340,9 +330,9 @@ class Compiler extends Infusion
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// else insure to reset to global
|
// else insure to reset to global
|
||||||
$this->fileContentStatic['###CREATIONDATE###'] = $this->fileContentStatic['###CREATIONDATE###GLOBAL'];
|
$this->fileContentStatic[$this->hhh . 'CREATIONDATE' . $this->hhh] = $this->fileContentStatic[$this->hhh . 'CREATIONDATE' . $this->hhh . 'GLOBAL'];
|
||||||
$this->fileContentStatic['###BUILDDATE###'] = $this->fileContentStatic['###BUILDDATE###GLOBAL'];
|
$this->fileContentStatic[$this->hhh . 'BUILDDATE' . $this->hhh] = $this->fileContentStatic[$this->hhh . 'BUILDDATE' . $this->hhh . 'GLOBAL'];
|
||||||
$this->fileContentStatic['###VERSION###'] = $this->fileContentStatic['###VERSION###GLOBAL'];
|
$this->fileContentStatic[$this->hhh . 'VERSION' . $this->hhh] = $this->fileContentStatic[$this->hhh . 'VERSION' . $this->hhh . 'GLOBAL'];
|
||||||
}
|
}
|
||||||
|
|
||||||
// set all global numbers
|
// set all global numbers
|
||||||
@ -399,7 +389,7 @@ class Compiler extends Infusion
|
|||||||
private function setReadMe($path)
|
private function setReadMe($path)
|
||||||
{
|
{
|
||||||
// set readme data if not set already
|
// set readme data if not set already
|
||||||
if (!isset($this->fileContentStatic['###LINE_COUNT###']) || $this->fileContentStatic['###LINE_COUNT###'] != $this->lineCount)
|
if (!isset($this->fileContentStatic[$this->hhh . 'LINE_COUNT' . $this->hhh]) || $this->fileContentStatic[$this->hhh . 'LINE_COUNT' . $this->hhh] != $this->lineCount)
|
||||||
{
|
{
|
||||||
$this->buildReadMeData();
|
$this->buildReadMeData();
|
||||||
}
|
}
|
||||||
@ -414,39 +404,39 @@ class Compiler extends Infusion
|
|||||||
private function buildReadMeData()
|
private function buildReadMeData()
|
||||||
{
|
{
|
||||||
// set some defaults
|
// set some defaults
|
||||||
$this->fileContentStatic['###LINE_COUNT###'] = $this->lineCount;
|
$this->fileContentStatic[$this->hhh . 'LINE_COUNT' . $this->hhh] = $this->lineCount;
|
||||||
$this->fileContentStatic['###FIELD_COUNT###'] = $this->fieldCount;
|
$this->fileContentStatic[$this->hhh . 'FIELD_COUNT' . $this->hhh] = $this->fieldCount;
|
||||||
$this->fileContentStatic['###FILE_COUNT###'] = $this->fileCount;
|
$this->fileContentStatic[$this->hhh . 'FILE_COUNT' . $this->hhh] = $this->fileCount;
|
||||||
$this->fileContentStatic['###FOLDER_COUNT###'] = $this->folderCount;
|
$this->fileContentStatic[$this->hhh . 'FOLDER_COUNT' . $this->hhh] = $this->folderCount;
|
||||||
$this->fileContentStatic['###PAGE_COUNT###'] = $this->pageCount;
|
$this->fileContentStatic[$this->hhh . 'PAGE_COUNT' . $this->hhh] = $this->pageCount;
|
||||||
$this->fileContentStatic['###folders###'] = $this->folderSeconds;
|
$this->fileContentStatic[$this->hhh . 'folders' . $this->hhh] = $this->folderSeconds;
|
||||||
$this->fileContentStatic['###foldersSeconds###'] = $this->folderSeconds;
|
$this->fileContentStatic[$this->hhh . 'foldersSeconds' . $this->hhh] = $this->folderSeconds;
|
||||||
$this->fileContentStatic['###files###'] = $this->fileSeconds;
|
$this->fileContentStatic[$this->hhh . 'files' . $this->hhh] = $this->fileSeconds;
|
||||||
$this->fileContentStatic['###filesSeconds###'] = $this->fileSeconds;
|
$this->fileContentStatic[$this->hhh . 'filesSeconds' . $this->hhh] = $this->fileSeconds;
|
||||||
$this->fileContentStatic['###lines###'] = $this->lineSeconds;
|
$this->fileContentStatic[$this->hhh . 'lines' . $this->hhh] = $this->lineSeconds;
|
||||||
$this->fileContentStatic['###linesSeconds###'] = $this->lineSeconds;
|
$this->fileContentStatic[$this->hhh . 'linesSeconds' . $this->hhh] = $this->lineSeconds;
|
||||||
$this->fileContentStatic['###seconds###'] = $this->actualSeconds;
|
$this->fileContentStatic[$this->hhh . 'seconds' . $this->hhh] = $this->actualSeconds;
|
||||||
$this->fileContentStatic['###actualSeconds###'] = $this->actualSeconds;
|
$this->fileContentStatic[$this->hhh . 'actualSeconds' . $this->hhh] = $this->actualSeconds;
|
||||||
$this->fileContentStatic['###totalHours###'] = $this->totalHours;
|
$this->fileContentStatic[$this->hhh . 'totalHours' . $this->hhh] = $this->totalHours;
|
||||||
$this->fileContentStatic['###totalDays###'] = $this->totalDays;
|
$this->fileContentStatic[$this->hhh . 'totalDays' . $this->hhh] = $this->totalDays;
|
||||||
$this->fileContentStatic['###debugging###'] = $this->secondsDebugging;
|
$this->fileContentStatic[$this->hhh . 'debugging' . $this->hhh] = $this->secondsDebugging;
|
||||||
$this->fileContentStatic['###secondsDebugging###'] = $this->secondsDebugging;
|
$this->fileContentStatic[$this->hhh . 'secondsDebugging' . $this->hhh] = $this->secondsDebugging;
|
||||||
$this->fileContentStatic['###planning###'] = $this->secondsPlanning;
|
$this->fileContentStatic[$this->hhh . 'planning' . $this->hhh] = $this->secondsPlanning;
|
||||||
$this->fileContentStatic['###secondsPlanning###'] = $this->secondsPlanning;
|
$this->fileContentStatic[$this->hhh . 'secondsPlanning' . $this->hhh] = $this->secondsPlanning;
|
||||||
$this->fileContentStatic['###mapping###'] = $this->secondsMapping;
|
$this->fileContentStatic[$this->hhh . 'mapping' . $this->hhh] = $this->secondsMapping;
|
||||||
$this->fileContentStatic['###secondsMapping###'] = $this->secondsMapping;
|
$this->fileContentStatic[$this->hhh . 'secondsMapping' . $this->hhh] = $this->secondsMapping;
|
||||||
$this->fileContentStatic['###office###'] = $this->secondsOffice;
|
$this->fileContentStatic[$this->hhh . 'office' . $this->hhh] = $this->secondsOffice;
|
||||||
$this->fileContentStatic['###secondsOffice###'] = $this->secondsOffice;
|
$this->fileContentStatic[$this->hhh . 'secondsOffice' . $this->hhh] = $this->secondsOffice;
|
||||||
$this->fileContentStatic['###actualTotalHours###'] = $this->actualTotalHours;
|
$this->fileContentStatic[$this->hhh . 'actualTotalHours' . $this->hhh] = $this->actualTotalHours;
|
||||||
$this->fileContentStatic['###actualTotalDays###'] = $this->actualTotalDays;
|
$this->fileContentStatic[$this->hhh . 'actualTotalDays' . $this->hhh] = $this->actualTotalDays;
|
||||||
$this->fileContentStatic['###debuggingHours###'] = $this->debuggingHours;
|
$this->fileContentStatic[$this->hhh . 'debuggingHours' . $this->hhh] = $this->debuggingHours;
|
||||||
$this->fileContentStatic['###planningHours###'] = $this->planningHours;
|
$this->fileContentStatic[$this->hhh . 'planningHours' . $this->hhh] = $this->planningHours;
|
||||||
$this->fileContentStatic['###mappingHours###'] = $this->mappingHours;
|
$this->fileContentStatic[$this->hhh . 'mappingHours' . $this->hhh] = $this->mappingHours;
|
||||||
$this->fileContentStatic['###officeHours###'] = $this->officeHours;
|
$this->fileContentStatic[$this->hhh . 'officeHours' . $this->hhh] = $this->officeHours;
|
||||||
$this->fileContentStatic['###actualHoursSpent###'] = $this->actualHoursSpent;
|
$this->fileContentStatic[$this->hhh . 'actualHoursSpent' . $this->hhh] = $this->actualHoursSpent;
|
||||||
$this->fileContentStatic['###actualDaysSpent###'] = $this->actualDaysSpent;
|
$this->fileContentStatic[$this->hhh . 'actualDaysSpent' . $this->hhh] = $this->actualDaysSpent;
|
||||||
$this->fileContentStatic['###projectWeekTime###'] = $this->projectWeekTime;
|
$this->fileContentStatic[$this->hhh . 'projectWeekTime' . $this->hhh] = $this->projectWeekTime;
|
||||||
$this->fileContentStatic['###projectMonthTime###'] = $this->projectMonthTime;
|
$this->fileContentStatic[$this->hhh . 'projectMonthTime' . $this->hhh] = $this->projectMonthTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function zipComponent()
|
private function zipComponent()
|
||||||
|
@ -18,6 +18,27 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
class Get
|
class Get
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The hash placeholder
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $hhh = '#' . '#' . '#';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The open bracket placeholder
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $bbb = '[' . '[' . '[';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The close bracket placeholder
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $ddd = ']' . ']' . ']';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The app
|
* The app
|
||||||
*
|
*
|
||||||
@ -466,6 +487,34 @@ class Get
|
|||||||
*/
|
*/
|
||||||
public $catOtherName = array();
|
public $catOtherName = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The field relations values
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
public $fieldRelations = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Default Fields
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
public $defaultFields = array('created', 'created_by', 'modified', 'modified_by', 'published', 'ordering', 'access', 'version', 'hits', 'id');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The list join fields
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
public $listJoinBuilder = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The list head over ride
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
public $listHeadOverRide = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The linked admin view tabs
|
* The linked admin view tabs
|
||||||
*
|
*
|
||||||
@ -620,7 +669,21 @@ class Get
|
|||||||
*/
|
*/
|
||||||
public $setTidyWarning = false;
|
public $setTidyWarning = false;
|
||||||
|
|
||||||
/* * *
|
/**
|
||||||
|
* Tab/spacer bucket (to speed-up the build)
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
public $tabSpacerBucket = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set tab/spacer
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $tabSpacer = "\t";
|
||||||
|
|
||||||
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -710,6 +773,26 @@ class Get
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the tab/space
|
||||||
|
*
|
||||||
|
* @param int $nr The number of tag/space
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function _t($nr)
|
||||||
|
{
|
||||||
|
// check if we already have the string
|
||||||
|
if (!isset($this->tabSpacerBucket[$nr]))
|
||||||
|
{
|
||||||
|
// get the string
|
||||||
|
$this->tabSpacerBucket[$nr] = str_repeat($this->tabSpacer, (int) $nr);
|
||||||
|
}
|
||||||
|
// return stored string
|
||||||
|
return $this->tabSpacerBucket[$nr];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the line number in comments
|
* Set the line number in comments
|
||||||
*
|
*
|
||||||
@ -834,12 +917,12 @@ class Get
|
|||||||
$component = ComponentbuilderHelper::convertRepeatableFields($component, $searchRepeatables, $updater);
|
$component = ComponentbuilderHelper::convertRepeatableFields($component, $searchRepeatables, $updater);
|
||||||
|
|
||||||
// set component place holders
|
// set component place holders
|
||||||
$this->placeholders['###component###'] = ComponentbuilderHelper::safeString($component->name_code);
|
$this->placeholders[$this->hhh . 'component' . $this->hhh] = ComponentbuilderHelper::safeString($component->name_code);
|
||||||
$this->placeholders['###Component###'] = ComponentbuilderHelper::safeString($component->name_code, 'F');
|
$this->placeholders[$this->hhh . 'Component' . $this->hhh] = ComponentbuilderHelper::safeString($component->name_code, 'F');
|
||||||
$this->placeholders['###COMPONENT###'] = ComponentbuilderHelper::safeString($component->name_code, 'U');
|
$this->placeholders[$this->hhh . 'COMPONENT' . $this->hhh] = ComponentbuilderHelper::safeString($component->name_code, 'U');
|
||||||
$this->placeholders['[[[component]]]'] = $this->placeholders['###component###'];
|
$this->placeholders[$this->bbb . 'component' . $this->ddd] = $this->placeholders[$this->hhh . 'component' . $this->hhh];
|
||||||
$this->placeholders['[[[Component]]]'] = $this->placeholders['###Component###'];
|
$this->placeholders[$this->bbb . 'Component' . $this->ddd] = $this->placeholders[$this->hhh . 'Component' . $this->hhh];
|
||||||
$this->placeholders['[[[COMPONENT]]]'] = $this->placeholders['###COMPONENT###'];
|
$this->placeholders[$this->bbb . 'COMPONENT' . $this->ddd] = $this->placeholders[$this->hhh . 'COMPONENT' . $this->hhh];
|
||||||
|
|
||||||
// set component sales name
|
// set component sales name
|
||||||
$component->sales_name = ComponentbuilderHelper::safeString($component->system_name);
|
$component->sales_name = ComponentbuilderHelper::safeString($component->system_name);
|
||||||
@ -873,6 +956,35 @@ class Get
|
|||||||
// set the uikit switch
|
// set the uikit switch
|
||||||
$this->uikit = $component->adduikit;
|
$this->uikit = $component->adduikit;
|
||||||
|
|
||||||
|
// set whmcs links if needed
|
||||||
|
if (1 == $component->add_license && (!isset($component->whmcs_buy_link) || !ComponentbuilderHelper::checkString($component->whmcs_buy_link)))
|
||||||
|
{
|
||||||
|
// update with the whmcs url
|
||||||
|
if (isset($component->whmcs_url) && ComponentbuilderHelper::checkString($component->whmcs_url))
|
||||||
|
{
|
||||||
|
$component->whmcs_buy_link = $component->whmcs_url;
|
||||||
|
}
|
||||||
|
// use the company website
|
||||||
|
elseif (isset($component->website) && ComponentbuilderHelper::checkString($component->website))
|
||||||
|
{
|
||||||
|
$component->whmcs_buy_link = $component->website;
|
||||||
|
$component->whmcs_url = rtrim($component->website, '/').'/whmcs';
|
||||||
|
}
|
||||||
|
// none set
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$component->whmcs_buy_link = '#';
|
||||||
|
$component->whmcs_url = '#';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// since the license details are not set clear
|
||||||
|
elseif (0 == $component->add_license)
|
||||||
|
{
|
||||||
|
$component->whmcs_key = '';
|
||||||
|
$component->whmcs_buy_link = '';
|
||||||
|
$component->whmcs_url = '';
|
||||||
|
}
|
||||||
|
|
||||||
// set the footable switch
|
// set the footable switch
|
||||||
if ($component->addfootable)
|
if ($component->addfootable)
|
||||||
{
|
{
|
||||||
@ -1319,18 +1431,21 @@ class Get
|
|||||||
'b.addfields',
|
'b.addfields',
|
||||||
'b.id',
|
'b.id',
|
||||||
'c.addconditions',
|
'c.addconditions',
|
||||||
'c.id'
|
'c.id',
|
||||||
|
'r.addrelations'
|
||||||
), array(
|
), array(
|
||||||
'addfields',
|
'addfields',
|
||||||
'addfields_id',
|
'addfields_id',
|
||||||
'addconditions',
|
'addconditions',
|
||||||
'addconditions_id'
|
'addconditions_id',
|
||||||
|
'addrelations'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$query->from('#__componentbuilder_admin_view AS a');
|
$query->from('#__componentbuilder_admin_view AS a');
|
||||||
$query->join('LEFT', $this->db->quoteName('#__componentbuilder_admin_fields', 'b') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('b.admin_view') . ')');
|
$query->join('LEFT', $this->db->quoteName('#__componentbuilder_admin_fields', 'b') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('b.admin_view') . ')');
|
||||||
$query->join('LEFT', $this->db->quoteName('#__componentbuilder_admin_fields_conditions', 'c') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('c.admin_view') . ')');
|
$query->join('LEFT', $this->db->quoteName('#__componentbuilder_admin_fields_conditions', 'c') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('c.admin_view') . ')');
|
||||||
|
$query->join('LEFT', $this->db->quoteName('#__componentbuilder_admin_fields_relations', 'r') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('r.admin_view') . ')');
|
||||||
$query->where($this->db->quoteName('a.id') . ' = ' . (int) $id);
|
$query->where($this->db->quoteName('a.id') . ' = ' . (int) $id);
|
||||||
|
|
||||||
// Reset the query using our newly populated query object.
|
// Reset the query using our newly populated query object.
|
||||||
@ -1376,18 +1491,18 @@ class Get
|
|||||||
$this->customScriptBuilder['token'][$name_single] = false;
|
$this->customScriptBuilder['token'][$name_single] = false;
|
||||||
$this->customScriptBuilder['token'][$name_list] = false;
|
$this->customScriptBuilder['token'][$name_list] = false;
|
||||||
// set some placeholders
|
// set some placeholders
|
||||||
$this->placeholders['###view###'] = ComponentbuilderHelper::safeString($name_single);
|
$this->placeholders[$this->hhh . 'view' . $this->hhh] = ComponentbuilderHelper::safeString($name_single);
|
||||||
$this->placeholders['###views###'] = ComponentbuilderHelper::safeString($name_list);
|
$this->placeholders[$this->hhh . 'views' . $this->hhh] = ComponentbuilderHelper::safeString($name_list);
|
||||||
$this->placeholders['###View###'] = ComponentbuilderHelper::safeString($name_single, 'F');
|
$this->placeholders[$this->hhh . 'View' . $this->hhh] = ComponentbuilderHelper::safeString($name_single, 'F');
|
||||||
$this->placeholders['###Views###'] = ComponentbuilderHelper::safeString($name_list, 'F');
|
$this->placeholders[$this->hhh . 'Views' . $this->hhh] = ComponentbuilderHelper::safeString($name_list, 'F');
|
||||||
$this->placeholders['###VIEW###'] = ComponentbuilderHelper::safeString($name_single, 'U');
|
$this->placeholders[$this->hhh . 'VIEW' . $this->hhh] = ComponentbuilderHelper::safeString($name_single, 'U');
|
||||||
$this->placeholders['###VIEWS###'] = ComponentbuilderHelper::safeString($name_list, 'U');
|
$this->placeholders[$this->hhh . 'VIEWS' . $this->hhh] = ComponentbuilderHelper::safeString($name_list, 'U');
|
||||||
$this->placeholders['[[[view]]]'] = $this->placeholders['###view###'];
|
$this->placeholders[$this->bbb . 'view' . $this->ddd] = $this->placeholders[$this->hhh . 'view' . $this->hhh];
|
||||||
$this->placeholders['[[[views]]]'] = $this->placeholders['###views###'];
|
$this->placeholders[$this->bbb . 'views' . $this->ddd] = $this->placeholders[$this->hhh . 'views' . $this->hhh];
|
||||||
$this->placeholders['[[[View]]]'] = $this->placeholders['###View###'];
|
$this->placeholders[$this->bbb . 'View' . $this->ddd] = $this->placeholders[$this->hhh . 'View' . $this->hhh];
|
||||||
$this->placeholders['[[[Views]]]'] = $this->placeholders['###Views###'];
|
$this->placeholders[$this->bbb . 'Views' . $this->ddd] = $this->placeholders[$this->hhh . 'Views' . $this->hhh];
|
||||||
$this->placeholders['[[[VIEW]]]'] = $this->placeholders['###VIEW###'];
|
$this->placeholders[$this->bbb . 'VIEW' . $this->ddd] = $this->placeholders[$this->hhh . 'VIEW' . $this->hhh];
|
||||||
$this->placeholders['[[[VIEWS]]]'] = $this->placeholders['###VIEWS###'];
|
$this->placeholders[$this->bbb . 'VIEWS' . $this->ddd] = $this->placeholders[$this->hhh . 'VIEWS' . $this->hhh];
|
||||||
// add the tables
|
// add the tables
|
||||||
$view->addtables = (isset($view->addtables) && ComponentbuilderHelper::checkJson($view->addtables)) ? json_decode($view->addtables, true) : null;
|
$view->addtables = (isset($view->addtables) && ComponentbuilderHelper::checkJson($view->addtables)) ? json_decode($view->addtables, true) : null;
|
||||||
if (ComponentbuilderHelper::checkArray($view->addtables))
|
if (ComponentbuilderHelper::checkArray($view->addtables))
|
||||||
@ -1432,21 +1547,9 @@ class Get
|
|||||||
$view->addfields = (isset($view->addfields) && ComponentbuilderHelper::checkJson($view->addfields)) ? json_decode($view->addfields, true) : null;
|
$view->addfields = (isset($view->addfields) && ComponentbuilderHelper::checkJson($view->addfields)) ? json_decode($view->addfields, true) : null;
|
||||||
if (ComponentbuilderHelper::checkArray($view->addfields))
|
if (ComponentbuilderHelper::checkArray($view->addfields))
|
||||||
{
|
{
|
||||||
// build update SQL
|
$ignoreFields = array();
|
||||||
if ($old_view = $this->getHistoryWatch('admin_fields', $view->addfields_id))
|
|
||||||
{
|
|
||||||
// add new fields were added
|
|
||||||
if (isset($old_view->addfields) && ComponentbuilderHelper::checkJson($old_view->addfields))
|
|
||||||
{
|
|
||||||
$this->setUpdateSQL(json_decode($old_view->addfields, true), $view->addfields, 'field', $name_single);
|
|
||||||
}
|
|
||||||
// clear this data
|
|
||||||
unset($old_view);
|
|
||||||
}
|
|
||||||
if (ComponentbuilderHelper::checkArray($view->addfields))
|
|
||||||
{
|
|
||||||
// load the field data
|
// load the field data
|
||||||
$view->fields = array_map(function($field) use($name_single, $name_list)
|
$view->fields = array_map(function($field) use($name_single, $name_list, &$ignoreFields)
|
||||||
{
|
{
|
||||||
// set hash
|
// set hash
|
||||||
static $hash = 123467890; // (TODO) I found this making duplicates
|
static $hash = 123467890; // (TODO) I found this making duplicates
|
||||||
@ -1458,12 +1561,37 @@ class Get
|
|||||||
$field['settings'] = $this->getFieldData($field['field'], $name_single, $name_list);
|
$field['settings'] = $this->getFieldData($field['field'], $name_single, $name_list);
|
||||||
// set real field name
|
// set real field name
|
||||||
$field['base_name'] = $this->getFieldName($field);
|
$field['base_name'] = $this->getFieldName($field);
|
||||||
|
// set code name for field type
|
||||||
|
$field['type_name'] = $this->getFieldType($field);
|
||||||
|
// check if value is array
|
||||||
|
if (isset($field['permission']) && !ComponentbuilderHelper::checkArray($field['permission']) && is_numeric($field['permission']) && $field['permission'] > 0)
|
||||||
|
{
|
||||||
|
$field['permission'] = array($field['permission']);
|
||||||
|
}
|
||||||
|
// check if this field is a default field OR
|
||||||
|
// check if this is none database related field
|
||||||
|
if (in_array($field['base_name'], $this->defaultFields) ||
|
||||||
|
ComponentbuilderHelper::fieldCheck($field['type_name'], 'spacer') ||
|
||||||
|
(isset($field['list']) && $field['list'] == 2)) // 2 = none database
|
||||||
|
{
|
||||||
|
$ignoreFields[$field['field']] = $field['field'];
|
||||||
|
}
|
||||||
// set unigue name keeper
|
// set unigue name keeper
|
||||||
$this->setUniqueNameCounter($field['base_name'], $name_list);
|
$this->setUniqueNameCounter($field['base_name'], $name_list);
|
||||||
// return field
|
// return field
|
||||||
return $field;
|
return $field;
|
||||||
}, array_values($view->addfields));
|
}, array_values($view->addfields));
|
||||||
|
// build update SQL
|
||||||
|
if ($old_view = $this->getHistoryWatch('admin_fields', $view->addfields_id))
|
||||||
|
{
|
||||||
|
// add new fields were added
|
||||||
|
if (isset($old_view->addfields) && ComponentbuilderHelper::checkJson($old_view->addfields))
|
||||||
|
{
|
||||||
|
$this->setUpdateSQL(json_decode($old_view->addfields, true), $view->addfields, 'field', $name_single, $ignoreFields);
|
||||||
|
}
|
||||||
|
// clear this data
|
||||||
|
unset($old_view);
|
||||||
|
}
|
||||||
// sort the fields acording to order
|
// sort the fields acording to order
|
||||||
usort($view->fields, function($a, $b)
|
usort($view->fields, function($a, $b)
|
||||||
{
|
{
|
||||||
@ -1485,14 +1613,13 @@ class Get
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
// do some house cleaning (for fields)
|
// do some house cleaning (for fields)
|
||||||
foreach ($view->fields as $field)
|
foreach ($view->fields as $field)
|
||||||
{
|
{
|
||||||
// so first we lock the field name in
|
// so first we lock the field name in
|
||||||
$field_name = $this->getFieldName($field, $name_list);
|
$field_name = $this->getFieldName($field, $name_list);
|
||||||
// check if the field changed since the last compilation
|
// check if the field changed since the last compilation (default fields never change and are always added)
|
||||||
if (ComponentbuilderHelper::checkObject($field['settings']->history))
|
if (!isset($ignoreFields[$field['field']]) && ComponentbuilderHelper::checkObject($field['settings']->history))
|
||||||
{
|
{
|
||||||
// check if the datatype changed
|
// check if the datatype changed
|
||||||
if (isset($field['settings']->history->datatype))
|
if (isset($field['settings']->history->datatype))
|
||||||
@ -1542,7 +1669,6 @@ class Get
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
unset($view->addfields);
|
unset($view->addfields);
|
||||||
// build update SQL
|
// build update SQL
|
||||||
if ($old_view = $this->getHistoryWatch('admin_view', $id))
|
if ($old_view = $this->getHistoryWatch('admin_view', $id))
|
||||||
@ -1603,7 +1729,7 @@ class Get
|
|||||||
$conditionValue['match_type'] = $type;
|
$conditionValue['match_type'] = $type;
|
||||||
$conditionValue['match_xml'] = $fieldValue['settings']->xml;
|
$conditionValue['match_xml'] = $fieldValue['settings']->xml;
|
||||||
// if custom field load field being extended
|
// if custom field load field being extended
|
||||||
if (!ComponentbuilderHelper::typeField($type))
|
if (!ComponentbuilderHelper::fieldCheck($type))
|
||||||
{
|
{
|
||||||
$conditionValue['match_extends'] = ComponentbuilderHelper::getBetween($fieldValue['settings']->xml, 'extends="', '"');
|
$conditionValue['match_extends'] = ComponentbuilderHelper::getBetween($fieldValue['settings']->xml, 'extends="', '"');
|
||||||
}
|
}
|
||||||
@ -1621,6 +1747,58 @@ class Get
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
unset($view->addconditions);
|
unset($view->addconditions);
|
||||||
|
|
||||||
|
// prep the buckets
|
||||||
|
$this->fieldRelations[$name_list] = array();
|
||||||
|
$this->listJoinBuilder[$name_list] = array();
|
||||||
|
$this->listHeadOverRide[$name_list] = array();
|
||||||
|
// set the relations
|
||||||
|
$view->addrelations = (isset($view->addrelations) && ComponentbuilderHelper::checkJson($view->addrelations)) ? json_decode($view->addrelations, true) : null;
|
||||||
|
if (ComponentbuilderHelper::checkArray($view->addrelations))
|
||||||
|
{
|
||||||
|
foreach ($view->addrelations as $nr => $relationsValue)
|
||||||
|
{
|
||||||
|
// only add if list view field is selected and joind fields are set
|
||||||
|
if (isset($relationsValue['listfield']) && is_numeric($relationsValue['listfield']) && $relationsValue['listfield'] > 0 &&
|
||||||
|
isset($relationsValue['area']) && is_numeric($relationsValue['area']) && $relationsValue['area'] > 0)
|
||||||
|
{
|
||||||
|
// do a dynamic update on the set values
|
||||||
|
if (isset($relationsValue['set']) && ComponentbuilderHelper::checkString($relationsValue['set']))
|
||||||
|
{
|
||||||
|
$relationsValue['set'] = $this->setDynamicValues($relationsValue['set']);
|
||||||
|
}
|
||||||
|
// check that the arrays are set
|
||||||
|
if (!isset($this->fieldRelations[$name_list][(int) $relationsValue['listfield']]) || !ComponentbuilderHelper::checkArray($this->fieldRelations[$name_list][(int) $relationsValue['listfield']]))
|
||||||
|
{
|
||||||
|
$this->fieldRelations[$name_list][(int) $relationsValue['listfield']] = array();
|
||||||
|
}
|
||||||
|
// load the field relations
|
||||||
|
$this->fieldRelations[$name_list][ (int) $relationsValue['listfield']][ (int) $relationsValue['area']] = $relationsValue;
|
||||||
|
// load the list joints
|
||||||
|
if (isset($relationsValue['joinfields']) && ComponentbuilderHelper::checkArray($relationsValue['joinfields']))
|
||||||
|
{
|
||||||
|
foreach ($relationsValue['joinfields'] as $join)
|
||||||
|
{
|
||||||
|
$this->listJoinBuilder[$name_list][(int) $join] = (int) $join;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// set header over-ride
|
||||||
|
if (isset($relationsValue['column_name']) && ComponentbuilderHelper::checkString($relationsValue['column_name']))
|
||||||
|
{
|
||||||
|
$check_column_name = trim(strtolower($relationsValue['column_name']));
|
||||||
|
// confirm it should really make the over ride
|
||||||
|
if ('default' !== $check_column_name)
|
||||||
|
{
|
||||||
|
$column_name_lang = ComponentbuilderHelper::safeString($name_list, 'U') . '_' . ComponentbuilderHelper::safeString($relationsValue['column_name'], 'U');
|
||||||
|
$this->langContent['admin'][$column_name_lang] = trim($relationsValue['column_name']);
|
||||||
|
$this->listHeadOverRide[$name_list][(int) $relationsValue['listfield']] = $column_name_lang;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
unset($view->addrelations);
|
||||||
|
|
||||||
// set linked views
|
// set linked views
|
||||||
$this->linkedAdminViews[$name_single] = null;
|
$this->linkedAdminViews[$name_single] = null;
|
||||||
$view->addlinked_views = (isset($view->addlinked_views) && ComponentbuilderHelper::checkJson($view->addlinked_views)) ? json_decode($view->addlinked_views, true) : null;
|
$view->addlinked_views = (isset($view->addlinked_views) && ComponentbuilderHelper::checkJson($view->addlinked_views)) ? json_decode($view->addlinked_views, true) : null;
|
||||||
@ -1678,7 +1856,7 @@ class Get
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// add_php
|
// add_php
|
||||||
$addArrayP = array('php_getitem', 'php_before_save', 'php_save', 'php_postsavehook', 'php_getitems', 'php_getitems_after_all', 'php_getlistquery', 'php_allowedit', 'php_before_delete', 'php_after_delete', 'php_before_publish', 'php_after_publish', 'php_batchcopy', 'php_batchmove', 'php_document');
|
$addArrayP = array('php_getitem', 'php_before_save', 'php_save', 'php_getform', 'php_postsavehook', 'php_getitems', 'php_getitems_after_all', 'php_getlistquery', 'php_allowedit', 'php_before_delete', 'php_after_delete', 'php_before_publish', 'php_after_publish', 'php_batchcopy', 'php_batchmove', 'php_document');
|
||||||
foreach ($addArrayP as $scripter)
|
foreach ($addArrayP as $scripter)
|
||||||
{
|
{
|
||||||
if (isset($view->{'add_' . $scripter}) && $view->{'add_' . $scripter} == 1)
|
if (isset($view->{'add_' . $scripter}) && $view->{'add_' . $scripter} == 1)
|
||||||
@ -1819,18 +1997,18 @@ class Get
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// clear placeholders
|
// clear placeholders
|
||||||
unset($this->placeholders['###view###']);
|
unset($this->placeholders[$this->hhh . 'view' . $this->hhh]);
|
||||||
unset($this->placeholders['###views###']);
|
unset($this->placeholders[$this->hhh . 'views' . $this->hhh]);
|
||||||
unset($this->placeholders['###View###']);
|
unset($this->placeholders[$this->hhh . 'View' . $this->hhh]);
|
||||||
unset($this->placeholders['###Views###']);
|
unset($this->placeholders[$this->hhh . 'Views' . $this->hhh]);
|
||||||
unset($this->placeholders['###VIEW###']);
|
unset($this->placeholders[$this->hhh . 'VIEW' . $this->hhh]);
|
||||||
unset($this->placeholders['###VIEWS###']);
|
unset($this->placeholders[$this->hhh . 'VIEWS' . $this->hhh]);
|
||||||
unset($this->placeholders['[[[view]]]']);
|
unset($this->placeholders[$this->bbb . 'view' . $this->ddd]);
|
||||||
unset($this->placeholders['[[[views]]]']);
|
unset($this->placeholders[$this->bbb . 'views' . $this->ddd]);
|
||||||
unset($this->placeholders['[[[View]]]']);
|
unset($this->placeholders[$this->bbb . 'View' . $this->ddd]);
|
||||||
unset($this->placeholders['[[[Views]]]']);
|
unset($this->placeholders[$this->bbb . 'Views' . $this->ddd]);
|
||||||
unset($this->placeholders['[[[VIEW]]]']);
|
unset($this->placeholders[$this->bbb . 'VIEW' . $this->ddd]);
|
||||||
unset($this->placeholders['[[[VIEWS]]]']);
|
unset($this->placeholders[$this->bbb . 'VIEWS' . $this->ddd]);
|
||||||
|
|
||||||
// store this view to class object
|
// store this view to class object
|
||||||
$this->_adminViewData[$id] = $view;
|
$this->_adminViewData[$id] = $view;
|
||||||
@ -2163,7 +2341,7 @@ class Get
|
|||||||
if ($this->validationRules[$validationRule] = ComponentbuilderHelper::getVar('validation_rule', $validationRule, 'name', 'php'))
|
if ($this->validationRules[$validationRule] = ComponentbuilderHelper::getVar('validation_rule', $validationRule, 'name', 'php'))
|
||||||
{
|
{
|
||||||
// open and set the validation rule
|
// open and set the validation rule
|
||||||
$this->validationRules[$validationRule] = $this->setDynamicValues(base64_decode($this->validationRules[$validationRule]));
|
$this->validationRules[$validationRule] = $this->setPlaceholders($this->setDynamicValues(base64_decode($this->validationRules[$validationRule])), $this->placeholders);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -2343,6 +2521,11 @@ class Get
|
|||||||
*/
|
*/
|
||||||
public function getFieldType(&$field)
|
public function getFieldType(&$field)
|
||||||
{
|
{
|
||||||
|
// check if we have done this already
|
||||||
|
if (isset($field['type_name']))
|
||||||
|
{
|
||||||
|
return $field['type_name'];
|
||||||
|
}
|
||||||
// set the type name
|
// set the type name
|
||||||
$type_name = ComponentbuilderHelper::safeString($field['settings']->type_name);
|
$type_name = ComponentbuilderHelper::safeString($field['settings']->type_name);
|
||||||
// check that we have the poperties
|
// check that we have the poperties
|
||||||
@ -2352,16 +2535,17 @@ class Get
|
|||||||
{
|
{
|
||||||
if ($property['name'] === 'type')
|
if ($property['name'] === 'type')
|
||||||
{
|
{
|
||||||
|
// if custom (we must use the xml value)
|
||||||
if ($type_name === 'custom' || $type_name === 'customuser')
|
if ($type_name === 'custom' || $type_name === 'customuser')
|
||||||
{
|
{
|
||||||
$type = ComponentbuilderHelper::safeString(ComponentbuilderHelper::getBetween($field['settings']->xml, 'type="', '"'));
|
$type = ComponentbuilderHelper::safeString(ComponentbuilderHelper::getBetween($field['settings']->xml, 'type="', '"'));
|
||||||
}
|
}
|
||||||
// use field core type
|
// use field core type (name)
|
||||||
elseif (ComponentbuilderHelper::checkString($type_name))
|
elseif (ComponentbuilderHelper::checkString($type_name) || (isset($property['example']) && ComponentbuilderHelper::checkString($property['example']) && $property['adjustable'] == 0))
|
||||||
{
|
{
|
||||||
$type = $type_name;
|
$type = $type_name;
|
||||||
}
|
}
|
||||||
// make sure none adjustable fields are set (should be same as above)
|
// make sure none adjustable fields are set (should be same as above) (TODO) hmmm we need look at this again
|
||||||
elseif (isset($property['example']) && ComponentbuilderHelper::checkString($property['example']) && $property['adjustable'] == 0)
|
elseif (isset($property['example']) && ComponentbuilderHelper::checkString($property['example']) && $property['adjustable'] == 0)
|
||||||
{
|
{
|
||||||
$type = $property['example'];
|
$type = $property['example'];
|
||||||
@ -2867,11 +3051,12 @@ class Get
|
|||||||
* @param mix $new The new values
|
* @param mix $new The new values
|
||||||
* @param string $type The type of values
|
* @param string $type The type of values
|
||||||
* @param int $key The id/key where values changed
|
* @param int $key The id/key where values changed
|
||||||
|
* @param array $ignore The ids to ignore
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
protected function setUpdateSQL($old, $new, $type, $key = null)
|
protected function setUpdateSQL($old, $new, $type, $key = null, $ignore = null)
|
||||||
{
|
{
|
||||||
// check if there were new items added
|
// check if there were new items added
|
||||||
if (ComponentbuilderHelper::checkArray($new) && ComponentbuilderHelper::checkArray($old))
|
if (ComponentbuilderHelper::checkArray($new) && ComponentbuilderHelper::checkArray($old))
|
||||||
@ -2882,8 +3067,14 @@ class Get
|
|||||||
foreach ($new[$type] as $item)
|
foreach ($new[$type] as $item)
|
||||||
{
|
{
|
||||||
$newItem = true;
|
$newItem = true;
|
||||||
|
// check if this is an id to ignore
|
||||||
|
if (ComponentbuilderHelper::checkArray($ignore) && in_array($item, $ignore))
|
||||||
|
{
|
||||||
|
// don't add ignored ids
|
||||||
|
$newItem = false;
|
||||||
|
}
|
||||||
// check if this is old repeatable field
|
// check if this is old repeatable field
|
||||||
if (isset($old[$type]) && ComponentbuilderHelper::checkArray($old[$type]))
|
elseif (isset($old[$type]) && ComponentbuilderHelper::checkArray($old[$type]))
|
||||||
{
|
{
|
||||||
if (!in_array($item, $old[$type]))
|
if (!in_array($item, $old[$type]))
|
||||||
{
|
{
|
||||||
@ -2929,12 +3120,18 @@ class Get
|
|||||||
{
|
{
|
||||||
foreach ($new as $item)
|
foreach ($new as $item)
|
||||||
{
|
{
|
||||||
// search to see if this is a new value
|
|
||||||
$newItem = true;
|
|
||||||
if (isset($item[$type]))
|
if (isset($item[$type]))
|
||||||
{
|
{
|
||||||
|
// search to see if this is a new value
|
||||||
|
$newItem = true;
|
||||||
|
// check if this is an id to ignore
|
||||||
|
if (ComponentbuilderHelper::checkArray($ignore) && in_array($item[$type], $ignore))
|
||||||
|
{
|
||||||
|
// don't add ignored ids
|
||||||
|
$newItem = false;
|
||||||
|
}
|
||||||
// check if this is old repeatable field
|
// check if this is old repeatable field
|
||||||
if (isset($old[$type]) && ComponentbuilderHelper::checkArray($old[$type]))
|
elseif (isset($old[$type]) && ComponentbuilderHelper::checkArray($old[$type]))
|
||||||
{
|
{
|
||||||
if (in_array($item[$type], $old[$type]))
|
if (in_array($item[$type], $old[$type]))
|
||||||
{
|
{
|
||||||
@ -2965,11 +3162,6 @@ class Get
|
|||||||
{
|
{
|
||||||
$newItem = false;
|
$newItem = false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
// add if new
|
// add if new
|
||||||
if ($newItem)
|
if ($newItem)
|
||||||
{
|
{
|
||||||
@ -2979,6 +3171,7 @@ class Get
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
elseif ($key && ComponentbuilderHelper::checkString($new) && ComponentbuilderHelper::checkString($old) && $new !== $old)
|
elseif ($key && ComponentbuilderHelper::checkString($new) && ComponentbuilderHelper::checkString($old) && $new !== $old)
|
||||||
{
|
{
|
||||||
// the string changed, lets add to SQL update
|
// the string changed, lets add to SQL update
|
||||||
@ -3605,7 +3798,7 @@ class Get
|
|||||||
if (ComponentbuilderHelper::checkArray($langStringTargets))
|
if (ComponentbuilderHelper::checkArray($langStringTargets))
|
||||||
{
|
{
|
||||||
// insure string is not broken
|
// insure string is not broken
|
||||||
$content = str_replace('COM_###COMPONENT###', $this->langPrefix, $content);
|
$content = str_replace('COM_' . $this->hhh . 'COMPONENT' . $this->hhh, $this->langPrefix, $content);
|
||||||
// reset some buckets
|
// reset some buckets
|
||||||
$langHolders = array();
|
$langHolders = array();
|
||||||
$langCheck = array();
|
$langCheck = array();
|
||||||
@ -3731,7 +3924,7 @@ class Get
|
|||||||
* @param string $method_key The method unique key
|
* @param string $method_key The method unique key
|
||||||
* @param string $view_code The code name of the view
|
* @param string $view_code The code name of the view
|
||||||
* @param string $string The data string
|
* @param string $string The data string
|
||||||
* @param string || INT $asset The asset in question
|
* @param string $asset The asset in question
|
||||||
* @param string $as The as string
|
* @param string $as The as string
|
||||||
* @param int $row_type The row type
|
* @param int $row_type The row type
|
||||||
* @param string $type The target type (db||view)
|
* @param string $type The target type (db||view)
|
||||||
@ -3765,20 +3958,19 @@ class Get
|
|||||||
{
|
{
|
||||||
if (strpos($line, 'AS') !== false)
|
if (strpos($line, 'AS') !== false)
|
||||||
{
|
{
|
||||||
list($get, $key) = explode("AS", $line);
|
$lineArray = explode("AS", $line);
|
||||||
}
|
}
|
||||||
elseif (strpos($line, 'as') !== false)
|
elseif (strpos($line, 'as') !== false)
|
||||||
{
|
{
|
||||||
list($get, $key) = explode("as", $line);
|
$lineArray = explode("as", $line);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$get = $line;
|
$lineArray = array($line, null);
|
||||||
$key = null;
|
|
||||||
}
|
}
|
||||||
// set the get and key
|
// set the get and key
|
||||||
$get = trim($get);
|
$get = trim($lineArray[0]);
|
||||||
$key = trim($key);
|
$key = trim($lineArray[1]);
|
||||||
// only add the view (we must adapt this)
|
// only add the view (we must adapt this)
|
||||||
if (isset($this->getAsLookup[$method_key][$get]) && 'a' != $as && 1 == $row_type && 'view' === $type && strpos('#' . $key, '#' . $view . '_') === false)
|
if (isset($this->getAsLookup[$method_key][$get]) && 'a' != $as && 1 == $row_type && 'view' === $type && strpos('#' . $key, '#' . $view . '_') === false)
|
||||||
{
|
{
|
||||||
@ -3800,16 +3992,24 @@ class Get
|
|||||||
$this->getAsLookup[$method_key][$get] = $key;
|
$this->getAsLookup[$method_key][$get] = $key;
|
||||||
$keys[] = $this->db->quote($key);
|
$keys[] = $this->db->quote($key);
|
||||||
}
|
}
|
||||||
|
// make sure we have the view name
|
||||||
if (ComponentbuilderHelper::checkString($view))
|
if (ComponentbuilderHelper::checkString($view))
|
||||||
{
|
{
|
||||||
|
// prep the field name
|
||||||
$field = str_replace($as . '.', '', $get);
|
$field = str_replace($as . '.', '', $get);
|
||||||
$this->siteFields[$view][$field][$method_key] = array('site' => $view_code, 'get' => $get, 'as' => $as, 'key' => $key);
|
// make sure the array is set
|
||||||
|
if (!isset($this->siteFields[$view][$field]))
|
||||||
|
{
|
||||||
|
$this->siteFields[$view][$field] = array();
|
||||||
|
}
|
||||||
|
// load to the site fields memory bucket
|
||||||
|
$this->siteFields[$view][$field][$method_key . '___' . $as] = array('site' => $view_code, 'get' => $get, 'as' => $as, 'key' => $key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ComponentbuilderHelper::checkArray($gets) && ComponentbuilderHelper::checkArray($keys))
|
if (ComponentbuilderHelper::checkArray($gets) && ComponentbuilderHelper::checkArray($keys))
|
||||||
{
|
{
|
||||||
$querySelect = '$query->select($db->quoteName(' . PHP_EOL . "\t\t\t" . 'array(' . implode(',', $gets) . '),' . PHP_EOL . "\t\t\t" . 'array(' . implode(',', $keys) . ')));';
|
$querySelect = '$query->select($db->quoteName(' . PHP_EOL . $this->_t(3) . 'array(' . implode(',', $gets) . '),' . PHP_EOL . $this->_t(3) . 'array(' . implode(',', $keys) . ')));';
|
||||||
$queryFrom = '$db->quoteName(' . $this->db->quote($table) . ', ' . $this->db->quote($as) . ')';
|
$queryFrom = '$db->quoteName(' . $this->db->quote($table) . ', ' . $this->db->quote($as) . ')';
|
||||||
// return the select query
|
// return the select query
|
||||||
return array('select' => $querySelect, 'from' => $queryFrom, 'name' => $queryName, 'table' => $table, 'type' => $type, 'select_gets' => $gets, 'select_keys' => $keys);
|
return array('select' => $querySelect, 'from' => $queryFrom, 'name' => $queryName, 'table' => $table, 'type' => $type, 'select_gets' => $gets, 'select_keys' => $keys);
|
||||||
@ -3938,9 +4138,9 @@ class Get
|
|||||||
$data = $this->db->loadObjectList();
|
$data = $this->db->loadObjectList();
|
||||||
// start building the MySql dump
|
// start building the MySql dump
|
||||||
$dump = "--";
|
$dump = "--";
|
||||||
$dump .= PHP_EOL . "-- Dumping data for table `#__[[[component]]]_" . $view . "`";
|
$dump .= PHP_EOL . "-- Dumping data for table `#__" . $this->bbb . "component" . $this->ddd . "_" . $view . "`";
|
||||||
$dump .= PHP_EOL . "--";
|
$dump .= PHP_EOL . "--";
|
||||||
$dump .= PHP_EOL . PHP_EOL . "INSERT INTO `#__[[[component]]]_" . $view . "` (";
|
$dump .= PHP_EOL . PHP_EOL . "INSERT INTO `#__" . $this->bbb . "component" . $this->ddd . "_" . $view . "` (";
|
||||||
foreach ($data as $line)
|
foreach ($data as $line)
|
||||||
{
|
{
|
||||||
$comaSet = 0;
|
$comaSet = 0;
|
||||||
@ -4442,7 +4642,7 @@ class Get
|
|||||||
}
|
}
|
||||||
// check what type of place holders we should load here
|
// check what type of place holders we should load here
|
||||||
$placeholderType = (int) $item['comment_type'] . '2';
|
$placeholderType = (int) $item['comment_type'] . '2';
|
||||||
if (stripos($item['code'], '[[[view') !== false || stripos($item['code'], '[[[sview') !== false || stripos($item['code'], '[[[arg') !== false)
|
if (stripos($item['code'], $this->bbb . 'view') !== false || stripos($item['code'], $this->bbb . 'sview') !== false || stripos($item['code'], $this->bbb . 'arg') !== false)
|
||||||
{
|
{
|
||||||
// if view is being set dynamicly then we can't update this code via IDE (TODO)
|
// if view is being set dynamicly then we can't update this code via IDE (TODO)
|
||||||
$placeholderType = 3;
|
$placeholderType = 3;
|
||||||
@ -4472,7 +4672,7 @@ class Get
|
|||||||
$number = 0;
|
$number = 0;
|
||||||
foreach ($values as $value)
|
foreach ($values as $value)
|
||||||
{
|
{
|
||||||
$this->placeholders['[[[' . $key . $number . ']]]'] = $value;
|
$this->placeholders[$this->bbb . $key . $number . $this->ddd] = $value;
|
||||||
$number++;
|
$number++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -5043,9 +5243,9 @@ class Get
|
|||||||
$fileTypes = array('\.php', '\.js');
|
$fileTypes = array('\.php', '\.js');
|
||||||
// set some local placeholders
|
// set some local placeholders
|
||||||
$placeholders = array();
|
$placeholders = array();
|
||||||
$placeholders[ComponentbuilderHelper::safeString($this->componentCodeName, 'F') . 'Helper::'] = '[[[Component]]]Helper::';
|
$placeholders[ComponentbuilderHelper::safeString($this->componentCodeName, 'F') . 'Helper::'] = $this->bbb . 'Component' . $this->ddd . 'Helper::';
|
||||||
$placeholders['COM_' . ComponentbuilderHelper::safeString($this->componentCodeName, 'U')] = 'COM_[[[COMPONENT]]]';
|
$placeholders['COM_' . ComponentbuilderHelper::safeString($this->componentCodeName, 'U')] = 'COM_' . $this->bbb . 'COMPONENT' . $this->ddd;
|
||||||
$placeholders['com_' . $this->componentCodeName] = 'com_[[[component]]]';
|
$placeholders['com_' . $this->componentCodeName] = 'com_' . $this->bbb . 'component' . $this->ddd;
|
||||||
foreach ($paths as $target => $path)
|
foreach ($paths as $target => $path)
|
||||||
{
|
{
|
||||||
// we are changing the working directory to the componet path
|
// we are changing the working directory to the componet path
|
||||||
@ -5760,7 +5960,7 @@ class Get
|
|||||||
return round($val1 + $val2);
|
return round($val1 + $val2);
|
||||||
break;
|
break;
|
||||||
// Subtract one number from the other
|
// Subtract one number from the other
|
||||||
case 'add':
|
case 'sub':
|
||||||
return round($val1 - $val2);
|
return round($val1 - $val2);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -490,11 +490,11 @@ class Structure extends Get
|
|||||||
if ($addLocalFolder)
|
if ($addLocalFolder)
|
||||||
{
|
{
|
||||||
// check if we sould add it to the media xml list
|
// check if we sould add it to the media xml list
|
||||||
if (!isset($this->fileContentStatic['###EXSTRA_MEDIA_FOLDERS###']))
|
if (!isset($this->fileContentStatic[$this->hhh . 'EXSTRA_MEDIA_FOLDERS' . $this->hhh]))
|
||||||
{
|
{
|
||||||
$this->fileContentStatic['###EXSTRA_MEDIA_FOLDERS###'] = '';
|
$this->fileContentStatic[$this->hhh . 'EXSTRA_MEDIA_FOLDERS' . $this->hhh] = '';
|
||||||
}
|
}
|
||||||
$this->fileContentStatic['###EXSTRA_MEDIA_FOLDERS###'] .= PHP_EOL . "\t\t<folder>" . $libFolder . "</folder>";
|
$this->fileContentStatic[$this->hhh . 'EXSTRA_MEDIA_FOLDERS' . $this->hhh] .= PHP_EOL . $this->_t(2) . "<folder>" . $libFolder . "</folder>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if config fields are found load into component config (avoiding dublicates)
|
// if config fields are found load into component config (avoiding dublicates)
|
||||||
@ -755,9 +755,10 @@ class Structure extends Get
|
|||||||
// do license check
|
// do license check
|
||||||
$LICENSE = false;
|
$LICENSE = false;
|
||||||
$licenseChecker = strtolower($this->componentData->license);
|
$licenseChecker = strtolower($this->componentData->license);
|
||||||
if (strpos($licenseChecker, 'gnu') !== false && strpos($licenseChecker, 'gpl') !== false)
|
if (strpos($licenseChecker, 'gnu') !== false && strpos($licenseChecker, '2') !== false &&
|
||||||
|
(strpos($licenseChecker, 'gpl') !== false || strpos($licenseChecker, 'general public license') !== false))
|
||||||
{
|
{
|
||||||
$LICENSE = true;
|
$LICENSE = true; // we only add version 2 auto at this time (TODO)
|
||||||
}
|
}
|
||||||
// do README check
|
// do README check
|
||||||
$README = false;
|
$README = false;
|
||||||
@ -890,20 +891,20 @@ class Structure extends Get
|
|||||||
if ($view['settings']->name_list != 'null')
|
if ($view['settings']->name_list != 'null')
|
||||||
{
|
{
|
||||||
$target = array('admin' => $view['settings']->name_list);
|
$target = array('admin' => $view['settings']->name_list);
|
||||||
$config = array('###CREATIONDATE###' => $created, '###BUILDDATE###' => $modified, '###VERSION###' => $view['settings']->version);
|
$config = array($this->hhh . 'CREATIONDATE' . $this->hhh => $created, $this->hhh . 'BUILDDATE' . $this->hhh => $modified, $this->hhh . 'VERSION' . $this->hhh => $view['settings']->version);
|
||||||
$this->buildDynamique($target, 'list', false, $config);
|
$this->buildDynamique($target, 'list', false, $config);
|
||||||
}
|
}
|
||||||
if ($view['settings']->name_single != 'null')
|
if ($view['settings']->name_single != 'null')
|
||||||
{
|
{
|
||||||
$target = array('admin' => $view['settings']->name_single);
|
$target = array('admin' => $view['settings']->name_single);
|
||||||
$config = array('###CREATIONDATE###' => $created, '###BUILDDATE###' => $modified, '###VERSION###' => $view['settings']->version);
|
$config = array($this->hhh . 'CREATIONDATE' . $this->hhh => $created, $this->hhh . 'BUILDDATE' . $this->hhh => $modified, $this->hhh . 'VERSION' . $this->hhh => $view['settings']->version);
|
||||||
$this->buildDynamique($target, 'single', false, $config);
|
$this->buildDynamique($target, 'single', false, $config);
|
||||||
}
|
}
|
||||||
if (isset($view['edit_create_site_view']) && $view['edit_create_site_view'])
|
if (isset($view['edit_create_site_view']) && $view['edit_create_site_view'])
|
||||||
{
|
{
|
||||||
// setup the front site edit-view files
|
// setup the front site edit-view files
|
||||||
$target = array('site' => $view['settings']->name_single);
|
$target = array('site' => $view['settings']->name_single);
|
||||||
$config = array('###CREATIONDATE###' => $created, '###BUILDDATE###' => $modified, '###VERSION###' => $view['settings']->version);
|
$config = array($this->hhh . 'CREATIONDATE' . $this->hhh => $created, $this->hhh . 'BUILDDATE' . $this->hhh => $modified, $this->hhh . 'VERSION' . $this->hhh => $view['settings']->version);
|
||||||
$this->buildDynamique($target, 'edit', false, $config);
|
$this->buildDynamique($target, 'edit', false, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -927,14 +928,14 @@ class Structure extends Get
|
|||||||
{
|
{
|
||||||
// set list view
|
// set list view
|
||||||
$target = array('site' => $view['settings']->code);
|
$target = array('site' => $view['settings']->code);
|
||||||
$config = array('###CREATIONDATE###' => $created, '###BUILDDATE###' => $modified, '###VERSION###' => $view['settings']->version);
|
$config = array($this->hhh . 'CREATIONDATE' . $this->hhh => $created, $this->hhh . 'BUILDDATE' . $this->hhh => $modified, $this->hhh . 'VERSION' . $this->hhh => $view['settings']->version);
|
||||||
$this->buildDynamique($target, 'list', false, $config);
|
$this->buildDynamique($target, 'list', false, $config);
|
||||||
}
|
}
|
||||||
elseif ($view['settings']->main_get->gettype == 1)
|
elseif ($view['settings']->main_get->gettype == 1)
|
||||||
{
|
{
|
||||||
// set single view
|
// set single view
|
||||||
$target = array('site' => $view['settings']->code);
|
$target = array('site' => $view['settings']->code);
|
||||||
$config = array('###CREATIONDATE###' => $created, '###BUILDDATE###' => $modified, '###VERSION###' => $view['settings']->version);
|
$config = array($this->hhh . 'CREATIONDATE' . $this->hhh => $created, $this->hhh . 'BUILDDATE' . $this->hhh => $modified, $this->hhh . 'VERSION' . $this->hhh => $view['settings']->version);
|
||||||
$this->buildDynamique($target, 'single', false, $config);
|
$this->buildDynamique($target, 'single', false, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -950,14 +951,14 @@ class Structure extends Get
|
|||||||
{
|
{
|
||||||
// set list view$view
|
// set list view$view
|
||||||
$target = array('custom_admin' => $view['settings']->code);
|
$target = array('custom_admin' => $view['settings']->code);
|
||||||
$config = array('###CREATIONDATE###' => $created, '###BUILDDATE###' => $modified, '###VERSION###' => $view['settings']->version);
|
$config = array($this->hhh . 'CREATIONDATE' . $this->hhh => $created, $this->hhh . 'BUILDDATE' . $this->hhh => $modified, $this->hhh . 'VERSION' . $this->hhh => $view['settings']->version);
|
||||||
$this->buildDynamique($target, 'list', false, $config);
|
$this->buildDynamique($target, 'list', false, $config);
|
||||||
}
|
}
|
||||||
elseif ($view['settings']->main_get->gettype == 1)
|
elseif ($view['settings']->main_get->gettype == 1)
|
||||||
{
|
{
|
||||||
// set single view
|
// set single view
|
||||||
$target = array('custom_admin' => $view['settings']->code);
|
$target = array('custom_admin' => $view['settings']->code);
|
||||||
$config = array('###CREATIONDATE###' => $created, '###BUILDDATE###' => $modified, '###VERSION###' => $view['settings']->version);
|
$config = array($this->hhh . 'CREATIONDATE' . $this->hhh => $created, $this->hhh . 'BUILDDATE' . $this->hhh => $modified, $this->hhh . 'VERSION' . $this->hhh => $view['settings']->version);
|
||||||
$this->buildDynamique($target, 'single', false, $config);
|
$this->buildDynamique($target, 'single', false, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1278,31 +1279,31 @@ class Structure extends Get
|
|||||||
$newname = '';
|
$newname = '';
|
||||||
}
|
}
|
||||||
// check if we sould add it to the media xml list
|
// check if we sould add it to the media xml list
|
||||||
if (!isset($this->fileContentStatic['###EXSTRA_MEDIA_FOLDERS###']))
|
if (!isset($this->fileContentStatic[$this->hhh . 'EXSTRA_MEDIA_FOLDERS' . $this->hhh]))
|
||||||
{
|
{
|
||||||
$this->fileContentStatic['###EXSTRA_MEDIA_FOLDERS###'] = '';
|
$this->fileContentStatic[$this->hhh . 'EXSTRA_MEDIA_FOLDERS' . $this->hhh] = '';
|
||||||
}
|
}
|
||||||
if (count($pathArray) == 1 && $firstFolder === 'media')
|
if (count($pathArray) == 1 && $firstFolder === 'media')
|
||||||
{
|
{
|
||||||
$this->fileContentStatic['###EXSTRA_MEDIA_FOLDERS###'] .= PHP_EOL . "\t\t<folder>" . $lastFolder . "</folder>";
|
$this->fileContentStatic[$this->hhh . 'EXSTRA_MEDIA_FOLDERS' . $this->hhh] .= PHP_EOL . $this->_t(2) . "<folder>" . $lastFolder . "</folder>";
|
||||||
}
|
}
|
||||||
// check if we sould add it to the site xml list
|
// check if we sould add it to the site xml list
|
||||||
if (!isset($this->fileContentStatic['###EXSTRA_SITE_FOLDERS###']))
|
if (!isset($this->fileContentStatic[$this->hhh . 'EXSTRA_SITE_FOLDERS' . $this->hhh]))
|
||||||
{
|
{
|
||||||
$this->fileContentStatic['###EXSTRA_SITE_FOLDERS###'] = '';
|
$this->fileContentStatic[$this->hhh . 'EXSTRA_SITE_FOLDERS' . $this->hhh] = '';
|
||||||
}
|
}
|
||||||
if (count($pathArray) == 1 && $firstFolder === 'site')
|
if (count($pathArray) == 1 && $firstFolder === 'site')
|
||||||
{
|
{
|
||||||
$this->fileContentStatic['###EXSTRA_SITE_FOLDERS###'] .= PHP_EOL . "\t\t<folder>" . $lastFolder . "</folder>";
|
$this->fileContentStatic[$this->hhh . 'EXSTRA_SITE_FOLDERS' . $this->hhh] .= PHP_EOL . $this->_t(2) . "<folder>" . $lastFolder . "</folder>";
|
||||||
}
|
}
|
||||||
// check if we sould add it to the admin xml list
|
// check if we sould add it to the admin xml list
|
||||||
if (!isset($this->fileContentStatic['###EXSTRA_ADMIN_FOLDERS###']))
|
if (!isset($this->fileContentStatic[$this->hhh . 'EXSTRA_ADMIN_FOLDERS' . $this->hhh]))
|
||||||
{
|
{
|
||||||
$this->fileContentStatic['###EXSTRA_ADMIN_FOLDERS###'] = '';
|
$this->fileContentStatic[$this->hhh . 'EXSTRA_ADMIN_FOLDERS' . $this->hhh] = '';
|
||||||
}
|
}
|
||||||
if (count($pathArray) == 1 && $firstFolder === 'admin')
|
if (count($pathArray) == 1 && $firstFolder === 'admin')
|
||||||
{
|
{
|
||||||
$this->fileContentStatic['###EXSTRA_ADMIN_FOLDERS###'] .= PHP_EOL . "\t\t\t<folder>" . $lastFolder . "</folder>";
|
$this->fileContentStatic[$this->hhh . 'EXSTRA_ADMIN_FOLDERS' . $this->hhh] .= PHP_EOL . $this->_t(3) . "<folder>" . $lastFolder . "</folder>";
|
||||||
}
|
}
|
||||||
// make we have not duplicates
|
// make we have not duplicates
|
||||||
$key_pointer = ComponentbuilderHelper::safeString($custom['folder']) . '_f' . $pointer_tracker;
|
$key_pointer = ComponentbuilderHelper::safeString($custom['folder']) . '_f' . $pointer_tracker;
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1914,21 +1914,30 @@ abstract class ComponentbuilderHelper
|
|||||||
return array_unique($bucket);
|
return array_unique($bucket);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function typeField($type,$option = 'default')
|
|
||||||
{
|
/**
|
||||||
// list of default fields
|
* Field Grouping https://docs.joomla.org/Form_field
|
||||||
// https://docs.joomla.org/Form_field
|
**/
|
||||||
$fields = array(
|
protected static $fieldGroups = array(
|
||||||
'default' => array(
|
'default' => array(
|
||||||
'accesslevel', 'cachehandler', 'calendar', 'captcha', 'category', 'checkbox',
|
'accesslevel', 'cachehandler', 'calendar', 'captcha', 'category', 'checkbox',
|
||||||
'checkboxes', 'color', 'combo', 'componentlayout', 'contentlanguage', 'editor',
|
'checkboxes', 'color', 'combo', 'componentlayout', 'contentlanguage', 'editor',
|
||||||
'chromestyle', 'contenttype', 'databaseconnection', 'editors', 'email', 'file',
|
'chromestyle', 'contenttype', 'databaseconnection', 'editors', 'email', 'file',
|
||||||
'filelist', 'folderlist', 'groupedlist', 'hidden', 'file', 'headertag', 'helpsite',
|
'filelist', 'folderlist', 'groupedlist', 'hidden', 'file', 'headertag', 'helpsite',
|
||||||
'imagelist','integer','language','list','media','menu','note','password',
|
'imagelist', 'integer', 'language', 'list', 'media', 'menu', 'note', 'number', 'password',
|
||||||
'plugins','range','radio','repeatable','rules','subform','sessionhandler','spacer','sql','tag',
|
'plugins', 'radio', 'repeatable', 'range', 'rules', 'subform', 'sessionhandler', 'spacer', 'sql', 'tag',
|
||||||
'tel','menuitem','modulelayout','meter','moduleorder','moduleposition','moduletag',
|
'tel', 'menuitem', 'meter', 'modulelayout', 'moduleorder', 'moduleposition', 'moduletag',
|
||||||
'templatestyle', 'text', 'textarea', 'timezone', 'url', 'user', 'usergroup'
|
'templatestyle', 'text', 'textarea', 'timezone', 'url', 'user', 'usergroup'
|
||||||
),
|
),
|
||||||
|
'plain' => array(
|
||||||
|
'accesslevel', 'checkbox', 'cachehandler', 'calendar', 'category', 'chromestyle', 'color',
|
||||||
|
'contenttype', 'combo', 'componentlayout', 'databaseconnection', 'editor', 'editors',
|
||||||
|
'email', 'file', 'filelist', 'folderlist', 'headertag', 'helpsite',
|
||||||
|
'hidden', 'imagelist', 'integer', 'language', 'media', 'menu',
|
||||||
|
'menuitem', 'meter', 'modulelayout', 'moduleorder', 'moduletag', 'number', 'password', 'range', 'rules',
|
||||||
|
'sessionhandler', 'tag', 'tel', 'text', 'textarea',
|
||||||
|
'timezone', 'url', 'user', 'usergroup'
|
||||||
|
),
|
||||||
'text' => array(
|
'text' => array(
|
||||||
'calendar','color','editor','email','password','tel','text','textarea','url','number','range'
|
'calendar','color','editor','email','password','tel','text','textarea','url','number','range'
|
||||||
),
|
),
|
||||||
@ -1937,16 +1946,49 @@ abstract class ComponentbuilderHelper
|
|||||||
),
|
),
|
||||||
'dynamic' => array(
|
'dynamic' => array(
|
||||||
'category','headertag','tag','rules','user','file','filelist','folderlist','imagelist','integer','timezone','media','meter'
|
'category','headertag','tag','rules','user','file','filelist','folderlist','imagelist','integer','timezone','media','meter'
|
||||||
|
),
|
||||||
|
'spacer' => array(
|
||||||
|
'note', 'spacer'
|
||||||
|
),
|
||||||
|
'option' => array(
|
||||||
|
'plugins', 'checkboxes', 'contentlanguage', 'list', 'radio', 'sql'
|
||||||
|
),
|
||||||
|
'special' => array(
|
||||||
|
'contentlanguage', 'groupedlist', 'moduleposition', 'plugin',
|
||||||
|
'repeatable', 'templatestyle', 'subform'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (in_array($type,$fields[$option]))
|
/**
|
||||||
|
* Field Checker
|
||||||
|
*
|
||||||
|
* @param string $type The field type
|
||||||
|
* @param boolean $option The field grouping
|
||||||
|
*
|
||||||
|
* @return boolean if the field was found
|
||||||
|
*/
|
||||||
|
public static function fieldCheck($type, $option = 'default')
|
||||||
|
{
|
||||||
|
// now check
|
||||||
|
if (isset(self::$fieldGroups[$option]) && in_array($type, self::$fieldGroups[$option]))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get the spacer IDs
|
||||||
|
*
|
||||||
|
* @return array ids of the spacer field types
|
||||||
|
*/
|
||||||
|
public static function getSpacerIds()
|
||||||
|
{
|
||||||
|
// get the database object to use quote
|
||||||
|
$db = JFactory::getDbo();
|
||||||
|
return self::getVars('fieldtype', (array) array_map(function($name) use($db) { return $db->quote(ucfirst($name)); }, self::$fieldGroups['spacer']), 'name', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* set the session defaults if not set
|
* set the session defaults if not set
|
||||||
**/
|
**/
|
||||||
@ -4184,16 +4226,16 @@ abstract class ComponentbuilderHelper
|
|||||||
{
|
{
|
||||||
if ($external)
|
if ($external)
|
||||||
{
|
{
|
||||||
if ($name = self::getVar(null, $val, $id, $name, '=', $table))
|
if ($_name = self::getVar(null, $val, $id, $name, '=', $table))
|
||||||
{
|
{
|
||||||
$names[] = $name;
|
$names[] = $_name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ($name = self::getVar($table, $val, $id, $name))
|
if ($_name = self::getVar($table, $val, $id, $name))
|
||||||
{
|
{
|
||||||
$names[] = $name;
|
$names[] = $_name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4583,7 +4625,7 @@ abstract class ComponentbuilderHelper
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// check if there are any view values remaining
|
// check if there are any view values remaining
|
||||||
if (count($_result))
|
if (count((array)$_result))
|
||||||
{
|
{
|
||||||
$_result = json_encode($_result);
|
$_result = json_encode($_result);
|
||||||
$_result = array($_result);
|
$_result = array($_result);
|
||||||
@ -4777,7 +4819,7 @@ abstract class ComponentbuilderHelper
|
|||||||
**/
|
**/
|
||||||
public static function checkArray($array, $removeEmptyString = false)
|
public static function checkArray($array, $removeEmptyString = false)
|
||||||
{
|
{
|
||||||
if (isset($array) && is_array($array) && count($array) > 0)
|
if (isset($array) && is_array($array) && count((array)$array) > 0)
|
||||||
{
|
{
|
||||||
// also make sure the empty strings are removed
|
// also make sure the empty strings are removed
|
||||||
if ($removeEmptyString)
|
if ($removeEmptyString)
|
||||||
@ -4880,7 +4922,7 @@ abstract class ComponentbuilderHelper
|
|||||||
{
|
{
|
||||||
$initial = strlen($string);
|
$initial = strlen($string);
|
||||||
$words = preg_split('/([\s\n\r]+)/', $string, null, PREG_SPLIT_DELIM_CAPTURE);
|
$words = preg_split('/([\s\n\r]+)/', $string, null, PREG_SPLIT_DELIM_CAPTURE);
|
||||||
$words_count = count($words);
|
$words_count = count((array)$words);
|
||||||
|
|
||||||
$word_length = 0;
|
$word_length = 0;
|
||||||
$last_word = 0;
|
$last_word = 0;
|
||||||
@ -4915,7 +4957,7 @@ abstract class ComponentbuilderHelper
|
|||||||
*
|
*
|
||||||
* @returns string on success
|
* @returns string on success
|
||||||
**/
|
**/
|
||||||
public static function safeString($string, $type = 'L', $spacer = '_', $replaceNumbers = true)
|
public static function safeString($string, $type = 'L', $spacer = '_', $replaceNumbers = true, $keepOnlyCharacters = true)
|
||||||
{
|
{
|
||||||
if ($replaceNumbers === true)
|
if ($replaceNumbers === true)
|
||||||
{
|
{
|
||||||
@ -4944,7 +4986,16 @@ abstract class ComponentbuilderHelper
|
|||||||
$string = trim($string);
|
$string = trim($string);
|
||||||
$string = preg_replace('/'.$spacer.'+/', ' ', $string);
|
$string = preg_replace('/'.$spacer.'+/', ' ', $string);
|
||||||
$string = preg_replace('/\s+/', ' ', $string);
|
$string = preg_replace('/\s+/', ' ', $string);
|
||||||
|
// remove all and keep only characters
|
||||||
|
if ($keepOnlyCharacters)
|
||||||
|
{
|
||||||
$string = preg_replace("/[^A-Za-z ]/", '', $string);
|
$string = preg_replace("/[^A-Za-z ]/", '', $string);
|
||||||
|
}
|
||||||
|
// keep both numbers and characters
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$string = preg_replace("/[^A-Za-z0-9 ]/", '', $string);
|
||||||
|
}
|
||||||
// select final adaptations
|
// select final adaptations
|
||||||
if ($type === 'L' || $type === 'strtolower')
|
if ($type === 'L' || $type === 'strtolower')
|
||||||
{
|
{
|
||||||
|
@ -28,6 +28,13 @@ abstract class ComponentbuilderEmail
|
|||||||
*/
|
*/
|
||||||
public static $mailer = null;
|
public static $mailer = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Custom Headers
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected static $header = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a configuration object
|
* Get a configuration object
|
||||||
*
|
*
|
||||||
@ -115,16 +122,16 @@ abstract class ComponentbuilderEmail
|
|||||||
$replytoname = $conf->get('replytoname');
|
$replytoname = $conf->get('replytoname');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set global sender
|
||||||
|
$mail->setSender(array($mailfrom, $fromname));
|
||||||
|
|
||||||
// set the global reply-to if found
|
// set the global reply-to if found
|
||||||
if ($replyto && $replytoname)
|
if ($replyto && $replytoname)
|
||||||
{
|
{
|
||||||
$mail->ClearReplyTos();
|
$mail->ClearReplyTos();
|
||||||
$mail->addReplyTo( array( $replyto, $replytoname ) );
|
$mail->addReplyTo($replyto, $replytoname);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set global sender
|
|
||||||
$mail->setSender(array($mailfrom, $fromname));
|
|
||||||
|
|
||||||
// Default mailer is to use PHP's mail function
|
// Default mailer is to use PHP's mail function
|
||||||
switch ($mailer)
|
switch ($mailer)
|
||||||
{
|
{
|
||||||
@ -147,6 +154,17 @@ abstract class ComponentbuilderEmail
|
|||||||
return $mail;
|
return $mail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set a Mail custom header.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public static function setHeader($target, $value)
|
||||||
|
{
|
||||||
|
// set the header
|
||||||
|
self::$header[$target] = $value;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Send an email
|
* Send an email
|
||||||
*
|
*
|
||||||
@ -155,16 +173,12 @@ abstract class ComponentbuilderEmail
|
|||||||
*/
|
*/
|
||||||
public static function send($recipient, $subject, $body, $textonly, $mode = 0, $bounce_email = null, $idsession = null, $mailreply = null, $replyname = null , $mailfrom = null, $fromname = null, $cc = null, $bcc = null, $attachment = null, $embeded = null , $embeds = null)
|
public static function send($recipient, $subject, $body, $textonly, $mode = 0, $bounce_email = null, $idsession = null, $mailreply = null, $replyname = null , $mailfrom = null, $fromname = null, $cc = null, $bcc = null, $attachment = null, $embeded = null , $embeds = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Get a JMail instance
|
// Get a JMail instance
|
||||||
$mail = self::getMailer();
|
$mail = self::getMailer();
|
||||||
|
|
||||||
// set component params
|
// set component params
|
||||||
$conf = self::getConfig();
|
$conf = self::getConfig();
|
||||||
|
|
||||||
// do some house cleaning
|
|
||||||
$mail->ClearReplyTos();
|
|
||||||
|
|
||||||
// set if we have override
|
// set if we have override
|
||||||
if ($mailfrom && $fromname)
|
if ($mailfrom && $fromname)
|
||||||
{
|
{
|
||||||
@ -183,6 +197,15 @@ abstract class ComponentbuilderEmail
|
|||||||
$mail->addCustomHeader('X-VDMmethodID:'.$idsession);
|
$mail->addCustomHeader('X-VDMmethodID:'.$idsession);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set headers if found
|
||||||
|
if (isset(self::$header) && is_array(self::$header) && count((array)self::$header) > 0)
|
||||||
|
{
|
||||||
|
foreach (self::$header as $_target => $_value)
|
||||||
|
{
|
||||||
|
$mail->addCustomHeader($_target.':'.$_value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// set the subject & Body
|
// set the subject & Body
|
||||||
$mail->setSubject($subject);
|
$mail->setSubject($subject);
|
||||||
$mail->setBody($body);
|
$mail->setBody($body);
|
||||||
@ -215,7 +238,7 @@ abstract class ComponentbuilderEmail
|
|||||||
if (is_array($mailreply))
|
if (is_array($mailreply))
|
||||||
{
|
{
|
||||||
$mail->ClearReplyTos();
|
$mail->ClearReplyTos();
|
||||||
$numReplyTo = count($mailreply);
|
$numReplyTo = count((array)$mailreply);
|
||||||
for ($i=0; $i < $numReplyTo; $i++)
|
for ($i=0; $i < $numReplyTo; $i++)
|
||||||
{
|
{
|
||||||
$mail->addReplyTo($mailreply[$i], $replyname[$i]);
|
$mail->addReplyTo($mailreply[$i], $replyname[$i]);
|
||||||
|
@ -55,7 +55,7 @@ class Mapping
|
|||||||
/**
|
/**
|
||||||
* The needed set of keys needed to set
|
* The needed set of keys needed to set
|
||||||
*/
|
*/
|
||||||
protected $setting = array('id' => 'default', 'buildcompsql' => 'base64', 'addadmin_views' => 'json', 'name_code' => 'safeString');
|
protected $setting = array('id' => 'default', 'buildcompsql' => 'base64', 'name_code' => 'safeString');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The needed set of keys needed to set
|
* The needed set of keys needed to set
|
||||||
@ -79,7 +79,8 @@ class Mapping
|
|||||||
/**
|
/**
|
||||||
* The datasize identifiers
|
* The datasize identifiers
|
||||||
*/
|
*/
|
||||||
protected $dataSize = array( 'CHAR', 'VARCHAR', 'INT', 'TINYINT',
|
protected $dataSize = array(
|
||||||
|
'CHAR', 'VARCHAR', 'INT', 'TINYINT',
|
||||||
'BIGINT', 'FLOAT', 'DECIMAL', 'DOUBLE');
|
'BIGINT', 'FLOAT', 'DECIMAL', 'DOUBLE');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -100,8 +101,11 @@ class Mapping
|
|||||||
{
|
{
|
||||||
// set the app to insure messages can be set
|
// set the app to insure messages can be set
|
||||||
$this->app = JFactory::getApplication();
|
$this->app = JFactory::getApplication();
|
||||||
|
// check that we have data
|
||||||
if ($data)
|
if (ComponentbuilderHelper::checkArray($data))
|
||||||
|
{
|
||||||
|
// make sure we have an id
|
||||||
|
if (isset($data['id']) && $data['id'] > 0)
|
||||||
{
|
{
|
||||||
if (isset($data['buildcomp']) && 1 == $data['buildcomp'] && isset($data['buildcompsql']))
|
if (isset($data['buildcomp']) && 1 == $data['buildcomp'] && isset($data['buildcompsql']))
|
||||||
{
|
{
|
||||||
@ -129,6 +133,12 @@ class Mapping
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// get linked admin views
|
||||||
|
$addadmin_views = ComponentbuilderHelper::getVar('component_admin_views', $data['id'], 'joomla_component', 'addadmin_views');
|
||||||
|
if (ComponentbuilderHelper::checkJson($addadmin_views))
|
||||||
|
{
|
||||||
|
$this->addadmin_views = json_decode($addadmin_views, true);
|
||||||
|
}
|
||||||
// set the map of the views needed
|
// set the map of the views needed
|
||||||
if ($this->setMap())
|
if ($this->setMap())
|
||||||
{
|
{
|
||||||
@ -142,6 +152,12 @@ class Mapping
|
|||||||
}
|
}
|
||||||
return false; // not set so just return without any error
|
return false; // not set so just return without any error
|
||||||
}
|
}
|
||||||
|
$this->app->enqueueMessage(
|
||||||
|
JText::_('Please try again, this error usualy happens if it is a new component, beacues we need a component ID to do this build with your sql dump.'),
|
||||||
|
'Error'
|
||||||
|
);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
JText::_('Could not find the data needed to continue.'),
|
JText::_('Could not find the data needed to continue.'),
|
||||||
'Error'
|
'Error'
|
||||||
@ -162,7 +178,8 @@ class Mapping
|
|||||||
foreach ($queries as $query)
|
foreach ($queries as $query)
|
||||||
{
|
{
|
||||||
// only use create table queries
|
// only use create table queries
|
||||||
if (strpos($query, 'CREATE TABLE IF NOT EXISTS `') !== false)
|
if (strpos($query, 'CREATE TABLE IF NOT EXISTS') !== false ||
|
||||||
|
strpos($query, 'CREATE TABLE') !== false)
|
||||||
{
|
{
|
||||||
if ($tableName = $this->getTableName($query))
|
if ($tableName = $this->getTableName($query))
|
||||||
{
|
{
|
||||||
@ -204,9 +221,18 @@ class Mapping
|
|||||||
*/
|
*/
|
||||||
protected function getTableName(&$query)
|
protected function getTableName(&$query)
|
||||||
{
|
{
|
||||||
|
if (strpos($query, '`#__') !== false)
|
||||||
|
{
|
||||||
|
// get table name
|
||||||
$tableName = ComponentbuilderHelper::getBetween($query, '`#__', "`");
|
$tableName = ComponentbuilderHelper::getBetween($query, '`#__', "`");
|
||||||
|
}
|
||||||
|
elseif (strpos($query, "'#__") !== false)
|
||||||
|
{
|
||||||
|
// get table name
|
||||||
|
$tableName = ComponentbuilderHelper::getBetween($query, "'#__", "'");
|
||||||
|
}
|
||||||
// if it still was not found
|
// if it still was not found
|
||||||
if (!ComponentbuilderHelper::checkString($tableName))
|
if (!isset($tableName) || !ComponentbuilderHelper::checkString($tableName))
|
||||||
{
|
{
|
||||||
// skip this query
|
// skip this query
|
||||||
return false;
|
return false;
|
||||||
@ -230,7 +256,7 @@ class Mapping
|
|||||||
*/
|
*/
|
||||||
protected function getFields(&$query)
|
protected function getFields(&$query)
|
||||||
{
|
{
|
||||||
$rows = array_map('trim', explode("\n", $query));
|
$rows = array_map('trim', explode(PHP_EOL, $query));
|
||||||
$fields = array();
|
$fields = array();
|
||||||
foreach ($rows as $row)
|
foreach ($rows as $row)
|
||||||
{
|
{
|
||||||
|
@ -38,6 +38,7 @@ class Builder extends Mapping
|
|||||||
public $today;
|
public $today;
|
||||||
public $db;
|
public $db;
|
||||||
public $views = array();
|
public $views = array();
|
||||||
|
public $admin_fields = array();
|
||||||
protected $fields = array();
|
protected $fields = array();
|
||||||
protected $title = array();
|
protected $title = array();
|
||||||
protected $description = array();
|
protected $description = array();
|
||||||
@ -112,7 +113,6 @@ class Builder extends Mapping
|
|||||||
$object->source = (isset($this->source[$name])) ? $this->source[$name]: 0;
|
$object->source = (isset($this->source[$name])) ? $this->source[$name]: 0;
|
||||||
$object->sql = (isset($this->sql[$name])) ? base64_encode($this->sql[$name]): '';
|
$object->sql = (isset($this->sql[$name])) ? base64_encode($this->sql[$name]): '';
|
||||||
$object->addpermissions = '{"action":["view.edit","view.edit.own","view.edit.state","view.create","view.delete","view.access"],"implementation":["3","3","3","3","3","3"]}';
|
$object->addpermissions = '{"action":["view.edit","view.edit.own","view.edit.state","view.create","view.delete","view.access"],"implementation":["3","3","3","3","3","3"]}';
|
||||||
$object->addfields = $this->addFields($name);
|
|
||||||
$object->created = $this->today;
|
$object->created = $this->today;
|
||||||
$object->created_by = $this->user->id;
|
$object->created_by = $this->user->id;
|
||||||
$object->published = 1;
|
$object->published = 1;
|
||||||
@ -124,7 +124,8 @@ class Builder extends Mapping
|
|||||||
ComponentbuilderHelper::setAsset($id, 'admin_view');
|
ComponentbuilderHelper::setAsset($id, 'admin_view');
|
||||||
// load the views
|
// load the views
|
||||||
$this->views[] = $id;
|
$this->views[] = $id;
|
||||||
return true;
|
// load the admin view fields
|
||||||
|
return $this->addFields($name, $id);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -132,26 +133,12 @@ class Builder extends Mapping
|
|||||||
/**
|
/**
|
||||||
* Add the fields to the view
|
* Add the fields to the view
|
||||||
*/
|
*/
|
||||||
protected function addFields(&$view)
|
protected function addFields(&$view, &$view_id)
|
||||||
{
|
{
|
||||||
if (isset($this->fields[$view]))
|
if (isset($this->fields[$view]))
|
||||||
{
|
{
|
||||||
// set some defaults
|
// set some defaults
|
||||||
$addField = array (
|
$addField = array ();
|
||||||
'field' => array(),
|
|
||||||
'list' => array(),
|
|
||||||
'order_list' => array(),
|
|
||||||
'title' => array(),
|
|
||||||
'alias' => array(),
|
|
||||||
'sort' => array(),
|
|
||||||
'search' => array(),
|
|
||||||
'filter' => array(),
|
|
||||||
'link' => array(),
|
|
||||||
'tab' => array(),
|
|
||||||
'alignment' => array(),
|
|
||||||
'order_edit' => array(),
|
|
||||||
'permission' => array()
|
|
||||||
);
|
|
||||||
$fixLink = (isset($this->title[$view])) ? 0 : 1;
|
$fixLink = (isset($this->title[$view])) ? 0 : 1;
|
||||||
// build the field data... hmmm
|
// build the field data... hmmm
|
||||||
foreach ($this->fields[$view] as $nr => $id)
|
foreach ($this->fields[$view] as $nr => $id)
|
||||||
@ -171,23 +158,32 @@ class Builder extends Mapping
|
|||||||
$fixLink = 0;
|
$fixLink = 0;
|
||||||
}
|
}
|
||||||
// load the field values
|
// load the field values
|
||||||
$addField['field'][] = $id;
|
$addField['addfields'.$nr]['field'] = $id;
|
||||||
$addField['list'][] = $isList;
|
$addField['addfields'.$nr]['list'] = $isList;
|
||||||
$addField['order_list'][] = ($key) ? $key : 0;
|
$addField['addfields'.$nr]['order_list'] = ($key) ? $key : 0;
|
||||||
$addField['title'][] = $isTitle;
|
$addField['addfields'.$nr]['title'] = $isTitle;
|
||||||
$addField['alias'][] = $isAlias;
|
$addField['addfields'.$nr]['alias'] = $isAlias;
|
||||||
$addField['sort'][] = $isList;
|
$addField['addfields'.$nr]['sort'] = $isList;
|
||||||
$addField['search'][] = $isList;
|
$addField['addfields'.$nr]['search'] = $isList;
|
||||||
$addField['filter'][] = $isList;
|
$addField['addfields'.$nr]['filter'] = $isList;
|
||||||
$addField['link'][] = $isLink;
|
$addField['addfields'.$nr]['link'] = $isLink;
|
||||||
$addField['tab'][] = 1;
|
$addField['addfields'.$nr]['tab'] = 1;
|
||||||
$addField['alignment'][] = ($isTitle || $isAlias) ? 4 : $alignment;
|
$addField['addfields'.$nr]['alignment'] = ($isTitle || $isAlias) ? 4 : $alignment;
|
||||||
$addField['order_edit'][] = $nr;
|
$addField['addfields'.$nr]['order_edit'] = $nr;
|
||||||
$addField['permission'][] = 0;
|
$addField['addfields'.$nr]['permission'] = 0;
|
||||||
}
|
}
|
||||||
return json_encode($addField);
|
|
||||||
|
// set the field object
|
||||||
|
$object = new stdClass();
|
||||||
|
$object->admin_view = $view_id;
|
||||||
|
$object->addfields = json_encode($addField, JSON_FORCE_OBJECT);
|
||||||
|
$object->created = $this->today;
|
||||||
|
$object->created_by = $this->user->id;
|
||||||
|
$object->published = 1;
|
||||||
|
// add to data base
|
||||||
|
return $this->db->insertObject('#__componentbuilder_admin_fields', $object);
|
||||||
}
|
}
|
||||||
return '';
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -40,8 +40,7 @@ class Extrusion extends Builder
|
|||||||
if (parent::__construct($data))
|
if (parent::__construct($data))
|
||||||
{
|
{
|
||||||
// link the view data to the component
|
// link the view data to the component
|
||||||
$data['addadmin_views'] = $this->linkAdminViews();
|
if ($this->setAdminViews($data['id']))
|
||||||
if (ComponentbuilderHelper::checkJson($data['addadmin_views']))
|
|
||||||
{
|
{
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
JText::_('All the fields and views from your sql dump has been created and linked to this component.'),
|
JText::_('All the fields and views from your sql dump has been created and linked to this component.'),
|
||||||
@ -56,86 +55,54 @@ class Extrusion extends Builder
|
|||||||
/**
|
/**
|
||||||
* link the build views to the component
|
* link the build views to the component
|
||||||
*/
|
*/
|
||||||
protected function linkAdminViews()
|
protected function setAdminViews(&$component_id)
|
||||||
{
|
{
|
||||||
// check if views were set
|
// check if views were set
|
||||||
if (ComponentbuilderHelper::checkArray($this->views))
|
if (ComponentbuilderHelper::checkArray($this->views))
|
||||||
{
|
{
|
||||||
// insure arrays are set
|
$count = 0;
|
||||||
if (!isset($this->addadmin_views['adminview']))
|
if (ComponentbuilderHelper::checkArray($this->addadmin_views))
|
||||||
{
|
{
|
||||||
$this->addadmin_views['adminview'] = array();
|
$count = (int) count((array)$this->addadmin_views) + 3;
|
||||||
}
|
|
||||||
if (!isset($this->addadmin_views['icomoon']))
|
|
||||||
{
|
|
||||||
$this->addadmin_views['icomoon'] = array();
|
|
||||||
}
|
|
||||||
if (!isset($this->addadmin_views['mainmenu']))
|
|
||||||
{
|
|
||||||
$this->addadmin_views['mainmenu'] = array();
|
|
||||||
}
|
|
||||||
if (!isset($this->addadmin_views['dashboard_add']))
|
|
||||||
{
|
|
||||||
$this->addadmin_views['dashboard_add'] = array();
|
|
||||||
}
|
|
||||||
if (!isset($this->addadmin_views['dashboard_list']))
|
|
||||||
{
|
|
||||||
$this->addadmin_views['dashboard_list'] = array();
|
|
||||||
}
|
|
||||||
if (!isset($this->addadmin_views['submenu']))
|
|
||||||
{
|
|
||||||
$this->addadmin_views['submenu'] = array();
|
|
||||||
}
|
|
||||||
if (!isset($this->addadmin_views['checkin']))
|
|
||||||
{
|
|
||||||
$this->addadmin_views['checkin'] = array();
|
|
||||||
}
|
|
||||||
if (!isset($this->addadmin_views['history']))
|
|
||||||
{
|
|
||||||
$this->addadmin_views['history'] = array();
|
|
||||||
}
|
|
||||||
if (!isset($this->addadmin_views['metadata']))
|
|
||||||
{
|
|
||||||
$this->addadmin_views['metadata'] = array();
|
|
||||||
}
|
|
||||||
if (!isset($this->addadmin_views['access']))
|
|
||||||
{
|
|
||||||
$this->addadmin_views['access'] = array();
|
|
||||||
}
|
|
||||||
if (!isset($this->addadmin_views['port']))
|
|
||||||
{
|
|
||||||
$this->addadmin_views['port'] = array();
|
|
||||||
}
|
|
||||||
if (!isset($this->addadmin_views['edit_create_site_view']))
|
|
||||||
{
|
|
||||||
$this->addadmin_views['edit_create_site_view'] = array();
|
|
||||||
}
|
|
||||||
if (!isset($this->addadmin_views['order']))
|
|
||||||
{
|
|
||||||
$this->addadmin_views['order'] = array();
|
|
||||||
}
|
}
|
||||||
// set the admin view data linking
|
// set the admin view data linking
|
||||||
foreach ($this->views as $id)
|
foreach ($this->views as $nr => $id)
|
||||||
{
|
{
|
||||||
$this->addadmin_views['adminview'][] = $id;
|
$pointer = $count + $nr;
|
||||||
$this->addadmin_views['icomoon'][] = 'joomla';
|
$this->addadmin_views['addadmin_views'.$pointer]['adminview'] = $id;
|
||||||
$this->addadmin_views['mainmenu'][] = 1;
|
$this->addadmin_views['addadmin_views'.$pointer]['icomoon'] = 'joomla';
|
||||||
$this->addadmin_views['dashboard_add'][] = 1;
|
$this->addadmin_views['addadmin_views'.$pointer]['mainmenu'] = 1;
|
||||||
$this->addadmin_views['dashboard_list'][] = 1;
|
$this->addadmin_views['addadmin_views'.$pointer]['dashboard_add'] = 1;
|
||||||
$this->addadmin_views['submenu'][] = 1;
|
$this->addadmin_views['addadmin_views'.$pointer]['dashboard_list'] = 1;
|
||||||
$this->addadmin_views['checkin'][] = 1;
|
$this->addadmin_views['addadmin_views'.$pointer]['submenu'] = 1;
|
||||||
$this->addadmin_views['history'][] = 1;
|
$this->addadmin_views['addadmin_views'.$pointer]['checkin'] = 1;
|
||||||
$this->addadmin_views['metadata'][] = 1;
|
$this->addadmin_views['addadmin_views'.$pointer]['history'] = 1;
|
||||||
$this->addadmin_views['access'][] = 1;
|
$this->addadmin_views['addadmin_views'.$pointer]['metadata'] = 1;
|
||||||
$this->addadmin_views['port'][] = 1;
|
$this->addadmin_views['addadmin_views'.$pointer]['access'] = 1;
|
||||||
$this->addadmin_views['edit_create_site_view'][] = 0;
|
$this->addadmin_views['addadmin_views'.$pointer]['port'] = 1;
|
||||||
$this->addadmin_views['order'][] = count($this->addadmin_views['order']) + 1;
|
$this->addadmin_views['addadmin_views'.$pointer]['edit_create_site_view'] = 0;
|
||||||
|
$this->addadmin_views['addadmin_views'.$pointer]['order'] = $pointer + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isset($this->addadmin_views) && ComponentbuilderHelper::checkArray($this->addadmin_views))
|
if (isset($this->addadmin_views) && ComponentbuilderHelper::checkArray($this->addadmin_views))
|
||||||
{
|
{
|
||||||
return json_encode($this->addadmin_views);
|
// set the field object
|
||||||
|
$object = new stdClass();
|
||||||
|
$object->joomla_component = $component_id;
|
||||||
|
$object->addadmin_views = json_encode($this->addadmin_views, JSON_FORCE_OBJECT);
|
||||||
|
$object->created = $this->today;
|
||||||
|
$object->created_by = $this->user->id;
|
||||||
|
$object->published = 1;
|
||||||
|
// check if it is already set
|
||||||
|
if ($item_id = ComponentbuilderHelper::getVar('component_admin_views', $component_id, 'joomla_component', 'id'))
|
||||||
|
{
|
||||||
|
// set ID
|
||||||
|
$object->id = (int) $item_id;
|
||||||
|
return $this->db->updateObject('#__componentbuilder_component_admin_views', $object, 'id');
|
||||||
}
|
}
|
||||||
return '';
|
// add to data base
|
||||||
|
return $this->db->insertObject('#__componentbuilder_component_admin_views', $object);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -39,6 +39,26 @@ COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_STATE="Admins Fields Edit State"
|
|||||||
COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_STATE_DESC="Allows the users in this group to update the state of the admin fields"
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_STATE_DESC="Allows the users in this group to update the state of the admin fields"
|
||||||
COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_VERSION="Admins Fields Edit Version"
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_VERSION="Admins Fields Edit Version"
|
||||||
COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version admins fields"
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version admins fields"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_ACCESS="Admins Fields Relations Access"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_ACCESS_DESC="Allows the users in this group to access access admins fields relations"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_BATCH_USE="Admins Fields Relations Batch Use"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch admins fields relations"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_CREATE="Admins Fields Relations Create"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_CREATE_DESC="Allows the users in this group to create create admins fields relations"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_DELETE="Admins Fields Relations Delete"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_DELETE_DESC="Allows the users in this group to delete delete admins fields relations"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT="Admins Fields Relations Edit"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_CREATED_BY="Admins Fields Relations Edit Created By"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by admins fields relations"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_CREATED_DATE="Admins Fields Relations Edit Created Date"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created admins fields relations"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_DESC="Allows the users in this group to edit the admin fields relations"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_OWN="Admins Fields Relations Edit Own"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_OWN_DESC="Allows the users in this group to edit edit own admins fields relations created by them"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_STATE="Admins Fields Relations Edit State"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_STATE_DESC="Allows the users in this group to update the state of the admin fields relations"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_VERSION="Admins Fields Relations Edit Version"
|
||||||
|
COM_COMPONENTBUILDER_ADMINS_FIELDS_RELATIONS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version admins fields relations"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEWS_ACCESS="Admin Views Access"
|
COM_COMPONENTBUILDER_ADMIN_VIEWS_ACCESS="Admin Views Access"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEWS_ACCESS_DESC="Allows the users in this group to access access admin views"
|
COM_COMPONENTBUILDER_ADMIN_VIEWS_ACCESS_DESC="Allows the users in this group to access access admin views"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEWS_BATCH_USE="Admin Views Batch Use"
|
COM_COMPONENTBUILDER_ADMIN_VIEWS_BATCH_USE="Admin Views Batch Use"
|
||||||
@ -46,9 +66,9 @@ COM_COMPONENTBUILDER_ADMIN_VIEWS_BATCH_USE_DESC="Allows users in this group to u
|
|||||||
COM_COMPONENTBUILDER_ADMIN_VIEWS_CREATE="Admin Views Create"
|
COM_COMPONENTBUILDER_ADMIN_VIEWS_CREATE="Admin Views Create"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEWS_CREATE_DESC="Allows the users in this group to create create admin views"
|
COM_COMPONENTBUILDER_ADMIN_VIEWS_CREATE_DESC="Allows the users in this group to create create admin views"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEWS_DASHBOARD_ADD="Admin Views Dashboard Add"
|
COM_COMPONENTBUILDER_ADMIN_VIEWS_DASHBOARD_ADD="Admin Views Dashboard Add"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEWS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the admin view"
|
COM_COMPONENTBUILDER_ADMIN_VIEWS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of admin view"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEWS_DASHBOARD_LIST="Admin Views Dashboard List"
|
COM_COMPONENTBUILDER_ADMIN_VIEWS_DASHBOARD_LIST="Admin Views Dashboard List"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEWS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the admin view"
|
COM_COMPONENTBUILDER_ADMIN_VIEWS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of admin view"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEWS_DELETE="Admin Views Delete"
|
COM_COMPONENTBUILDER_ADMIN_VIEWS_DELETE="Admin Views Delete"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEWS_DELETE_DESC="Allows the users in this group to delete delete admin views"
|
COM_COMPONENTBUILDER_ADMIN_VIEWS_DELETE_DESC="Allows the users in this group to delete delete admin views"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT="Admin Views Edit"
|
COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT="Admin Views Edit"
|
||||||
@ -68,15 +88,15 @@ COM_COMPONENTBUILDER_ADMIN_VIEWS_EXPORT_DESC="Allows the users in this group to
|
|||||||
COM_COMPONENTBUILDER_ADMIN_VIEWS_IMPORT="Admin Views Import"
|
COM_COMPONENTBUILDER_ADMIN_VIEWS_IMPORT="Admin Views Import"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEWS_IMPORT_DESC="Allows the users in this group to import import admin views"
|
COM_COMPONENTBUILDER_ADMIN_VIEWS_IMPORT_DESC="Allows the users in this group to import import admin views"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEWS_SUBMENU="Admin Views Submenu"
|
COM_COMPONENTBUILDER_ADMIN_VIEWS_SUBMENU="Admin Views Submenu"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEWS_SUBMENU_DESC="Allows the users in this group to update the submenu of the admin view"
|
COM_COMPONENTBUILDER_ADMIN_VIEWS_SUBMENU_DESC="Allows the users in this group to submenu of admin view"
|
||||||
COM_COMPONENTBUILDER_COMPILER_ACCESS="Compiler Access"
|
COM_COMPONENTBUILDER_COMPILER_ACCESS="Compiler Access"
|
||||||
COM_COMPONENTBUILDER_COMPILER_ACCESS_DESC=" Allows the users in this group to access compiler."
|
COM_COMPONENTBUILDER_COMPILER_ACCESS_DESC=" Allows the users in this group to access compiler."
|
||||||
COM_COMPONENTBUILDER_COMPILER_CLEAR_TMP_BUTTON_ACCESS="Compiler Clear tmp Button Access"
|
COM_COMPONENTBUILDER_COMPILER_CLEAR_TMP_BUTTON_ACCESS="Compiler Clear tmp Button Access"
|
||||||
COM_COMPONENTBUILDER_COMPILER_CLEAR_TMP_BUTTON_ACCESS_DESC=" Allows the users in this group to access the clear tmp button."
|
COM_COMPONENTBUILDER_COMPILER_CLEAR_TMP_BUTTON_ACCESS_DESC=" Allows the users in this group to access the clear tmp button."
|
||||||
COM_COMPONENTBUILDER_COMPILER_DASHBOARD_LIST="Compiler Dashboard List"
|
COM_COMPONENTBUILDER_COMPILER_DASHBOARD_LIST="Compiler Dashboard List"
|
||||||
COM_COMPONENTBUILDER_COMPILER_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the Compiler"
|
COM_COMPONENTBUILDER_COMPILER_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of Compiler"
|
||||||
COM_COMPONENTBUILDER_COMPILER_SUBMENU="Compiler Submenu"
|
COM_COMPONENTBUILDER_COMPILER_SUBMENU="Compiler Submenu"
|
||||||
COM_COMPONENTBUILDER_COMPILER_SUBMENU_DESC="Allows the users in this group to update the submenu of the Compiler"
|
COM_COMPONENTBUILDER_COMPILER_SUBMENU_DESC="Allows the users in this group to submenu of Compiler"
|
||||||
COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_ACCESS="Components Admin Views Access"
|
COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_ACCESS="Components Admin Views Access"
|
||||||
COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_ACCESS_DESC="Allows the users in this group to access access components admin views"
|
COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_ACCESS_DESC="Allows the users in this group to access access components admin views"
|
||||||
COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_BATCH_USE="Components Admin Views Batch Use"
|
COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_BATCH_USE="Components Admin Views Batch Use"
|
||||||
@ -265,9 +285,9 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_BATCH_USE_DESC="Allows users in this gro
|
|||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_CREATE="Custom Admin Views Create"
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_CREATE="Custom Admin Views Create"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_CREATE_DESC="Allows the users in this group to create create custom admin views"
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_CREATE_DESC="Allows the users in this group to create create custom admin views"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DASHBOARD_ADD="Custom Admin Views Dashboard Add"
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DASHBOARD_ADD="Custom Admin Views Dashboard Add"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the custom admin view"
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of custom admin view"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DASHBOARD_LIST="Custom Admin Views Dashboard List"
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DASHBOARD_LIST="Custom Admin Views Dashboard List"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the custom admin view"
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of custom admin view"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DELETE="Custom Admin Views Delete"
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DELETE="Custom Admin Views Delete"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DELETE_DESC="Allows the users in this group to delete delete custom admin views"
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DELETE_DESC="Allows the users in this group to delete delete custom admin views"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EDIT="Custom Admin Views Edit"
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EDIT="Custom Admin Views Edit"
|
||||||
@ -283,7 +303,7 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EXPORT_DESC="Allows the users in this gr
|
|||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_IMPORT="Custom Admin Views Import"
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_IMPORT="Custom Admin Views Import"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_IMPORT_DESC="Allows the users in this group to import import custom admin views"
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_IMPORT_DESC="Allows the users in this group to import import custom admin views"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_SUBMENU="Custom Admin Views Submenu"
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_SUBMENU="Custom Admin Views Submenu"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_SUBMENU_DESC="Allows the users in this group to update the submenu of the custom admin view"
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_SUBMENU_DESC="Allows the users in this group to submenu of custom admin view"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_GET_SNIPPETS_BUTTON_ACCESS="Custom Admin View Get Snippets Button Access"
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_GET_SNIPPETS_BUTTON_ACCESS="Custom Admin View Get Snippets Button Access"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
|
||||||
COM_COMPONENTBUILDER_CUSTOM_CODES_ACCESS="Custom Codes Access"
|
COM_COMPONENTBUILDER_CUSTOM_CODES_ACCESS="Custom Codes Access"
|
||||||
@ -293,7 +313,7 @@ COM_COMPONENTBUILDER_CUSTOM_CODES_BATCH_USE_DESC="Allows users in this group to
|
|||||||
COM_COMPONENTBUILDER_CUSTOM_CODES_CREATE="Custom Codes Create"
|
COM_COMPONENTBUILDER_CUSTOM_CODES_CREATE="Custom Codes Create"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_CODES_CREATE_DESC="Allows the users in this group to create create custom codes"
|
COM_COMPONENTBUILDER_CUSTOM_CODES_CREATE_DESC="Allows the users in this group to create create custom codes"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_CODES_DASHBOARD_LIST="Custom Codes Dashboard List"
|
COM_COMPONENTBUILDER_CUSTOM_CODES_DASHBOARD_LIST="Custom Codes Dashboard List"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_CODES_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the custom code"
|
COM_COMPONENTBUILDER_CUSTOM_CODES_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of custom code"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_CODES_DELETE="Custom Codes Delete"
|
COM_COMPONENTBUILDER_CUSTOM_CODES_DELETE="Custom Codes Delete"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_CODES_DELETE_DESC="Allows the users in this group to delete delete custom codes"
|
COM_COMPONENTBUILDER_CUSTOM_CODES_DELETE_DESC="Allows the users in this group to delete delete custom codes"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_CODES_EDIT="Custom Codes Edit"
|
COM_COMPONENTBUILDER_CUSTOM_CODES_EDIT="Custom Codes Edit"
|
||||||
@ -313,7 +333,7 @@ COM_COMPONENTBUILDER_CUSTOM_CODES_EXPORT_DESC="Allows the users in this group to
|
|||||||
COM_COMPONENTBUILDER_CUSTOM_CODES_IMPORT="Custom Codes Import"
|
COM_COMPONENTBUILDER_CUSTOM_CODES_IMPORT="Custom Codes Import"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_CODES_IMPORT_DESC="Allows the users in this group to import import custom codes"
|
COM_COMPONENTBUILDER_CUSTOM_CODES_IMPORT_DESC="Allows the users in this group to import import custom codes"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_CODES_SUBMENU="Custom Codes Submenu"
|
COM_COMPONENTBUILDER_CUSTOM_CODES_SUBMENU="Custom Codes Submenu"
|
||||||
COM_COMPONENTBUILDER_CUSTOM_CODES_SUBMENU_DESC="Allows the users in this group to update the submenu of the custom code"
|
COM_COMPONENTBUILDER_CUSTOM_CODES_SUBMENU_DESC="Allows the users in this group to submenu of custom code"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GETS_ACCESS="Dynamic Gets Access"
|
COM_COMPONENTBUILDER_DYNAMIC_GETS_ACCESS="Dynamic Gets Access"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GETS_ACCESS_DESC="Allows the users in this group to access access dynamic gets"
|
COM_COMPONENTBUILDER_DYNAMIC_GETS_ACCESS_DESC="Allows the users in this group to access access dynamic gets"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GETS_BATCH_USE="Dynamic Gets Batch Use"
|
COM_COMPONENTBUILDER_DYNAMIC_GETS_BATCH_USE="Dynamic Gets Batch Use"
|
||||||
@ -321,9 +341,9 @@ COM_COMPONENTBUILDER_DYNAMIC_GETS_BATCH_USE_DESC="Allows users in this group to
|
|||||||
COM_COMPONENTBUILDER_DYNAMIC_GETS_CREATE="Dynamic Gets Create"
|
COM_COMPONENTBUILDER_DYNAMIC_GETS_CREATE="Dynamic Gets Create"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GETS_CREATE_DESC="Allows the users in this group to create create dynamic gets"
|
COM_COMPONENTBUILDER_DYNAMIC_GETS_CREATE_DESC="Allows the users in this group to create create dynamic gets"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GETS_DASHBOARD_ADD="Dynamic Gets Dashboard Add"
|
COM_COMPONENTBUILDER_DYNAMIC_GETS_DASHBOARD_ADD="Dynamic Gets Dashboard Add"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GETS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the dynamic get"
|
COM_COMPONENTBUILDER_DYNAMIC_GETS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of dynamic get"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GETS_DASHBOARD_LIST="Dynamic Gets Dashboard List"
|
COM_COMPONENTBUILDER_DYNAMIC_GETS_DASHBOARD_LIST="Dynamic Gets Dashboard List"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GETS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the dynamic get"
|
COM_COMPONENTBUILDER_DYNAMIC_GETS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of dynamic get"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GETS_DELETE="Dynamic Gets Delete"
|
COM_COMPONENTBUILDER_DYNAMIC_GETS_DELETE="Dynamic Gets Delete"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GETS_DELETE_DESC="Allows the users in this group to delete delete dynamic gets"
|
COM_COMPONENTBUILDER_DYNAMIC_GETS_DELETE_DESC="Allows the users in this group to delete delete dynamic gets"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GETS_EDIT="Dynamic Gets Edit"
|
COM_COMPONENTBUILDER_DYNAMIC_GETS_EDIT="Dynamic Gets Edit"
|
||||||
@ -339,7 +359,7 @@ COM_COMPONENTBUILDER_DYNAMIC_GETS_EXPORT_DESC="Allows the users in this group to
|
|||||||
COM_COMPONENTBUILDER_DYNAMIC_GETS_IMPORT="Dynamic Gets Import"
|
COM_COMPONENTBUILDER_DYNAMIC_GETS_IMPORT="Dynamic Gets Import"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GETS_IMPORT_DESC="Allows the users in this group to import import dynamic gets"
|
COM_COMPONENTBUILDER_DYNAMIC_GETS_IMPORT_DESC="Allows the users in this group to import import dynamic gets"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GETS_SUBMENU="Dynamic Gets Submenu"
|
COM_COMPONENTBUILDER_DYNAMIC_GETS_SUBMENU="Dynamic Gets Submenu"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GETS_SUBMENU_DESC="Allows the users in this group to update the submenu of the dynamic get"
|
COM_COMPONENTBUILDER_DYNAMIC_GETS_SUBMENU_DESC="Allows the users in this group to submenu of dynamic get"
|
||||||
COM_COMPONENTBUILDER_EDIT_CREATED_BY="Edit Created By"
|
COM_COMPONENTBUILDER_EDIT_CREATED_BY="Edit Created By"
|
||||||
COM_COMPONENTBUILDER_EDIT_CREATED_BY_DESC=" Allows users in this group to edit created by."
|
COM_COMPONENTBUILDER_EDIT_CREATED_BY_DESC=" Allows users in this group to edit created by."
|
||||||
COM_COMPONENTBUILDER_EDIT_CREATED_DATE="Edit Created Date"
|
COM_COMPONENTBUILDER_EDIT_CREATED_DATE="Edit Created Date"
|
||||||
@ -355,9 +375,9 @@ COM_COMPONENTBUILDER_FIELDS_BATCH_USE_DESC="Allows users in this group to use ba
|
|||||||
COM_COMPONENTBUILDER_FIELDS_CREATE="Fields Create"
|
COM_COMPONENTBUILDER_FIELDS_CREATE="Fields Create"
|
||||||
COM_COMPONENTBUILDER_FIELDS_CREATE_DESC="Allows the users in this group to create create fields"
|
COM_COMPONENTBUILDER_FIELDS_CREATE_DESC="Allows the users in this group to create create fields"
|
||||||
COM_COMPONENTBUILDER_FIELDS_DASHBOARD_ADD="Fields Dashboard Add"
|
COM_COMPONENTBUILDER_FIELDS_DASHBOARD_ADD="Fields Dashboard Add"
|
||||||
COM_COMPONENTBUILDER_FIELDS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the field"
|
COM_COMPONENTBUILDER_FIELDS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of field"
|
||||||
COM_COMPONENTBUILDER_FIELDS_DASHBOARD_LIST="Fields Dashboard List"
|
COM_COMPONENTBUILDER_FIELDS_DASHBOARD_LIST="Fields Dashboard List"
|
||||||
COM_COMPONENTBUILDER_FIELDS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the field"
|
COM_COMPONENTBUILDER_FIELDS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of field"
|
||||||
COM_COMPONENTBUILDER_FIELDS_DELETE="Fields Delete"
|
COM_COMPONENTBUILDER_FIELDS_DELETE="Fields Delete"
|
||||||
COM_COMPONENTBUILDER_FIELDS_DELETE_DESC="Allows the users in this group to delete delete fields"
|
COM_COMPONENTBUILDER_FIELDS_DELETE_DESC="Allows the users in this group to delete delete fields"
|
||||||
COM_COMPONENTBUILDER_FIELDS_EDIT="Fields Edit"
|
COM_COMPONENTBUILDER_FIELDS_EDIT="Fields Edit"
|
||||||
@ -373,7 +393,7 @@ COM_COMPONENTBUILDER_FIELDS_EXPORT_DESC="Allows the users in this group to expor
|
|||||||
COM_COMPONENTBUILDER_FIELDS_IMPORT="Fields Import"
|
COM_COMPONENTBUILDER_FIELDS_IMPORT="Fields Import"
|
||||||
COM_COMPONENTBUILDER_FIELDS_IMPORT_DESC="Allows the users in this group to import import fields"
|
COM_COMPONENTBUILDER_FIELDS_IMPORT_DESC="Allows the users in this group to import import fields"
|
||||||
COM_COMPONENTBUILDER_FIELDS_SUBMENU="Fields Submenu"
|
COM_COMPONENTBUILDER_FIELDS_SUBMENU="Fields Submenu"
|
||||||
COM_COMPONENTBUILDER_FIELDS_SUBMENU_DESC="Allows the users in this group to update the submenu of the field"
|
COM_COMPONENTBUILDER_FIELDS_SUBMENU_DESC="Allows the users in this group to submenu of field"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_ACCESS="Fieldtypes Access"
|
COM_COMPONENTBUILDER_FIELDTYPES_ACCESS="Fieldtypes Access"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_ACCESS_DESC="Allows the users in this group to access access fieldtypes"
|
COM_COMPONENTBUILDER_FIELDTYPES_ACCESS_DESC="Allows the users in this group to access access fieldtypes"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_BATCH_USE="Fieldtypes Batch Use"
|
COM_COMPONENTBUILDER_FIELDTYPES_BATCH_USE="Fieldtypes Batch Use"
|
||||||
@ -381,23 +401,17 @@ COM_COMPONENTBUILDER_FIELDTYPES_BATCH_USE_DESC="Allows users in this group to us
|
|||||||
COM_COMPONENTBUILDER_FIELDTYPES_CREATE="Fieldtypes Create"
|
COM_COMPONENTBUILDER_FIELDTYPES_CREATE="Fieldtypes Create"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_CREATE_DESC="Allows the users in this group to create create fieldtypes"
|
COM_COMPONENTBUILDER_FIELDTYPES_CREATE_DESC="Allows the users in this group to create create fieldtypes"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_ADD="Fieldtypes Dashboard Add"
|
COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_ADD="Fieldtypes Dashboard Add"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the fieldtype"
|
COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of fieldtype"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_LIST="Fieldtypes Dashboard List"
|
COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_LIST="Fieldtypes Dashboard List"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the fieldtype"
|
COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of fieldtype"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_DELETE="Fieldtypes Delete"
|
COM_COMPONENTBUILDER_FIELDTYPES_DELETE="Fieldtypes Delete"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_DELETE_DESC="Allows the users in this group to delete delete fieldtypes"
|
COM_COMPONENTBUILDER_FIELDTYPES_DELETE_DESC="Allows the users in this group to delete delete fieldtypes"
|
||||||
|
COM_COMPONENTBUILDER_FIELDTYPES_DESCRIPTION="Fieldtypes Description"
|
||||||
|
COM_COMPONENTBUILDER_FIELDTYPES_DESCRIPTION_DESC="Allows the users in this group to description of fieldtype"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT="Fieldtypes Edit"
|
COM_COMPONENTBUILDER_FIELDTYPES_EDIT="Fieldtypes Edit"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESC="Allows the users in this group to edit the fieldtype"
|
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESC="Allows the users in this group to edit the fieldtype"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESCRIPTION="Fieldtypes Edit Description"
|
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESCRIPTION_DESC="Allows the users in this group to update the edit description of the fieldtype"
|
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_NAME="Fieldtypes Edit Name"
|
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_NAME_DESC="Allows the users in this group to update the edit name of the fieldtype"
|
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_OWN="Fieldtypes Edit Own"
|
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_OWN="Fieldtypes Edit Own"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_OWN_DESC="Allows the users in this group to edit edit own fieldtypes created by them"
|
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_OWN_DESC="Allows the users in this group to edit edit own fieldtypes created by them"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES="Fieldtypes Edit Properties"
|
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES_DESC="Allows the users in this group to update the edit properties of the fieldtype"
|
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_SHORT_DESCRIPTION="Fieldtypes Edit Short Description"
|
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_SHORT_DESCRIPTION_DESC="Allows the users in this group to update the edit short description of the fieldtype"
|
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_STATE="Fieldtypes Edit State"
|
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_STATE="Fieldtypes Edit State"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_STATE_DESC="Allows the users in this group to update the state of the fieldtype"
|
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_STATE_DESC="Allows the users in this group to update the state of the fieldtype"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION="Fieldtypes Edit Version"
|
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION="Fieldtypes Edit Version"
|
||||||
@ -406,14 +420,20 @@ COM_COMPONENTBUILDER_FIELDTYPES_EXPORT="Fieldtypes Export"
|
|||||||
COM_COMPONENTBUILDER_FIELDTYPES_EXPORT_DESC="Allows the users in this group to export export fieldtypes"
|
COM_COMPONENTBUILDER_FIELDTYPES_EXPORT_DESC="Allows the users in this group to export export fieldtypes"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_IMPORT="Fieldtypes Import"
|
COM_COMPONENTBUILDER_FIELDTYPES_IMPORT="Fieldtypes Import"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_IMPORT_DESC="Allows the users in this group to import import fieldtypes"
|
COM_COMPONENTBUILDER_FIELDTYPES_IMPORT_DESC="Allows the users in this group to import import fieldtypes"
|
||||||
|
COM_COMPONENTBUILDER_FIELDTYPES_NAME="Fieldtypes Name"
|
||||||
|
COM_COMPONENTBUILDER_FIELDTYPES_NAME_DESC="Allows the users in this group to name of fieldtype"
|
||||||
|
COM_COMPONENTBUILDER_FIELDTYPES_PROPERTIES="Fieldtypes Properties"
|
||||||
|
COM_COMPONENTBUILDER_FIELDTYPES_PROPERTIES_DESC="Allows the users in this group to properties of fieldtype"
|
||||||
|
COM_COMPONENTBUILDER_FIELDTYPES_SHORT_DESCRIPTION="Fieldtypes Short Description"
|
||||||
|
COM_COMPONENTBUILDER_FIELDTYPES_SHORT_DESCRIPTION_DESC="Allows the users in this group to short description of fieldtype"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_SUBMENU="Fieldtypes Submenu"
|
COM_COMPONENTBUILDER_FIELDTYPES_SUBMENU="Fieldtypes Submenu"
|
||||||
COM_COMPONENTBUILDER_FIELDTYPES_SUBMENU_DESC="Allows the users in this group to update the submenu of the fieldtype"
|
COM_COMPONENTBUILDER_FIELDTYPES_SUBMENU_DESC="Allows the users in this group to submenu of fieldtype"
|
||||||
COM_COMPONENTBUILDER_GET_SNIPPETS_ACCESS="Get Snippets Access"
|
COM_COMPONENTBUILDER_GET_SNIPPETS_ACCESS="Get Snippets Access"
|
||||||
COM_COMPONENTBUILDER_GET_SNIPPETS_ACCESS_DESC=" Allows the users in this group to access get snippets."
|
COM_COMPONENTBUILDER_GET_SNIPPETS_ACCESS_DESC=" Allows the users in this group to access get snippets."
|
||||||
COM_COMPONENTBUILDER_GET_SNIPPETS_CUSTOM_ADMIN_VIEWS_BUTTON_ACCESS="Get Snippets Custom Admin Views Button Access"
|
COM_COMPONENTBUILDER_GET_SNIPPETS_CUSTOM_ADMIN_VIEWS_BUTTON_ACCESS="Get Snippets Custom Admin Views Button Access"
|
||||||
COM_COMPONENTBUILDER_GET_SNIPPETS_CUSTOM_ADMIN_VIEWS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the custom admin views button."
|
COM_COMPONENTBUILDER_GET_SNIPPETS_CUSTOM_ADMIN_VIEWS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the custom admin views button."
|
||||||
COM_COMPONENTBUILDER_GET_SNIPPETS_DASHBOARD_LIST="Get Snippets Dashboard List"
|
COM_COMPONENTBUILDER_GET_SNIPPETS_DASHBOARD_LIST="Get Snippets Dashboard List"
|
||||||
COM_COMPONENTBUILDER_GET_SNIPPETS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the Get Snippets"
|
COM_COMPONENTBUILDER_GET_SNIPPETS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of Get Snippets"
|
||||||
COM_COMPONENTBUILDER_GET_SNIPPETS_LAYOUTS_BUTTON_ACCESS="Get Snippets Layouts Button Access"
|
COM_COMPONENTBUILDER_GET_SNIPPETS_LAYOUTS_BUTTON_ACCESS="Get Snippets Layouts Button Access"
|
||||||
COM_COMPONENTBUILDER_GET_SNIPPETS_LAYOUTS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the layouts button."
|
COM_COMPONENTBUILDER_GET_SNIPPETS_LAYOUTS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the layouts button."
|
||||||
COM_COMPONENTBUILDER_GET_SNIPPETS_LIBRARIES_BUTTON_ACCESS="Get Snippets Libraries Button Access"
|
COM_COMPONENTBUILDER_GET_SNIPPETS_LIBRARIES_BUTTON_ACCESS="Get Snippets Libraries Button Access"
|
||||||
@ -423,7 +443,7 @@ COM_COMPONENTBUILDER_GET_SNIPPETS_SITE_VIEWS_BUTTON_ACCESS_DESC=" Allows the use
|
|||||||
COM_COMPONENTBUILDER_GET_SNIPPETS_SNIPPETS_BUTTON_ACCESS="Get Snippets Snippets Button Access"
|
COM_COMPONENTBUILDER_GET_SNIPPETS_SNIPPETS_BUTTON_ACCESS="Get Snippets Snippets Button Access"
|
||||||
COM_COMPONENTBUILDER_GET_SNIPPETS_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the snippets button."
|
COM_COMPONENTBUILDER_GET_SNIPPETS_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the snippets button."
|
||||||
COM_COMPONENTBUILDER_GET_SNIPPETS_SUBMENU="Get Snippets Submenu"
|
COM_COMPONENTBUILDER_GET_SNIPPETS_SUBMENU="Get Snippets Submenu"
|
||||||
COM_COMPONENTBUILDER_GET_SNIPPETS_SUBMENU_DESC="Allows the users in this group to update the submenu of the Get Snippets"
|
COM_COMPONENTBUILDER_GET_SNIPPETS_SUBMENU_DESC="Allows the users in this group to submenu of Get Snippets"
|
||||||
COM_COMPONENTBUILDER_GET_SNIPPETS_TEMPLATES_BUTTON_ACCESS="Get Snippets Templates Button Access"
|
COM_COMPONENTBUILDER_GET_SNIPPETS_TEMPLATES_BUTTON_ACCESS="Get Snippets Templates Button Access"
|
||||||
COM_COMPONENTBUILDER_GET_SNIPPETS_TEMPLATES_BUTTON_ACCESS_DESC=" Allows the users in this group to access the templates button."
|
COM_COMPONENTBUILDER_GET_SNIPPETS_TEMPLATES_BUTTON_ACCESS_DESC=" Allows the users in this group to access the templates button."
|
||||||
COM_COMPONENTBUILDER_HELP_DOCUMENTS_ACCESS="Help Documents Access"
|
COM_COMPONENTBUILDER_HELP_DOCUMENTS_ACCESS="Help Documents Access"
|
||||||
@ -433,7 +453,7 @@ COM_COMPONENTBUILDER_HELP_DOCUMENTS_BATCH_USE_DESC="Allows users in this group t
|
|||||||
COM_COMPONENTBUILDER_HELP_DOCUMENTS_CREATE="Help Documents Create"
|
COM_COMPONENTBUILDER_HELP_DOCUMENTS_CREATE="Help Documents Create"
|
||||||
COM_COMPONENTBUILDER_HELP_DOCUMENTS_CREATE_DESC="Allows the users in this group to create create help documents"
|
COM_COMPONENTBUILDER_HELP_DOCUMENTS_CREATE_DESC="Allows the users in this group to create create help documents"
|
||||||
COM_COMPONENTBUILDER_HELP_DOCUMENTS_DASHBOARD_LIST="Help Documents Dashboard List"
|
COM_COMPONENTBUILDER_HELP_DOCUMENTS_DASHBOARD_LIST="Help Documents Dashboard List"
|
||||||
COM_COMPONENTBUILDER_HELP_DOCUMENTS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the help document"
|
COM_COMPONENTBUILDER_HELP_DOCUMENTS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of help document"
|
||||||
COM_COMPONENTBUILDER_HELP_DOCUMENTS_DELETE="Help Documents Delete"
|
COM_COMPONENTBUILDER_HELP_DOCUMENTS_DELETE="Help Documents Delete"
|
||||||
COM_COMPONENTBUILDER_HELP_DOCUMENTS_DELETE_DESC="Allows the users in this group to delete delete help documents"
|
COM_COMPONENTBUILDER_HELP_DOCUMENTS_DELETE_DESC="Allows the users in this group to delete delete help documents"
|
||||||
COM_COMPONENTBUILDER_HELP_DOCUMENTS_EDIT="Help Documents Edit"
|
COM_COMPONENTBUILDER_HELP_DOCUMENTS_EDIT="Help Documents Edit"
|
||||||
@ -449,7 +469,7 @@ COM_COMPONENTBUILDER_HELP_DOCUMENTS_EXPORT_DESC="Allows the users in this group
|
|||||||
COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT="Help Documents Import"
|
COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT="Help Documents Import"
|
||||||
COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT_DESC="Allows the users in this group to import import help documents"
|
COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT_DESC="Allows the users in this group to import import help documents"
|
||||||
COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU="Help Documents Submenu"
|
COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU="Help Documents Submenu"
|
||||||
COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU_DESC="Allows the users in this group to update the submenu of the help document"
|
COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU_DESC="Allows the users in this group to submenu of help document"
|
||||||
COM_COMPONENTBUILDER_IMPORT_DATA="Import Data"
|
COM_COMPONENTBUILDER_IMPORT_DATA="Import Data"
|
||||||
COM_COMPONENTBUILDER_IMPORT_DATA_DESC=" Allows users in this group to import data."
|
COM_COMPONENTBUILDER_IMPORT_DATA_DESC=" Allows users in this group to import data."
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS="Joomla Components Access"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS="Joomla Components Access"
|
||||||
@ -459,9 +479,9 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE_DESC="Allows users in this grou
|
|||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_CREATE="Joomla Components Create"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_CREATE="Joomla Components Create"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_CREATE_DESC="Allows the users in this group to create create joomla components"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_CREATE_DESC="Allows the users in this group to create create joomla components"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD="Joomla Components Dashboard Add"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD="Joomla Components Dashboard Add"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the joomla component"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of joomla component"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_LIST="Joomla Components Dashboard List"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_LIST="Joomla Components Dashboard List"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the joomla component"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of joomla component"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DELETE="Joomla Components Delete"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DELETE="Joomla Components Delete"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DELETE_DESC="Allows the users in this group to delete delete joomla components"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DELETE_DESC="Allows the users in this group to delete delete joomla components"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT="Joomla Components Edit"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT="Joomla Components Edit"
|
||||||
@ -477,7 +497,7 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_STATE_DESC="Allows the users in this
|
|||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION="Joomla Components Edit Version"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION="Joomla Components Edit Version"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla components"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla components"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_SUBMENU="Joomla Components Submenu"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_SUBMENU="Joomla Components Submenu"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_SUBMENU_DESC="Allows the users in this group to update the submenu of the joomla component"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_SUBMENU_DESC="Allows the users in this group to submenu of joomla component"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BACKUP_BUTTON_ACCESS="Joomla Component Backup Button Access"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BACKUP_BUTTON_ACCESS="Joomla Component Backup Button Access"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BACKUP_BUTTON_ACCESS_DESC=" Allows the users in this group to access the backup button."
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BACKUP_BUTTON_ACCESS_DESC=" Allows the users in this group to access the backup button."
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLONE_BUTTON_ACCESS="Joomla Component Clone Button Access"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLONE_BUTTON_ACCESS="Joomla Component Clone Button Access"
|
||||||
@ -507,7 +527,7 @@ COM_COMPONENTBUILDER_LANGUAGES_EXPORT_DESC="Allows the users in this group to ex
|
|||||||
COM_COMPONENTBUILDER_LANGUAGES_IMPORT="Languages Import"
|
COM_COMPONENTBUILDER_LANGUAGES_IMPORT="Languages Import"
|
||||||
COM_COMPONENTBUILDER_LANGUAGES_IMPORT_DESC="Allows the users in this group to import import languages"
|
COM_COMPONENTBUILDER_LANGUAGES_IMPORT_DESC="Allows the users in this group to import import languages"
|
||||||
COM_COMPONENTBUILDER_LANGUAGES_SUBMENU="Languages Submenu"
|
COM_COMPONENTBUILDER_LANGUAGES_SUBMENU="Languages Submenu"
|
||||||
COM_COMPONENTBUILDER_LANGUAGES_SUBMENU_DESC="Allows the users in this group to update the submenu of the language"
|
COM_COMPONENTBUILDER_LANGUAGES_SUBMENU_DESC="Allows the users in this group to submenu of language"
|
||||||
COM_COMPONENTBUILDER_LANGUAGE_BUILD_BUTTON_ACCESS="Language Build Button Access"
|
COM_COMPONENTBUILDER_LANGUAGE_BUILD_BUTTON_ACCESS="Language Build Button Access"
|
||||||
COM_COMPONENTBUILDER_LANGUAGE_BUILD_BUTTON_ACCESS_DESC=" Allows the users in this group to access the build button."
|
COM_COMPONENTBUILDER_LANGUAGE_BUILD_BUTTON_ACCESS_DESC=" Allows the users in this group to access the build button."
|
||||||
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_ACCESS="Language Translations Access"
|
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_ACCESS="Language Translations Access"
|
||||||
@ -517,7 +537,7 @@ COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_BATCH_USE_DESC="Allows users in this
|
|||||||
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_CREATE="Language Translations Create"
|
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_CREATE="Language Translations Create"
|
||||||
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_CREATE_DESC="Allows the users in this group to create create language translations"
|
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_CREATE_DESC="Allows the users in this group to create create language translations"
|
||||||
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_DASHBOARD_LIST="Language Translations Dashboard List"
|
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_DASHBOARD_LIST="Language Translations Dashboard List"
|
||||||
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the language translation"
|
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of language translation"
|
||||||
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_DELETE="Language Translations Delete"
|
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_DELETE="Language Translations Delete"
|
||||||
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_DELETE_DESC="Allows the users in this group to delete delete language translations"
|
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_DELETE_DESC="Allows the users in this group to delete delete language translations"
|
||||||
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_EDIT="Language Translations Edit"
|
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_EDIT="Language Translations Edit"
|
||||||
@ -533,7 +553,7 @@ COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_EXPORT_DESC="Allows the users in this
|
|||||||
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_IMPORT="Language Translations Import"
|
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_IMPORT="Language Translations Import"
|
||||||
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_IMPORT_DESC="Allows the users in this group to import import language translations"
|
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_IMPORT_DESC="Allows the users in this group to import import language translations"
|
||||||
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_SUBMENU="Language Translations Submenu"
|
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_SUBMENU="Language Translations Submenu"
|
||||||
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_SUBMENU_DESC="Allows the users in this group to update the submenu of the language translation"
|
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_SUBMENU_DESC="Allows the users in this group to submenu of language translation"
|
||||||
COM_COMPONENTBUILDER_LAYOUTS_ACCESS="Layouts Access"
|
COM_COMPONENTBUILDER_LAYOUTS_ACCESS="Layouts Access"
|
||||||
COM_COMPONENTBUILDER_LAYOUTS_ACCESS_DESC="Allows the users in this group to access access layouts"
|
COM_COMPONENTBUILDER_LAYOUTS_ACCESS_DESC="Allows the users in this group to access access layouts"
|
||||||
COM_COMPONENTBUILDER_LAYOUTS_BATCH_USE="Layouts Batch Use"
|
COM_COMPONENTBUILDER_LAYOUTS_BATCH_USE="Layouts Batch Use"
|
||||||
@ -541,9 +561,9 @@ COM_COMPONENTBUILDER_LAYOUTS_BATCH_USE_DESC="Allows users in this group to use b
|
|||||||
COM_COMPONENTBUILDER_LAYOUTS_CREATE="Layouts Create"
|
COM_COMPONENTBUILDER_LAYOUTS_CREATE="Layouts Create"
|
||||||
COM_COMPONENTBUILDER_LAYOUTS_CREATE_DESC="Allows the users in this group to create create layouts"
|
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="Layouts Dashboard Add"
|
||||||
COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the layout"
|
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="Layouts Dashboard List"
|
||||||
COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the layout"
|
COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of layout"
|
||||||
COM_COMPONENTBUILDER_LAYOUTS_DELETE="Layouts Delete"
|
COM_COMPONENTBUILDER_LAYOUTS_DELETE="Layouts Delete"
|
||||||
COM_COMPONENTBUILDER_LAYOUTS_DELETE_DESC="Allows the users in this group to delete delete layouts"
|
COM_COMPONENTBUILDER_LAYOUTS_DELETE_DESC="Allows the users in this group to delete delete layouts"
|
||||||
COM_COMPONENTBUILDER_LAYOUTS_EDIT="Layouts Edit"
|
COM_COMPONENTBUILDER_LAYOUTS_EDIT="Layouts Edit"
|
||||||
@ -559,7 +579,7 @@ COM_COMPONENTBUILDER_LAYOUTS_EXPORT_DESC="Allows the users in this group to expo
|
|||||||
COM_COMPONENTBUILDER_LAYOUTS_IMPORT="Layouts Import"
|
COM_COMPONENTBUILDER_LAYOUTS_IMPORT="Layouts Import"
|
||||||
COM_COMPONENTBUILDER_LAYOUTS_IMPORT_DESC="Allows the users in this group to import import layouts"
|
COM_COMPONENTBUILDER_LAYOUTS_IMPORT_DESC="Allows the users in this group to import import layouts"
|
||||||
COM_COMPONENTBUILDER_LAYOUTS_SUBMENU="Layouts Submenu"
|
COM_COMPONENTBUILDER_LAYOUTS_SUBMENU="Layouts Submenu"
|
||||||
COM_COMPONENTBUILDER_LAYOUTS_SUBMENU_DESC="Allows the users in this group to update the submenu of the layout"
|
COM_COMPONENTBUILDER_LAYOUTS_SUBMENU_DESC="Allows the users in this group to submenu of layout"
|
||||||
COM_COMPONENTBUILDER_LAYOUT_GET_SNIPPETS_BUTTON_ACCESS="Layout Get Snippets Button Access"
|
COM_COMPONENTBUILDER_LAYOUT_GET_SNIPPETS_BUTTON_ACCESS="Layout Get Snippets Button Access"
|
||||||
COM_COMPONENTBUILDER_LAYOUT_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
|
COM_COMPONENTBUILDER_LAYOUT_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
|
||||||
COM_COMPONENTBUILDER_LIBRARIES_ACCESS="Libraries Access"
|
COM_COMPONENTBUILDER_LIBRARIES_ACCESS="Libraries Access"
|
||||||
@ -589,7 +609,7 @@ COM_COMPONENTBUILDER_LIBRARIES_CONFIG_EDIT_VERSION_DESC="Allows users in this gr
|
|||||||
COM_COMPONENTBUILDER_LIBRARIES_CREATE="Libraries Create"
|
COM_COMPONENTBUILDER_LIBRARIES_CREATE="Libraries Create"
|
||||||
COM_COMPONENTBUILDER_LIBRARIES_CREATE_DESC="Allows the users in this group to create create libraries"
|
COM_COMPONENTBUILDER_LIBRARIES_CREATE_DESC="Allows the users in this group to create create libraries"
|
||||||
COM_COMPONENTBUILDER_LIBRARIES_DASHBOARD_LIST="Libraries Dashboard List"
|
COM_COMPONENTBUILDER_LIBRARIES_DASHBOARD_LIST="Libraries Dashboard List"
|
||||||
COM_COMPONENTBUILDER_LIBRARIES_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the library"
|
COM_COMPONENTBUILDER_LIBRARIES_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of library"
|
||||||
COM_COMPONENTBUILDER_LIBRARIES_DELETE="Libraries Delete"
|
COM_COMPONENTBUILDER_LIBRARIES_DELETE="Libraries Delete"
|
||||||
COM_COMPONENTBUILDER_LIBRARIES_DELETE_DESC="Allows the users in this group to delete delete libraries"
|
COM_COMPONENTBUILDER_LIBRARIES_DELETE_DESC="Allows the users in this group to delete delete libraries"
|
||||||
COM_COMPONENTBUILDER_LIBRARIES_EDIT="Libraries Edit"
|
COM_COMPONENTBUILDER_LIBRARIES_EDIT="Libraries Edit"
|
||||||
@ -621,7 +641,7 @@ COM_COMPONENTBUILDER_LIBRARIES_FILES_FOLDERS_URLS_EDIT_STATE_DESC="Allows the us
|
|||||||
COM_COMPONENTBUILDER_LIBRARIES_FILES_FOLDERS_URLS_EDIT_VERSION="Libraries Files Folders Urls Edit Version"
|
COM_COMPONENTBUILDER_LIBRARIES_FILES_FOLDERS_URLS_EDIT_VERSION="Libraries Files Folders Urls Edit Version"
|
||||||
COM_COMPONENTBUILDER_LIBRARIES_FILES_FOLDERS_URLS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version libraries files folders urls"
|
COM_COMPONENTBUILDER_LIBRARIES_FILES_FOLDERS_URLS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version libraries files folders urls"
|
||||||
COM_COMPONENTBUILDER_LIBRARIES_SUBMENU="Libraries Submenu"
|
COM_COMPONENTBUILDER_LIBRARIES_SUBMENU="Libraries Submenu"
|
||||||
COM_COMPONENTBUILDER_LIBRARIES_SUBMENU_DESC="Allows the users in this group to update the submenu of the library"
|
COM_COMPONENTBUILDER_LIBRARIES_SUBMENU_DESC="Allows the users in this group to submenu of library"
|
||||||
COM_COMPONENTBUILDER_LIBRARY_GET_SNIPPETS_BUTTON_ACCESS="Library Get Snippets Button Access"
|
COM_COMPONENTBUILDER_LIBRARY_GET_SNIPPETS_BUTTON_ACCESS="Library Get Snippets Button Access"
|
||||||
COM_COMPONENTBUILDER_LIBRARY_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
|
COM_COMPONENTBUILDER_LIBRARY_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
|
||||||
COM_COMPONENTBUILDER_MENU="» Component Builder"
|
COM_COMPONENTBUILDER_MENU="» Component Builder"
|
||||||
@ -648,7 +668,7 @@ COM_COMPONENTBUILDER_SERVERS_BATCH_USE_DESC="Allows users in this group to use b
|
|||||||
COM_COMPONENTBUILDER_SERVERS_CREATE="Servers Create"
|
COM_COMPONENTBUILDER_SERVERS_CREATE="Servers Create"
|
||||||
COM_COMPONENTBUILDER_SERVERS_CREATE_DESC="Allows the users in this group to create create servers"
|
COM_COMPONENTBUILDER_SERVERS_CREATE_DESC="Allows the users in this group to create create servers"
|
||||||
COM_COMPONENTBUILDER_SERVERS_DASHBOARD_LIST="Servers Dashboard List"
|
COM_COMPONENTBUILDER_SERVERS_DASHBOARD_LIST="Servers Dashboard List"
|
||||||
COM_COMPONENTBUILDER_SERVERS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the server"
|
COM_COMPONENTBUILDER_SERVERS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of server"
|
||||||
COM_COMPONENTBUILDER_SERVERS_DELETE="Servers Delete"
|
COM_COMPONENTBUILDER_SERVERS_DELETE="Servers Delete"
|
||||||
COM_COMPONENTBUILDER_SERVERS_DELETE_DESC="Allows the users in this group to delete delete servers"
|
COM_COMPONENTBUILDER_SERVERS_DELETE_DESC="Allows the users in this group to delete delete servers"
|
||||||
COM_COMPONENTBUILDER_SERVERS_EDIT="Servers Edit"
|
COM_COMPONENTBUILDER_SERVERS_EDIT="Servers Edit"
|
||||||
@ -668,7 +688,7 @@ COM_COMPONENTBUILDER_SERVERS_EXPORT_DESC="Allows the users in this group to expo
|
|||||||
COM_COMPONENTBUILDER_SERVERS_IMPORT="Servers Import"
|
COM_COMPONENTBUILDER_SERVERS_IMPORT="Servers Import"
|
||||||
COM_COMPONENTBUILDER_SERVERS_IMPORT_DESC="Allows the users in this group to import import servers"
|
COM_COMPONENTBUILDER_SERVERS_IMPORT_DESC="Allows the users in this group to import import servers"
|
||||||
COM_COMPONENTBUILDER_SERVERS_SUBMENU="Servers Submenu"
|
COM_COMPONENTBUILDER_SERVERS_SUBMENU="Servers Submenu"
|
||||||
COM_COMPONENTBUILDER_SERVERS_SUBMENU_DESC="Allows the users in this group to update the submenu of the server"
|
COM_COMPONENTBUILDER_SERVERS_SUBMENU_DESC="Allows the users in this group to submenu of server"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEWS_ACCESS="Site Views Access"
|
COM_COMPONENTBUILDER_SITE_VIEWS_ACCESS="Site Views Access"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEWS_ACCESS_DESC="Allows the users in this group to access access site views"
|
COM_COMPONENTBUILDER_SITE_VIEWS_ACCESS_DESC="Allows the users in this group to access access site views"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEWS_BATCH_USE="Site Views Batch Use"
|
COM_COMPONENTBUILDER_SITE_VIEWS_BATCH_USE="Site Views Batch Use"
|
||||||
@ -676,9 +696,9 @@ COM_COMPONENTBUILDER_SITE_VIEWS_BATCH_USE_DESC="Allows users in this group to us
|
|||||||
COM_COMPONENTBUILDER_SITE_VIEWS_CREATE="Site Views Create"
|
COM_COMPONENTBUILDER_SITE_VIEWS_CREATE="Site Views Create"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEWS_CREATE_DESC="Allows the users in this group to create create site views"
|
COM_COMPONENTBUILDER_SITE_VIEWS_CREATE_DESC="Allows the users in this group to create create site views"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEWS_DASHBOARD_ADD="Site Views Dashboard Add"
|
COM_COMPONENTBUILDER_SITE_VIEWS_DASHBOARD_ADD="Site Views Dashboard Add"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEWS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the site view"
|
COM_COMPONENTBUILDER_SITE_VIEWS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of site view"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEWS_DASHBOARD_LIST="Site Views Dashboard List"
|
COM_COMPONENTBUILDER_SITE_VIEWS_DASHBOARD_LIST="Site Views Dashboard List"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEWS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the site view"
|
COM_COMPONENTBUILDER_SITE_VIEWS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of site view"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEWS_DELETE="Site Views Delete"
|
COM_COMPONENTBUILDER_SITE_VIEWS_DELETE="Site Views Delete"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEWS_DELETE_DESC="Allows the users in this group to delete delete site views"
|
COM_COMPONENTBUILDER_SITE_VIEWS_DELETE_DESC="Allows the users in this group to delete delete site views"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEWS_EDIT="Site Views Edit"
|
COM_COMPONENTBUILDER_SITE_VIEWS_EDIT="Site Views Edit"
|
||||||
@ -694,7 +714,7 @@ COM_COMPONENTBUILDER_SITE_VIEWS_EXPORT_DESC="Allows the users in this group to e
|
|||||||
COM_COMPONENTBUILDER_SITE_VIEWS_IMPORT="Site Views Import"
|
COM_COMPONENTBUILDER_SITE_VIEWS_IMPORT="Site Views Import"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEWS_IMPORT_DESC="Allows the users in this group to import import site views"
|
COM_COMPONENTBUILDER_SITE_VIEWS_IMPORT_DESC="Allows the users in this group to import import site views"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEWS_SUBMENU="Site Views Submenu"
|
COM_COMPONENTBUILDER_SITE_VIEWS_SUBMENU="Site Views Submenu"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEWS_SUBMENU_DESC="Allows the users in this group to update the submenu of the site view"
|
COM_COMPONENTBUILDER_SITE_VIEWS_SUBMENU_DESC="Allows the users in this group to submenu of site view"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEW_GET_SNIPPETS_BUTTON_ACCESS="Site View Get Snippets Button Access"
|
COM_COMPONENTBUILDER_SITE_VIEW_GET_SNIPPETS_BUTTON_ACCESS="Site View Get Snippets Button Access"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEW_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
|
COM_COMPONENTBUILDER_SITE_VIEW_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
|
||||||
COM_COMPONENTBUILDER_SNIPPETS_ACCESS="Snippets Access"
|
COM_COMPONENTBUILDER_SNIPPETS_ACCESS="Snippets Access"
|
||||||
@ -704,7 +724,7 @@ COM_COMPONENTBUILDER_SNIPPETS_BATCH_USE_DESC="Allows users in this group to use
|
|||||||
COM_COMPONENTBUILDER_SNIPPETS_CREATE="Snippets Create"
|
COM_COMPONENTBUILDER_SNIPPETS_CREATE="Snippets Create"
|
||||||
COM_COMPONENTBUILDER_SNIPPETS_CREATE_DESC="Allows the users in this group to create create snippets"
|
COM_COMPONENTBUILDER_SNIPPETS_CREATE_DESC="Allows the users in this group to create create snippets"
|
||||||
COM_COMPONENTBUILDER_SNIPPETS_DASHBOARD_LIST="Snippets Dashboard List"
|
COM_COMPONENTBUILDER_SNIPPETS_DASHBOARD_LIST="Snippets Dashboard List"
|
||||||
COM_COMPONENTBUILDER_SNIPPETS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the snippet"
|
COM_COMPONENTBUILDER_SNIPPETS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of snippet"
|
||||||
COM_COMPONENTBUILDER_SNIPPETS_DELETE="Snippets Delete"
|
COM_COMPONENTBUILDER_SNIPPETS_DELETE="Snippets Delete"
|
||||||
COM_COMPONENTBUILDER_SNIPPETS_DELETE_DESC="Allows the users in this group to delete delete snippets"
|
COM_COMPONENTBUILDER_SNIPPETS_DELETE_DESC="Allows the users in this group to delete delete snippets"
|
||||||
COM_COMPONENTBUILDER_SNIPPETS_EDIT="Snippets Edit"
|
COM_COMPONENTBUILDER_SNIPPETS_EDIT="Snippets Edit"
|
||||||
@ -720,7 +740,7 @@ COM_COMPONENTBUILDER_SNIPPETS_EXPORT_DESC="Allows the users in this group to exp
|
|||||||
COM_COMPONENTBUILDER_SNIPPETS_IMPORT="Snippets Import"
|
COM_COMPONENTBUILDER_SNIPPETS_IMPORT="Snippets Import"
|
||||||
COM_COMPONENTBUILDER_SNIPPETS_IMPORT_DESC="Allows the users in this group to import import snippets"
|
COM_COMPONENTBUILDER_SNIPPETS_IMPORT_DESC="Allows the users in this group to import import snippets"
|
||||||
COM_COMPONENTBUILDER_SNIPPETS_SUBMENU="Snippets Submenu"
|
COM_COMPONENTBUILDER_SNIPPETS_SUBMENU="Snippets Submenu"
|
||||||
COM_COMPONENTBUILDER_SNIPPETS_SUBMENU_DESC="Allows the users in this group to update the submenu of the snippet"
|
COM_COMPONENTBUILDER_SNIPPETS_SUBMENU_DESC="Allows the users in this group to submenu of snippet"
|
||||||
COM_COMPONENTBUILDER_SNIPPET_GET_SNIPPETS_BUTTON_ACCESS="Snippet Get Snippets Button Access"
|
COM_COMPONENTBUILDER_SNIPPET_GET_SNIPPETS_BUTTON_ACCESS="Snippet Get Snippets Button Access"
|
||||||
COM_COMPONENTBUILDER_SNIPPET_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
|
COM_COMPONENTBUILDER_SNIPPET_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
|
||||||
COM_COMPONENTBUILDER_SNIPPET_SHARE_SNIPPETS_BUTTON_ACCESS="Snippet Share Snippets Button Access"
|
COM_COMPONENTBUILDER_SNIPPET_SHARE_SNIPPETS_BUTTON_ACCESS="Snippet Share Snippets Button Access"
|
||||||
@ -748,9 +768,9 @@ COM_COMPONENTBUILDER_TEMPLATES_BATCH_USE_DESC="Allows users in this group to use
|
|||||||
COM_COMPONENTBUILDER_TEMPLATES_CREATE="Templates Create"
|
COM_COMPONENTBUILDER_TEMPLATES_CREATE="Templates Create"
|
||||||
COM_COMPONENTBUILDER_TEMPLATES_CREATE_DESC="Allows the users in this group to create create templates"
|
COM_COMPONENTBUILDER_TEMPLATES_CREATE_DESC="Allows the users in this group to create create templates"
|
||||||
COM_COMPONENTBUILDER_TEMPLATES_DASHBOARD_ADD="Templates Dashboard Add"
|
COM_COMPONENTBUILDER_TEMPLATES_DASHBOARD_ADD="Templates Dashboard Add"
|
||||||
COM_COMPONENTBUILDER_TEMPLATES_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the template"
|
COM_COMPONENTBUILDER_TEMPLATES_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of template"
|
||||||
COM_COMPONENTBUILDER_TEMPLATES_DASHBOARD_LIST="Templates Dashboard List"
|
COM_COMPONENTBUILDER_TEMPLATES_DASHBOARD_LIST="Templates Dashboard List"
|
||||||
COM_COMPONENTBUILDER_TEMPLATES_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the template"
|
COM_COMPONENTBUILDER_TEMPLATES_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of template"
|
||||||
COM_COMPONENTBUILDER_TEMPLATES_DELETE="Templates Delete"
|
COM_COMPONENTBUILDER_TEMPLATES_DELETE="Templates Delete"
|
||||||
COM_COMPONENTBUILDER_TEMPLATES_DELETE_DESC="Allows the users in this group to delete delete templates"
|
COM_COMPONENTBUILDER_TEMPLATES_DELETE_DESC="Allows the users in this group to delete delete templates"
|
||||||
COM_COMPONENTBUILDER_TEMPLATES_EDIT="Templates Edit"
|
COM_COMPONENTBUILDER_TEMPLATES_EDIT="Templates Edit"
|
||||||
@ -766,7 +786,7 @@ COM_COMPONENTBUILDER_TEMPLATES_EXPORT_DESC="Allows the users in this group to ex
|
|||||||
COM_COMPONENTBUILDER_TEMPLATES_IMPORT="Templates Import"
|
COM_COMPONENTBUILDER_TEMPLATES_IMPORT="Templates Import"
|
||||||
COM_COMPONENTBUILDER_TEMPLATES_IMPORT_DESC="Allows the users in this group to import import templates"
|
COM_COMPONENTBUILDER_TEMPLATES_IMPORT_DESC="Allows the users in this group to import import templates"
|
||||||
COM_COMPONENTBUILDER_TEMPLATES_SUBMENU="Templates Submenu"
|
COM_COMPONENTBUILDER_TEMPLATES_SUBMENU="Templates Submenu"
|
||||||
COM_COMPONENTBUILDER_TEMPLATES_SUBMENU_DESC="Allows the users in this group to update the submenu of the template"
|
COM_COMPONENTBUILDER_TEMPLATES_SUBMENU_DESC="Allows the users in this group to submenu of template"
|
||||||
COM_COMPONENTBUILDER_TEMPLATE_GET_SNIPPETS_BUTTON_ACCESS="Template Get Snippets Button Access"
|
COM_COMPONENTBUILDER_TEMPLATE_GET_SNIPPETS_BUTTON_ACCESS="Template Get Snippets Button Access"
|
||||||
COM_COMPONENTBUILDER_TEMPLATE_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
|
COM_COMPONENTBUILDER_TEMPLATE_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
|
||||||
COM_COMPONENTBUILDER_USE_BATCH="Use Batch"
|
COM_COMPONENTBUILDER_USE_BATCH="Use Batch"
|
||||||
@ -778,7 +798,7 @@ COM_COMPONENTBUILDER_VALIDATION_RULES_BATCH_USE_DESC="Allows users in this group
|
|||||||
COM_COMPONENTBUILDER_VALIDATION_RULES_CREATE="Validation Rules Create"
|
COM_COMPONENTBUILDER_VALIDATION_RULES_CREATE="Validation Rules Create"
|
||||||
COM_COMPONENTBUILDER_VALIDATION_RULES_CREATE_DESC="Allows the users in this group to create create validation rules"
|
COM_COMPONENTBUILDER_VALIDATION_RULES_CREATE_DESC="Allows the users in this group to create create validation rules"
|
||||||
COM_COMPONENTBUILDER_VALIDATION_RULES_DASHBOARD_LIST="Validation Rules Dashboard List"
|
COM_COMPONENTBUILDER_VALIDATION_RULES_DASHBOARD_LIST="Validation Rules Dashboard List"
|
||||||
COM_COMPONENTBUILDER_VALIDATION_RULES_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the validation rule"
|
COM_COMPONENTBUILDER_VALIDATION_RULES_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of validation rule"
|
||||||
COM_COMPONENTBUILDER_VALIDATION_RULES_DELETE="Validation Rules Delete"
|
COM_COMPONENTBUILDER_VALIDATION_RULES_DELETE="Validation Rules Delete"
|
||||||
COM_COMPONENTBUILDER_VALIDATION_RULES_DELETE_DESC="Allows the users in this group to delete delete validation rules"
|
COM_COMPONENTBUILDER_VALIDATION_RULES_DELETE_DESC="Allows the users in this group to delete delete validation rules"
|
||||||
COM_COMPONENTBUILDER_VALIDATION_RULES_EDIT="Validation Rules Edit"
|
COM_COMPONENTBUILDER_VALIDATION_RULES_EDIT="Validation Rules Edit"
|
||||||
@ -794,4 +814,4 @@ COM_COMPONENTBUILDER_VALIDATION_RULES_EXPORT_DESC="Allows the users in this grou
|
|||||||
COM_COMPONENTBUILDER_VALIDATION_RULES_IMPORT="Validation Rules Import"
|
COM_COMPONENTBUILDER_VALIDATION_RULES_IMPORT="Validation Rules Import"
|
||||||
COM_COMPONENTBUILDER_VALIDATION_RULES_IMPORT_DESC="Allows the users in this group to import import validation rules"
|
COM_COMPONENTBUILDER_VALIDATION_RULES_IMPORT_DESC="Allows the users in this group to import import validation rules"
|
||||||
COM_COMPONENTBUILDER_VALIDATION_RULES_SUBMENU="Validation Rules Submenu"
|
COM_COMPONENTBUILDER_VALIDATION_RULES_SUBMENU="Validation Rules Submenu"
|
||||||
COM_COMPONENTBUILDER_VALIDATION_RULES_SUBMENU_DESC="Allows the users in this group to update the submenu of the validation rule"
|
COM_COMPONENTBUILDER_VALIDATION_RULES_SUBMENU_DESC="Allows the users in this group to submenu of validation rule"
|
1
admin/layouts/admin_fields_relations/index.html
Normal file
1
admin/layouts/admin_fields_relations/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<html><body bgcolor="#FFFFFF"></body></html>
|
44
admin/layouts/admin_fields_relations/publishing.php
Normal file
44
admin/layouts/admin_fields_relations/publishing.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 - 2018 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');
|
||||||
|
|
||||||
|
$app = JFactory::getApplication();
|
||||||
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
|
$fields = $displayData->get('fields') ?: array(
|
||||||
|
'created',
|
||||||
|
'created_by',
|
||||||
|
'modified',
|
||||||
|
'modified_by'
|
||||||
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
|
foreach ($fields as $field)
|
||||||
|
{
|
||||||
|
$field = is_array($field) ? $field : array($field);
|
||||||
|
foreach ($field as $f)
|
||||||
|
{
|
||||||
|
if ($form->getField($f))
|
||||||
|
{
|
||||||
|
if (in_array($f, $hiddenFields))
|
||||||
|
{
|
||||||
|
$form->setFieldAttribute($f, 'type', 'hidden');
|
||||||
|
}
|
||||||
|
|
||||||
|
echo $form->renderField($f);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
46
admin/layouts/admin_fields_relations/publlshing.php
Normal file
46
admin/layouts/admin_fields_relations/publlshing.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 - 2018 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');
|
||||||
|
|
||||||
|
$app = JFactory::getApplication();
|
||||||
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
|
$fields = $displayData->get('fields') ?: array(
|
||||||
|
'published',
|
||||||
|
'ordering',
|
||||||
|
'access',
|
||||||
|
'version',
|
||||||
|
'hits',
|
||||||
|
'id'
|
||||||
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
|
foreach ($fields as $field)
|
||||||
|
{
|
||||||
|
$field = is_array($field) ? $field : array($field);
|
||||||
|
foreach ($field as $f)
|
||||||
|
{
|
||||||
|
if ($form->getField($f))
|
||||||
|
{
|
||||||
|
if (in_array($f, $hiddenFields))
|
||||||
|
{
|
||||||
|
$form->setFieldAttribute($f, 'type', 'hidden');
|
||||||
|
}
|
||||||
|
|
||||||
|
echo $form->renderField($f);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
27
admin/layouts/admin_fields_relations/relations_above.php
Normal file
27
admin/layouts/admin_fields_relations/relations_above.php
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<?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 - 2018 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');
|
||||||
|
|
||||||
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
|
$fields = array(
|
||||||
|
'admin_view'
|
||||||
|
);
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div class="form-inline form-inline-header">
|
||||||
|
<?php foreach($fields as $field){
|
||||||
|
echo $form->renderField($field);
|
||||||
|
} ?>
|
||||||
|
</div>
|
35
admin/layouts/admin_fields_relations/relations_fullwidth.php
Normal file
35
admin/layouts/admin_fields_relations/relations_fullwidth.php
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
<?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 - 2018 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');
|
||||||
|
|
||||||
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
|
$fields = $displayData->get('fields') ?: array(
|
||||||
|
'note_on_relations',
|
||||||
|
'addrelations'
|
||||||
|
);
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div class="form-vertical">
|
||||||
|
<?php foreach($fields as $field): ?>
|
||||||
|
<div class="control-group">
|
||||||
|
<div class="control-label">
|
||||||
|
<?php echo $form->getLabel($field); ?>
|
||||||
|
</div>
|
||||||
|
<div class="controls">
|
||||||
|
<?php echo $form->getInput($field); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
@ -27,6 +27,8 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'php_getitems_after_all',
|
'php_getitems_after_all',
|
||||||
'add_php_getlistquery',
|
'add_php_getlistquery',
|
||||||
'php_getlistquery',
|
'php_getlistquery',
|
||||||
|
'add_php_getform',
|
||||||
|
'php_getform',
|
||||||
'add_php_before_save',
|
'add_php_before_save',
|
||||||
'php_before_save',
|
'php_before_save',
|
||||||
'add_php_save',
|
'add_php_save',
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->wadfields;
|
$items = $displayData->waefields;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit";
|
$edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit";
|
||||||
@ -68,14 +68,14 @@ $can = ComponentbuilderHelper::getActions('field');
|
|||||||
$canDo = ComponentbuilderHelper::getActions('field',$item,'fields');
|
$canDo = ComponentbuilderHelper::getActions('field',$item,'fields');
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nowrap">
|
<td>
|
||||||
<?php if ($canDo->get('field.edit')): ?>
|
<?php if ($canDo->get('field.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=fieldtype&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=fieldtype&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'fields.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'fields.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $displayData->escape($item->name); ?></div>
|
<?php echo $displayData->escape($item->name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@ -93,7 +93,7 @@ $can = ComponentbuilderHelper::getActions('field');
|
|||||||
<td>
|
<td>
|
||||||
<?php echo JText::_($item->store); ?>
|
<?php echo JText::_($item->store); ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td>
|
||||||
<?php if ($user->authorise('core.edit', 'com_componentbuilder.fields.category.' . (int)$item->catid)): ?>
|
<?php if ($user->authorise('core.edit', 'com_componentbuilder.fields.category.' . (int)$item->catid)): ?>
|
||||||
<a href="index.php?option=com_categories&task=category.edit&id=<?php echo (int)$item->catid; ?>&extension=com_componentbuilder.fields"><?php echo $displayData->escape($item->category_title); ?></a>
|
<a href="index.php?option=com_categories&task=category.edit&id=<?php echo (int)$item->catid; ?>&extension=com_componentbuilder.fields"><?php echo $displayData->escape($item->category_title); ?></a>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
@ -25,6 +25,7 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'note_whmcs_lisencing_note',
|
'note_whmcs_lisencing_note',
|
||||||
'whmcs_key',
|
'whmcs_key',
|
||||||
'whmcs_url',
|
'whmcs_url',
|
||||||
|
'whmcs_buy_link',
|
||||||
'license',
|
'license',
|
||||||
'bom',
|
'bom',
|
||||||
'image'
|
'image'
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->wanlinked_components;
|
$items = $displayData->waolinked_components;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit";
|
$edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit";
|
||||||
@ -59,14 +59,14 @@ $edit = "index.php?option=com_componentbuilder&view=joomla_components&task=jooml
|
|||||||
$canDo = ComponentbuilderHelper::getActions('joomla_component',$item,'joomla_components');
|
$canDo = ComponentbuilderHelper::getActions('joomla_component',$item,'joomla_components');
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nowrap">
|
<td>
|
||||||
<?php if ($canDo->get('joomla_component.edit')): ?>
|
<?php if ($canDo->get('joomla_component.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=server&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=server&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'joomla_components.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'joomla_components.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $displayData->escape($item->system_name); ?></div>
|
<?php echo $displayData->escape($item->system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -205,7 +205,6 @@ class ComponentbuilderModelAdmin_fields extends JModelAdmin
|
|||||||
$form->setValue($redirectedField, null, $redirectedValue);
|
$form->setValue($redirectedField, null, $redirectedValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -205,7 +205,6 @@ class ComponentbuilderModelAdmin_fields_conditions extends JModelAdmin
|
|||||||
$form->setValue($redirectedField, null, $redirectedValue);
|
$form->setValue($redirectedField, null, $redirectedValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
857
admin/models/admin_fields_relations.php
Normal file
857
admin/models/admin_fields_relations.php
Normal file
@ -0,0 +1,857 @@
|
|||||||
|
<?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 - 2018 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;
|
||||||
|
|
||||||
|
// import Joomla modelform library
|
||||||
|
jimport('joomla.application.component.modeladmin');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Componentbuilder Admin_fields_relations Model
|
||||||
|
*/
|
||||||
|
class ComponentbuilderModelAdmin_fields_relations extends JModelAdmin
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var string The prefix to use with controller messages.
|
||||||
|
* @since 1.6
|
||||||
|
*/
|
||||||
|
protected $text_prefix = 'COM_COMPONENTBUILDER';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The type alias for this content type.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 3.2
|
||||||
|
*/
|
||||||
|
public $typeAlias = 'com_componentbuilder.admin_fields_relations';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a Table object, always creating it
|
||||||
|
*
|
||||||
|
* @param type $type The table type to instantiate
|
||||||
|
* @param string $prefix A prefix for the table class name. Optional.
|
||||||
|
* @param array $config Configuration array for model. Optional.
|
||||||
|
*
|
||||||
|
* @return JTable A database object
|
||||||
|
*
|
||||||
|
* @since 1.6
|
||||||
|
*/
|
||||||
|
public function getTable($type = 'admin_fields_relations', $prefix = 'ComponentbuilderTable', $config = array())
|
||||||
|
{
|
||||||
|
return JTable::getInstance($type, $prefix, $config);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get a single record.
|
||||||
|
*
|
||||||
|
* @param integer $pk The id of the primary key.
|
||||||
|
*
|
||||||
|
* @return mixed Object on success, false on failure.
|
||||||
|
*
|
||||||
|
* @since 1.6
|
||||||
|
*/
|
||||||
|
public function getItem($pk = null)
|
||||||
|
{
|
||||||
|
if ($item = parent::getItem($pk))
|
||||||
|
{
|
||||||
|
if (!empty($item->params) && !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->addrelations))
|
||||||
|
{
|
||||||
|
// Convert the addrelations field to an array.
|
||||||
|
$addrelations = new Registry;
|
||||||
|
$addrelations->loadString($item->addrelations);
|
||||||
|
$item->addrelations = $addrelations->toArray();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!empty($item->id))
|
||||||
|
{
|
||||||
|
$item->tags = new JHelperTags;
|
||||||
|
$item->tags->getTagIds($item->id, 'com_componentbuilder.admin_fields_relations');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $item;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get the record form.
|
||||||
|
*
|
||||||
|
* @param array $data Data for the form.
|
||||||
|
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
|
||||||
|
*
|
||||||
|
* @return mixed A JForm object on success, false on failure
|
||||||
|
*
|
||||||
|
* @since 1.6
|
||||||
|
*/
|
||||||
|
public function getForm($data = array(), $loadData = true)
|
||||||
|
{
|
||||||
|
// Get the form.
|
||||||
|
$form = $this->loadForm('com_componentbuilder.admin_fields_relations', 'admin_fields_relations', array('control' => 'jform', 'load_data' => $loadData));
|
||||||
|
|
||||||
|
if (empty($form))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$jinput = JFactory::getApplication()->input;
|
||||||
|
|
||||||
|
// The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
|
||||||
|
if ($jinput->get('a_id'))
|
||||||
|
{
|
||||||
|
$id = $jinput->get('a_id', 0, 'INT');
|
||||||
|
}
|
||||||
|
// The back end uses id so we use that the rest of the time and set it to 0 by default.
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$id = $jinput->get('id', 0, 'INT');
|
||||||
|
}
|
||||||
|
|
||||||
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
|
// Check for existing item.
|
||||||
|
// Modify the form based on Edit State access controls.
|
||||||
|
if ($id != 0 && (!$user->authorise('admin_fields_relations.edit.state', 'com_componentbuilder.admin_fields_relations.' . (int) $id))
|
||||||
|
|| ($id == 0 && !$user->authorise('admin_fields_relations.edit.state', 'com_componentbuilder')))
|
||||||
|
{
|
||||||
|
// Disable fields for display.
|
||||||
|
$form->setFieldAttribute('ordering', 'disabled', 'true');
|
||||||
|
$form->setFieldAttribute('published', 'disabled', 'true');
|
||||||
|
// Disable fields while saving.
|
||||||
|
$form->setFieldAttribute('ordering', 'filter', 'unset');
|
||||||
|
$form->setFieldAttribute('published', 'filter', 'unset');
|
||||||
|
}
|
||||||
|
// If this is a new item insure the greated by is set.
|
||||||
|
if (0 == $id)
|
||||||
|
{
|
||||||
|
// Set the created_by to this user
|
||||||
|
$form->setValue('created_by', null, $user->id);
|
||||||
|
}
|
||||||
|
// Modify the form based on Edit Creaded By access controls.
|
||||||
|
if ($id != 0 && (!$user->authorise('admin_fields_relations.edit.created_by', 'com_componentbuilder.admin_fields_relations.' . (int) $id))
|
||||||
|
|| ($id == 0 && !$user->authorise('admin_fields_relations.edit.created_by', 'com_componentbuilder')))
|
||||||
|
{
|
||||||
|
// Disable fields for display.
|
||||||
|
$form->setFieldAttribute('created_by', 'disabled', 'true');
|
||||||
|
// Disable fields for display.
|
||||||
|
$form->setFieldAttribute('created_by', 'readonly', 'true');
|
||||||
|
// Disable fields while saving.
|
||||||
|
$form->setFieldAttribute('created_by', 'filter', 'unset');
|
||||||
|
}
|
||||||
|
// Modify the form based on Edit Creaded Date access controls.
|
||||||
|
if ($id != 0 && (!$user->authorise('admin_fields_relations.edit.created', 'com_componentbuilder.admin_fields_relations.' . (int) $id))
|
||||||
|
|| ($id == 0 && !$user->authorise('admin_fields_relations.edit.created', 'com_componentbuilder')))
|
||||||
|
{
|
||||||
|
// Disable fields for display.
|
||||||
|
$form->setFieldAttribute('created', 'disabled', 'true');
|
||||||
|
// Disable fields while saving.
|
||||||
|
$form->setFieldAttribute('created', 'filter', 'unset');
|
||||||
|
}
|
||||||
|
// Only load these values if no id is found
|
||||||
|
if (0 == $id)
|
||||||
|
{
|
||||||
|
// Set redirected field name
|
||||||
|
$redirectedField = $jinput->get('ref', null, 'STRING');
|
||||||
|
// Set redirected field value
|
||||||
|
$redirectedValue = $jinput->get('refid', 0, 'INT');
|
||||||
|
if (0 != $redirectedValue && $redirectedField)
|
||||||
|
{
|
||||||
|
// Now set the local-redirected field default value
|
||||||
|
$form->setValue($redirectedField, null, $redirectedValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $form;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get the script that have to be included on the form
|
||||||
|
*
|
||||||
|
* @return string script files
|
||||||
|
*/
|
||||||
|
public function getScript()
|
||||||
|
{
|
||||||
|
return 'administrator/components/com_componentbuilder/models/forms/admin_fields_relations.js';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to test whether a record can be deleted.
|
||||||
|
*
|
||||||
|
* @param object $record A record object.
|
||||||
|
*
|
||||||
|
* @return boolean True if allowed to delete the record. Defaults to the permission set in the component.
|
||||||
|
*
|
||||||
|
* @since 1.6
|
||||||
|
*/
|
||||||
|
protected function canDelete($record)
|
||||||
|
{
|
||||||
|
if (!empty($record->id))
|
||||||
|
{
|
||||||
|
if ($record->published != -2)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$user = JFactory::getUser();
|
||||||
|
// The record has been set. Check the record permissions.
|
||||||
|
return $user->authorise('admin_fields_relations.delete', 'com_componentbuilder.admin_fields_relations.' . (int) $record->id);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to test whether a record can have its state edited.
|
||||||
|
*
|
||||||
|
* @param object $record A record object.
|
||||||
|
*
|
||||||
|
* @return boolean True if allowed to change the state of the record. Defaults to the permission set in the component.
|
||||||
|
*
|
||||||
|
* @since 1.6
|
||||||
|
*/
|
||||||
|
protected function canEditState($record)
|
||||||
|
{
|
||||||
|
$user = JFactory::getUser();
|
||||||
|
$recordId = (!empty($record->id)) ? $record->id : 0;
|
||||||
|
|
||||||
|
if ($recordId)
|
||||||
|
{
|
||||||
|
// The record has been set. Check the record permissions.
|
||||||
|
$permission = $user->authorise('admin_fields_relations.edit.state', 'com_componentbuilder.admin_fields_relations.' . (int) $recordId);
|
||||||
|
if (!$permission && !is_null($permission))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// In the absense of better information, revert to the component permissions.
|
||||||
|
return $user->authorise('admin_fields_relations.edit.state', 'com_componentbuilder');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method override to check if you can edit an existing record.
|
||||||
|
*
|
||||||
|
* @param array $data An array of input data.
|
||||||
|
* @param string $key The name of the key for the primary key.
|
||||||
|
*
|
||||||
|
* @return boolean
|
||||||
|
* @since 2.5
|
||||||
|
*/
|
||||||
|
protected function allowEdit($data = array(), $key = 'id')
|
||||||
|
{
|
||||||
|
// Check specific edit permission then general edit permission.
|
||||||
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
|
return $user->authorise('admin_fields_relations.edit', 'com_componentbuilder.admin_fields_relations.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('admin_fields_relations.edit', 'com_componentbuilder');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare and sanitise the table data prior to saving.
|
||||||
|
*
|
||||||
|
* @param JTable $table A JTable object.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.6
|
||||||
|
*/
|
||||||
|
protected function prepareTable($table)
|
||||||
|
{
|
||||||
|
$date = JFactory::getDate();
|
||||||
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
|
if (isset($table->name))
|
||||||
|
{
|
||||||
|
$table->name = htmlspecialchars_decode($table->name, ENT_QUOTES);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($table->alias) && empty($table->alias))
|
||||||
|
{
|
||||||
|
$table->generateAlias();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empty($table->id))
|
||||||
|
{
|
||||||
|
$table->created = $date->toSql();
|
||||||
|
// set the user
|
||||||
|
if ($table->created_by == 0 || empty($table->created_by))
|
||||||
|
{
|
||||||
|
$table->created_by = $user->id;
|
||||||
|
}
|
||||||
|
// Set ordering to the last item if not set
|
||||||
|
if (empty($table->ordering))
|
||||||
|
{
|
||||||
|
$db = JFactory::getDbo();
|
||||||
|
$query = $db->getQuery(true)
|
||||||
|
->select('MAX(ordering)')
|
||||||
|
->from($db->quoteName('#__componentbuilder_admin_fields_relations'));
|
||||||
|
$db->setQuery($query);
|
||||||
|
$max = $db->loadResult();
|
||||||
|
|
||||||
|
$table->ordering = $max + 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$table->modified = $date->toSql();
|
||||||
|
$table->modified_by = $user->id;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!empty($table->id))
|
||||||
|
{
|
||||||
|
// Increment the items version number.
|
||||||
|
$table->version++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get the data that should be injected in the form.
|
||||||
|
*
|
||||||
|
* @return mixed The data for the form.
|
||||||
|
*
|
||||||
|
* @since 1.6
|
||||||
|
*/
|
||||||
|
protected function loadFormData()
|
||||||
|
{
|
||||||
|
// Check the session for previously entered form data.
|
||||||
|
$data = JFactory::getApplication()->getUserState('com_componentbuilder.edit.admin_fields_relations.data', array());
|
||||||
|
|
||||||
|
if (empty($data))
|
||||||
|
{
|
||||||
|
$data = $this->getItem();
|
||||||
|
}
|
||||||
|
|
||||||
|
return $data;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get the unique fields of this table.
|
||||||
|
*
|
||||||
|
* @return mixed An array of field names, boolean false if none is set.
|
||||||
|
*
|
||||||
|
* @since 3.0
|
||||||
|
*/
|
||||||
|
protected function getUniqeFields()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to delete one or more records.
|
||||||
|
*
|
||||||
|
* @param array &$pks An array of record primary keys.
|
||||||
|
*
|
||||||
|
* @return boolean True if successful, false if an error occurs.
|
||||||
|
*
|
||||||
|
* @since 12.2
|
||||||
|
*/
|
||||||
|
public function delete(&$pks)
|
||||||
|
{
|
||||||
|
if (!parent::delete($pks))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to change the published state of one or more records.
|
||||||
|
*
|
||||||
|
* @param array &$pks A list of the primary keys to change.
|
||||||
|
* @param integer $value The value of the published state.
|
||||||
|
*
|
||||||
|
* @return boolean True on success.
|
||||||
|
*
|
||||||
|
* @since 12.2
|
||||||
|
*/
|
||||||
|
public function publish(&$pks, $value = 1)
|
||||||
|
{
|
||||||
|
if (!parent::publish($pks, $value))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to perform batch operations on an item or a set of items.
|
||||||
|
*
|
||||||
|
* @param array $commands An array of commands to perform.
|
||||||
|
* @param array $pks An array of item ids.
|
||||||
|
* @param array $contexts An array of item contexts.
|
||||||
|
*
|
||||||
|
* @return boolean Returns true on success, false on failure.
|
||||||
|
*
|
||||||
|
* @since 12.2
|
||||||
|
*/
|
||||||
|
public function batch($commands, $pks, $contexts)
|
||||||
|
{
|
||||||
|
// Sanitize ids.
|
||||||
|
$pks = array_unique($pks);
|
||||||
|
JArrayHelper::toInteger($pks);
|
||||||
|
|
||||||
|
// Remove any values of zero.
|
||||||
|
if (array_search(0, $pks, true))
|
||||||
|
{
|
||||||
|
unset($pks[array_search(0, $pks, true)]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empty($pks))
|
||||||
|
{
|
||||||
|
$this->setError(JText::_('JGLOBAL_NO_ITEM_SELECTED'));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$done = false;
|
||||||
|
|
||||||
|
// Set some needed variables.
|
||||||
|
$this->user = JFactory::getUser();
|
||||||
|
$this->table = $this->getTable();
|
||||||
|
$this->tableClassName = get_class($this->table);
|
||||||
|
$this->contentType = new JUcmType;
|
||||||
|
$this->type = $this->contentType->getTypeByTable($this->tableClassName);
|
||||||
|
$this->canDo = ComponentbuilderHelper::getActions('admin_fields_relations');
|
||||||
|
$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('admin_fields_relations');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$this->canDo->get('admin_fields_relations.create') && !$this->canDo->get('admin_fields_relations.batch'))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// get list of uniqe fields
|
||||||
|
$uniqeFields = $this->getUniqeFields();
|
||||||
|
// remove move_copy from array
|
||||||
|
unset($values['move_copy']);
|
||||||
|
|
||||||
|
// make sure published is set
|
||||||
|
if (!isset($values['published']))
|
||||||
|
{
|
||||||
|
$values['published'] = 0;
|
||||||
|
}
|
||||||
|
elseif (isset($values['published']) && !$this->canDo->get('admin_fields_relations.edit.state'))
|
||||||
|
{
|
||||||
|
$values['published'] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
$newIds = array();
|
||||||
|
// Parent exists so let's proceed
|
||||||
|
while (!empty($pks))
|
||||||
|
{
|
||||||
|
// Pop the first ID off the stack
|
||||||
|
$pk = array_shift($pks);
|
||||||
|
|
||||||
|
$this->table->reset();
|
||||||
|
|
||||||
|
// only allow copy if user may edit this item.
|
||||||
|
if (!$this->user->authorise('admin_fields_relations.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->admin_view) && !is_numeric($this->table->admin_view))
|
||||||
|
{
|
||||||
|
$this->table->admin_view = $this->generateUniqe('admin_view',$this->table->admin_view);
|
||||||
|
}
|
||||||
|
|
||||||
|
// insert all set values
|
||||||
|
if (ComponentbuilderHelper::checkArray($values))
|
||||||
|
{
|
||||||
|
foreach ($values as $key => $value)
|
||||||
|
{
|
||||||
|
if (strlen($value) > 0 && isset($this->table->$key))
|
||||||
|
{
|
||||||
|
$this->table->$key = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// update all uniqe fields
|
||||||
|
if (ComponentbuilderHelper::checkArray($uniqeFields))
|
||||||
|
{
|
||||||
|
foreach ($uniqeFields as $uniqeField)
|
||||||
|
{
|
||||||
|
$this->table->$uniqeField = $this->generateUniqe($uniqeField,$this->table->$uniqeField);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reset the ID because we are making a copy
|
||||||
|
$this->table->id = 0;
|
||||||
|
|
||||||
|
// TODO: Deal with ordering?
|
||||||
|
// $this->table->ordering = 1;
|
||||||
|
|
||||||
|
// Check the row.
|
||||||
|
if (!$this->table->check())
|
||||||
|
{
|
||||||
|
$this->setError($this->table->getError());
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!empty($this->type))
|
||||||
|
{
|
||||||
|
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Store the row.
|
||||||
|
if (!$this->table->store())
|
||||||
|
{
|
||||||
|
$this->setError($this->table->getError());
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the new item ID
|
||||||
|
$newId = $this->table->get('id');
|
||||||
|
|
||||||
|
// Add the new ID to the array
|
||||||
|
$newIds[$pk] = $newId;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clean the cache
|
||||||
|
$this->cleanCache();
|
||||||
|
|
||||||
|
return $newIds;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Batch move items to a new category
|
||||||
|
*
|
||||||
|
* @param integer $value The new category ID.
|
||||||
|
* @param array $pks An array of row IDs.
|
||||||
|
* @param array $contexts An array of item contexts.
|
||||||
|
*
|
||||||
|
* @return boolean True if successful, false otherwise and internal error is set.
|
||||||
|
*
|
||||||
|
* @since 12.2
|
||||||
|
*/
|
||||||
|
protected function batchMove($values, $pks, $contexts)
|
||||||
|
{
|
||||||
|
if (empty($this->batchSet))
|
||||||
|
{
|
||||||
|
// Set some needed variables.
|
||||||
|
$this->user = JFactory::getUser();
|
||||||
|
$this->table = $this->getTable();
|
||||||
|
$this->tableClassName = get_class($this->table);
|
||||||
|
$this->canDo = ComponentbuilderHelper::getActions('admin_fields_relations');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$this->canDo->get('admin_fields_relations.edit') && !$this->canDo->get('admin_fields_relations.batch'))
|
||||||
|
{
|
||||||
|
$this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT'));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// make sure published only updates if user has the permission.
|
||||||
|
if (isset($values['published']) && !$this->canDo->get('admin_fields_relations.edit.state'))
|
||||||
|
{
|
||||||
|
unset($values['published']);
|
||||||
|
}
|
||||||
|
// remove move_copy from array
|
||||||
|
unset($values['move_copy']);
|
||||||
|
|
||||||
|
// Parent exists so we proceed
|
||||||
|
foreach ($pks as $pk)
|
||||||
|
{
|
||||||
|
if (!$this->user->authorise('admin_fields_relations.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 addrelations items to data.
|
||||||
|
if (isset($data['addrelations']) && is_array($data['addrelations']))
|
||||||
|
{
|
||||||
|
$addrelations = new JRegistry;
|
||||||
|
$addrelations->loadArray($data['addrelations']);
|
||||||
|
$data['addrelations'] = (string) $addrelations;
|
||||||
|
}
|
||||||
|
elseif (!isset($data['addrelations']))
|
||||||
|
{
|
||||||
|
// Set the empty addrelations to data
|
||||||
|
$data['addrelations'] = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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;
|
||||||
|
}
|
||||||
|
}
|
@ -86,6 +86,12 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
$item->metadata = $registry->toArray();
|
$item->metadata = $registry->toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($item->php_import_headers))
|
||||||
|
{
|
||||||
|
// base64 Decode php_import_headers.
|
||||||
|
$item->php_import_headers = base64_decode($item->php_import_headers);
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($item->html_import_view))
|
if (!empty($item->html_import_view))
|
||||||
{
|
{
|
||||||
// base64 Decode html_import_view.
|
// base64 Decode html_import_view.
|
||||||
@ -98,12 +104,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
$item->php_import_save = base64_decode($item->php_import_save);
|
$item->php_import_save = base64_decode($item->php_import_save);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($item->php_import_headers))
|
|
||||||
{
|
|
||||||
// base64 Decode php_import_headers.
|
|
||||||
$item->php_import_headers = base64_decode($item->php_import_headers);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($item->php_getitem))
|
if (!empty($item->php_getitem))
|
||||||
{
|
{
|
||||||
// base64 Decode php_getitem.
|
// base64 Decode php_getitem.
|
||||||
@ -134,10 +134,10 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
$item->php_getlistquery = base64_decode($item->php_getlistquery);
|
$item->php_getlistquery = base64_decode($item->php_getlistquery);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($item->php_before_save))
|
if (!empty($item->php_getform))
|
||||||
{
|
{
|
||||||
// base64 Decode php_before_save.
|
// base64 Decode php_getform.
|
||||||
$item->php_before_save = base64_decode($item->php_before_save);
|
$item->php_getform = base64_decode($item->php_getform);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($item->css_views))
|
if (!empty($item->css_views))
|
||||||
@ -146,78 +146,84 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
$item->css_views = base64_decode($item->css_views);
|
$item->css_views = base64_decode($item->css_views);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($item->php_before_save))
|
||||||
|
{
|
||||||
|
// base64 Decode php_before_save.
|
||||||
|
$item->php_before_save = base64_decode($item->php_before_save);
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($item->php_save))
|
if (!empty($item->php_save))
|
||||||
{
|
{
|
||||||
// base64 Decode php_save.
|
// base64 Decode php_save.
|
||||||
$item->php_save = base64_decode($item->php_save);
|
$item->php_save = base64_decode($item->php_save);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($item->php_postsavehook))
|
|
||||||
{
|
|
||||||
// base64 Decode php_postsavehook.
|
|
||||||
$item->php_postsavehook = base64_decode($item->php_postsavehook);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($item->javascript_view_file))
|
if (!empty($item->javascript_view_file))
|
||||||
{
|
{
|
||||||
// base64 Decode javascript_view_file.
|
// base64 Decode javascript_view_file.
|
||||||
$item->javascript_view_file = base64_decode($item->javascript_view_file);
|
$item->javascript_view_file = base64_decode($item->javascript_view_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($item->php_postsavehook))
|
||||||
|
{
|
||||||
|
// base64 Decode php_postsavehook.
|
||||||
|
$item->php_postsavehook = base64_decode($item->php_postsavehook);
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($item->php_allowedit))
|
if (!empty($item->php_allowedit))
|
||||||
{
|
{
|
||||||
// base64 Decode php_allowedit.
|
// base64 Decode php_allowedit.
|
||||||
$item->php_allowedit = base64_decode($item->php_allowedit);
|
$item->php_allowedit = base64_decode($item->php_allowedit);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($item->php_batchcopy))
|
|
||||||
{
|
|
||||||
// base64 Decode php_batchcopy.
|
|
||||||
$item->php_batchcopy = base64_decode($item->php_batchcopy);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($item->javascript_view_footer))
|
if (!empty($item->javascript_view_footer))
|
||||||
{
|
{
|
||||||
// base64 Decode javascript_view_footer.
|
// base64 Decode javascript_view_footer.
|
||||||
$item->javascript_view_footer = base64_decode($item->javascript_view_footer);
|
$item->javascript_view_footer = base64_decode($item->javascript_view_footer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($item->php_batchcopy))
|
||||||
|
{
|
||||||
|
// base64 Decode php_batchcopy.
|
||||||
|
$item->php_batchcopy = base64_decode($item->php_batchcopy);
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($item->php_batchmove))
|
if (!empty($item->php_batchmove))
|
||||||
{
|
{
|
||||||
// base64 Decode php_batchmove.
|
// base64 Decode php_batchmove.
|
||||||
$item->php_batchmove = base64_decode($item->php_batchmove);
|
$item->php_batchmove = base64_decode($item->php_batchmove);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($item->php_before_publish))
|
|
||||||
{
|
|
||||||
// base64 Decode php_before_publish.
|
|
||||||
$item->php_before_publish = base64_decode($item->php_before_publish);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($item->javascript_views_file))
|
if (!empty($item->javascript_views_file))
|
||||||
{
|
{
|
||||||
// base64 Decode javascript_views_file.
|
// base64 Decode javascript_views_file.
|
||||||
$item->javascript_views_file = base64_decode($item->javascript_views_file);
|
$item->javascript_views_file = base64_decode($item->javascript_views_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($item->php_before_publish))
|
||||||
|
{
|
||||||
|
// base64 Decode php_before_publish.
|
||||||
|
$item->php_before_publish = base64_decode($item->php_before_publish);
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($item->php_after_publish))
|
if (!empty($item->php_after_publish))
|
||||||
{
|
{
|
||||||
// base64 Decode php_after_publish.
|
// base64 Decode php_after_publish.
|
||||||
$item->php_after_publish = base64_decode($item->php_after_publish);
|
$item->php_after_publish = base64_decode($item->php_after_publish);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($item->php_before_delete))
|
|
||||||
{
|
|
||||||
// base64 Decode php_before_delete.
|
|
||||||
$item->php_before_delete = base64_decode($item->php_before_delete);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($item->javascript_views_footer))
|
if (!empty($item->javascript_views_footer))
|
||||||
{
|
{
|
||||||
// base64 Decode javascript_views_footer.
|
// base64 Decode javascript_views_footer.
|
||||||
$item->javascript_views_footer = base64_decode($item->javascript_views_footer);
|
$item->javascript_views_footer = base64_decode($item->javascript_views_footer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($item->php_before_delete))
|
||||||
|
{
|
||||||
|
// base64 Decode php_before_delete.
|
||||||
|
$item->php_before_delete = base64_decode($item->php_before_delete);
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($item->php_after_delete))
|
if (!empty($item->php_after_delete))
|
||||||
{
|
{
|
||||||
// base64 Decode php_after_delete.
|
// base64 Decode php_after_delete.
|
||||||
@ -236,60 +242,68 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
$item->php_controller = base64_decode($item->php_controller);
|
$item->php_controller = base64_decode($item->php_controller);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($item->sql))
|
|
||||||
{
|
|
||||||
// base64 Decode sql.
|
|
||||||
$item->sql = base64_decode($item->sql);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($item->php_model))
|
if (!empty($item->php_model))
|
||||||
{
|
{
|
||||||
// base64 Decode php_model.
|
// base64 Decode php_model.
|
||||||
$item->php_model = base64_decode($item->php_model);
|
$item->php_model = base64_decode($item->php_model);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($item->sql))
|
||||||
|
{
|
||||||
|
// base64 Decode sql.
|
||||||
|
$item->sql = base64_decode($item->sql);
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($item->php_controller_list))
|
if (!empty($item->php_controller_list))
|
||||||
{
|
{
|
||||||
// base64 Decode php_controller_list.
|
// base64 Decode php_controller_list.
|
||||||
$item->php_controller_list = base64_decode($item->php_controller_list);
|
$item->php_controller_list = base64_decode($item->php_controller_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($item->php_import_display))
|
|
||||||
{
|
|
||||||
// base64 Decode php_import_display.
|
|
||||||
$item->php_import_display = base64_decode($item->php_import_display);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($item->php_model_list))
|
if (!empty($item->php_model_list))
|
||||||
{
|
{
|
||||||
// base64 Decode php_model_list.
|
// base64 Decode php_model_list.
|
||||||
$item->php_model_list = base64_decode($item->php_model_list);
|
$item->php_model_list = base64_decode($item->php_model_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($item->php_import_display))
|
||||||
|
{
|
||||||
|
// base64 Decode php_import_display.
|
||||||
|
$item->php_import_display = base64_decode($item->php_import_display);
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($item->php_import))
|
if (!empty($item->php_import))
|
||||||
{
|
{
|
||||||
// base64 Decode php_import.
|
// base64 Decode php_import.
|
||||||
$item->php_import = base64_decode($item->php_import);
|
$item->php_import = base64_decode($item->php_import);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($item->php_import_setdata))
|
|
||||||
{
|
|
||||||
// base64 Decode php_import_setdata.
|
|
||||||
$item->php_import_setdata = base64_decode($item->php_import_setdata);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($item->php_ajaxmethod))
|
if (!empty($item->php_ajaxmethod))
|
||||||
{
|
{
|
||||||
// base64 Decode php_ajaxmethod.
|
// base64 Decode php_ajaxmethod.
|
||||||
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
|
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($item->php_import_setdata))
|
||||||
|
{
|
||||||
|
// base64 Decode php_import_setdata.
|
||||||
|
$item->php_import_setdata = base64_decode($item->php_import_setdata);
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($item->php_import_ext))
|
if (!empty($item->php_import_ext))
|
||||||
{
|
{
|
||||||
// base64 Decode php_import_ext.
|
// base64 Decode php_import_ext.
|
||||||
$item->php_import_ext = base64_decode($item->php_import_ext);
|
$item->php_import_ext = base64_decode($item->php_import_ext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($item->addtables))
|
||||||
|
{
|
||||||
|
// Convert the addtables field to an array.
|
||||||
|
$addtables = new Registry;
|
||||||
|
$addtables->loadString($item->addtables);
|
||||||
|
$item->addtables = $addtables->toArray();
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($item->addpermissions))
|
if (!empty($item->addpermissions))
|
||||||
{
|
{
|
||||||
// Convert the addpermissions field to an array.
|
// Convert the addpermissions field to an array.
|
||||||
@ -314,14 +328,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
$item->addlinked_views = $addlinked_views->toArray();
|
$item->addlinked_views = $addlinked_views->toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($item->addtables))
|
|
||||||
{
|
|
||||||
// Convert the addtables field to an array.
|
|
||||||
$addtables = new Registry;
|
|
||||||
$addtables->loadString($item->addtables);
|
|
||||||
$item->addtables = $addtables->toArray();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($item->alias_builder))
|
if (!empty($item->alias_builder))
|
||||||
{
|
{
|
||||||
// Convert the alias_builder field to an array.
|
// Convert the alias_builder field to an array.
|
||||||
@ -500,6 +506,22 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// update all editors to use this components global editor
|
||||||
|
$global_editor = JComponentHelper::getParams('com_componentbuilder')->get('editor', 'none');
|
||||||
|
// now get all the editor fields
|
||||||
|
$editors = $form->getXml()->xpath("//field[@type='editor']");
|
||||||
|
// check if we found any
|
||||||
|
if (ComponentbuilderHelper::checkArray($editors))
|
||||||
|
{
|
||||||
|
foreach ($editors as $editor)
|
||||||
|
{
|
||||||
|
// get the field names
|
||||||
|
$name = (string) $editor['name'];
|
||||||
|
// set the field editor value (with none as fallback)
|
||||||
|
$form->setFieldAttribute($name, 'editor', $global_editor . '|none');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -729,7 +751,8 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
{
|
{
|
||||||
$_tablesArray = array(
|
$_tablesArray = array(
|
||||||
'admin_fields',
|
'admin_fields',
|
||||||
'admin_fields_conditions'
|
'admin_fields_conditions',
|
||||||
|
'admin_fields_relations'
|
||||||
);
|
);
|
||||||
foreach($_tablesArray as $_updateTable)
|
foreach($_tablesArray as $_updateTable)
|
||||||
{
|
{
|
||||||
@ -769,7 +792,8 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
{
|
{
|
||||||
$_tablesArray = array(
|
$_tablesArray = array(
|
||||||
'admin_fields',
|
'admin_fields',
|
||||||
'admin_fields_conditions'
|
'admin_fields_conditions',
|
||||||
|
'admin_fields_relations'
|
||||||
);
|
);
|
||||||
foreach($_tablesArray as $_updateTable)
|
foreach($_tablesArray as $_updateTable)
|
||||||
{
|
{
|
||||||
@ -1178,6 +1202,19 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
$data['system_name'] = $data['name_single'];
|
$data['system_name'] = $data['name_single'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set the addtables items to data.
|
||||||
|
if (isset($data['addtables']) && is_array($data['addtables']))
|
||||||
|
{
|
||||||
|
$addtables = new JRegistry;
|
||||||
|
$addtables->loadArray($data['addtables']);
|
||||||
|
$data['addtables'] = (string) $addtables;
|
||||||
|
}
|
||||||
|
elseif (!isset($data['addtables']))
|
||||||
|
{
|
||||||
|
// Set the empty addtables to data
|
||||||
|
$data['addtables'] = '';
|
||||||
|
}
|
||||||
|
|
||||||
// Set the addpermissions items to data.
|
// Set the addpermissions items to data.
|
||||||
if (isset($data['addpermissions']) && is_array($data['addpermissions']))
|
if (isset($data['addpermissions']) && is_array($data['addpermissions']))
|
||||||
{
|
{
|
||||||
@ -1217,19 +1254,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
$data['addlinked_views'] = '';
|
$data['addlinked_views'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the addtables items to data.
|
|
||||||
if (isset($data['addtables']) && is_array($data['addtables']))
|
|
||||||
{
|
|
||||||
$addtables = new JRegistry;
|
|
||||||
$addtables->loadArray($data['addtables']);
|
|
||||||
$data['addtables'] = (string) $addtables;
|
|
||||||
}
|
|
||||||
elseif (!isset($data['addtables']))
|
|
||||||
{
|
|
||||||
// Set the empty addtables to data
|
|
||||||
$data['addtables'] = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set the alias_builder items to data.
|
// Set the alias_builder items to data.
|
||||||
if (isset($data['alias_builder']) && is_array($data['alias_builder']))
|
if (isset($data['alias_builder']) && is_array($data['alias_builder']))
|
||||||
{
|
{
|
||||||
@ -1269,6 +1293,12 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
$data['ajax_input'] = '';
|
$data['ajax_input'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set the php_import_headers string to base64 string.
|
||||||
|
if (isset($data['php_import_headers']))
|
||||||
|
{
|
||||||
|
$data['php_import_headers'] = base64_encode($data['php_import_headers']);
|
||||||
|
}
|
||||||
|
|
||||||
// Set the html_import_view string to base64 string.
|
// Set the html_import_view string to base64 string.
|
||||||
if (isset($data['html_import_view']))
|
if (isset($data['html_import_view']))
|
||||||
{
|
{
|
||||||
@ -1281,12 +1311,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
$data['php_import_save'] = base64_encode($data['php_import_save']);
|
$data['php_import_save'] = base64_encode($data['php_import_save']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the php_import_headers string to base64 string.
|
|
||||||
if (isset($data['php_import_headers']))
|
|
||||||
{
|
|
||||||
$data['php_import_headers'] = base64_encode($data['php_import_headers']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set the php_getitem string to base64 string.
|
// Set the php_getitem string to base64 string.
|
||||||
if (isset($data['php_getitem']))
|
if (isset($data['php_getitem']))
|
||||||
{
|
{
|
||||||
@ -1317,10 +1341,10 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
$data['php_getlistquery'] = base64_encode($data['php_getlistquery']);
|
$data['php_getlistquery'] = base64_encode($data['php_getlistquery']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the php_before_save string to base64 string.
|
// Set the php_getform string to base64 string.
|
||||||
if (isset($data['php_before_save']))
|
if (isset($data['php_getform']))
|
||||||
{
|
{
|
||||||
$data['php_before_save'] = base64_encode($data['php_before_save']);
|
$data['php_getform'] = base64_encode($data['php_getform']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the css_views string to base64 string.
|
// Set the css_views string to base64 string.
|
||||||
@ -1329,78 +1353,84 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
$data['css_views'] = base64_encode($data['css_views']);
|
$data['css_views'] = base64_encode($data['css_views']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set the php_before_save string to base64 string.
|
||||||
|
if (isset($data['php_before_save']))
|
||||||
|
{
|
||||||
|
$data['php_before_save'] = base64_encode($data['php_before_save']);
|
||||||
|
}
|
||||||
|
|
||||||
// Set the php_save string to base64 string.
|
// Set the php_save string to base64 string.
|
||||||
if (isset($data['php_save']))
|
if (isset($data['php_save']))
|
||||||
{
|
{
|
||||||
$data['php_save'] = base64_encode($data['php_save']);
|
$data['php_save'] = base64_encode($data['php_save']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the php_postsavehook string to base64 string.
|
|
||||||
if (isset($data['php_postsavehook']))
|
|
||||||
{
|
|
||||||
$data['php_postsavehook'] = base64_encode($data['php_postsavehook']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set the javascript_view_file string to base64 string.
|
// Set the javascript_view_file string to base64 string.
|
||||||
if (isset($data['javascript_view_file']))
|
if (isset($data['javascript_view_file']))
|
||||||
{
|
{
|
||||||
$data['javascript_view_file'] = base64_encode($data['javascript_view_file']);
|
$data['javascript_view_file'] = base64_encode($data['javascript_view_file']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set the php_postsavehook string to base64 string.
|
||||||
|
if (isset($data['php_postsavehook']))
|
||||||
|
{
|
||||||
|
$data['php_postsavehook'] = base64_encode($data['php_postsavehook']);
|
||||||
|
}
|
||||||
|
|
||||||
// Set the php_allowedit string to base64 string.
|
// Set the php_allowedit string to base64 string.
|
||||||
if (isset($data['php_allowedit']))
|
if (isset($data['php_allowedit']))
|
||||||
{
|
{
|
||||||
$data['php_allowedit'] = base64_encode($data['php_allowedit']);
|
$data['php_allowedit'] = base64_encode($data['php_allowedit']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the php_batchcopy string to base64 string.
|
|
||||||
if (isset($data['php_batchcopy']))
|
|
||||||
{
|
|
||||||
$data['php_batchcopy'] = base64_encode($data['php_batchcopy']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set the javascript_view_footer string to base64 string.
|
// Set the javascript_view_footer string to base64 string.
|
||||||
if (isset($data['javascript_view_footer']))
|
if (isset($data['javascript_view_footer']))
|
||||||
{
|
{
|
||||||
$data['javascript_view_footer'] = base64_encode($data['javascript_view_footer']);
|
$data['javascript_view_footer'] = base64_encode($data['javascript_view_footer']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set the php_batchcopy string to base64 string.
|
||||||
|
if (isset($data['php_batchcopy']))
|
||||||
|
{
|
||||||
|
$data['php_batchcopy'] = base64_encode($data['php_batchcopy']);
|
||||||
|
}
|
||||||
|
|
||||||
// Set the php_batchmove string to base64 string.
|
// Set the php_batchmove string to base64 string.
|
||||||
if (isset($data['php_batchmove']))
|
if (isset($data['php_batchmove']))
|
||||||
{
|
{
|
||||||
$data['php_batchmove'] = base64_encode($data['php_batchmove']);
|
$data['php_batchmove'] = base64_encode($data['php_batchmove']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the php_before_publish string to base64 string.
|
|
||||||
if (isset($data['php_before_publish']))
|
|
||||||
{
|
|
||||||
$data['php_before_publish'] = base64_encode($data['php_before_publish']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set the javascript_views_file string to base64 string.
|
// Set the javascript_views_file string to base64 string.
|
||||||
if (isset($data['javascript_views_file']))
|
if (isset($data['javascript_views_file']))
|
||||||
{
|
{
|
||||||
$data['javascript_views_file'] = base64_encode($data['javascript_views_file']);
|
$data['javascript_views_file'] = base64_encode($data['javascript_views_file']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set the php_before_publish string to base64 string.
|
||||||
|
if (isset($data['php_before_publish']))
|
||||||
|
{
|
||||||
|
$data['php_before_publish'] = base64_encode($data['php_before_publish']);
|
||||||
|
}
|
||||||
|
|
||||||
// Set the php_after_publish string to base64 string.
|
// Set the php_after_publish string to base64 string.
|
||||||
if (isset($data['php_after_publish']))
|
if (isset($data['php_after_publish']))
|
||||||
{
|
{
|
||||||
$data['php_after_publish'] = base64_encode($data['php_after_publish']);
|
$data['php_after_publish'] = base64_encode($data['php_after_publish']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the php_before_delete string to base64 string.
|
|
||||||
if (isset($data['php_before_delete']))
|
|
||||||
{
|
|
||||||
$data['php_before_delete'] = base64_encode($data['php_before_delete']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set the javascript_views_footer string to base64 string.
|
// Set the javascript_views_footer string to base64 string.
|
||||||
if (isset($data['javascript_views_footer']))
|
if (isset($data['javascript_views_footer']))
|
||||||
{
|
{
|
||||||
$data['javascript_views_footer'] = base64_encode($data['javascript_views_footer']);
|
$data['javascript_views_footer'] = base64_encode($data['javascript_views_footer']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set the php_before_delete string to base64 string.
|
||||||
|
if (isset($data['php_before_delete']))
|
||||||
|
{
|
||||||
|
$data['php_before_delete'] = base64_encode($data['php_before_delete']);
|
||||||
|
}
|
||||||
|
|
||||||
// Set the php_after_delete string to base64 string.
|
// Set the php_after_delete string to base64 string.
|
||||||
if (isset($data['php_after_delete']))
|
if (isset($data['php_after_delete']))
|
||||||
{
|
{
|
||||||
@ -1419,54 +1449,54 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
$data['php_controller'] = base64_encode($data['php_controller']);
|
$data['php_controller'] = base64_encode($data['php_controller']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the sql string to base64 string.
|
|
||||||
if (isset($data['sql']))
|
|
||||||
{
|
|
||||||
$data['sql'] = base64_encode($data['sql']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set the php_model string to base64 string.
|
// Set the php_model string to base64 string.
|
||||||
if (isset($data['php_model']))
|
if (isset($data['php_model']))
|
||||||
{
|
{
|
||||||
$data['php_model'] = base64_encode($data['php_model']);
|
$data['php_model'] = base64_encode($data['php_model']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set the sql string to base64 string.
|
||||||
|
if (isset($data['sql']))
|
||||||
|
{
|
||||||
|
$data['sql'] = base64_encode($data['sql']);
|
||||||
|
}
|
||||||
|
|
||||||
// Set the php_controller_list string to base64 string.
|
// Set the php_controller_list string to base64 string.
|
||||||
if (isset($data['php_controller_list']))
|
if (isset($data['php_controller_list']))
|
||||||
{
|
{
|
||||||
$data['php_controller_list'] = base64_encode($data['php_controller_list']);
|
$data['php_controller_list'] = base64_encode($data['php_controller_list']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the php_import_display string to base64 string.
|
|
||||||
if (isset($data['php_import_display']))
|
|
||||||
{
|
|
||||||
$data['php_import_display'] = base64_encode($data['php_import_display']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set the php_model_list string to base64 string.
|
// Set the php_model_list string to base64 string.
|
||||||
if (isset($data['php_model_list']))
|
if (isset($data['php_model_list']))
|
||||||
{
|
{
|
||||||
$data['php_model_list'] = base64_encode($data['php_model_list']);
|
$data['php_model_list'] = base64_encode($data['php_model_list']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set the php_import_display string to base64 string.
|
||||||
|
if (isset($data['php_import_display']))
|
||||||
|
{
|
||||||
|
$data['php_import_display'] = base64_encode($data['php_import_display']);
|
||||||
|
}
|
||||||
|
|
||||||
// Set the php_import string to base64 string.
|
// Set the php_import string to base64 string.
|
||||||
if (isset($data['php_import']))
|
if (isset($data['php_import']))
|
||||||
{
|
{
|
||||||
$data['php_import'] = base64_encode($data['php_import']);
|
$data['php_import'] = base64_encode($data['php_import']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the php_import_setdata string to base64 string.
|
|
||||||
if (isset($data['php_import_setdata']))
|
|
||||||
{
|
|
||||||
$data['php_import_setdata'] = base64_encode($data['php_import_setdata']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set the php_ajaxmethod string to base64 string.
|
// Set the php_ajaxmethod string to base64 string.
|
||||||
if (isset($data['php_ajaxmethod']))
|
if (isset($data['php_ajaxmethod']))
|
||||||
{
|
{
|
||||||
$data['php_ajaxmethod'] = base64_encode($data['php_ajaxmethod']);
|
$data['php_ajaxmethod'] = base64_encode($data['php_ajaxmethod']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set the php_import_setdata string to base64 string.
|
||||||
|
if (isset($data['php_import_setdata']))
|
||||||
|
{
|
||||||
|
$data['php_import_setdata'] = base64_encode($data['php_import_setdata']);
|
||||||
|
}
|
||||||
|
|
||||||
// Set the php_import_ext string to base64 string.
|
// Set the php_import_ext string to base64 string.
|
||||||
if (isset($data['php_import_ext']))
|
if (isset($data['php_import_ext']))
|
||||||
{
|
{
|
||||||
|
@ -104,11 +104,9 @@ class ComponentbuilderModelAdmin_views extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('admin_view.access', 'com_componentbuilder.admin_view.' . (int) $item->id) && $user->authorise('admin_view.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('admin_view.access', 'com_componentbuilder.admin_view.' . (int) $item->id) && JFactory::getUser()->authorise('admin_view.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
@ -237,23 +235,21 @@ class ComponentbuilderModelAdmin_views extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('admin_view.access', 'com_componentbuilder.admin_view.' . (int) $item->id) && $user->authorise('admin_view.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('admin_view.access', 'com_componentbuilder.admin_view.' . (int) $item->id) && JFactory::getUser()->authorise('admin_view.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// decode php_import_headers
|
||||||
|
$item->php_import_headers = base64_decode($item->php_import_headers);
|
||||||
// decode html_import_view
|
// decode html_import_view
|
||||||
$item->html_import_view = base64_decode($item->html_import_view);
|
$item->html_import_view = base64_decode($item->html_import_view);
|
||||||
// decode php_import_save
|
// decode php_import_save
|
||||||
$item->php_import_save = base64_decode($item->php_import_save);
|
$item->php_import_save = base64_decode($item->php_import_save);
|
||||||
// decode php_import_headers
|
|
||||||
$item->php_import_headers = base64_decode($item->php_import_headers);
|
|
||||||
// decode php_getitem
|
// decode php_getitem
|
||||||
$item->php_getitem = base64_decode($item->php_getitem);
|
$item->php_getitem = base64_decode($item->php_getitem);
|
||||||
// decode php_getitems
|
// decode php_getitems
|
||||||
@ -264,56 +260,58 @@ class ComponentbuilderModelAdmin_views extends JModelList
|
|||||||
$item->css_view = base64_decode($item->css_view);
|
$item->css_view = base64_decode($item->css_view);
|
||||||
// decode php_getlistquery
|
// decode php_getlistquery
|
||||||
$item->php_getlistquery = base64_decode($item->php_getlistquery);
|
$item->php_getlistquery = base64_decode($item->php_getlistquery);
|
||||||
// decode php_before_save
|
// decode php_getform
|
||||||
$item->php_before_save = base64_decode($item->php_before_save);
|
$item->php_getform = base64_decode($item->php_getform);
|
||||||
// decode css_views
|
// decode css_views
|
||||||
$item->css_views = base64_decode($item->css_views);
|
$item->css_views = base64_decode($item->css_views);
|
||||||
|
// decode php_before_save
|
||||||
|
$item->php_before_save = base64_decode($item->php_before_save);
|
||||||
// decode php_save
|
// decode php_save
|
||||||
$item->php_save = base64_decode($item->php_save);
|
$item->php_save = base64_decode($item->php_save);
|
||||||
// decode php_postsavehook
|
|
||||||
$item->php_postsavehook = base64_decode($item->php_postsavehook);
|
|
||||||
// decode javascript_view_file
|
// decode javascript_view_file
|
||||||
$item->javascript_view_file = base64_decode($item->javascript_view_file);
|
$item->javascript_view_file = base64_decode($item->javascript_view_file);
|
||||||
|
// decode php_postsavehook
|
||||||
|
$item->php_postsavehook = base64_decode($item->php_postsavehook);
|
||||||
// decode php_allowedit
|
// decode php_allowedit
|
||||||
$item->php_allowedit = base64_decode($item->php_allowedit);
|
$item->php_allowedit = base64_decode($item->php_allowedit);
|
||||||
// decode php_batchcopy
|
|
||||||
$item->php_batchcopy = base64_decode($item->php_batchcopy);
|
|
||||||
// decode javascript_view_footer
|
// decode javascript_view_footer
|
||||||
$item->javascript_view_footer = base64_decode($item->javascript_view_footer);
|
$item->javascript_view_footer = base64_decode($item->javascript_view_footer);
|
||||||
|
// decode php_batchcopy
|
||||||
|
$item->php_batchcopy = base64_decode($item->php_batchcopy);
|
||||||
// decode php_batchmove
|
// decode php_batchmove
|
||||||
$item->php_batchmove = base64_decode($item->php_batchmove);
|
$item->php_batchmove = base64_decode($item->php_batchmove);
|
||||||
// decode php_before_publish
|
|
||||||
$item->php_before_publish = base64_decode($item->php_before_publish);
|
|
||||||
// decode javascript_views_file
|
// decode javascript_views_file
|
||||||
$item->javascript_views_file = base64_decode($item->javascript_views_file);
|
$item->javascript_views_file = base64_decode($item->javascript_views_file);
|
||||||
|
// decode php_before_publish
|
||||||
|
$item->php_before_publish = base64_decode($item->php_before_publish);
|
||||||
// decode php_after_publish
|
// decode php_after_publish
|
||||||
$item->php_after_publish = base64_decode($item->php_after_publish);
|
$item->php_after_publish = base64_decode($item->php_after_publish);
|
||||||
// decode php_before_delete
|
|
||||||
$item->php_before_delete = base64_decode($item->php_before_delete);
|
|
||||||
// decode javascript_views_footer
|
// decode javascript_views_footer
|
||||||
$item->javascript_views_footer = base64_decode($item->javascript_views_footer);
|
$item->javascript_views_footer = base64_decode($item->javascript_views_footer);
|
||||||
|
// decode php_before_delete
|
||||||
|
$item->php_before_delete = base64_decode($item->php_before_delete);
|
||||||
// decode php_after_delete
|
// decode php_after_delete
|
||||||
$item->php_after_delete = base64_decode($item->php_after_delete);
|
$item->php_after_delete = base64_decode($item->php_after_delete);
|
||||||
// decode php_document
|
// decode php_document
|
||||||
$item->php_document = base64_decode($item->php_document);
|
$item->php_document = base64_decode($item->php_document);
|
||||||
// decode php_controller
|
// decode php_controller
|
||||||
$item->php_controller = base64_decode($item->php_controller);
|
$item->php_controller = base64_decode($item->php_controller);
|
||||||
// decode sql
|
|
||||||
$item->sql = base64_decode($item->sql);
|
|
||||||
// decode php_model
|
// decode php_model
|
||||||
$item->php_model = base64_decode($item->php_model);
|
$item->php_model = base64_decode($item->php_model);
|
||||||
|
// decode sql
|
||||||
|
$item->sql = base64_decode($item->sql);
|
||||||
// decode php_controller_list
|
// decode php_controller_list
|
||||||
$item->php_controller_list = base64_decode($item->php_controller_list);
|
$item->php_controller_list = base64_decode($item->php_controller_list);
|
||||||
// decode php_import_display
|
|
||||||
$item->php_import_display = base64_decode($item->php_import_display);
|
|
||||||
// decode php_model_list
|
// decode php_model_list
|
||||||
$item->php_model_list = base64_decode($item->php_model_list);
|
$item->php_model_list = base64_decode($item->php_model_list);
|
||||||
|
// decode php_import_display
|
||||||
|
$item->php_import_display = base64_decode($item->php_import_display);
|
||||||
// decode php_import
|
// decode php_import
|
||||||
$item->php_import = base64_decode($item->php_import);
|
$item->php_import = base64_decode($item->php_import);
|
||||||
// decode php_import_setdata
|
|
||||||
$item->php_import_setdata = base64_decode($item->php_import_setdata);
|
|
||||||
// decode php_ajaxmethod
|
// decode php_ajaxmethod
|
||||||
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
|
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
|
||||||
|
// decode php_import_setdata
|
||||||
|
$item->php_import_setdata = base64_decode($item->php_import_setdata);
|
||||||
// decode php_import_ext
|
// decode php_import_ext
|
||||||
$item->php_import_ext = base64_decode($item->php_import_ext);
|
$item->php_import_ext = base64_decode($item->php_import_ext);
|
||||||
// unset the values we don't want exported.
|
// unset the values we don't want exported.
|
||||||
|
@ -90,11 +90,9 @@ class ComponentbuilderModelAdmins_fields extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('admin_fields.access', 'com_componentbuilder.admin_fields.' . (int) $item->id) && $user->authorise('admin_fields.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('admin_fields.access', 'com_componentbuilder.admin_fields.' . (int) $item->id) && JFactory::getUser()->authorise('admin_fields.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
|
@ -90,11 +90,9 @@ class ComponentbuilderModelAdmins_fields_conditions extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('admin_fields_conditions.access', 'com_componentbuilder.admin_fields_conditions.' . (int) $item->id) && $user->authorise('admin_fields_conditions.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('admin_fields_conditions.access', 'com_componentbuilder.admin_fields_conditions.' . (int) $item->id) && JFactory::getUser()->authorise('admin_fields_conditions.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
|
240
admin/models/admins_fields_relations.php
Normal file
240
admin/models/admins_fields_relations.php
Normal file
@ -0,0 +1,240 @@
|
|||||||
|
<?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 - 2018 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 Joomla modellist library
|
||||||
|
jimport('joomla.application.component.modellist');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Admins_fields_relations Model
|
||||||
|
*/
|
||||||
|
class ComponentbuilderModelAdmins_fields_relations 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))
|
||||||
|
{
|
||||||
|
foreach ($items as $nr => &$item)
|
||||||
|
{
|
||||||
|
$access = (JFactory::getUser()->authorise('admin_fields_relations.access', 'com_componentbuilder.admin_fields_relations.' . (int) $item->id) && JFactory::getUser()->authorise('admin_fields_relations.access', 'com_componentbuilder'));
|
||||||
|
if (!$access)
|
||||||
|
{
|
||||||
|
unset($items[$nr]);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// return items
|
||||||
|
return $items;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to build an SQL query to load the list data.
|
||||||
|
*
|
||||||
|
* @return string An SQL query
|
||||||
|
*/
|
||||||
|
protected function getListQuery()
|
||||||
|
{
|
||||||
|
// Get the user object.
|
||||||
|
$user = JFactory::getUser();
|
||||||
|
// Create a new query object.
|
||||||
|
$db = JFactory::getDBO();
|
||||||
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
|
// Select some fields
|
||||||
|
$query->select('a.*');
|
||||||
|
|
||||||
|
// From the componentbuilder_item table
|
||||||
|
$query->from($db->quoteName('#__componentbuilder_admin_fields_relations', 'a'));
|
||||||
|
|
||||||
|
// From the componentbuilder_admin_view table.
|
||||||
|
$query->select($db->quoteName('g.system_name','admin_view_system_name'));
|
||||||
|
$query->join('LEFT', $db->quoteName('#__componentbuilder_admin_view', 'g') . ' ON (' . $db->quoteName('a.admin_view') . ' = ' . $db->quoteName('g.id') . ')');
|
||||||
|
|
||||||
|
// Filter by published state
|
||||||
|
$published = $this->getState('filter.published');
|
||||||
|
if (is_numeric($published))
|
||||||
|
{
|
||||||
|
$query->where('a.published = ' . (int) $published);
|
||||||
|
}
|
||||||
|
elseif ($published === '')
|
||||||
|
{
|
||||||
|
$query->where('(a.published = 0 OR a.published = 1)');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Join over the asset groups.
|
||||||
|
$query->select('ag.title AS access_level');
|
||||||
|
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||||
|
// Filter by access level.
|
||||||
|
if ($access = $this->getState('filter.access'))
|
||||||
|
{
|
||||||
|
$query->where('a.access = ' . (int) $access);
|
||||||
|
}
|
||||||
|
// Implement View Level Access
|
||||||
|
if (!$user->authorise('core.options', 'com_componentbuilder'))
|
||||||
|
{
|
||||||
|
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||||
|
$query->where('a.access IN (' . $groups . ')');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add the list ordering clause.
|
||||||
|
$orderCol = $this->state->get('list.ordering', 'a.id');
|
||||||
|
$orderDirn = $this->state->get('list.direction', 'asc');
|
||||||
|
if ($orderCol != '')
|
||||||
|
{
|
||||||
|
$query->order($db->escape($orderCol . ' ' . $orderDirn));
|
||||||
|
}
|
||||||
|
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get a store id based on model configuration state.
|
||||||
|
*
|
||||||
|
* @return string A store id.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
protected function getStoreId($id = '')
|
||||||
|
{
|
||||||
|
// Compile the store id.
|
||||||
|
$id .= ':' . $this->getState('filter.id');
|
||||||
|
$id .= ':' . $this->getState('filter.search');
|
||||||
|
$id .= ':' . $this->getState('filter.published');
|
||||||
|
$id .= ':' . $this->getState('filter.ordering');
|
||||||
|
$id .= ':' . $this->getState('filter.created_by');
|
||||||
|
$id .= ':' . $this->getState('filter.modified_by');
|
||||||
|
|
||||||
|
return parent::getStoreId($id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build an SQL query to checkin all items left checked out longer then a set time.
|
||||||
|
*
|
||||||
|
* @return a bool
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
protected function checkInNow()
|
||||||
|
{
|
||||||
|
// Get set check in time
|
||||||
|
$time = JComponentHelper::getParams('com_componentbuilder')->get('check_in');
|
||||||
|
|
||||||
|
if ($time)
|
||||||
|
{
|
||||||
|
|
||||||
|
// Get a db connection.
|
||||||
|
$db = JFactory::getDbo();
|
||||||
|
// reset query
|
||||||
|
$query = $db->getQuery(true);
|
||||||
|
$query->select('*');
|
||||||
|
$query->from($db->quoteName('#__componentbuilder_admin_fields_relations'));
|
||||||
|
$db->setQuery($query);
|
||||||
|
$db->execute();
|
||||||
|
if ($db->getNumRows())
|
||||||
|
{
|
||||||
|
// Get Yesterdays date
|
||||||
|
$date = JFactory::getDate()->modify($time)->toSql();
|
||||||
|
// reset query
|
||||||
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
|
// Fields to update.
|
||||||
|
$fields = array(
|
||||||
|
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
||||||
|
$db->quoteName('checked_out') . '=0'
|
||||||
|
);
|
||||||
|
|
||||||
|
// Conditions for which records should be updated.
|
||||||
|
$conditions = array(
|
||||||
|
$db->quoteName('checked_out') . '!=0',
|
||||||
|
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
||||||
|
);
|
||||||
|
|
||||||
|
// Check table
|
||||||
|
$query->update($db->quoteName('#__componentbuilder_admin_fields_relations'))->set($fields)->where($conditions);
|
||||||
|
|
||||||
|
$db->setQuery($query);
|
||||||
|
|
||||||
|
$db->execute();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
@ -233,11 +233,17 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected $rowNumbers = array(
|
||||||
|
'admin_fields_conditions' => 80,
|
||||||
|
'admin_fields' => 50
|
||||||
|
);
|
||||||
|
|
||||||
protected $buttonArray = array(
|
protected $buttonArray = array(
|
||||||
'library_config' => 'libraries_config',
|
'library_config' => 'libraries_config',
|
||||||
'library_files_folders_urls' => 'libraries_files_folders_urls',
|
'library_files_folders_urls' => 'libraries_files_folders_urls',
|
||||||
'admin_fields' => 'admins_fields',
|
'admin_fields' => 'admins_fields',
|
||||||
'admin_fields_conditions' => 'admins_fields_conditions',
|
'admin_fields_conditions' => 'admins_fields_conditions',
|
||||||
|
'admin_fields_relations' => 'admins_fields_relations',
|
||||||
'validation_rule' => 'validation_rules',
|
'validation_rule' => 'validation_rules',
|
||||||
'field' => 'fields',
|
'field' => 'fields',
|
||||||
'component_admin_views' => 'components_admin_views' ,
|
'component_admin_views' => 'components_admin_views' ,
|
||||||
@ -410,6 +416,11 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
'type' => 'setURLType',
|
'type' => 'setURLType',
|
||||||
// Admin View
|
// Admin View
|
||||||
'field' => 'setItemNames',
|
'field' => 'setItemNames',
|
||||||
|
'listfield' => 'setItemNames',
|
||||||
|
'joinfields' => 'setItemNames',
|
||||||
|
'area' => 'setAreaName',
|
||||||
|
'set' => 'setCode',
|
||||||
|
'join_type' => 'setJoinType',
|
||||||
'list' => 'setAdminBehaviour',
|
'list' => 'setAdminBehaviour',
|
||||||
'title' => 'setYesNo',
|
'title' => 'setYesNo',
|
||||||
'alias' => 'setYesNo',
|
'alias' => 'setYesNo',
|
||||||
@ -417,7 +428,7 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
'search' => 'setYesNo',
|
'search' => 'setYesNo',
|
||||||
'filter' => 'setYesNo',
|
'filter' => 'setYesNo',
|
||||||
'link' => 'setYesNo',
|
'link' => 'setYesNo',
|
||||||
'permission' => 'setYesNo',
|
'permission' => 'setPermissions',
|
||||||
'tab' => 'setTabName',
|
'tab' => 'setTabName',
|
||||||
'alignment' => 'setAlignmentName',
|
'alignment' => 'setAlignmentName',
|
||||||
'target_field' => 'setItemNames',
|
'target_field' => 'setItemNames',
|
||||||
@ -456,6 +467,10 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
'update' => JText::_('COM_COMPONENTBUILDER_UPDATE'),
|
'update' => JText::_('COM_COMPONENTBUILDER_UPDATE'),
|
||||||
// Admin View (fields)
|
// Admin View (fields)
|
||||||
'field' => JText::_('COM_COMPONENTBUILDER_FIELD'),
|
'field' => JText::_('COM_COMPONENTBUILDER_FIELD'),
|
||||||
|
'listfield' => JText::_('COM_COMPONENTBUILDER_LIST_FIELD'),
|
||||||
|
'joinfields' => JText::_('COM_COMPONENTBUILDER_JOIN_FIELDS'),
|
||||||
|
'set' => JText::_('COM_COMPONENTBUILDER_GLUECODE'),
|
||||||
|
'join_type' => JText::_('COM_COMPONENTBUILDER_JOIN_TYPE'),
|
||||||
'list' => JText::_('COM_COMPONENTBUILDER_ADMIN_BEHAVIOUR'),
|
'list' => JText::_('COM_COMPONENTBUILDER_ADMIN_BEHAVIOUR'),
|
||||||
'order_list' => JText::_('COM_COMPONENTBUILDER_ORDER_IN_LIST_VIEWS'),
|
'order_list' => JText::_('COM_COMPONENTBUILDER_ORDER_IN_LIST_VIEWS'),
|
||||||
'title' => JText::_('COM_COMPONENTBUILDER_TITLE'),
|
'title' => JText::_('COM_COMPONENTBUILDER_TITLE'),
|
||||||
@ -625,6 +640,7 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
'library_files_folders_urls' => array('addurls','addfiles','addfolders'),
|
'library_files_folders_urls' => array('addurls','addfiles','addfolders'),
|
||||||
'admin_fields' => 'addfields',
|
'admin_fields' => 'addfields',
|
||||||
'admin_fields_conditions' => 'addconditions',
|
'admin_fields_conditions' => 'addconditions',
|
||||||
|
'admin_fields_relations' => 'addrelations',
|
||||||
'component_admin_views' => 'addadmin_views',
|
'component_admin_views' => 'addadmin_views',
|
||||||
'component_site_views' => 'addsite_views',
|
'component_site_views' => 'addsite_views',
|
||||||
'component_custom_admin_views' => 'addcustom_admin_views');
|
'component_custom_admin_views' => 'addcustom_admin_views');
|
||||||
@ -691,15 +707,17 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
$this->checkRepeatableConversion($fieldsData, $fieldName, $id, $idName);
|
$this->checkRepeatableConversion($fieldsData, $fieldName, $id, $idName);
|
||||||
// get the table
|
// get the table
|
||||||
$table = $this->getSubformTable($type, $fieldsData);
|
$table = $this->getSubformTable($type, $fieldsData);
|
||||||
|
// get row number
|
||||||
|
$number = (isset($this->rowNumbers[$type]) && $this->rowNumbers[$type]) ? $this->rowNumbers[$type] : false;
|
||||||
// set notice of bad practice
|
// set notice of bad practice
|
||||||
$notice = '';
|
$notice = '';
|
||||||
if ($idName === 'admin_view' && isset($this->rowNumber) && $this->rowNumber > 50)
|
if ($number && isset($this->rowNumber) && $this->rowNumber > $number)
|
||||||
{
|
{
|
||||||
$notice = '<div class="alert alert-warning">' . JText::sprintf('COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_FIFTY_S_IS_CONSIDERED_BAD_PRACTICE_YOUR_S_PAGE_LOAD_IN_JCB_WILL_SLOWDOWN_YOU_SHOULD_CONSIDER_DECOUPLING_SOME_OF_THESE_S', $this->rowNumber, $typeName, $typeName, $typeName, $typeName) . '</div>';
|
$notice = '<div class="alert alert-warning">' . JText::sprintf('COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_S_S_IS_CONSIDERED_BAD_PRACTICE_YOUR_S_PAGE_LOAD_IN_JCB_WILL_SLOWDOWN_YOU_SHOULD_CONSIDER_DECOUPLING_SOME_OF_THESE_S', $this->rowNumber, $typeName, $number, $typeName, $typeName, $typeName) . '</div>';
|
||||||
}
|
}
|
||||||
elseif ($idName === 'admin_view' && isset($this->rowNumber))
|
elseif ($number && isset($this->rowNumber))
|
||||||
{
|
{
|
||||||
$notice = '<div class="alert alert-info">' . JText::sprintf('COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_FIFTY_S_IS_CONSIDERED_BAD_PRACTICE', $this->rowNumber, $typeName, $typeName) . '</div>';
|
$notice = '<div class="alert alert-info">' . JText::sprintf('COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_S_S_IS_CONSIDERED_BAD_PRACTICE', $this->rowNumber, $typeName, $number, $typeName) . '</div>';
|
||||||
}
|
}
|
||||||
// return table
|
// return table
|
||||||
return $notice.$table;
|
return $notice.$table;
|
||||||
@ -755,6 +773,8 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
'field' => array('table' => 'field', 'tables' => 'fields', 'id' => 'id', 'name' => 'name', 'text' => 'Field', 'type' => array('table' => 'fieldtype', 'field' => 'id', 'key' => 'fieldtype', 'get' => 'name')),
|
'field' => array('table' => 'field', 'tables' => 'fields', 'id' => 'id', 'name' => 'name', 'text' => 'Field', 'type' => array('table' => 'fieldtype', 'field' => 'id', 'key' => 'fieldtype', 'get' => 'name')),
|
||||||
'target_field' => array('table' => 'field', 'tables' => 'fields', 'id' => 'id', 'name' => 'name', 'text' => 'Field', 'type' => array('table' => 'fieldtype', 'field' => 'id', 'key' => 'fieldtype', 'get' => 'name')),
|
'target_field' => array('table' => 'field', 'tables' => 'fields', 'id' => 'id', 'name' => 'name', 'text' => 'Field', 'type' => array('table' => 'fieldtype', 'field' => 'id', 'key' => 'fieldtype', 'get' => 'name')),
|
||||||
'match_field' => array('table' => 'field', 'tables' => 'fields', 'id' => 'id', 'name' => 'name', 'text' => 'Field', 'type' => array('table' => 'fieldtype', 'field' => 'id', 'key' => 'fieldtype', 'get' => 'name')),
|
'match_field' => array('table' => 'field', 'tables' => 'fields', 'id' => 'id', 'name' => 'name', 'text' => 'Field', 'type' => array('table' => 'fieldtype', 'field' => 'id', 'key' => 'fieldtype', 'get' => 'name')),
|
||||||
|
'listfield' => array('table' => 'field', 'tables' => 'fields', 'id' => 'id', 'name' => 'name', 'text' => 'Field', 'type' => array('table' => 'fieldtype', 'field' => 'id', 'key' => 'fieldtype', 'get' => 'name')),
|
||||||
|
'joinfields' => array('table' => 'field', 'tables' => 'fields', 'id' => 'id', 'name' => 'name', 'text' => 'Field', 'type' => array('table' => 'fieldtype', 'field' => 'id', 'key' => 'fieldtype', 'get' => 'name')),
|
||||||
// joomla component view
|
// joomla component view
|
||||||
'siteview' => array('table' => 'site_view', 'tables' => 'site_views', 'id' => 'id', 'name' => 'name', 'text' => 'Site View'),
|
'siteview' => array('table' => 'site_view', 'tables' => 'site_views', 'id' => 'id', 'name' => 'name', 'text' => 'Site View'),
|
||||||
'customadminview' => array('table' => 'custom_admin_view', 'tables' => 'custom_admin_views', 'id' => 'id', 'name' => 'system_name', 'text' => 'Custom Admin View'),
|
'customadminview' => array('table' => 'custom_admin_view', 'tables' => 'custom_admin_views', 'id' => 'id', 'name' => 'system_name', 'text' => 'Custom Admin View'),
|
||||||
@ -832,6 +852,56 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
return JText::_('COM_COMPONENTBUILDER_NO_ITEM_FOUND');
|
return JText::_('COM_COMPONENTBUILDER_NO_ITEM_FOUND');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function setPermissions($header, $values)
|
||||||
|
{
|
||||||
|
// check if value is array
|
||||||
|
if (!ComponentbuilderHelper::checkArray($values))
|
||||||
|
{
|
||||||
|
$values = array($values);
|
||||||
|
}
|
||||||
|
// check if value is array
|
||||||
|
if (ComponentbuilderHelper::checkArray($values))
|
||||||
|
{
|
||||||
|
// Editing, Access, View
|
||||||
|
$bucket = array();
|
||||||
|
foreach ($values as $value)
|
||||||
|
{
|
||||||
|
switch ($value)
|
||||||
|
{
|
||||||
|
case 1:
|
||||||
|
$bucket[] = JText::_('COM_COMPONENTBUILDER_EDITING');
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
$bucket[] = JText::_('COM_COMPONENTBUILDER_ACCESS');
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
$bucket[] = JText::_('COM_COMPONENTBUILDER_VIEW');
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// check if value is array
|
||||||
|
if (ComponentbuilderHelper::checkArray($bucket))
|
||||||
|
{
|
||||||
|
return implode(', ', $bucket);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return JText::_('COM_COMPONENTBUILDER_NONE');
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function setJoinType($header, $value)
|
||||||
|
{
|
||||||
|
switch ($value)
|
||||||
|
{
|
||||||
|
case 1:
|
||||||
|
return JText::_('COM_COMPONENTBUILDER_CONCATENATE');
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
return JText::_('COM_COMPONENTBUILDER_CUSTOM_CODE');
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return JText::_('COM_COMPONENTBUILDER_NOT_SET');
|
||||||
|
}
|
||||||
|
|
||||||
protected function setURLType($header, $value)
|
protected function setURLType($header, $value)
|
||||||
{
|
{
|
||||||
switch ($value)
|
switch ($value)
|
||||||
@ -969,6 +1039,28 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
return JText::_('COM_COMPONENTBUILDER_DETAILS');
|
return JText::_('COM_COMPONENTBUILDER_DETAILS');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function setAreaName($header, $value)
|
||||||
|
{
|
||||||
|
switch ($value)
|
||||||
|
{
|
||||||
|
case 1:
|
||||||
|
return JText::_('COM_COMPONENTBUILDER_MODEL_BEFORE_MODELLING');
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
return JText::_('COM_COMPONENTBUILDER_VIEW');
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
return JText::_('COM_COMPONENTBUILDER_MODEL_AFTER_MODELLING');
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return JText::_('COM_COMPONENTBUILDER_NOT_SET');
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function setCode($header, $value)
|
||||||
|
{
|
||||||
|
return nl2br(htmlspecialchars($value));
|
||||||
|
}
|
||||||
|
|
||||||
protected function setYesNo($header, $value)
|
protected function setYesNo($header, $value)
|
||||||
{
|
{
|
||||||
if (1 == $value)
|
if (1 == $value)
|
||||||
@ -1067,7 +1159,7 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
{
|
{
|
||||||
$result = $this->_db->loadObject();
|
$result = $this->_db->loadObject();
|
||||||
$result->name = strtolower($result->name);
|
$result->name = strtolower($result->name);
|
||||||
if (ComponentbuilderHelper::typeField($result->name,'list'))
|
if (ComponentbuilderHelper::fieldCheck($result->name,'list'))
|
||||||
{
|
{
|
||||||
// load the values form params
|
// load the values form params
|
||||||
$xml = json_decode($result->xml);
|
$xml = json_decode($result->xml);
|
||||||
@ -1111,15 +1203,15 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
// return found field options
|
// return found field options
|
||||||
return $optionSet;
|
return $optionSet;
|
||||||
}
|
}
|
||||||
elseif (ComponentbuilderHelper::typeField($result->name,'text'))
|
elseif (ComponentbuilderHelper::fieldCheck($result->name,'text'))
|
||||||
{
|
{
|
||||||
return "keywords=\"\"\nlength=\"\"";
|
return "keywords=\"\"\nlength=\"\"";
|
||||||
}
|
}
|
||||||
elseif (ComponentbuilderHelper::typeField($result->name,'dynamic'))
|
elseif (ComponentbuilderHelper::fieldCheck($result->name,'dynamic'))
|
||||||
{
|
{
|
||||||
return 'dynamic_list';
|
return 'dynamic_list';
|
||||||
}
|
}
|
||||||
elseif (ComponentbuilderHelper::typeField($result->name))
|
elseif (ComponentbuilderHelper::fieldCheck($result->name))
|
||||||
{
|
{
|
||||||
return 'match field type not supported. Select another!';
|
return 'match field type not supported. Select another!';
|
||||||
}
|
}
|
||||||
@ -2061,12 +2153,19 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
'php_after_delete','php_after_publish','php_ajaxmethod','php_allowedit','php_batchcopy',
|
'php_after_delete','php_after_publish','php_ajaxmethod','php_allowedit','php_batchcopy',
|
||||||
'php_batchmove','php_before_delete','php_before_publish','php_before_save','php_controller',
|
'php_batchmove','php_before_delete','php_before_publish','php_before_save','php_controller',
|
||||||
'php_controller_list','php_document','php_getitem','php_getitems','php_getitems_after_all',
|
'php_controller_list','php_document','php_getitem','php_getitems','php_getitems_after_all',
|
||||||
'php_getlistquery','php_import','php_import_display','php_import_ext','php_import_headers',
|
'php_getlistquery','php_import','php_import_display','php_import_ext','php_import_headers','php_getform',
|
||||||
'php_import_save','php_import_setdata','php_model','php_model_list','php_postsavehook','php_save');
|
'php_import_save','php_import_setdata','php_model','php_model_list','php_postsavehook','php_save');
|
||||||
$targets['admin_view']['view'] = 'admin_views';
|
$targets['admin_view']['view'] = 'admin_views';
|
||||||
$targets['admin_view']['not_base64'] = array();
|
$targets['admin_view']['not_base64'] = array();
|
||||||
$targets['admin_view']['name'] = 'system_name';
|
$targets['admin_view']['name'] = 'system_name';
|
||||||
|
|
||||||
|
// #__componentbuilder_admin_fields_relations
|
||||||
|
$targets['library'] = array();
|
||||||
|
$targets['library']['search'] = array('id', 'admin_view', 'addrelations');
|
||||||
|
$targets['library']['view'] = 'admin_fields_relations';
|
||||||
|
$targets['library']['not_base64'] = array('addrelations' => 'json');
|
||||||
|
$targets['library']['name'] = 'admin_view->id:admin_view.system_name';
|
||||||
|
|
||||||
// #__componentbuilder_custom_admin_view
|
// #__componentbuilder_custom_admin_view
|
||||||
$targets['custom_admin_view'] = array();
|
$targets['custom_admin_view'] = array();
|
||||||
$targets['custom_admin_view']['search'] = array('id', 'system_name', 'default','php_view','php_jview','php_jview_display','php_document',
|
$targets['custom_admin_view']['search'] = array('id', 'system_name', 'default','php_view','php_jview','php_jview_display','php_document',
|
||||||
@ -2114,7 +2213,6 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
|
|
||||||
// #__componentbuilder_library
|
// #__componentbuilder_library
|
||||||
$targets['library'] = array();
|
$targets['library'] = array();
|
||||||
$targets['library']['view'] = 'libraries';
|
|
||||||
$targets['library']['search'] = array('id', 'name', 'php_setdocument');
|
$targets['library']['search'] = array('id', 'name', 'php_setdocument');
|
||||||
$targets['library']['view'] = 'libraries';
|
$targets['library']['view'] = 'libraries';
|
||||||
$targets['library']['not_base64'] = array();
|
$targets['library']['not_base64'] = array();
|
||||||
@ -2542,6 +2640,61 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
return $xml;
|
return $xml;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Used in admin_fields_relations
|
||||||
|
public function getCodeGlueOptions($listfield, $joinfields, $type, $area)
|
||||||
|
{
|
||||||
|
// CONCATENATE GLUE
|
||||||
|
if ($type == 1)
|
||||||
|
{
|
||||||
|
// MODEL
|
||||||
|
if ($area == 1 || $area == 3)
|
||||||
|
{
|
||||||
|
return ', ';
|
||||||
|
}
|
||||||
|
// VIEW
|
||||||
|
elseif ($area == 2)
|
||||||
|
{
|
||||||
|
return '<br />';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// CUSTOM CODE
|
||||||
|
elseif ($type == 2)
|
||||||
|
{
|
||||||
|
// build fields array
|
||||||
|
if ('none' !== $joinfields)
|
||||||
|
{
|
||||||
|
$fields = array_map( function ($id) {
|
||||||
|
return (int) $id;
|
||||||
|
}, (array) explode(',', $joinfields));
|
||||||
|
// add the list field to array
|
||||||
|
array_unshift($fields, (int) $listfield);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$fields = array((int) $listfield);
|
||||||
|
}
|
||||||
|
// get field names
|
||||||
|
$names = array_map( function ($id) {
|
||||||
|
return '[' . $id . ']=> ' . ComponentbuilderHelper::getVar('field', $id, 'id', 'name');
|
||||||
|
}, $fields);
|
||||||
|
// MODEL
|
||||||
|
if ($area == 1 || $area == 3)
|
||||||
|
{
|
||||||
|
// create note
|
||||||
|
$note = "// ". implode('; ', $names);
|
||||||
|
return $note . PHP_EOL . '$item->{'.(int)$listfield.'} = $item->{' . implode("} . ', ' . \$item->{", $fields) . '};';
|
||||||
|
}
|
||||||
|
// VIEW
|
||||||
|
elseif ($area == 2)
|
||||||
|
{
|
||||||
|
// create note
|
||||||
|
$note = "<!-- " . implode('; ', $names) . " -->";
|
||||||
|
return '[field=' . implode("]<br />[field=", $fields). ']' . PHP_EOL . PHP_EOL . $note;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Used in get_snippets
|
// Used in get_snippets
|
||||||
|
|
||||||
public function getSnippets($libraries)
|
public function getSnippets($libraries)
|
||||||
|
@ -216,7 +216,6 @@ class ComponentbuilderModelComponent_admin_views extends JModelAdmin
|
|||||||
$form->setValue($redirectedField, null, $redirectedValue);
|
$form->setValue($redirectedField, null, $redirectedValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,7 +216,6 @@ class ComponentbuilderModelComponent_config extends JModelAdmin
|
|||||||
$form->setValue($redirectedField, null, $redirectedValue);
|
$form->setValue($redirectedField, null, $redirectedValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,7 +216,6 @@ class ComponentbuilderModelComponent_custom_admin_menus extends JModelAdmin
|
|||||||
$form->setValue($redirectedField, null, $redirectedValue);
|
$form->setValue($redirectedField, null, $redirectedValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,7 +216,6 @@ class ComponentbuilderModelComponent_custom_admin_views extends JModelAdmin
|
|||||||
$form->setValue($redirectedField, null, $redirectedValue);
|
$form->setValue($redirectedField, null, $redirectedValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -222,7 +222,6 @@ class ComponentbuilderModelComponent_dashboard extends JModelAdmin
|
|||||||
$form->setValue($redirectedField, null, $redirectedValue);
|
$form->setValue($redirectedField, null, $redirectedValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -241,7 +241,6 @@ class ComponentbuilderModelComponent_files_folders extends JModelAdmin
|
|||||||
$form->setValue($redirectedField, null, $redirectedValue);
|
$form->setValue($redirectedField, null, $redirectedValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,7 +216,6 @@ class ComponentbuilderModelComponent_mysql_tweaks extends JModelAdmin
|
|||||||
$form->setValue($redirectedField, null, $redirectedValue);
|
$form->setValue($redirectedField, null, $redirectedValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,7 +216,6 @@ class ComponentbuilderModelComponent_site_views extends JModelAdmin
|
|||||||
$form->setValue($redirectedField, null, $redirectedValue);
|
$form->setValue($redirectedField, null, $redirectedValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,7 +216,6 @@ class ComponentbuilderModelComponent_updates extends JModelAdmin
|
|||||||
$form->setValue($redirectedField, null, $redirectedValue);
|
$form->setValue($redirectedField, null, $redirectedValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,6 +131,9 @@ class ComponentbuilderModelComponentbuilder extends JModelList
|
|||||||
'admin_fields_conditions.create' => 'admin_fields_conditions.create',
|
'admin_fields_conditions.create' => 'admin_fields_conditions.create',
|
||||||
'admins_fields_conditions.access' => 'admin_fields_conditions.access',
|
'admins_fields_conditions.access' => 'admin_fields_conditions.access',
|
||||||
'admin_fields_conditions.access' => 'admin_fields_conditions.access',
|
'admin_fields_conditions.access' => 'admin_fields_conditions.access',
|
||||||
|
'admin_fields_relations.create' => 'admin_fields_relations.create',
|
||||||
|
'admins_fields_relations.access' => 'admin_fields_relations.access',
|
||||||
|
'admin_fields_relations.access' => 'admin_fields_relations.access',
|
||||||
'component_admin_views.create' => 'component_admin_views.create',
|
'component_admin_views.create' => 'component_admin_views.create',
|
||||||
'components_admin_views.access' => 'component_admin_views.access',
|
'components_admin_views.access' => 'component_admin_views.access',
|
||||||
'component_admin_views.access' => 'component_admin_views.access',
|
'component_admin_views.access' => 'component_admin_views.access',
|
||||||
|
@ -90,11 +90,9 @@ class ComponentbuilderModelComponents_admin_views extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('component_admin_views.access', 'com_componentbuilder.component_admin_views.' . (int) $item->id) && $user->authorise('component_admin_views.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('component_admin_views.access', 'com_componentbuilder.component_admin_views.' . (int) $item->id) && JFactory::getUser()->authorise('component_admin_views.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
|
@ -90,11 +90,9 @@ class ComponentbuilderModelComponents_config extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('component_config.access', 'com_componentbuilder.component_config.' . (int) $item->id) && $user->authorise('component_config.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('component_config.access', 'com_componentbuilder.component_config.' . (int) $item->id) && JFactory::getUser()->authorise('component_config.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
|
@ -90,11 +90,9 @@ class ComponentbuilderModelComponents_custom_admin_menus extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('component_custom_admin_menus.access', 'com_componentbuilder.component_custom_admin_menus.' . (int) $item->id) && $user->authorise('component_custom_admin_menus.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('component_custom_admin_menus.access', 'com_componentbuilder.component_custom_admin_menus.' . (int) $item->id) && JFactory::getUser()->authorise('component_custom_admin_menus.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
|
@ -90,11 +90,9 @@ class ComponentbuilderModelComponents_custom_admin_views extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('component_custom_admin_views.access', 'com_componentbuilder.component_custom_admin_views.' . (int) $item->id) && $user->authorise('component_custom_admin_views.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('component_custom_admin_views.access', 'com_componentbuilder.component_custom_admin_views.' . (int) $item->id) && JFactory::getUser()->authorise('component_custom_admin_views.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
|
@ -90,11 +90,9 @@ class ComponentbuilderModelComponents_dashboard extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('component_dashboard.access', 'com_componentbuilder.component_dashboard.' . (int) $item->id) && $user->authorise('component_dashboard.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('component_dashboard.access', 'com_componentbuilder.component_dashboard.' . (int) $item->id) && JFactory::getUser()->authorise('component_dashboard.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
|
@ -90,11 +90,9 @@ class ComponentbuilderModelComponents_files_folders extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('component_files_folders.access', 'com_componentbuilder.component_files_folders.' . (int) $item->id) && $user->authorise('component_files_folders.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('component_files_folders.access', 'com_componentbuilder.component_files_folders.' . (int) $item->id) && JFactory::getUser()->authorise('component_files_folders.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
|
@ -90,11 +90,9 @@ class ComponentbuilderModelComponents_mysql_tweaks extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('component_mysql_tweaks.access', 'com_componentbuilder.component_mysql_tweaks.' . (int) $item->id) && $user->authorise('component_mysql_tweaks.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('component_mysql_tweaks.access', 'com_componentbuilder.component_mysql_tweaks.' . (int) $item->id) && JFactory::getUser()->authorise('component_mysql_tweaks.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
|
@ -90,11 +90,9 @@ class ComponentbuilderModelComponents_site_views extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('component_site_views.access', 'com_componentbuilder.component_site_views.' . (int) $item->id) && $user->authorise('component_site_views.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('component_site_views.access', 'com_componentbuilder.component_site_views.' . (int) $item->id) && JFactory::getUser()->authorise('component_site_views.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
|
@ -90,11 +90,9 @@ class ComponentbuilderModelComponents_updates extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('component_updates.access', 'com_componentbuilder.component_updates.' . (int) $item->id) && $user->authorise('component_updates.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('component_updates.access', 'com_componentbuilder.component_updates.' . (int) $item->id) && JFactory::getUser()->authorise('component_updates.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
|
@ -327,6 +327,22 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// update all editors to use this components global editor
|
||||||
|
$global_editor = JComponentHelper::getParams('com_componentbuilder')->get('editor', 'none');
|
||||||
|
// now get all the editor fields
|
||||||
|
$editors = $form->getXml()->xpath("//field[@type='editor']");
|
||||||
|
// check if we found any
|
||||||
|
if (ComponentbuilderHelper::checkArray($editors))
|
||||||
|
{
|
||||||
|
foreach ($editors as $editor)
|
||||||
|
{
|
||||||
|
// get the field names
|
||||||
|
$name = (string) $editor['name'];
|
||||||
|
// set the field editor value (with none as fallback)
|
||||||
|
$form->setFieldAttribute($name, 'editor', $global_editor . '|none');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,11 +104,9 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('custom_admin_view.access', 'com_componentbuilder.custom_admin_view.' . (int) $item->id) && $user->authorise('custom_admin_view.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('custom_admin_view.access', 'com_componentbuilder.custom_admin_view.' . (int) $item->id) && JFactory::getUser()->authorise('custom_admin_view.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
@ -241,11 +239,9 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('custom_admin_view.access', 'com_componentbuilder.custom_admin_view.' . (int) $item->id) && $user->authorise('custom_admin_view.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('custom_admin_view.access', 'com_componentbuilder.custom_admin_view.' . (int) $item->id) && JFactory::getUser()->authorise('custom_admin_view.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
|
@ -184,6 +184,22 @@ class ComponentbuilderModelCustom_code extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// update all editors to use this components global editor
|
||||||
|
$global_editor = JComponentHelper::getParams('com_componentbuilder')->get('editor', 'none');
|
||||||
|
// now get all the editor fields
|
||||||
|
$editors = $form->getXml()->xpath("//field[@type='editor']");
|
||||||
|
// check if we found any
|
||||||
|
if (ComponentbuilderHelper::checkArray($editors))
|
||||||
|
{
|
||||||
|
foreach ($editors as $editor)
|
||||||
|
{
|
||||||
|
// get the field names
|
||||||
|
$name = (string) $editor['name'];
|
||||||
|
// set the field editor value (with none as fallback)
|
||||||
|
$form->setFieldAttribute($name, 'editor', $global_editor . '|none');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,11 +108,9 @@ class ComponentbuilderModelCustom_codes extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('custom_code.access', 'com_componentbuilder.custom_code.' . (int) $item->id) && $user->authorise('custom_code.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('custom_code.access', 'com_componentbuilder.custom_code.' . (int) $item->id) && JFactory::getUser()->authorise('custom_code.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
@ -346,11 +344,9 @@ class ComponentbuilderModelCustom_codes extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('custom_code.access', 'com_componentbuilder.custom_code.' . (int) $item->id) && $user->authorise('custom_code.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('custom_code.access', 'com_componentbuilder.custom_code.' . (int) $item->id) && JFactory::getUser()->authorise('custom_code.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
|
@ -334,6 +334,22 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// update all editors to use this components global editor
|
||||||
|
$global_editor = JComponentHelper::getParams('com_componentbuilder')->get('editor', 'none');
|
||||||
|
// now get all the editor fields
|
||||||
|
$editors = $form->getXml()->xpath("//field[@type='editor']");
|
||||||
|
// check if we found any
|
||||||
|
if (ComponentbuilderHelper::checkArray($editors))
|
||||||
|
{
|
||||||
|
foreach ($editors as $editor)
|
||||||
|
{
|
||||||
|
// get the field names
|
||||||
|
$name = (string) $editor['name'];
|
||||||
|
// set the field editor value (with none as fallback)
|
||||||
|
$form->setFieldAttribute($name, 'editor', $global_editor . '|none');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,11 +100,9 @@ class ComponentbuilderModelDynamic_gets extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('dynamic_get.access', 'com_componentbuilder.dynamic_get.' . (int) $item->id) && $user->authorise('dynamic_get.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('dynamic_get.access', 'com_componentbuilder.dynamic_get.' . (int) $item->id) && JFactory::getUser()->authorise('dynamic_get.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
@ -296,11 +294,9 @@ class ComponentbuilderModelDynamic_gets extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('dynamic_get.access', 'com_componentbuilder.dynamic_get.' . (int) $item->id) && $user->authorise('dynamic_get.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('dynamic_get.access', 'com_componentbuilder.dynamic_get.' . (int) $item->id) && JFactory::getUser()->authorise('dynamic_get.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
|
@ -231,7 +231,6 @@ class ComponentbuilderModelField extends JModelAdmin
|
|||||||
$form->setValue($redirectedField, null, $redirectedValue);
|
$form->setValue($redirectedField, null, $redirectedValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -931,7 +930,7 @@ class ComponentbuilderModelField extends JModelAdmin
|
|||||||
if (ComponentbuilderHelper::checkString($typephpx))
|
if (ComponentbuilderHelper::checkString($typephpx))
|
||||||
{
|
{
|
||||||
// load the type_phpx property
|
// load the type_phpx property
|
||||||
$bucket[] = "\t".'type_phpx_1="'. str_replace('"', "'", $typephp).'"';
|
$bucket[] = "\t".'type_phpx_1="'. str_replace('"', "'", $typephpx).'"';
|
||||||
}
|
}
|
||||||
// if the bucket has been loaded
|
// if the bucket has been loaded
|
||||||
if (ComponentbuilderHelper::checkArray($bucket))
|
if (ComponentbuilderHelper::checkArray($bucket))
|
||||||
|
@ -124,11 +124,9 @@ class ComponentbuilderModelFields extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('field.access', 'com_componentbuilder.field.' . (int) $item->id) && $user->authorise('field.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('field.access', 'com_componentbuilder.field.' . (int) $item->id) && JFactory::getUser()->authorise('field.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
@ -407,11 +405,9 @@ class ComponentbuilderModelFields extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('field.access', 'com_componentbuilder.field.' . (int) $item->id) && $user->authorise('field.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('field.access', 'com_componentbuilder.field.' . (int) $item->id) && JFactory::getUser()->authorise('field.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
|
@ -64,16 +64,22 @@ class JFormFieldAliasbuilder extends JFormFieldList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// filter by fields linked
|
||||||
|
if (ComponentbuilderHelper::checkArray($fieldIds))
|
||||||
|
{
|
||||||
|
// get list of field types that does not work in list views (note, spacer)
|
||||||
|
$spacers = ComponentbuilderHelper::getSpacerIds();
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
$query->select($db->quoteName(array('a.id','a.name','b.name'),array('id','name','type')));
|
$query->select($db->quoteName(array('a.id','a.name','b.name'),array('id','name','type')));
|
||||||
$query->from($db->quoteName('#__componentbuilder_field', 'a'));
|
$query->from($db->quoteName('#__componentbuilder_field', 'a'));
|
||||||
$query->join('LEFT', $db->quoteName('#__componentbuilder_fieldtype', 'b') . ' ON (' . $db->quoteName('a.fieldtype') . ' = ' . $db->quoteName('b.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__componentbuilder_fieldtype', 'b') . ' ON (' . $db->quoteName('a.fieldtype') . ' = ' . $db->quoteName('b.id') . ')');
|
||||||
$query->where($db->quoteName('a.published') . ' >= 1');
|
$query->where($db->quoteName('a.published') . ' >= 1');
|
||||||
// filter by fields linked
|
|
||||||
if (ComponentbuilderHelper::checkArray($fieldIds))
|
|
||||||
{
|
|
||||||
// only load these fields
|
// only load these fields
|
||||||
$query->where($db->quoteName('a.id') . ' IN (' . implode(',', $fieldIds) . ')');
|
$query->where($db->quoteName('a.id') . ' IN (' . implode(',', $fieldIds) . ')');
|
||||||
|
// none of these field types
|
||||||
|
if (ComponentbuilderHelper::checkArray($spacers))
|
||||||
|
{
|
||||||
|
$query->where($db->quoteName('a.fieldtype') . ' NOT IN (' . implode(',', $spacers) . ')');
|
||||||
}
|
}
|
||||||
$query->order('a.name ASC');
|
$query->order('a.name ASC');
|
||||||
$db->setQuery((string)$query);
|
$db->setQuery((string)$query);
|
||||||
@ -85,7 +91,9 @@ class JFormFieldAliasbuilder extends JFormFieldList
|
|||||||
{
|
{
|
||||||
$options[] = JHtml::_('select.option', $item->id, $item->name . ' [' . $item->type . ']');
|
$options[] = JHtml::_('select.option', $item->id, $item->name . ' [' . $item->type . ']');
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return $options;
|
return $options;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return array(JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_ADD_MORE_FIELDS_TO_THIS_ADMIN_VIEW')));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
109
admin/models/fields/joinfields.php
Normal file
109
admin/models/fields/joinfields.php
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
<?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 - 2018 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');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Joinfields Form Field class for the Componentbuilder component
|
||||||
|
*/
|
||||||
|
class JFormFieldJoinfields extends JFormFieldList
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The joinfields field type.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $type = 'joinfields';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get a list of options for a list input.
|
||||||
|
*
|
||||||
|
* @return array An array of JHtml options.
|
||||||
|
*/
|
||||||
|
public function getOptions()
|
||||||
|
{
|
||||||
|
// load the db opbject
|
||||||
|
$db = JFactory::getDBO();
|
||||||
|
// get the input from url
|
||||||
|
$jinput = JFactory::getApplication()->input;
|
||||||
|
// get the id
|
||||||
|
$ID = $jinput->getInt('id', 0);
|
||||||
|
// rest the fields ids
|
||||||
|
$fieldIds = array();
|
||||||
|
if (is_numeric($ID) && $ID >= 1)
|
||||||
|
{
|
||||||
|
// get the admin view ID
|
||||||
|
$adminView = ComponentbuilderHelper::getVar('admin_fields_relations', (int) $ID, 'id', 'admin_view');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// get the admin view ID
|
||||||
|
$adminView = $jinput->getInt('refid', 0);
|
||||||
|
}
|
||||||
|
if (is_numeric($adminView) && $adminView >= 1)
|
||||||
|
{
|
||||||
|
// get all the fields linked to the admin view
|
||||||
|
if ($addFields = ComponentbuilderHelper::getVar('admin_fields', (int) $adminView, 'admin_view', 'addfields'))
|
||||||
|
{
|
||||||
|
if (ComponentbuilderHelper::checkJson($addFields))
|
||||||
|
{
|
||||||
|
$addFields = json_decode($addFields, true);
|
||||||
|
if (ComponentbuilderHelper::checkArray($addFields))
|
||||||
|
{
|
||||||
|
foreach($addFields as $addField)
|
||||||
|
{
|
||||||
|
if (isset($addField['field']) && (!isset($addField['list']) || ($addField['list'] != 1 && $addField['list'] != 2)))
|
||||||
|
{
|
||||||
|
$fieldIds[] = (int) $addField['field'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// filter by fields linked
|
||||||
|
if (ComponentbuilderHelper::checkArray($fieldIds))
|
||||||
|
{
|
||||||
|
// get list of field types that does not work in list views (note, spacer)
|
||||||
|
$spacers = ComponentbuilderHelper::getSpacerIds();
|
||||||
|
$query = $db->getQuery(true);
|
||||||
|
$query->select($db->quoteName(array('a.id','a.name','t.name'),array('id','name','type')));
|
||||||
|
$query->from($db->quoteName('#__componentbuilder_field', 'a'));
|
||||||
|
$query->join('LEFT', $db->quoteName('#__componentbuilder_fieldtype', 't') . ' ON (' . $db->quoteName('a.fieldtype') . ' = ' . $db->quoteName('t.id') . ')');
|
||||||
|
$query->where($db->quoteName('a.published') . ' >= 1');
|
||||||
|
// only load these fields
|
||||||
|
$query->where($db->quoteName('a.id') . ' IN (' . implode(',', $fieldIds) . ')');
|
||||||
|
// none of these field types
|
||||||
|
if (ComponentbuilderHelper::checkArray($spacers))
|
||||||
|
{
|
||||||
|
$query->where($db->quoteName('a.fieldtype') . ' NOT IN (' . implode(',', $spacers) . ')');
|
||||||
|
}
|
||||||
|
$query->order('a.name ASC');
|
||||||
|
$db->setQuery((string)$query);
|
||||||
|
$items = $db->loadObjectList();
|
||||||
|
$options = array();
|
||||||
|
if ($items)
|
||||||
|
{
|
||||||
|
foreach($items as $item)
|
||||||
|
{
|
||||||
|
$options[] = JHtml::_('select.option', $item->id, $item->name . ' [' . $item->type . ']');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $options;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return array(JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_ADD_MORE_FIELDS_TO_THIS_ADMIN_VIEW')));
|
||||||
|
}
|
||||||
|
}
|
102
admin/models/fields/listfields.php
Normal file
102
admin/models/fields/listfields.php
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
<?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 - 2018 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');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Listfields Form Field class for the Componentbuilder component
|
||||||
|
*/
|
||||||
|
class JFormFieldListfields extends JFormFieldList
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The listfields field type.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $type = 'listfields';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get a list of options for a list input.
|
||||||
|
*
|
||||||
|
* @return array An array of JHtml options.
|
||||||
|
*/
|
||||||
|
public function getOptions()
|
||||||
|
{
|
||||||
|
// load the db opbject
|
||||||
|
$db = JFactory::getDBO();
|
||||||
|
// get the input from url
|
||||||
|
$jinput = JFactory::getApplication()->input;
|
||||||
|
// get the id
|
||||||
|
$ID = $jinput->getInt('id', 0);
|
||||||
|
// rest the fields ids
|
||||||
|
$fieldIds = array();
|
||||||
|
if (is_numeric($ID) && $ID >= 1)
|
||||||
|
{
|
||||||
|
// get the admin view ID
|
||||||
|
$adminView = ComponentbuilderHelper::getVar('admin_fields_relations', (int) $ID, 'id', 'admin_view');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// get the admin view ID
|
||||||
|
$adminView = $jinput->getInt('refid', 0);
|
||||||
|
}
|
||||||
|
if (is_numeric($adminView) && $adminView >= 1)
|
||||||
|
{
|
||||||
|
// get all the fields linked to the admin view
|
||||||
|
if ($addFields = ComponentbuilderHelper::getVar('admin_fields', (int) $adminView, 'admin_view', 'addfields'))
|
||||||
|
{
|
||||||
|
if (ComponentbuilderHelper::checkJson($addFields))
|
||||||
|
{
|
||||||
|
$addFields = json_decode($addFields, true);
|
||||||
|
if (ComponentbuilderHelper::checkArray($addFields))
|
||||||
|
{
|
||||||
|
foreach($addFields as $addField)
|
||||||
|
{
|
||||||
|
if (isset($addField['field']) && isset($addField['list']) && $addField['list'] == 1)
|
||||||
|
{
|
||||||
|
$fieldIds[] = (int) $addField['field'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// filter by fields linked
|
||||||
|
if (ComponentbuilderHelper::checkArray($fieldIds))
|
||||||
|
{
|
||||||
|
$query = $db->getQuery(true);
|
||||||
|
$query->select($db->quoteName(array('a.id','a.name'),array('id','name')));
|
||||||
|
$query->from($db->quoteName('#__componentbuilder_field', 'a'));
|
||||||
|
$query->where($db->quoteName('a.published') . ' >= 1');
|
||||||
|
// only load these fields
|
||||||
|
$query->where($db->quoteName('a.id') . ' IN (' . implode(',', $fieldIds) . ')');
|
||||||
|
$query->order('a.name ASC');
|
||||||
|
$db->setQuery((string)$query);
|
||||||
|
$items = $db->loadObjectList();
|
||||||
|
$options = array();
|
||||||
|
if ($items)
|
||||||
|
{
|
||||||
|
$options[] = JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_SELECT_AN_OPTION'));
|
||||||
|
foreach($items as $item)
|
||||||
|
{
|
||||||
|
$options[] = JHtml::_('select.option', $item->id, $item->name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $options;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
@ -125,7 +125,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getWadfields()
|
public function getWaefields()
|
||||||
{
|
{
|
||||||
// Get the user object.
|
// Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
@ -189,11 +189,9 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('field.access', 'com_componentbuilder.field.' . (int) $item->id) && $user->authorise('field.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('field.access', 'com_componentbuilder.field.' . (int) $item->id) && JFactory::getUser()->authorise('field.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
@ -209,13 +207,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
|||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
// convert datatype
|
// convert datatype
|
||||||
$item->datatype = $this->selectionTranslationWadfields($item->datatype, 'datatype');
|
$item->datatype = $this->selectionTranslationWaefields($item->datatype, 'datatype');
|
||||||
// convert indexes
|
// convert indexes
|
||||||
$item->indexes = $this->selectionTranslationWadfields($item->indexes, 'indexes');
|
$item->indexes = $this->selectionTranslationWaefields($item->indexes, 'indexes');
|
||||||
// convert null_switch
|
// convert null_switch
|
||||||
$item->null_switch = $this->selectionTranslationWadfields($item->null_switch, 'null_switch');
|
$item->null_switch = $this->selectionTranslationWaefields($item->null_switch, 'null_switch');
|
||||||
// convert store
|
// convert store
|
||||||
$item->store = $this->selectionTranslationWadfields($item->store, 'store');
|
$item->store = $this->selectionTranslationWaefields($item->store, 'store');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -229,7 +227,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return translatable string
|
* @return translatable string
|
||||||
*/
|
*/
|
||||||
public function selectionTranslationWadfields($value,$name)
|
public function selectionTranslationWaefields($value,$name)
|
||||||
{
|
{
|
||||||
// Array of datatype language strings
|
// Array of datatype language strings
|
||||||
if ($name === 'datatype')
|
if ($name === 'datatype')
|
||||||
@ -375,70 +373,6 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
|||||||
// Disable fields while saving.
|
// Disable fields while saving.
|
||||||
$form->setFieldAttribute('created', 'filter', 'unset');
|
$form->setFieldAttribute('created', 'filter', 'unset');
|
||||||
}
|
}
|
||||||
// Modify the form based on Edit Name access controls.
|
|
||||||
if ($id != 0 && (!$user->authorise('fieldtype.edit.name', 'com_componentbuilder.fieldtype.' . (int) $id))
|
|
||||||
|| ($id == 0 && !$user->authorise('fieldtype.edit.name', 'com_componentbuilder')))
|
|
||||||
{
|
|
||||||
// Disable fields for display.
|
|
||||||
$form->setFieldAttribute('name', 'disabled', 'true');
|
|
||||||
// Disable fields for display.
|
|
||||||
$form->setFieldAttribute('name', 'readonly', 'true');
|
|
||||||
if (!$form->getValue('name'))
|
|
||||||
{
|
|
||||||
// Disable fields while saving.
|
|
||||||
$form->setFieldAttribute('name', 'filter', 'unset');
|
|
||||||
// Disable fields while saving.
|
|
||||||
$form->setFieldAttribute('name', 'required', 'false');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Modify the form based on Edit Properties access controls.
|
|
||||||
if ($id != 0 && (!$user->authorise('fieldtype.edit.properties', 'com_componentbuilder.fieldtype.' . (int) $id))
|
|
||||||
|| ($id == 0 && !$user->authorise('fieldtype.edit.properties', 'com_componentbuilder')))
|
|
||||||
{
|
|
||||||
// Disable fields for display.
|
|
||||||
$form->setFieldAttribute('properties', 'disabled', 'true');
|
|
||||||
// Disable fields for display.
|
|
||||||
$form->setFieldAttribute('properties', 'readonly', 'true');
|
|
||||||
if (!$form->getValue('properties'))
|
|
||||||
{
|
|
||||||
// Disable fields while saving.
|
|
||||||
$form->setFieldAttribute('properties', 'filter', 'unset');
|
|
||||||
// Disable fields while saving.
|
|
||||||
$form->setFieldAttribute('properties', 'required', 'false');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Modify the form based on Edit Description access controls.
|
|
||||||
if ($id != 0 && (!$user->authorise('fieldtype.edit.description', 'com_componentbuilder.fieldtype.' . (int) $id))
|
|
||||||
|| ($id == 0 && !$user->authorise('fieldtype.edit.description', 'com_componentbuilder')))
|
|
||||||
{
|
|
||||||
// Disable fields for display.
|
|
||||||
$form->setFieldAttribute('description', 'disabled', 'true');
|
|
||||||
// Disable fields for display.
|
|
||||||
$form->setFieldAttribute('description', 'readonly', 'true');
|
|
||||||
if (!$form->getValue('description'))
|
|
||||||
{
|
|
||||||
// Disable fields while saving.
|
|
||||||
$form->setFieldAttribute('description', 'filter', 'unset');
|
|
||||||
// Disable fields while saving.
|
|
||||||
$form->setFieldAttribute('description', 'required', 'false');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Modify the form based on Edit Short Description access controls.
|
|
||||||
if ($id != 0 && (!$user->authorise('fieldtype.edit.short_description', 'com_componentbuilder.fieldtype.' . (int) $id))
|
|
||||||
|| ($id == 0 && !$user->authorise('fieldtype.edit.short_description', 'com_componentbuilder')))
|
|
||||||
{
|
|
||||||
// Disable fields for display.
|
|
||||||
$form->setFieldAttribute('short_description', 'disabled', 'true');
|
|
||||||
// Disable fields for display.
|
|
||||||
$form->setFieldAttribute('short_description', 'readonly', 'true');
|
|
||||||
if (!$form->getValue('short_description'))
|
|
||||||
{
|
|
||||||
// Disable fields while saving.
|
|
||||||
$form->setFieldAttribute('short_description', 'filter', 'unset');
|
|
||||||
// Disable fields while saving.
|
|
||||||
$form->setFieldAttribute('short_description', 'required', 'false');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Only load these values if no id is found
|
// Only load these values if no id is found
|
||||||
if (0 == $id)
|
if (0 == $id)
|
||||||
{
|
{
|
||||||
@ -452,7 +386,6 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
|||||||
$form->setValue($redirectedField, null, $redirectedValue);
|
$form->setValue($redirectedField, null, $redirectedValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,11 +108,9 @@ class ComponentbuilderModelFieldtypes extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('fieldtype.access', 'com_componentbuilder.fieldtype.' . (int) $item->id) && $user->authorise('fieldtype.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('fieldtype.access', 'com_componentbuilder.fieldtype.' . (int) $item->id) && JFactory::getUser()->authorise('fieldtype.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
@ -265,11 +263,9 @@ class ComponentbuilderModelFieldtypes extends JModelList
|
|||||||
// set values to display correctly.
|
// set values to display correctly.
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// get user object.
|
|
||||||
$user = JFactory::getUser();
|
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
$access = ($user->authorise('fieldtype.access', 'com_componentbuilder.fieldtype.' . (int) $item->id) && $user->authorise('fieldtype.access', 'com_componentbuilder'));
|
$access = (JFactory::getUser()->authorise('fieldtype.access', 'com_componentbuilder.fieldtype.' . (int) $item->id) && JFactory::getUser()->authorise('fieldtype.access', 'com_componentbuilder'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
unset($items[$nr]);
|
unset($items[$nr]);
|
||||||
|
@ -270,14 +270,16 @@
|
|||||||
name="permission"
|
name="permission"
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_PERMISSION_LABEL"
|
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_PERMISSION_LABEL"
|
||||||
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_PERMISSION_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_PERMISSION_DESCRIPTION"
|
||||||
class="fieldMid"
|
class="fieldMedium"
|
||||||
multiple="false"
|
multiple="true"
|
||||||
required="false">
|
required="false">
|
||||||
<!-- Option Set. -->
|
<!-- Option Set. -->
|
||||||
<option value="0">
|
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_NONE</option>
|
|
||||||
<option value="1">
|
<option value="1">
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_EDITING</option>
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_EDITING</option>
|
||||||
|
<option value="2">
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_ACCESS</option>
|
||||||
|
<option value="3">
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_VIEW</option>
|
||||||
</field>
|
</field>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
|
70
admin/models/forms/admin_fields_relations.js
Normal file
70
admin/models/forms/admin_fields_relations.js
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
/**
|
||||||
|
* @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 - 2018 Vast Development Method. All rights reserved.
|
||||||
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// little script to set the value
|
||||||
|
function getCodeGlueOptions(field) {
|
||||||
|
// get the ID
|
||||||
|
var id = jQuery(field).attr('id');
|
||||||
|
var target = id.split('__');
|
||||||
|
//set the subID
|
||||||
|
var subID = target[0]+'__'+target[1];
|
||||||
|
// get listfield value
|
||||||
|
var listfield = jQuery('#'+subID+'__listfield').val();
|
||||||
|
// get type value
|
||||||
|
var type = jQuery('#'+subID+'__join_type').val();
|
||||||
|
// get area value
|
||||||
|
var area = jQuery('#'+subID+'__area').val();
|
||||||
|
// check that values are set
|
||||||
|
if (_isSet(listfield) && _isSet(type) && _isSet(area)) {
|
||||||
|
// get joinfields values
|
||||||
|
var joinfields = jQuery('#'+subID+'__joinfields').val();
|
||||||
|
// get codeGlueOptions
|
||||||
|
getCodeGlueOptions_server(listfield, joinfields, type, area).done(function(result) {
|
||||||
|
if(result){
|
||||||
|
jQuery('#'+subID+'__set').val(result);
|
||||||
|
} else {
|
||||||
|
jQuery('#'+subID+'__set').val('');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
jQuery('#'+subID+'__set').val('');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function getCodeGlueOptions_server(listfield, joinfields, type, area){
|
||||||
|
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getCodeGlueOptions&format=json";
|
||||||
|
// make sure the joinfields are set
|
||||||
|
if (!_isSet(joinfields)) {
|
||||||
|
joinfields = 'none';
|
||||||
|
}
|
||||||
|
if(token.length > 0 && listfield > 0 && type > 0 && area > 0) {
|
||||||
|
var request = 'token='+token+'&listfield='+listfield+'&type='+type+'&area='+area+'&joinfields='+joinfields;
|
||||||
|
}
|
||||||
|
return jQuery.ajax({
|
||||||
|
type: 'GET',
|
||||||
|
url: getUrl,
|
||||||
|
dataType: 'jsonp',
|
||||||
|
data: request,
|
||||||
|
jsonp: 'callback'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// the isSet function
|
||||||
|
function _isSet(val)
|
||||||
|
{
|
||||||
|
if ((val != undefined) && (val != null) && 0 !== val.length){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
225
admin/models/forms/admin_fields_relations.xml
Normal file
225
admin/models/forms/admin_fields_relations.xml
Normal file
@ -0,0 +1,225 @@
|
|||||||
|
<?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_ADMIN_FIELDS_RELATIONS_CREATED_DATE_LABEL"
|
||||||
|
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_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_ADMIN_FIELDS_RELATIONS_CREATED_BY_LABEL"
|
||||||
|
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_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_ADMIN_FIELDS_RELATIONS_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_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_ADMIN_FIELDS_RELATIONS_MODIFIED_BY_LABEL"
|
||||||
|
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_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_ADMIN_FIELDS_RELATIONS_ORDERING_LABEL"
|
||||||
|
description=""
|
||||||
|
default="0"
|
||||||
|
size="6"
|
||||||
|
required="false"
|
||||||
|
/>
|
||||||
|
<!-- Version Field. Type: Text (joomla) -->
|
||||||
|
<field
|
||||||
|
name="version"
|
||||||
|
type="text"
|
||||||
|
class="readonly"
|
||||||
|
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_VERSION_LABEL"
|
||||||
|
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_VERSION_DESC"
|
||||||
|
size="6"
|
||||||
|
readonly="true"
|
||||||
|
filter="unset"
|
||||||
|
/>
|
||||||
|
<!-- Dynamic Fields. -->
|
||||||
|
<!-- Admin_view Field. Type: Adminviewsreadonly. (custom) -->
|
||||||
|
<field
|
||||||
|
type="adminviewsreadonly"
|
||||||
|
name="admin_view"
|
||||||
|
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_ADMIN_VIEW_LABEL"
|
||||||
|
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_ADMIN_VIEW_DESCRIPTION"
|
||||||
|
class="list_class"
|
||||||
|
multiple="false"
|
||||||
|
required="true"
|
||||||
|
readonly="true"
|
||||||
|
button="false"
|
||||||
|
/>
|
||||||
|
<!-- Addrelations Field. Type: Subform. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="subform"
|
||||||
|
name="addrelations"
|
||||||
|
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_ADDRELATIONS_LABEL"
|
||||||
|
layout="joomla.form.field.subform.repeatable-table"
|
||||||
|
multiple="true"
|
||||||
|
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_ADDRELATIONS_DESCRIPTION"
|
||||||
|
icon="list">
|
||||||
|
<form hidden="true" name="list_addrelations_modal" repeat="true">
|
||||||
|
<!-- Listfield Field. Type: Listfields. (custom) -->
|
||||||
|
<field
|
||||||
|
type="listfields"
|
||||||
|
name="listfield"
|
||||||
|
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_LISTFIELD_LABEL"
|
||||||
|
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_LISTFIELD_DESCRIPTION"
|
||||||
|
class="fieldMedium"
|
||||||
|
multiple="false"
|
||||||
|
required="false"
|
||||||
|
onchange="getCodeGlueOptions(this)"
|
||||||
|
button="false"
|
||||||
|
/>
|
||||||
|
<!-- Column_name Field. Type: Text. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="text"
|
||||||
|
name="column_name"
|
||||||
|
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_COLUMN_NAME_LABEL"
|
||||||
|
size="50"
|
||||||
|
maxlength="50"
|
||||||
|
default="Default"
|
||||||
|
class="text_area"
|
||||||
|
required="false"
|
||||||
|
filter="STRING"
|
||||||
|
message="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_COLUMN_NAME_MESSAGE"
|
||||||
|
hint="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_COLUMN_NAME_HINT"
|
||||||
|
autocomplete="on"
|
||||||
|
/>
|
||||||
|
<!-- Joinfields Field. Type: Joinfields. (custom) -->
|
||||||
|
<field
|
||||||
|
type="joinfields"
|
||||||
|
name="joinfields"
|
||||||
|
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_JOINFIELDS_LABEL"
|
||||||
|
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_JOINFIELDS_DESCRIPTION"
|
||||||
|
class="fieldMedium"
|
||||||
|
multiple="true"
|
||||||
|
required="false"
|
||||||
|
onchange="getCodeGlueOptions(this)"
|
||||||
|
button="false"
|
||||||
|
/>
|
||||||
|
<!-- Area Field. Type: List. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="list"
|
||||||
|
name="area"
|
||||||
|
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_AREA_LABEL"
|
||||||
|
class="list_class"
|
||||||
|
multiple="false"
|
||||||
|
required="false"
|
||||||
|
validate="int"
|
||||||
|
default="1"
|
||||||
|
onchange="getCodeGlueOptions(this)">
|
||||||
|
<!-- Option Set. -->
|
||||||
|
<option value="1">
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_MODEL_BEFORE_MODELLING</option>
|
||||||
|
<option value="3">
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_MODEL_AFTER_MODELLING</option>
|
||||||
|
<option value="2">
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_VIEW</option>
|
||||||
|
</field>
|
||||||
|
<!-- Join_type Field. Type: List. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="list"
|
||||||
|
name="join_type"
|
||||||
|
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_JOIN_TYPE_LABEL"
|
||||||
|
class="list_class"
|
||||||
|
multiple="false"
|
||||||
|
required="false"
|
||||||
|
validate="int"
|
||||||
|
default="1"
|
||||||
|
onchange="getCodeGlueOptions(this)">
|
||||||
|
<!-- Option Set. -->
|
||||||
|
<option value="1">
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CONCATENATE_RAQUO_GLUE</option>
|
||||||
|
<option value="2">
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CUSTOM_RAQUO_CODE</option>
|
||||||
|
</field>
|
||||||
|
<!-- Set Field. Type: Textarea. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="textarea"
|
||||||
|
name="set"
|
||||||
|
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_SET_LABEL"
|
||||||
|
rows="4"
|
||||||
|
cols="5"
|
||||||
|
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_SET_DESCRIPTION"
|
||||||
|
class="text_area codefield"
|
||||||
|
filter="raw"
|
||||||
|
hint="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_SET_HINT"
|
||||||
|
required="false"
|
||||||
|
/>
|
||||||
|
</form>
|
||||||
|
</field>
|
||||||
|
<!-- Note_on_relations Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
|
<field type="note" name="note_on_relations" label="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_NOTE_ON_RELATIONS_LABEL" description="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_NOTE_ON_RELATIONS_DESCRIPTION" heading="h4" class="alert alert-info note_on_relations" />
|
||||||
|
</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 admin_fields_relations"
|
||||||
|
translate_label="false"
|
||||||
|
filter="rules"
|
||||||
|
validate="rules"
|
||||||
|
class="inputbox"
|
||||||
|
component="com_componentbuilder"
|
||||||
|
section="admin_fields_relations"
|
||||||
|
/>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Some Global Values
|
// Some Global Values
|
||||||
jform_vvvvvyevxx_required = false;
|
|
||||||
jform_vvvvvyfvxy_required = false;
|
jform_vvvvvyfvxy_required = false;
|
||||||
jform_vvvvvygvxz_required = false;
|
jform_vvvvvygvxz_required = false;
|
||||||
jform_vvvvvyhvya_required = false;
|
jform_vvvvvyhvya_required = false;
|
||||||
@ -17,373 +16,374 @@ jform_vvvvvyivyb_required = false;
|
|||||||
jform_vvvvvyjvyc_required = false;
|
jform_vvvvvyjvyc_required = false;
|
||||||
jform_vvvvvykvyd_required = false;
|
jform_vvvvvykvyd_required = false;
|
||||||
jform_vvvvvylvye_required = false;
|
jform_vvvvvylvye_required = false;
|
||||||
jform_vvvvvylvyf_required = false;
|
jform_vvvvvymvyf_required = false;
|
||||||
jform_vvvvvymvyg_required = false;
|
jform_vvvvvymvyg_required = false;
|
||||||
jform_vvvvvynvyh_required = false;
|
jform_vvvvvynvyh_required = false;
|
||||||
|
jform_vvvvvyovyi_required = false;
|
||||||
|
|
||||||
// Initial Script
|
// Initial Script
|
||||||
jQuery(document).ready(function()
|
jQuery(document).ready(function()
|
||||||
{
|
{
|
||||||
var add_php_view_vvvvvye = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
var add_php_view_vvvvvyf = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||||
vvvvvye(add_php_view_vvvvvye);
|
vvvvvyf(add_php_view_vvvvvyf);
|
||||||
|
|
||||||
var add_php_jview_display_vvvvvyf = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
var add_php_jview_display_vvvvvyg = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||||
vvvvvyf(add_php_jview_display_vvvvvyf);
|
vvvvvyg(add_php_jview_display_vvvvvyg);
|
||||||
|
|
||||||
var add_php_jview_vvvvvyg = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
var add_php_jview_vvvvvyh = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||||
vvvvvyg(add_php_jview_vvvvvyg);
|
vvvvvyh(add_php_jview_vvvvvyh);
|
||||||
|
|
||||||
var add_php_document_vvvvvyh = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
var add_php_document_vvvvvyi = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||||
vvvvvyh(add_php_document_vvvvvyh);
|
vvvvvyi(add_php_document_vvvvvyi);
|
||||||
|
|
||||||
var add_css_document_vvvvvyi = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
var add_css_document_vvvvvyj = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||||
vvvvvyi(add_css_document_vvvvvyi);
|
vvvvvyj(add_css_document_vvvvvyj);
|
||||||
|
|
||||||
var add_javascript_file_vvvvvyj = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
var add_javascript_file_vvvvvyk = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||||
vvvvvyj(add_javascript_file_vvvvvyj);
|
vvvvvyk(add_javascript_file_vvvvvyk);
|
||||||
|
|
||||||
var add_js_document_vvvvvyk = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
var add_js_document_vvvvvyl = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||||
vvvvvyk(add_js_document_vvvvvyk);
|
vvvvvyl(add_js_document_vvvvvyl);
|
||||||
|
|
||||||
var add_custom_button_vvvvvyl = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
var add_custom_button_vvvvvym = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||||
vvvvvyl(add_custom_button_vvvvvyl);
|
vvvvvym(add_custom_button_vvvvvym);
|
||||||
|
|
||||||
var add_css_vvvvvym = jQuery("#jform_add_css input[type='radio']:checked").val();
|
var add_css_vvvvvyn = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||||
vvvvvym(add_css_vvvvvym);
|
vvvvvyn(add_css_vvvvvyn);
|
||||||
|
|
||||||
var add_php_ajax_vvvvvyn = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
var add_php_ajax_vvvvvyo = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||||
vvvvvyn(add_php_ajax_vvvvvyn);
|
vvvvvyo(add_php_ajax_vvvvvyo);
|
||||||
});
|
});
|
||||||
|
|
||||||
// the vvvvvye function
|
// the vvvvvyf function
|
||||||
function vvvvvye(add_php_view_vvvvvye)
|
function vvvvvyf(add_php_view_vvvvvyf)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_php_view_vvvvvye == 1)
|
if (add_php_view_vvvvvyf == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_view').closest('.control-group').show();
|
jQuery('#jform_php_view-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvyevxx_required)
|
if (jform_vvvvvyfvxy_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_view',0);
|
updateFieldRequired('php_view',0);
|
||||||
jQuery('#jform_php_view').prop('required','required');
|
jQuery('#jform_php_view').prop('required','required');
|
||||||
jQuery('#jform_php_view').attr('aria-required',true);
|
jQuery('#jform_php_view').attr('aria-required',true);
|
||||||
jQuery('#jform_php_view').addClass('required');
|
jQuery('#jform_php_view').addClass('required');
|
||||||
jform_vvvvvyevxx_required = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
jQuery('#jform_php_view').closest('.control-group').hide();
|
|
||||||
if (!jform_vvvvvyevxx_required)
|
|
||||||
{
|
|
||||||
updateFieldRequired('php_view',1);
|
|
||||||
jQuery('#jform_php_view').removeAttr('required');
|
|
||||||
jQuery('#jform_php_view').removeAttr('aria-required');
|
|
||||||
jQuery('#jform_php_view').removeClass('required');
|
|
||||||
jform_vvvvvyevxx_required = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// the vvvvvyf function
|
|
||||||
function vvvvvyf(add_php_jview_display_vvvvvyf)
|
|
||||||
{
|
|
||||||
// set the function logic
|
|
||||||
if (add_php_jview_display_vvvvvyf == 1)
|
|
||||||
{
|
|
||||||
jQuery('#jform_php_jview_display').closest('.control-group').show();
|
|
||||||
if (jform_vvvvvyfvxy_required)
|
|
||||||
{
|
|
||||||
updateFieldRequired('php_jview_display',0);
|
|
||||||
jQuery('#jform_php_jview_display').prop('required','required');
|
|
||||||
jQuery('#jform_php_jview_display').attr('aria-required',true);
|
|
||||||
jQuery('#jform_php_jview_display').addClass('required');
|
|
||||||
jform_vvvvvyfvxy_required = false;
|
jform_vvvvvyfvxy_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_jview_display').closest('.control-group').hide();
|
jQuery('#jform_php_view-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvyfvxy_required)
|
if (!jform_vvvvvyfvxy_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_jview_display',1);
|
updateFieldRequired('php_view',1);
|
||||||
jQuery('#jform_php_jview_display').removeAttr('required');
|
jQuery('#jform_php_view').removeAttr('required');
|
||||||
jQuery('#jform_php_jview_display').removeAttr('aria-required');
|
jQuery('#jform_php_view').removeAttr('aria-required');
|
||||||
jQuery('#jform_php_jview_display').removeClass('required');
|
jQuery('#jform_php_view').removeClass('required');
|
||||||
jform_vvvvvyfvxy_required = true;
|
jform_vvvvvyfvxy_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvvyg function
|
// the vvvvvyg function
|
||||||
function vvvvvyg(add_php_jview_vvvvvyg)
|
function vvvvvyg(add_php_jview_display_vvvvvyg)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_php_jview_vvvvvyg == 1)
|
if (add_php_jview_display_vvvvvyg == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_jview').closest('.control-group').show();
|
jQuery('#jform_php_jview_display-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvygvxz_required)
|
if (jform_vvvvvygvxz_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_jview',0);
|
updateFieldRequired('php_jview_display',0);
|
||||||
jQuery('#jform_php_jview').prop('required','required');
|
jQuery('#jform_php_jview_display').prop('required','required');
|
||||||
jQuery('#jform_php_jview').attr('aria-required',true);
|
jQuery('#jform_php_jview_display').attr('aria-required',true);
|
||||||
jQuery('#jform_php_jview').addClass('required');
|
jQuery('#jform_php_jview_display').addClass('required');
|
||||||
jform_vvvvvygvxz_required = false;
|
jform_vvvvvygvxz_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_jview').closest('.control-group').hide();
|
jQuery('#jform_php_jview_display-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvygvxz_required)
|
if (!jform_vvvvvygvxz_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_jview',1);
|
updateFieldRequired('php_jview_display',1);
|
||||||
jQuery('#jform_php_jview').removeAttr('required');
|
jQuery('#jform_php_jview_display').removeAttr('required');
|
||||||
jQuery('#jform_php_jview').removeAttr('aria-required');
|
jQuery('#jform_php_jview_display').removeAttr('aria-required');
|
||||||
jQuery('#jform_php_jview').removeClass('required');
|
jQuery('#jform_php_jview_display').removeClass('required');
|
||||||
jform_vvvvvygvxz_required = true;
|
jform_vvvvvygvxz_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvvyh function
|
// the vvvvvyh function
|
||||||
function vvvvvyh(add_php_document_vvvvvyh)
|
function vvvvvyh(add_php_jview_vvvvvyh)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_php_document_vvvvvyh == 1)
|
if (add_php_jview_vvvvvyh == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_document').closest('.control-group').show();
|
jQuery('#jform_php_jview-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvyhvya_required)
|
if (jform_vvvvvyhvya_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_document',0);
|
updateFieldRequired('php_jview',0);
|
||||||
jQuery('#jform_php_document').prop('required','required');
|
jQuery('#jform_php_jview').prop('required','required');
|
||||||
jQuery('#jform_php_document').attr('aria-required',true);
|
jQuery('#jform_php_jview').attr('aria-required',true);
|
||||||
jQuery('#jform_php_document').addClass('required');
|
jQuery('#jform_php_jview').addClass('required');
|
||||||
jform_vvvvvyhvya_required = false;
|
jform_vvvvvyhvya_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_document').closest('.control-group').hide();
|
jQuery('#jform_php_jview-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvyhvya_required)
|
if (!jform_vvvvvyhvya_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_document',1);
|
updateFieldRequired('php_jview',1);
|
||||||
jQuery('#jform_php_document').removeAttr('required');
|
jQuery('#jform_php_jview').removeAttr('required');
|
||||||
jQuery('#jform_php_document').removeAttr('aria-required');
|
jQuery('#jform_php_jview').removeAttr('aria-required');
|
||||||
jQuery('#jform_php_document').removeClass('required');
|
jQuery('#jform_php_jview').removeClass('required');
|
||||||
jform_vvvvvyhvya_required = true;
|
jform_vvvvvyhvya_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvvyi function
|
// the vvvvvyi function
|
||||||
function vvvvvyi(add_css_document_vvvvvyi)
|
function vvvvvyi(add_php_document_vvvvvyi)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_css_document_vvvvvyi == 1)
|
if (add_php_document_vvvvvyi == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_css_document').closest('.control-group').show();
|
jQuery('#jform_php_document-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvyivyb_required)
|
if (jform_vvvvvyivyb_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('css_document',0);
|
updateFieldRequired('php_document',0);
|
||||||
jQuery('#jform_css_document').prop('required','required');
|
jQuery('#jform_php_document').prop('required','required');
|
||||||
jQuery('#jform_css_document').attr('aria-required',true);
|
jQuery('#jform_php_document').attr('aria-required',true);
|
||||||
jQuery('#jform_css_document').addClass('required');
|
jQuery('#jform_php_document').addClass('required');
|
||||||
jform_vvvvvyivyb_required = false;
|
jform_vvvvvyivyb_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_css_document').closest('.control-group').hide();
|
jQuery('#jform_php_document-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvyivyb_required)
|
if (!jform_vvvvvyivyb_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('css_document',1);
|
updateFieldRequired('php_document',1);
|
||||||
jQuery('#jform_css_document').removeAttr('required');
|
jQuery('#jform_php_document').removeAttr('required');
|
||||||
jQuery('#jform_css_document').removeAttr('aria-required');
|
jQuery('#jform_php_document').removeAttr('aria-required');
|
||||||
jQuery('#jform_css_document').removeClass('required');
|
jQuery('#jform_php_document').removeClass('required');
|
||||||
jform_vvvvvyivyb_required = true;
|
jform_vvvvvyivyb_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvvyj function
|
// the vvvvvyj function
|
||||||
function vvvvvyj(add_javascript_file_vvvvvyj)
|
function vvvvvyj(add_css_document_vvvvvyj)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_javascript_file_vvvvvyj == 1)
|
if (add_css_document_vvvvvyj == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_javascript_file').closest('.control-group').show();
|
jQuery('#jform_css_document-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvyjvyc_required)
|
if (jform_vvvvvyjvyc_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('javascript_file',0);
|
updateFieldRequired('css_document',0);
|
||||||
jQuery('#jform_javascript_file').prop('required','required');
|
jQuery('#jform_css_document').prop('required','required');
|
||||||
jQuery('#jform_javascript_file').attr('aria-required',true);
|
jQuery('#jform_css_document').attr('aria-required',true);
|
||||||
jQuery('#jform_javascript_file').addClass('required');
|
jQuery('#jform_css_document').addClass('required');
|
||||||
jform_vvvvvyjvyc_required = false;
|
jform_vvvvvyjvyc_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_javascript_file').closest('.control-group').hide();
|
jQuery('#jform_css_document-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvyjvyc_required)
|
if (!jform_vvvvvyjvyc_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('javascript_file',1);
|
updateFieldRequired('css_document',1);
|
||||||
jQuery('#jform_javascript_file').removeAttr('required');
|
jQuery('#jform_css_document').removeAttr('required');
|
||||||
jQuery('#jform_javascript_file').removeAttr('aria-required');
|
jQuery('#jform_css_document').removeAttr('aria-required');
|
||||||
jQuery('#jform_javascript_file').removeClass('required');
|
jQuery('#jform_css_document').removeClass('required');
|
||||||
jform_vvvvvyjvyc_required = true;
|
jform_vvvvvyjvyc_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvvyk function
|
// the vvvvvyk function
|
||||||
function vvvvvyk(add_js_document_vvvvvyk)
|
function vvvvvyk(add_javascript_file_vvvvvyk)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_js_document_vvvvvyk == 1)
|
if (add_javascript_file_vvvvvyk == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_js_document').closest('.control-group').show();
|
jQuery('#jform_javascript_file-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvykvyd_required)
|
if (jform_vvvvvykvyd_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('js_document',0);
|
updateFieldRequired('javascript_file',0);
|
||||||
jQuery('#jform_js_document').prop('required','required');
|
jQuery('#jform_javascript_file').prop('required','required');
|
||||||
jQuery('#jform_js_document').attr('aria-required',true);
|
jQuery('#jform_javascript_file').attr('aria-required',true);
|
||||||
jQuery('#jform_js_document').addClass('required');
|
jQuery('#jform_javascript_file').addClass('required');
|
||||||
jform_vvvvvykvyd_required = false;
|
jform_vvvvvykvyd_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_js_document').closest('.control-group').hide();
|
jQuery('#jform_javascript_file-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvykvyd_required)
|
if (!jform_vvvvvykvyd_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('js_document',1);
|
updateFieldRequired('javascript_file',1);
|
||||||
jQuery('#jform_js_document').removeAttr('required');
|
jQuery('#jform_javascript_file').removeAttr('required');
|
||||||
jQuery('#jform_js_document').removeAttr('aria-required');
|
jQuery('#jform_javascript_file').removeAttr('aria-required');
|
||||||
jQuery('#jform_js_document').removeClass('required');
|
jQuery('#jform_javascript_file').removeClass('required');
|
||||||
jform_vvvvvykvyd_required = true;
|
jform_vvvvvykvyd_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvvyl function
|
// the vvvvvyl function
|
||||||
function vvvvvyl(add_custom_button_vvvvvyl)
|
function vvvvvyl(add_js_document_vvvvvyl)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_custom_button_vvvvvyl == 1)
|
if (add_js_document_vvvvvyl == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
|
jQuery('#jform_js_document-lbl').closest('.control-group').show();
|
||||||
jQuery('#jform_php_controller').closest('.control-group').show();
|
|
||||||
if (jform_vvvvvylvye_required)
|
if (jform_vvvvvylvye_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_controller',0);
|
updateFieldRequired('js_document',0);
|
||||||
jQuery('#jform_php_controller').prop('required','required');
|
jQuery('#jform_js_document').prop('required','required');
|
||||||
jQuery('#jform_php_controller').attr('aria-required',true);
|
jQuery('#jform_js_document').attr('aria-required',true);
|
||||||
jQuery('#jform_php_controller').addClass('required');
|
jQuery('#jform_js_document').addClass('required');
|
||||||
jform_vvvvvylvye_required = false;
|
jform_vvvvvylvye_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('#jform_php_model').closest('.control-group').show();
|
|
||||||
if (jform_vvvvvylvyf_required)
|
|
||||||
{
|
|
||||||
updateFieldRequired('php_model',0);
|
|
||||||
jQuery('#jform_php_model').prop('required','required');
|
|
||||||
jQuery('#jform_php_model').attr('aria-required',true);
|
|
||||||
jQuery('#jform_php_model').addClass('required');
|
|
||||||
jform_vvvvvylvyf_required = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_custom_button-lbl').closest('.control-group').hide();
|
jQuery('#jform_js_document-lbl').closest('.control-group').hide();
|
||||||
jQuery('#jform_php_controller').closest('.control-group').hide();
|
|
||||||
if (!jform_vvvvvylvye_required)
|
if (!jform_vvvvvylvye_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_controller',1);
|
updateFieldRequired('js_document',1);
|
||||||
jQuery('#jform_php_controller').removeAttr('required');
|
jQuery('#jform_js_document').removeAttr('required');
|
||||||
jQuery('#jform_php_controller').removeAttr('aria-required');
|
jQuery('#jform_js_document').removeAttr('aria-required');
|
||||||
jQuery('#jform_php_controller').removeClass('required');
|
jQuery('#jform_js_document').removeClass('required');
|
||||||
jform_vvvvvylvye_required = true;
|
jform_vvvvvylvye_required = true;
|
||||||
}
|
}
|
||||||
jQuery('#jform_php_model').closest('.control-group').hide();
|
|
||||||
if (!jform_vvvvvylvyf_required)
|
|
||||||
{
|
|
||||||
updateFieldRequired('php_model',1);
|
|
||||||
jQuery('#jform_php_model').removeAttr('required');
|
|
||||||
jQuery('#jform_php_model').removeAttr('aria-required');
|
|
||||||
jQuery('#jform_php_model').removeClass('required');
|
|
||||||
jform_vvvvvylvyf_required = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvvym function
|
// the vvvvvym function
|
||||||
function vvvvvym(add_css_vvvvvym)
|
function vvvvvym(add_custom_button_vvvvvym)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_css_vvvvvym == 1)
|
if (add_custom_button_vvvvvym == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_css').closest('.control-group').show();
|
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
|
||||||
|
jQuery('#jform_php_controller-lbl').closest('.control-group').show();
|
||||||
|
if (jform_vvvvvymvyf_required)
|
||||||
|
{
|
||||||
|
updateFieldRequired('php_controller',0);
|
||||||
|
jQuery('#jform_php_controller').prop('required','required');
|
||||||
|
jQuery('#jform_php_controller').attr('aria-required',true);
|
||||||
|
jQuery('#jform_php_controller').addClass('required');
|
||||||
|
jform_vvvvvymvyf_required = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
jQuery('#jform_php_model-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvymvyg_required)
|
if (jform_vvvvvymvyg_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('css',0);
|
updateFieldRequired('php_model',0);
|
||||||
jQuery('#jform_css').prop('required','required');
|
jQuery('#jform_php_model').prop('required','required');
|
||||||
jQuery('#jform_css').attr('aria-required',true);
|
jQuery('#jform_php_model').attr('aria-required',true);
|
||||||
jQuery('#jform_css').addClass('required');
|
jQuery('#jform_php_model').addClass('required');
|
||||||
jform_vvvvvymvyg_required = false;
|
jform_vvvvvymvyg_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_css').closest('.control-group').hide();
|
jQuery('#jform_custom_button-lbl').closest('.control-group').hide();
|
||||||
|
jQuery('#jform_php_controller-lbl').closest('.control-group').hide();
|
||||||
|
if (!jform_vvvvvymvyf_required)
|
||||||
|
{
|
||||||
|
updateFieldRequired('php_controller',1);
|
||||||
|
jQuery('#jform_php_controller').removeAttr('required');
|
||||||
|
jQuery('#jform_php_controller').removeAttr('aria-required');
|
||||||
|
jQuery('#jform_php_controller').removeClass('required');
|
||||||
|
jform_vvvvvymvyf_required = true;
|
||||||
|
}
|
||||||
|
jQuery('#jform_php_model-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvymvyg_required)
|
if (!jform_vvvvvymvyg_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('css',1);
|
updateFieldRequired('php_model',1);
|
||||||
jQuery('#jform_css').removeAttr('required');
|
jQuery('#jform_php_model').removeAttr('required');
|
||||||
jQuery('#jform_css').removeAttr('aria-required');
|
jQuery('#jform_php_model').removeAttr('aria-required');
|
||||||
jQuery('#jform_css').removeClass('required');
|
jQuery('#jform_php_model').removeClass('required');
|
||||||
jform_vvvvvymvyg_required = true;
|
jform_vvvvvymvyg_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvvyn function
|
// the vvvvvyn function
|
||||||
function vvvvvyn(add_php_ajax_vvvvvyn)
|
function vvvvvyn(add_css_vvvvvyn)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_php_ajax_vvvvvyn == 1)
|
if (add_css_vvvvvyn == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
|
jQuery('#jform_css-lbl').closest('.control-group').show();
|
||||||
jQuery('#jform_php_ajaxmethod').closest('.control-group').show();
|
|
||||||
if (jform_vvvvvynvyh_required)
|
if (jform_vvvvvynvyh_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_ajaxmethod',0);
|
updateFieldRequired('css',0);
|
||||||
jQuery('#jform_php_ajaxmethod').prop('required','required');
|
jQuery('#jform_css').prop('required','required');
|
||||||
jQuery('#jform_php_ajaxmethod').attr('aria-required',true);
|
jQuery('#jform_css').attr('aria-required',true);
|
||||||
jQuery('#jform_php_ajaxmethod').addClass('required');
|
jQuery('#jform_css').addClass('required');
|
||||||
jform_vvvvvynvyh_required = false;
|
jform_vvvvvynvyh_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').hide();
|
jQuery('#jform_css-lbl').closest('.control-group').hide();
|
||||||
jQuery('#jform_php_ajaxmethod').closest('.control-group').hide();
|
|
||||||
if (!jform_vvvvvynvyh_required)
|
if (!jform_vvvvvynvyh_required)
|
||||||
|
{
|
||||||
|
updateFieldRequired('css',1);
|
||||||
|
jQuery('#jform_css').removeAttr('required');
|
||||||
|
jQuery('#jform_css').removeAttr('aria-required');
|
||||||
|
jQuery('#jform_css').removeClass('required');
|
||||||
|
jform_vvvvvynvyh_required = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// the vvvvvyo function
|
||||||
|
function vvvvvyo(add_php_ajax_vvvvvyo)
|
||||||
|
{
|
||||||
|
// set the function logic
|
||||||
|
if (add_php_ajax_vvvvvyo == 1)
|
||||||
|
{
|
||||||
|
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
|
||||||
|
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show();
|
||||||
|
if (jform_vvvvvyovyi_required)
|
||||||
|
{
|
||||||
|
updateFieldRequired('php_ajaxmethod',0);
|
||||||
|
jQuery('#jform_php_ajaxmethod').prop('required','required');
|
||||||
|
jQuery('#jform_php_ajaxmethod').attr('aria-required',true);
|
||||||
|
jQuery('#jform_php_ajaxmethod').addClass('required');
|
||||||
|
jform_vvvvvyovyi_required = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
jQuery('#jform_ajax_input-lbl').closest('.control-group').hide();
|
||||||
|
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').hide();
|
||||||
|
if (!jform_vvvvvyovyi_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_ajaxmethod',1);
|
updateFieldRequired('php_ajaxmethod',1);
|
||||||
jQuery('#jform_php_ajaxmethod').removeAttr('required');
|
jQuery('#jform_php_ajaxmethod').removeAttr('required');
|
||||||
jQuery('#jform_php_ajaxmethod').removeAttr('aria-required');
|
jQuery('#jform_php_ajaxmethod').removeAttr('aria-required');
|
||||||
jQuery('#jform_php_ajaxmethod').removeClass('required');
|
jQuery('#jform_php_ajaxmethod').removeClass('required');
|
||||||
jform_vvvvvynvyh_required = true;
|
jform_vvvvvyovyi_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -154,44 +154,56 @@
|
|||||||
required="false"
|
required="false"
|
||||||
button="true"
|
button="true"
|
||||||
/>
|
/>
|
||||||
<!-- Php_jview_display Field. Type: Textarea. (joomla) -->
|
<!-- Php_jview_display Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="php_jview_display"
|
name="php_jview_display"
|
||||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_LABEL"
|
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_LABEL"
|
||||||
rows="17"
|
|
||||||
cols="5"
|
|
||||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Php_view Field. Type: Textarea. (joomla) -->
|
<!-- Php_view Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="php_view"
|
name="php_view"
|
||||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_LABEL"
|
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_LABEL"
|
||||||
rows="17"
|
|
||||||
cols="5"
|
|
||||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Php_document Field. Type: Textarea. (joomla) -->
|
<!-- Php_document Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="php_document"
|
name="php_document"
|
||||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_LABEL"
|
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_LABEL"
|
||||||
rows="17"
|
|
||||||
cols="5"
|
|
||||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="50"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Ajax_input Field. Type: Subform. (joomla) -->
|
<!-- Ajax_input Field. Type: Subform. (joomla) -->
|
||||||
<field
|
<field
|
||||||
@ -368,17 +380,22 @@
|
|||||||
<option value="0">
|
<option value="0">
|
||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- Default Field. Type: Textarea. (joomla) -->
|
<!-- Default Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="default"
|
name="default"
|
||||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_LABEL"
|
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_LABEL"
|
||||||
rows="20"
|
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_DESCRIPTION"
|
||||||
|
width="100%"
|
||||||
|
height="500px"
|
||||||
cols="15"
|
cols="15"
|
||||||
class="text_area span12"
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="html"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_SNIPPET_USAGE_LABEL" heading="h4" class="snippet-usage note_snippet_usage" />
|
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_SNIPPET_USAGE_LABEL" heading="h4" class="snippet-usage note_snippet_usage" />
|
||||||
@ -392,18 +409,22 @@
|
|||||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_DESCRIPTION"
|
||||||
directory=""
|
directory=""
|
||||||
/>
|
/>
|
||||||
<!-- Php_jview Field. Type: Textarea. (joomla) -->
|
<!-- Php_jview Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="php_jview"
|
name="php_jview"
|
||||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_LABEL"
|
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_LABEL"
|
||||||
rows="17"
|
|
||||||
cols="5"
|
|
||||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Note_libraries_selection Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_libraries_selection Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_libraries_selection" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LIBRARIES_SELECTION_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LIBRARIES_SELECTION_DESCRIPTION" heading="h4" class="alert alert-info note_libraries_selection" />
|
<field type="note" name="note_libraries_selection" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LIBRARIES_SELECTION_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LIBRARIES_SELECTION_DESCRIPTION" heading="h4" class="alert alert-info note_libraries_selection" />
|
||||||
@ -434,18 +455,22 @@
|
|||||||
required="false"
|
required="false"
|
||||||
button="true"
|
button="true"
|
||||||
/>
|
/>
|
||||||
<!-- Js_document Field. Type: Textarea. (joomla) -->
|
<!-- Js_document Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="js_document"
|
name="js_document"
|
||||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_LABEL"
|
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_LABEL"
|
||||||
rows="17"
|
|
||||||
cols="5"
|
|
||||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="javascript"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Add_css_document Field. Type: Radio. (joomla) -->
|
<!-- Add_css_document Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
@ -461,18 +486,22 @@
|
|||||||
<option value="0">
|
<option value="0">
|
||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- Javascript_file Field. Type: Textarea. (joomla) -->
|
<!-- Javascript_file Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="javascript_file"
|
name="javascript_file"
|
||||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_LABEL"
|
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_LABEL"
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="javascript"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Not_required Field. Type: Hidden. (joomla) -->
|
<!-- Not_required Field. Type: Hidden. (joomla) -->
|
||||||
<field
|
<field
|
||||||
@ -480,18 +509,22 @@
|
|||||||
name="not_required"
|
name="not_required"
|
||||||
default="[]"
|
default="[]"
|
||||||
/>
|
/>
|
||||||
<!-- Css_document Field. Type: Textarea. (joomla) -->
|
<!-- Css_document Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="css_document"
|
name="css_document"
|
||||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_LABEL"
|
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_LABEL"
|
||||||
rows="17"
|
|
||||||
cols="5"
|
|
||||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="css"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Custom_get Field. Type: Customgets. (custom) -->
|
<!-- Custom_get Field. Type: Customgets. (custom) -->
|
||||||
<field
|
<field
|
||||||
@ -501,18 +534,22 @@
|
|||||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_DESCRIPTION"
|
||||||
multiple="true"
|
multiple="true"
|
||||||
/>
|
/>
|
||||||
<!-- Css Field. Type: Textarea. (joomla) -->
|
<!-- Css Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="css"
|
name="css"
|
||||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_LABEL"
|
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_LABEL"
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="css"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Main_get Field. Type: Maingets. (custom) -->
|
<!-- Main_get Field. Type: Maingets. (custom) -->
|
||||||
<field
|
<field
|
||||||
@ -524,18 +561,22 @@
|
|||||||
required="true"
|
required="true"
|
||||||
button="true"
|
button="true"
|
||||||
/>
|
/>
|
||||||
<!-- Php_ajaxmethod Field. Type: Textarea. (joomla) -->
|
<!-- Php_ajaxmethod Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="php_ajaxmethod"
|
name="php_ajaxmethod"
|
||||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD_LABEL"
|
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD_LABEL"
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Dynamic_get Field. Type: Dynamicgets. (custom) -->
|
<!-- Dynamic_get Field. Type: Dynamicgets. (custom) -->
|
||||||
<field
|
<field
|
||||||
@ -1127,33 +1168,41 @@
|
|||||||
<option value="0">
|
<option value="0">
|
||||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
|
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- Php_controller Field. Type: Textarea. (joomla) -->
|
<!-- Php_controller Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="php_controller"
|
name="php_controller"
|
||||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_LABEL"
|
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_LABEL"
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_HINT"
|
|
||||||
required="false"
|
required="false"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Note_linked_to_notice Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_linked_to_notice Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_linked_to_notice" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LINKED_TO_NOTICE_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LINKED_TO_NOTICE_DESCRIPTION" heading="h4" class="note_linked_to_notice" />
|
<field type="note" name="note_linked_to_notice" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LINKED_TO_NOTICE_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LINKED_TO_NOTICE_DESCRIPTION" heading="h4" class="note_linked_to_notice" />
|
||||||
<!-- Php_model Field. Type: Textarea. (joomla) -->
|
<!-- Php_model Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="php_model"
|
name="php_model"
|
||||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_LABEL"
|
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_LABEL"
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_HINT"
|
|
||||||
required="false"
|
required="false"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
@ -9,43 +9,43 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Some Global Values
|
// Some Global Values
|
||||||
jform_vvvvwaavzp_required = false;
|
|
||||||
jform_vvvvwabvzq_required = false;
|
jform_vvvvwabvzq_required = false;
|
||||||
jform_vvvvwabvzr_required = false;
|
jform_vvvvwacvzr_required = false;
|
||||||
jform_vvvvwabvzs_required = false;
|
jform_vvvvwacvzs_required = false;
|
||||||
|
jform_vvvvwacvzt_required = false;
|
||||||
|
|
||||||
// Initial Script
|
// Initial Script
|
||||||
jQuery(document).ready(function()
|
jQuery(document).ready(function()
|
||||||
{
|
{
|
||||||
var target_vvvvwaa = jQuery("#jform_target input[type='radio']:checked").val();
|
|
||||||
vvvvwaa(target_vvvvwaa);
|
|
||||||
|
|
||||||
var target_vvvvwab = jQuery("#jform_target input[type='radio']:checked").val();
|
var target_vvvvwab = jQuery("#jform_target input[type='radio']:checked").val();
|
||||||
vvvvwab(target_vvvvwab);
|
vvvvwab(target_vvvvwab);
|
||||||
|
|
||||||
var target_vvvvwac = jQuery("#jform_target input[type='radio']:checked").val();
|
var target_vvvvwac = jQuery("#jform_target input[type='radio']:checked").val();
|
||||||
var type_vvvvwac = jQuery("#jform_type input[type='radio']:checked").val();
|
vvvvwac(target_vvvvwac);
|
||||||
vvvvwac(target_vvvvwac,type_vvvvwac);
|
|
||||||
|
|
||||||
var type_vvvvwad = jQuery("#jform_type input[type='radio']:checked").val();
|
|
||||||
var target_vvvvwad = jQuery("#jform_target input[type='radio']:checked").val();
|
var target_vvvvwad = jQuery("#jform_target input[type='radio']:checked").val();
|
||||||
vvvvwad(type_vvvvwad,target_vvvvwad);
|
var type_vvvvwad = jQuery("#jform_type input[type='radio']:checked").val();
|
||||||
|
vvvvwad(target_vvvvwad,type_vvvvwad);
|
||||||
|
|
||||||
|
var type_vvvvwae = jQuery("#jform_type input[type='radio']:checked").val();
|
||||||
|
var target_vvvvwae = jQuery("#jform_target input[type='radio']:checked").val();
|
||||||
|
vvvvwae(type_vvvvwae,target_vvvvwae);
|
||||||
});
|
});
|
||||||
|
|
||||||
// the vvvvwaa function
|
// the vvvvwab function
|
||||||
function vvvvwaa(target_vvvvwaa)
|
function vvvvwab(target_vvvvwab)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (target_vvvvwaa == 2)
|
if (target_vvvvwab == 2)
|
||||||
{
|
{
|
||||||
jQuery('#jform_function_name').closest('.control-group').show();
|
jQuery('#jform_function_name').closest('.control-group').show();
|
||||||
if (jform_vvvvwaavzp_required)
|
if (jform_vvvvwabvzq_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('function_name',0);
|
updateFieldRequired('function_name',0);
|
||||||
jQuery('#jform_function_name').prop('required','required');
|
jQuery('#jform_function_name').prop('required','required');
|
||||||
jQuery('#jform_function_name').attr('aria-required',true);
|
jQuery('#jform_function_name').attr('aria-required',true);
|
||||||
jQuery('#jform_function_name').addClass('required');
|
jQuery('#jform_function_name').addClass('required');
|
||||||
jform_vvvvwaavzp_required = false;
|
jform_vvvvwabvzq_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('.note_jcb_placeholder').closest('.control-group').show();
|
jQuery('.note_jcb_placeholder').closest('.control-group').show();
|
||||||
@ -54,99 +54,99 @@ function vvvvwaa(target_vvvvwaa)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_function_name').closest('.control-group').hide();
|
jQuery('#jform_function_name').closest('.control-group').hide();
|
||||||
if (!jform_vvvvwaavzp_required)
|
if (!jform_vvvvwabvzq_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('function_name',1);
|
updateFieldRequired('function_name',1);
|
||||||
jQuery('#jform_function_name').removeAttr('required');
|
jQuery('#jform_function_name').removeAttr('required');
|
||||||
jQuery('#jform_function_name').removeAttr('aria-required');
|
jQuery('#jform_function_name').removeAttr('aria-required');
|
||||||
jQuery('#jform_function_name').removeClass('required');
|
jQuery('#jform_function_name').removeClass('required');
|
||||||
jform_vvvvwaavzp_required = true;
|
jform_vvvvwabvzq_required = true;
|
||||||
}
|
}
|
||||||
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
|
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
|
||||||
jQuery('#jform_system_name').closest('.control-group').hide();
|
jQuery('#jform_system_name').closest('.control-group').hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvwab function
|
// the vvvvwac function
|
||||||
function vvvvwab(target_vvvvwab)
|
function vvvvwac(target_vvvvwac)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (target_vvvvwab == 1)
|
if (target_vvvvwac == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_component').closest('.control-group').show();
|
jQuery('#jform_component').closest('.control-group').show();
|
||||||
if (jform_vvvvwabvzq_required)
|
if (jform_vvvvwacvzr_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('component',0);
|
updateFieldRequired('component',0);
|
||||||
jQuery('#jform_component').prop('required','required');
|
jQuery('#jform_component').prop('required','required');
|
||||||
jQuery('#jform_component').attr('aria-required',true);
|
jQuery('#jform_component').attr('aria-required',true);
|
||||||
jQuery('#jform_component').addClass('required');
|
jQuery('#jform_component').addClass('required');
|
||||||
jform_vvvvwabvzq_required = false;
|
jform_vvvvwacvzr_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('#jform_path').closest('.control-group').show();
|
jQuery('#jform_path').closest('.control-group').show();
|
||||||
if (jform_vvvvwabvzr_required)
|
if (jform_vvvvwacvzs_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('path',0);
|
updateFieldRequired('path',0);
|
||||||
jQuery('#jform_path').prop('required','required');
|
jQuery('#jform_path').prop('required','required');
|
||||||
jQuery('#jform_path').attr('aria-required',true);
|
jQuery('#jform_path').attr('aria-required',true);
|
||||||
jQuery('#jform_path').addClass('required');
|
jQuery('#jform_path').addClass('required');
|
||||||
jform_vvvvwabvzr_required = false;
|
jform_vvvvwacvzs_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('#jform_from_line').closest('.control-group').show();
|
jQuery('#jform_from_line').closest('.control-group').show();
|
||||||
jQuery('#jform_hashtarget').closest('.control-group').show();
|
jQuery('#jform_hashtarget').closest('.control-group').show();
|
||||||
jQuery('#jform_to_line').closest('.control-group').show();
|
jQuery('#jform_to_line').closest('.control-group').show();
|
||||||
jQuery('#jform_type').closest('.control-group').show();
|
jQuery('#jform_type').closest('.control-group').show();
|
||||||
if (jform_vvvvwabvzs_required)
|
if (jform_vvvvwacvzt_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('type',0);
|
updateFieldRequired('type',0);
|
||||||
jQuery('#jform_type').prop('required','required');
|
jQuery('#jform_type').prop('required','required');
|
||||||
jQuery('#jform_type').attr('aria-required',true);
|
jQuery('#jform_type').attr('aria-required',true);
|
||||||
jQuery('#jform_type').addClass('required');
|
jQuery('#jform_type').addClass('required');
|
||||||
jform_vvvvwabvzs_required = false;
|
jform_vvvvwacvzt_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_component').closest('.control-group').hide();
|
jQuery('#jform_component').closest('.control-group').hide();
|
||||||
if (!jform_vvvvwabvzq_required)
|
if (!jform_vvvvwacvzr_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('component',1);
|
updateFieldRequired('component',1);
|
||||||
jQuery('#jform_component').removeAttr('required');
|
jQuery('#jform_component').removeAttr('required');
|
||||||
jQuery('#jform_component').removeAttr('aria-required');
|
jQuery('#jform_component').removeAttr('aria-required');
|
||||||
jQuery('#jform_component').removeClass('required');
|
jQuery('#jform_component').removeClass('required');
|
||||||
jform_vvvvwabvzq_required = true;
|
jform_vvvvwacvzr_required = true;
|
||||||
}
|
}
|
||||||
jQuery('#jform_path').closest('.control-group').hide();
|
jQuery('#jform_path').closest('.control-group').hide();
|
||||||
if (!jform_vvvvwabvzr_required)
|
if (!jform_vvvvwacvzs_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('path',1);
|
updateFieldRequired('path',1);
|
||||||
jQuery('#jform_path').removeAttr('required');
|
jQuery('#jform_path').removeAttr('required');
|
||||||
jQuery('#jform_path').removeAttr('aria-required');
|
jQuery('#jform_path').removeAttr('aria-required');
|
||||||
jQuery('#jform_path').removeClass('required');
|
jQuery('#jform_path').removeClass('required');
|
||||||
jform_vvvvwabvzr_required = true;
|
jform_vvvvwacvzs_required = true;
|
||||||
}
|
}
|
||||||
jQuery('#jform_from_line').closest('.control-group').hide();
|
jQuery('#jform_from_line').closest('.control-group').hide();
|
||||||
jQuery('#jform_hashtarget').closest('.control-group').hide();
|
jQuery('#jform_hashtarget').closest('.control-group').hide();
|
||||||
jQuery('#jform_to_line').closest('.control-group').hide();
|
jQuery('#jform_to_line').closest('.control-group').hide();
|
||||||
jQuery('#jform_type').closest('.control-group').hide();
|
jQuery('#jform_type').closest('.control-group').hide();
|
||||||
if (!jform_vvvvwabvzs_required)
|
if (!jform_vvvvwacvzt_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('type',1);
|
updateFieldRequired('type',1);
|
||||||
jQuery('#jform_type').removeAttr('required');
|
jQuery('#jform_type').removeAttr('required');
|
||||||
jQuery('#jform_type').removeAttr('aria-required');
|
jQuery('#jform_type').removeAttr('aria-required');
|
||||||
jQuery('#jform_type').removeClass('required');
|
jQuery('#jform_type').removeClass('required');
|
||||||
jform_vvvvwabvzs_required = true;
|
jform_vvvvwacvzt_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvwac function
|
// the vvvvwad function
|
||||||
function vvvvwac(target_vvvvwac,type_vvvvwac)
|
function vvvvwad(target_vvvvwad,type_vvvvwad)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (target_vvvvwac == 1 && type_vvvvwac == 1)
|
if (target_vvvvwad == 1 && type_vvvvwad == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_hashendtarget').closest('.control-group').show();
|
jQuery('#jform_hashendtarget').closest('.control-group').show();
|
||||||
jQuery('#jform_to_line').closest('.control-group').show();
|
jQuery('#jform_to_line').closest('.control-group').show();
|
||||||
@ -158,11 +158,11 @@ function vvvvwac(target_vvvvwac,type_vvvvwac)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvwad function
|
// the vvvvwae function
|
||||||
function vvvvwad(type_vvvvwad,target_vvvvwad)
|
function vvvvwae(type_vvvvwae,target_vvvvwae)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (type_vvvvwad == 1 && target_vvvvwad == 1)
|
if (type_vvvvwae == 1 && target_vvvvwae == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_hashendtarget').closest('.control-group').show();
|
jQuery('#jform_hashendtarget').closest('.control-group').show();
|
||||||
jQuery('#jform_to_line').closest('.control-group').show();
|
jQuery('#jform_to_line').closest('.control-group').show();
|
||||||
|
@ -185,18 +185,22 @@
|
|||||||
/>
|
/>
|
||||||
<!-- Note_placeholders_explained Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_placeholders_explained Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_placeholders_explained" label="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_PLACEHOLDERS_EXPLAINED_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_PLACEHOLDERS_EXPLAINED_DESCRIPTION" heading="h4" class="note_placeholders_explained" />
|
<field type="note" name="note_placeholders_explained" label="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_PLACEHOLDERS_EXPLAINED_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_PLACEHOLDERS_EXPLAINED_DESCRIPTION" heading="h4" class="note_placeholders_explained" />
|
||||||
<!-- Code Field. Type: Textarea. (joomla) -->
|
<!-- Code Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="code"
|
name="code"
|
||||||
label="COM_COMPONENTBUILDER_CUSTOM_CODE_CODE_LABEL"
|
label="COM_COMPONENTBUILDER_CUSTOM_CODE_CODE_LABEL"
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_CUSTOM_CODE_CODE_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CUSTOM_CODE_CODE_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_CODE_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Note_jcb_placeholder Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_jcb_placeholder Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_jcb_placeholder" label="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_JCB_PLACEHOLDER_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_JCB_PLACEHOLDER_DESCRIPTION" heading="h4" class="span12 note_jcb_placeholder" />
|
<field type="note" name="note_jcb_placeholder" label="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_JCB_PLACEHOLDER_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_JCB_PLACEHOLDER_DESCRIPTION" heading="h4" class="span12 note_jcb_placeholder" />
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -244,18 +244,22 @@
|
|||||||
</field>
|
</field>
|
||||||
<!-- Note_linked_to_notice Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_linked_to_notice Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_linked_to_notice" label="COM_COMPONENTBUILDER_DYNAMIC_GET_NOTE_LINKED_TO_NOTICE_LABEL" description="COM_COMPONENTBUILDER_DYNAMIC_GET_NOTE_LINKED_TO_NOTICE_DESCRIPTION" heading="h4" class="note_linked_to_notice" />
|
<field type="note" name="note_linked_to_notice" label="COM_COMPONENTBUILDER_DYNAMIC_GET_NOTE_LINKED_TO_NOTICE_LABEL" description="COM_COMPONENTBUILDER_DYNAMIC_GET_NOTE_LINKED_TO_NOTICE_DESCRIPTION" heading="h4" class="note_linked_to_notice" />
|
||||||
<!-- Php_custom_get Field. Type: Textarea. (joomla) -->
|
<!-- Php_custom_get Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="php_custom_get"
|
name="php_custom_get"
|
||||||
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CUSTOM_GET_LABEL"
|
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CUSTOM_GET_LABEL"
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CUSTOM_GET_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CUSTOM_GET_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CUSTOM_GET_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Db_selection Field. Type: Textarea. (joomla) -->
|
<!-- Db_selection Field. Type: Textarea. (joomla) -->
|
||||||
<field
|
<field
|
||||||
@ -321,18 +325,22 @@
|
|||||||
message="COM_COMPONENTBUILDER_DYNAMIC_GET_GETCUSTOM_MESSAGE"
|
message="COM_COMPONENTBUILDER_DYNAMIC_GET_GETCUSTOM_MESSAGE"
|
||||||
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_GETCUSTOM_HINT"
|
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_GETCUSTOM_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- Php_before_getitem Field. Type: Textarea. (joomla) -->
|
<!-- Php_before_getitem Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="php_before_getitem"
|
name="php_before_getitem"
|
||||||
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEM_LABEL"
|
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEM_LABEL"
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEM_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEM_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEM_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Pagination Field. Type: Radio. (joomla) -->
|
<!-- Pagination Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
@ -349,18 +357,22 @@
|
|||||||
<option value="0">
|
<option value="0">
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GET_NO</option>
|
COM_COMPONENTBUILDER_DYNAMIC_GET_NO</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- Php_after_getitem Field. Type: Textarea. (joomla) -->
|
<!-- Php_after_getitem Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="php_after_getitem"
|
name="php_after_getitem"
|
||||||
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEM_LABEL"
|
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEM_LABEL"
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEM_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEM_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEM_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Not_required Field. Type: Hidden. (joomla) -->
|
<!-- Not_required Field. Type: Hidden. (joomla) -->
|
||||||
<field
|
<field
|
||||||
@ -368,18 +380,22 @@
|
|||||||
name="not_required"
|
name="not_required"
|
||||||
default="[]"
|
default="[]"
|
||||||
/>
|
/>
|
||||||
<!-- Php_getlistquery Field. Type: Textarea. (joomla) -->
|
<!-- Php_getlistquery Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="php_getlistquery"
|
name="php_getlistquery"
|
||||||
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_GETLISTQUERY_LABEL"
|
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_GETLISTQUERY_LABEL"
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_GETLISTQUERY_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_GETLISTQUERY_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_GETLISTQUERY_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Filter Field. Type: Subform. (joomla) -->
|
<!-- Filter Field. Type: Subform. (joomla) -->
|
||||||
<field
|
<field
|
||||||
@ -495,18 +511,22 @@
|
|||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
<!-- Php_before_getitems Field. Type: Textarea. (joomla) -->
|
<!-- Php_before_getitems Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="php_before_getitems"
|
name="php_before_getitems"
|
||||||
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEMS_LABEL"
|
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEMS_LABEL"
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEMS_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEMS_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEMS_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Where Field. Type: Subform. (joomla) -->
|
<!-- Where Field. Type: Subform. (joomla) -->
|
||||||
<field
|
<field
|
||||||
@ -587,18 +607,22 @@
|
|||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
<!-- Php_after_getitems Field. Type: Textarea. (joomla) -->
|
<!-- Php_after_getitems Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="php_after_getitems"
|
name="php_after_getitems"
|
||||||
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEMS_LABEL"
|
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEMS_LABEL"
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEMS_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEMS_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEMS_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Order Field. Type: Subform. (joomla) -->
|
<!-- Order Field. Type: Subform. (joomla) -->
|
||||||
<field
|
<field
|
||||||
@ -1086,18 +1110,22 @@
|
|||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
<!-- Php_calculation Field. Type: Textarea. (joomla) -->
|
<!-- Php_calculation Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="php_calculation"
|
name="php_calculation"
|
||||||
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CALCULATION_LABEL"
|
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CALCULATION_LABEL"
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CALCULATION_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CALCULATION_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CALCULATION_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Join_db_table Field. Type: Subform. (joomla) -->
|
<!-- Join_db_table Field. Type: Subform. (joomla) -->
|
||||||
<field
|
<field
|
||||||
|
@ -9,151 +9,96 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Some Global Values
|
// Some Global Values
|
||||||
jform_vvvvwamvzv_required = false;
|
|
||||||
jform_vvvvwanvzw_required = false;
|
jform_vvvvwanvzw_required = false;
|
||||||
jform_vvvvwaovzx_required = false;
|
jform_vvvvwaovzx_required = false;
|
||||||
jform_vvvvwapvzy_required = false;
|
jform_vvvvwapvzy_required = false;
|
||||||
jform_vvvvwasvzz_required = false;
|
jform_vvvvwaqvzz_required = false;
|
||||||
jform_vvvvwatwaa_required = false;
|
jform_vvvvwatwaa_required = false;
|
||||||
jform_vvvvwauwab_required = false;
|
jform_vvvvwauwab_required = false;
|
||||||
jform_vvvvwavwac_required = false;
|
jform_vvvvwavwac_required = false;
|
||||||
|
jform_vvvvwawwad_required = false;
|
||||||
|
|
||||||
// Initial Script
|
// Initial Script
|
||||||
jQuery(document).ready(function()
|
jQuery(document).ready(function()
|
||||||
{
|
{
|
||||||
var datalenght_vvvvwam = jQuery("#jform_datalenght").val();
|
var datalenght_vvvvwan = jQuery("#jform_datalenght").val();
|
||||||
vvvvwam(datalenght_vvvvwam);
|
vvvvwan(datalenght_vvvvwan);
|
||||||
|
|
||||||
var datadefault_vvvvwan = jQuery("#jform_datadefault").val();
|
var datadefault_vvvvwao = jQuery("#jform_datadefault").val();
|
||||||
vvvvwan(datadefault_vvvvwan);
|
vvvvwao(datadefault_vvvvwao);
|
||||||
|
|
||||||
var datatype_vvvvwao = jQuery("#jform_datatype").val();
|
|
||||||
vvvvwao(datatype_vvvvwao);
|
|
||||||
|
|
||||||
var datatype_vvvvwap = jQuery("#jform_datatype").val();
|
var datatype_vvvvwap = jQuery("#jform_datatype").val();
|
||||||
vvvvwap(datatype_vvvvwap);
|
vvvvwap(datatype_vvvvwap);
|
||||||
|
|
||||||
var store_vvvvwaq = jQuery("#jform_store").val();
|
|
||||||
var datatype_vvvvwaq = jQuery("#jform_datatype").val();
|
var datatype_vvvvwaq = jQuery("#jform_datatype").val();
|
||||||
vvvvwaq(store_vvvvwaq,datatype_vvvvwaq);
|
vvvvwaq(datatype_vvvvwaq);
|
||||||
|
|
||||||
var add_css_view_vvvvwas = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
var store_vvvvwar = jQuery("#jform_store").val();
|
||||||
vvvvwas(add_css_view_vvvvwas);
|
var datatype_vvvvwar = jQuery("#jform_datatype").val();
|
||||||
|
vvvvwar(store_vvvvwar,datatype_vvvvwar);
|
||||||
|
|
||||||
var add_css_views_vvvvwat = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
var add_css_view_vvvvwat = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||||
vvvvwat(add_css_views_vvvvwat);
|
vvvvwat(add_css_view_vvvvwat);
|
||||||
|
|
||||||
var add_javascript_view_footer_vvvvwau = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
var add_css_views_vvvvwau = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||||
vvvvwau(add_javascript_view_footer_vvvvwau);
|
vvvvwau(add_css_views_vvvvwau);
|
||||||
|
|
||||||
var add_javascript_views_footer_vvvvwav = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
var add_javascript_view_footer_vvvvwav = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||||
vvvvwav(add_javascript_views_footer_vvvvwav);
|
vvvvwav(add_javascript_view_footer_vvvvwav);
|
||||||
|
|
||||||
|
var add_javascript_views_footer_vvvvwaw = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||||
|
vvvvwaw(add_javascript_views_footer_vvvvwaw);
|
||||||
});
|
});
|
||||||
|
|
||||||
// the vvvvwam function
|
// the vvvvwan function
|
||||||
function vvvvwam(datalenght_vvvvwam)
|
function vvvvwan(datalenght_vvvvwan)
|
||||||
{
|
{
|
||||||
if (isSet(datalenght_vvvvwam) && datalenght_vvvvwam.constructor !== Array)
|
if (isSet(datalenght_vvvvwan) && datalenght_vvvvwan.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_vvvvwam = datalenght_vvvvwam;
|
var temp_vvvvwan = datalenght_vvvvwan;
|
||||||
var datalenght_vvvvwam = [];
|
var datalenght_vvvvwan = [];
|
||||||
datalenght_vvvvwam.push(temp_vvvvwam);
|
datalenght_vvvvwan.push(temp_vvvvwan);
|
||||||
}
|
}
|
||||||
else if (!isSet(datalenght_vvvvwam))
|
else if (!isSet(datalenght_vvvvwan))
|
||||||
{
|
{
|
||||||
var datalenght_vvvvwam = [];
|
var datalenght_vvvvwan = [];
|
||||||
}
|
}
|
||||||
var datalenght = datalenght_vvvvwam.some(datalenght_vvvvwam_SomeFunc);
|
var datalenght = datalenght_vvvvwan.some(datalenght_vvvvwan_SomeFunc);
|
||||||
|
|
||||||
|
|
||||||
// set this function logic
|
// set this function logic
|
||||||
if (datalenght)
|
if (datalenght)
|
||||||
{
|
{
|
||||||
jQuery('#jform_datalenght_other').closest('.control-group').show();
|
jQuery('#jform_datalenght_other').closest('.control-group').show();
|
||||||
if (jform_vvvvwamvzv_required)
|
if (jform_vvvvwanvzw_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('datalenght_other',0);
|
updateFieldRequired('datalenght_other',0);
|
||||||
jQuery('#jform_datalenght_other').prop('required','required');
|
jQuery('#jform_datalenght_other').prop('required','required');
|
||||||
jQuery('#jform_datalenght_other').attr('aria-required',true);
|
jQuery('#jform_datalenght_other').attr('aria-required',true);
|
||||||
jQuery('#jform_datalenght_other').addClass('required');
|
jQuery('#jform_datalenght_other').addClass('required');
|
||||||
jform_vvvvwamvzv_required = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
jQuery('#jform_datalenght_other').closest('.control-group').hide();
|
|
||||||
if (!jform_vvvvwamvzv_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_vvvvwamvzv_required = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// the vvvvwam Some function
|
|
||||||
function datalenght_vvvvwam_SomeFunc(datalenght_vvvvwam)
|
|
||||||
{
|
|
||||||
// set the function logic
|
|
||||||
if (datalenght_vvvvwam == 'Other')
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// the vvvvwan function
|
|
||||||
function vvvvwan(datadefault_vvvvwan)
|
|
||||||
{
|
|
||||||
if (isSet(datadefault_vvvvwan) && datadefault_vvvvwan.constructor !== Array)
|
|
||||||
{
|
|
||||||
var temp_vvvvwan = datadefault_vvvvwan;
|
|
||||||
var datadefault_vvvvwan = [];
|
|
||||||
datadefault_vvvvwan.push(temp_vvvvwan);
|
|
||||||
}
|
|
||||||
else if (!isSet(datadefault_vvvvwan))
|
|
||||||
{
|
|
||||||
var datadefault_vvvvwan = [];
|
|
||||||
}
|
|
||||||
var datadefault = datadefault_vvvvwan.some(datadefault_vvvvwan_SomeFunc);
|
|
||||||
|
|
||||||
|
|
||||||
// set this function logic
|
|
||||||
if (datadefault)
|
|
||||||
{
|
|
||||||
jQuery('#jform_datadefault_other').closest('.control-group').show();
|
|
||||||
if (jform_vvvvwanvzw_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_vvvvwanvzw_required = false;
|
jform_vvvvwanvzw_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_datadefault_other').closest('.control-group').hide();
|
jQuery('#jform_datalenght_other').closest('.control-group').hide();
|
||||||
if (!jform_vvvvwanvzw_required)
|
if (!jform_vvvvwanvzw_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('datadefault_other',1);
|
updateFieldRequired('datalenght_other',1);
|
||||||
jQuery('#jform_datadefault_other').removeAttr('required');
|
jQuery('#jform_datalenght_other').removeAttr('required');
|
||||||
jQuery('#jform_datadefault_other').removeAttr('aria-required');
|
jQuery('#jform_datalenght_other').removeAttr('aria-required');
|
||||||
jQuery('#jform_datadefault_other').removeClass('required');
|
jQuery('#jform_datalenght_other').removeClass('required');
|
||||||
jform_vvvvwanvzw_required = true;
|
jform_vvvvwanvzw_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvwan Some function
|
// the vvvvwan Some function
|
||||||
function datadefault_vvvvwan_SomeFunc(datadefault_vvvvwan)
|
function datalenght_vvvvwan_SomeFunc(datalenght_vvvvwan)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (datadefault_vvvvwan == 'Other')
|
if (datalenght_vvvvwan == 'Other')
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -161,58 +106,54 @@ function datadefault_vvvvwan_SomeFunc(datadefault_vvvvwan)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvwao function
|
// the vvvvwao function
|
||||||
function vvvvwao(datatype_vvvvwao)
|
function vvvvwao(datadefault_vvvvwao)
|
||||||
{
|
{
|
||||||
if (isSet(datatype_vvvvwao) && datatype_vvvvwao.constructor !== Array)
|
if (isSet(datadefault_vvvvwao) && datadefault_vvvvwao.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_vvvvwao = datatype_vvvvwao;
|
var temp_vvvvwao = datadefault_vvvvwao;
|
||||||
var datatype_vvvvwao = [];
|
var datadefault_vvvvwao = [];
|
||||||
datatype_vvvvwao.push(temp_vvvvwao);
|
datadefault_vvvvwao.push(temp_vvvvwao);
|
||||||
}
|
}
|
||||||
else if (!isSet(datatype_vvvvwao))
|
else if (!isSet(datadefault_vvvvwao))
|
||||||
{
|
{
|
||||||
var datatype_vvvvwao = [];
|
var datadefault_vvvvwao = [];
|
||||||
}
|
}
|
||||||
var datatype = datatype_vvvvwao.some(datatype_vvvvwao_SomeFunc);
|
var datadefault = datadefault_vvvvwao.some(datadefault_vvvvwao_SomeFunc);
|
||||||
|
|
||||||
|
|
||||||
// set this function logic
|
// set this function logic
|
||||||
if (datatype)
|
if (datadefault)
|
||||||
{
|
{
|
||||||
jQuery('#jform_datadefault').closest('.control-group').show();
|
jQuery('#jform_datadefault_other').closest('.control-group').show();
|
||||||
jQuery('#jform_datalenght').closest('.control-group').show();
|
|
||||||
jQuery('#jform_indexes').closest('.control-group').show();
|
|
||||||
if (jform_vvvvwaovzx_required)
|
if (jform_vvvvwaovzx_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('indexes',0);
|
updateFieldRequired('datadefault_other',0);
|
||||||
jQuery('#jform_indexes').prop('required','required');
|
jQuery('#jform_datadefault_other').prop('required','required');
|
||||||
jQuery('#jform_indexes').attr('aria-required',true);
|
jQuery('#jform_datadefault_other').attr('aria-required',true);
|
||||||
jQuery('#jform_indexes').addClass('required');
|
jQuery('#jform_datadefault_other').addClass('required');
|
||||||
jform_vvvvwaovzx_required = false;
|
jform_vvvvwaovzx_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_datadefault').closest('.control-group').hide();
|
jQuery('#jform_datadefault_other').closest('.control-group').hide();
|
||||||
jQuery('#jform_datalenght').closest('.control-group').hide();
|
|
||||||
jQuery('#jform_indexes').closest('.control-group').hide();
|
|
||||||
if (!jform_vvvvwaovzx_required)
|
if (!jform_vvvvwaovzx_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('indexes',1);
|
updateFieldRequired('datadefault_other',1);
|
||||||
jQuery('#jform_indexes').removeAttr('required');
|
jQuery('#jform_datadefault_other').removeAttr('required');
|
||||||
jQuery('#jform_indexes').removeAttr('aria-required');
|
jQuery('#jform_datadefault_other').removeAttr('aria-required');
|
||||||
jQuery('#jform_indexes').removeClass('required');
|
jQuery('#jform_datadefault_other').removeClass('required');
|
||||||
jform_vvvvwaovzx_required = true;
|
jform_vvvvwaovzx_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvwao Some function
|
// the vvvvwao Some function
|
||||||
function datatype_vvvvwao_SomeFunc(datatype_vvvvwao)
|
function datadefault_vvvvwao_SomeFunc(datadefault_vvvvwao)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (datatype_vvvvwao == 'CHAR' || datatype_vvvvwao == 'VARCHAR' || datatype_vvvvwao == 'DATETIME' || datatype_vvvvwao == 'DATE' || datatype_vvvvwao == 'TIME' || datatype_vvvvwao == 'INT' || datatype_vvvvwao == 'TINYINT' || datatype_vvvvwao == 'BIGINT' || datatype_vvvvwao == 'FLOAT' || datatype_vvvvwao == 'DECIMAL' || datatype_vvvvwao == 'DOUBLE')
|
if (datadefault_vvvvwao == 'Other')
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -238,26 +179,30 @@ function vvvvwap(datatype_vvvvwap)
|
|||||||
// set this function logic
|
// set this function logic
|
||||||
if (datatype)
|
if (datatype)
|
||||||
{
|
{
|
||||||
jQuery('#jform_store').closest('.control-group').show();
|
jQuery('#jform_datadefault').closest('.control-group').show();
|
||||||
|
jQuery('#jform_datalenght').closest('.control-group').show();
|
||||||
|
jQuery('#jform_indexes').closest('.control-group').show();
|
||||||
if (jform_vvvvwapvzy_required)
|
if (jform_vvvvwapvzy_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('store',0);
|
updateFieldRequired('indexes',0);
|
||||||
jQuery('#jform_store').prop('required','required');
|
jQuery('#jform_indexes').prop('required','required');
|
||||||
jQuery('#jform_store').attr('aria-required',true);
|
jQuery('#jform_indexes').attr('aria-required',true);
|
||||||
jQuery('#jform_store').addClass('required');
|
jQuery('#jform_indexes').addClass('required');
|
||||||
jform_vvvvwapvzy_required = false;
|
jform_vvvvwapvzy_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_store').closest('.control-group').hide();
|
jQuery('#jform_datadefault').closest('.control-group').hide();
|
||||||
|
jQuery('#jform_datalenght').closest('.control-group').hide();
|
||||||
|
jQuery('#jform_indexes').closest('.control-group').hide();
|
||||||
if (!jform_vvvvwapvzy_required)
|
if (!jform_vvvvwapvzy_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('store',1);
|
updateFieldRequired('indexes',1);
|
||||||
jQuery('#jform_store').removeAttr('required');
|
jQuery('#jform_indexes').removeAttr('required');
|
||||||
jQuery('#jform_store').removeAttr('aria-required');
|
jQuery('#jform_indexes').removeAttr('aria-required');
|
||||||
jQuery('#jform_store').removeClass('required');
|
jQuery('#jform_indexes').removeClass('required');
|
||||||
jform_vvvvwapvzy_required = true;
|
jform_vvvvwapvzy_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -267,7 +212,7 @@ function vvvvwap(datatype_vvvvwap)
|
|||||||
function datatype_vvvvwap_SomeFunc(datatype_vvvvwap)
|
function datatype_vvvvwap_SomeFunc(datatype_vvvvwap)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (datatype_vvvvwap == 'CHAR' || datatype_vvvvwap == 'VARCHAR' || datatype_vvvvwap == 'TEXT' || datatype_vvvvwap == 'MEDIUMTEXT' || datatype_vvvvwap == 'LONGTEXT')
|
if (datatype_vvvvwap == 'CHAR' || datatype_vvvvwap == 'VARCHAR' || datatype_vvvvwap == 'DATETIME' || datatype_vvvvwap == 'DATE' || datatype_vvvvwap == 'TIME' || datatype_vvvvwap == 'INT' || datatype_vvvvwap == 'TINYINT' || datatype_vvvvwap == 'BIGINT' || datatype_vvvvwap == 'FLOAT' || datatype_vvvvwap == 'DECIMAL' || datatype_vvvvwap == 'DOUBLE')
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -275,20 +220,8 @@ function datatype_vvvvwap_SomeFunc(datatype_vvvvwap)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvwaq function
|
// the vvvvwaq function
|
||||||
function vvvvwaq(store_vvvvwaq,datatype_vvvvwaq)
|
function vvvvwaq(datatype_vvvvwaq)
|
||||||
{
|
{
|
||||||
if (isSet(store_vvvvwaq) && store_vvvvwaq.constructor !== Array)
|
|
||||||
{
|
|
||||||
var temp_vvvvwaq = store_vvvvwaq;
|
|
||||||
var store_vvvvwaq = [];
|
|
||||||
store_vvvvwaq.push(temp_vvvvwaq);
|
|
||||||
}
|
|
||||||
else if (!isSet(store_vvvvwaq))
|
|
||||||
{
|
|
||||||
var store_vvvvwaq = [];
|
|
||||||
}
|
|
||||||
var store = store_vvvvwaq.some(store_vvvvwaq_SomeFunc);
|
|
||||||
|
|
||||||
if (isSet(datatype_vvvvwaq) && datatype_vvvvwaq.constructor !== Array)
|
if (isSet(datatype_vvvvwaq) && datatype_vvvvwaq.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_vvvvwaq = datatype_vvvvwaq;
|
var temp_vvvvwaq = datatype_vvvvwaq;
|
||||||
@ -303,25 +236,31 @@ function vvvvwaq(store_vvvvwaq,datatype_vvvvwaq)
|
|||||||
|
|
||||||
|
|
||||||
// set this function logic
|
// set this function logic
|
||||||
if (store && datatype)
|
if (datatype)
|
||||||
{
|
{
|
||||||
jQuery('.note_whmcs_encryption').closest('.control-group').show();
|
jQuery('#jform_store').closest('.control-group').show();
|
||||||
|
if (jform_vvvvwaqvzz_required)
|
||||||
|
{
|
||||||
|
updateFieldRequired('store',0);
|
||||||
|
jQuery('#jform_store').prop('required','required');
|
||||||
|
jQuery('#jform_store').attr('aria-required',true);
|
||||||
|
jQuery('#jform_store').addClass('required');
|
||||||
|
jform_vvvvwaqvzz_required = false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('.note_whmcs_encryption').closest('.control-group').hide();
|
jQuery('#jform_store').closest('.control-group').hide();
|
||||||
}
|
if (!jform_vvvvwaqvzz_required)
|
||||||
}
|
|
||||||
|
|
||||||
// the vvvvwaq Some function
|
|
||||||
function store_vvvvwaq_SomeFunc(store_vvvvwaq)
|
|
||||||
{
|
{
|
||||||
// set the function logic
|
updateFieldRequired('store',1);
|
||||||
if (store_vvvvwaq == 4)
|
jQuery('#jform_store').removeAttr('required');
|
||||||
{
|
jQuery('#jform_store').removeAttr('aria-required');
|
||||||
return true;
|
jQuery('#jform_store').removeClass('required');
|
||||||
|
jform_vvvvwaqvzz_required = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvwaq Some function
|
// the vvvvwaq Some function
|
||||||
@ -335,126 +274,187 @@ function datatype_vvvvwaq_SomeFunc(datatype_vvvvwaq)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvwas function
|
// the vvvvwar function
|
||||||
function vvvvwas(add_css_view_vvvvwas)
|
function vvvvwar(store_vvvvwar,datatype_vvvvwar)
|
||||||
|
{
|
||||||
|
if (isSet(store_vvvvwar) && store_vvvvwar.constructor !== Array)
|
||||||
|
{
|
||||||
|
var temp_vvvvwar = store_vvvvwar;
|
||||||
|
var store_vvvvwar = [];
|
||||||
|
store_vvvvwar.push(temp_vvvvwar);
|
||||||
|
}
|
||||||
|
else if (!isSet(store_vvvvwar))
|
||||||
|
{
|
||||||
|
var store_vvvvwar = [];
|
||||||
|
}
|
||||||
|
var store = store_vvvvwar.some(store_vvvvwar_SomeFunc);
|
||||||
|
|
||||||
|
if (isSet(datatype_vvvvwar) && datatype_vvvvwar.constructor !== Array)
|
||||||
|
{
|
||||||
|
var temp_vvvvwar = datatype_vvvvwar;
|
||||||
|
var datatype_vvvvwar = [];
|
||||||
|
datatype_vvvvwar.push(temp_vvvvwar);
|
||||||
|
}
|
||||||
|
else if (!isSet(datatype_vvvvwar))
|
||||||
|
{
|
||||||
|
var datatype_vvvvwar = [];
|
||||||
|
}
|
||||||
|
var datatype = datatype_vvvvwar.some(datatype_vvvvwar_SomeFunc);
|
||||||
|
|
||||||
|
|
||||||
|
// set this function logic
|
||||||
|
if (store && datatype)
|
||||||
|
{
|
||||||
|
jQuery('.note_whmcs_encryption').closest('.control-group').show();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
jQuery('.note_whmcs_encryption').closest('.control-group').hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// the vvvvwar Some function
|
||||||
|
function store_vvvvwar_SomeFunc(store_vvvvwar)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_css_view_vvvvwas == 1)
|
if (store_vvvvwar == 4)
|
||||||
{
|
{
|
||||||
jQuery('#jform_css_view').closest('.control-group').show();
|
return true;
|
||||||
if (jform_vvvvwasvzz_required)
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// the vvvvwar Some function
|
||||||
|
function datatype_vvvvwar_SomeFunc(datatype_vvvvwar)
|
||||||
|
{
|
||||||
|
// set the function logic
|
||||||
|
if (datatype_vvvvwar == 'CHAR' || datatype_vvvvwar == 'VARCHAR' || datatype_vvvvwar == 'TEXT' || datatype_vvvvwar == 'MEDIUMTEXT' || datatype_vvvvwar == 'LONGTEXT')
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// the vvvvwat function
|
||||||
|
function vvvvwat(add_css_view_vvvvwat)
|
||||||
|
{
|
||||||
|
// set the function logic
|
||||||
|
if (add_css_view_vvvvwat == 1)
|
||||||
|
{
|
||||||
|
jQuery('#jform_css_view-lbl').closest('.control-group').show();
|
||||||
|
if (jform_vvvvwatwaa_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('css_view',0);
|
updateFieldRequired('css_view',0);
|
||||||
jQuery('#jform_css_view').prop('required','required');
|
jQuery('#jform_css_view').prop('required','required');
|
||||||
jQuery('#jform_css_view').attr('aria-required',true);
|
jQuery('#jform_css_view').attr('aria-required',true);
|
||||||
jQuery('#jform_css_view').addClass('required');
|
jQuery('#jform_css_view').addClass('required');
|
||||||
jform_vvvvwasvzz_required = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
jQuery('#jform_css_view').closest('.control-group').hide();
|
|
||||||
if (!jform_vvvvwasvzz_required)
|
|
||||||
{
|
|
||||||
updateFieldRequired('css_view',1);
|
|
||||||
jQuery('#jform_css_view').removeAttr('required');
|
|
||||||
jQuery('#jform_css_view').removeAttr('aria-required');
|
|
||||||
jQuery('#jform_css_view').removeClass('required');
|
|
||||||
jform_vvvvwasvzz_required = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// the vvvvwat function
|
|
||||||
function vvvvwat(add_css_views_vvvvwat)
|
|
||||||
{
|
|
||||||
// set the function logic
|
|
||||||
if (add_css_views_vvvvwat == 1)
|
|
||||||
{
|
|
||||||
jQuery('#jform_css_views').closest('.control-group').show();
|
|
||||||
if (jform_vvvvwatwaa_required)
|
|
||||||
{
|
|
||||||
updateFieldRequired('css_views',0);
|
|
||||||
jQuery('#jform_css_views').prop('required','required');
|
|
||||||
jQuery('#jform_css_views').attr('aria-required',true);
|
|
||||||
jQuery('#jform_css_views').addClass('required');
|
|
||||||
jform_vvvvwatwaa_required = false;
|
jform_vvvvwatwaa_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_css_views').closest('.control-group').hide();
|
jQuery('#jform_css_view-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvwatwaa_required)
|
if (!jform_vvvvwatwaa_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('css_views',1);
|
updateFieldRequired('css_view',1);
|
||||||
jQuery('#jform_css_views').removeAttr('required');
|
jQuery('#jform_css_view').removeAttr('required');
|
||||||
jQuery('#jform_css_views').removeAttr('aria-required');
|
jQuery('#jform_css_view').removeAttr('aria-required');
|
||||||
jQuery('#jform_css_views').removeClass('required');
|
jQuery('#jform_css_view').removeClass('required');
|
||||||
jform_vvvvwatwaa_required = true;
|
jform_vvvvwatwaa_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvwau function
|
// the vvvvwau function
|
||||||
function vvvvwau(add_javascript_view_footer_vvvvwau)
|
function vvvvwau(add_css_views_vvvvwau)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_javascript_view_footer_vvvvwau == 1)
|
if (add_css_views_vvvvwau == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_javascript_view_footer').closest('.control-group').show();
|
jQuery('#jform_css_views-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvwauwab_required)
|
if (jform_vvvvwauwab_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('javascript_view_footer',0);
|
updateFieldRequired('css_views',0);
|
||||||
jQuery('#jform_javascript_view_footer').prop('required','required');
|
jQuery('#jform_css_views').prop('required','required');
|
||||||
jQuery('#jform_javascript_view_footer').attr('aria-required',true);
|
jQuery('#jform_css_views').attr('aria-required',true);
|
||||||
jQuery('#jform_javascript_view_footer').addClass('required');
|
jQuery('#jform_css_views').addClass('required');
|
||||||
jform_vvvvwauwab_required = false;
|
jform_vvvvwauwab_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_javascript_view_footer').closest('.control-group').hide();
|
jQuery('#jform_css_views-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvwauwab_required)
|
if (!jform_vvvvwauwab_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('javascript_view_footer',1);
|
updateFieldRequired('css_views',1);
|
||||||
jQuery('#jform_javascript_view_footer').removeAttr('required');
|
jQuery('#jform_css_views').removeAttr('required');
|
||||||
jQuery('#jform_javascript_view_footer').removeAttr('aria-required');
|
jQuery('#jform_css_views').removeAttr('aria-required');
|
||||||
jQuery('#jform_javascript_view_footer').removeClass('required');
|
jQuery('#jform_css_views').removeClass('required');
|
||||||
jform_vvvvwauwab_required = true;
|
jform_vvvvwauwab_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvwav function
|
// the vvvvwav function
|
||||||
function vvvvwav(add_javascript_views_footer_vvvvwav)
|
function vvvvwav(add_javascript_view_footer_vvvvwav)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_javascript_views_footer_vvvvwav == 1)
|
if (add_javascript_view_footer_vvvvwav == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_javascript_views_footer').closest('.control-group').show();
|
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvwavwac_required)
|
if (jform_vvvvwavwac_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('javascript_views_footer',0);
|
updateFieldRequired('javascript_view_footer',0);
|
||||||
jQuery('#jform_javascript_views_footer').prop('required','required');
|
jQuery('#jform_javascript_view_footer').prop('required','required');
|
||||||
jQuery('#jform_javascript_views_footer').attr('aria-required',true);
|
jQuery('#jform_javascript_view_footer').attr('aria-required',true);
|
||||||
jQuery('#jform_javascript_views_footer').addClass('required');
|
jQuery('#jform_javascript_view_footer').addClass('required');
|
||||||
jform_vvvvwavwac_required = false;
|
jform_vvvvwavwac_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_javascript_views_footer').closest('.control-group').hide();
|
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvwavwac_required)
|
if (!jform_vvvvwavwac_required)
|
||||||
|
{
|
||||||
|
updateFieldRequired('javascript_view_footer',1);
|
||||||
|
jQuery('#jform_javascript_view_footer').removeAttr('required');
|
||||||
|
jQuery('#jform_javascript_view_footer').removeAttr('aria-required');
|
||||||
|
jQuery('#jform_javascript_view_footer').removeClass('required');
|
||||||
|
jform_vvvvwavwac_required = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// the vvvvwaw function
|
||||||
|
function vvvvwaw(add_javascript_views_footer_vvvvwaw)
|
||||||
|
{
|
||||||
|
// set the function logic
|
||||||
|
if (add_javascript_views_footer_vvvvwaw == 1)
|
||||||
|
{
|
||||||
|
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show();
|
||||||
|
if (jform_vvvvwawwad_required)
|
||||||
|
{
|
||||||
|
updateFieldRequired('javascript_views_footer',0);
|
||||||
|
jQuery('#jform_javascript_views_footer').prop('required','required');
|
||||||
|
jQuery('#jform_javascript_views_footer').attr('aria-required',true);
|
||||||
|
jQuery('#jform_javascript_views_footer').addClass('required');
|
||||||
|
jform_vvvvwawwad_required = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').hide();
|
||||||
|
if (!jform_vvvvwawwad_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('javascript_views_footer',1);
|
updateFieldRequired('javascript_views_footer',1);
|
||||||
jQuery('#jform_javascript_views_footer').removeAttr('required');
|
jQuery('#jform_javascript_views_footer').removeAttr('required');
|
||||||
jQuery('#jform_javascript_views_footer').removeAttr('aria-required');
|
jQuery('#jform_javascript_views_footer').removeAttr('aria-required');
|
||||||
jQuery('#jform_javascript_views_footer').removeClass('required');
|
jQuery('#jform_javascript_views_footer').removeClass('required');
|
||||||
jform_vvvvwavwac_required = true;
|
jform_vvvvwawwad_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -219,18 +219,22 @@
|
|||||||
description="COM_COMPONENTBUILDER_FIELD_CATID_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_FIELD_CATID_DESCRIPTION"
|
||||||
class="inputbox"
|
class="inputbox"
|
||||||
/>
|
/>
|
||||||
<!-- Css_views Field. Type: Textarea. (joomla) -->
|
<!-- Css_views Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="css_views"
|
name="css_views"
|
||||||
label="COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_LABEL"
|
label="COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_LABEL"
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="css"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Add_css_views Field. Type: Radio. (joomla) -->
|
<!-- Add_css_views Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
@ -246,18 +250,22 @@
|
|||||||
<option value="0">
|
<option value="0">
|
||||||
COM_COMPONENTBUILDER_FIELD_NO</option>
|
COM_COMPONENTBUILDER_FIELD_NO</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- Css_view Field. Type: Textarea. (joomla) -->
|
<!-- Css_view Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="css_view"
|
name="css_view"
|
||||||
label="COM_COMPONENTBUILDER_FIELD_CSS_VIEW_LABEL"
|
label="COM_COMPONENTBUILDER_FIELD_CSS_VIEW_LABEL"
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_FIELD_CSS_VIEW_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_FIELD_CSS_VIEW_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="css"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_FIELD_CSS_VIEW_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Add_css_view Field. Type: Radio. (joomla) -->
|
<!-- Add_css_view Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
@ -397,33 +405,41 @@
|
|||||||
</field>
|
</field>
|
||||||
<!-- Note_whmcs_encryption Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_whmcs_encryption Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_whmcs_encryption" label="COM_COMPONENTBUILDER_FIELD_NOTE_WHMCS_ENCRYPTION_LABEL" description="COM_COMPONENTBUILDER_FIELD_NOTE_WHMCS_ENCRYPTION_DESCRIPTION" heading="h4" class="alert alert-success note_whmcs_encryption" />
|
<field type="note" name="note_whmcs_encryption" label="COM_COMPONENTBUILDER_FIELD_NOTE_WHMCS_ENCRYPTION_LABEL" description="COM_COMPONENTBUILDER_FIELD_NOTE_WHMCS_ENCRYPTION_DESCRIPTION" heading="h4" class="alert alert-success note_whmcs_encryption" />
|
||||||
<!-- Javascript_view_footer Field. Type: Textarea. (joomla) -->
|
<!-- Javascript_view_footer Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="javascript_view_footer"
|
name="javascript_view_footer"
|
||||||
label="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_LABEL"
|
label="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_LABEL"
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="javascript"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Note_no_database_settings_needed Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_no_database_settings_needed Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_no_database_settings_needed" label="COM_COMPONENTBUILDER_FIELD_NOTE_NO_DATABASE_SETTINGS_NEEDED_LABEL" description="COM_COMPONENTBUILDER_FIELD_NOTE_NO_DATABASE_SETTINGS_NEEDED_DESCRIPTION" heading="h4" class="alert alert-info note_no_database_settings_needed" />
|
<field type="note" name="note_no_database_settings_needed" label="COM_COMPONENTBUILDER_FIELD_NOTE_NO_DATABASE_SETTINGS_NEEDED_LABEL" description="COM_COMPONENTBUILDER_FIELD_NOTE_NO_DATABASE_SETTINGS_NEEDED_DESCRIPTION" heading="h4" class="alert alert-info note_no_database_settings_needed" />
|
||||||
<!-- Javascript_views_footer Field. Type: Textarea. (joomla) -->
|
<!-- Javascript_views_footer Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="javascript_views_footer"
|
name="javascript_views_footer"
|
||||||
label="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_LABEL"
|
label="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_LABEL"
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_DESCRIPTION"
|
||||||
class="text_area span12"
|
width="100%"
|
||||||
|
height="450px"
|
||||||
|
cols="15"
|
||||||
|
rows="30"
|
||||||
|
buttons="no"
|
||||||
|
syntax="javascript"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_HINT"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Not_required Field. Type: Hidden. (joomla) -->
|
<!-- Not_required Field. Type: Hidden. (joomla) -->
|
||||||
<field
|
<field
|
||||||
|
@ -9,24 +9,21 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Some Global Values
|
// Some Global Values
|
||||||
jform_vvvvwbgwao_required = false;
|
|
||||||
jform_vvvvwbhwap_required = false;
|
jform_vvvvwbhwap_required = false;
|
||||||
jform_vvvvwbiwaq_required = false;
|
jform_vvvvwbiwaq_required = false;
|
||||||
jform_vvvvwbjwar_required = false;
|
jform_vvvvwbjwar_required = false;
|
||||||
jform_vvvvwbkwas_required = false;
|
jform_vvvvwbkwas_required = false;
|
||||||
jform_vvvvwblwat_required = false;
|
jform_vvvvwblwat_required = false;
|
||||||
|
jform_vvvvwbmwau_required = false;
|
||||||
|
|
||||||
// Initial Script
|
// Initial Script
|
||||||
jQuery(document).ready(function()
|
jQuery(document).ready(function()
|
||||||
{
|
{
|
||||||
var location_vvvvwbg = jQuery("#jform_location input[type='radio']:checked").val();
|
|
||||||
vvvvwbg(location_vvvvwbg);
|
|
||||||
|
|
||||||
var location_vvvvwbh = jQuery("#jform_location input[type='radio']:checked").val();
|
var location_vvvvwbh = jQuery("#jform_location input[type='radio']:checked").val();
|
||||||
vvvvwbh(location_vvvvwbh);
|
vvvvwbh(location_vvvvwbh);
|
||||||
|
|
||||||
var type_vvvvwbi = jQuery("#jform_type").val();
|
var location_vvvvwbi = jQuery("#jform_location input[type='radio']:checked").val();
|
||||||
vvvvwbi(type_vvvvwbi);
|
vvvvwbi(location_vvvvwbi);
|
||||||
|
|
||||||
var type_vvvvwbj = jQuery("#jform_type").val();
|
var type_vvvvwbj = jQuery("#jform_type").val();
|
||||||
vvvvwbj(type_vvvvwbj);
|
vvvvwbj(type_vvvvwbj);
|
||||||
@ -34,127 +31,75 @@ jQuery(document).ready(function()
|
|||||||
var type_vvvvwbk = jQuery("#jform_type").val();
|
var type_vvvvwbk = jQuery("#jform_type").val();
|
||||||
vvvvwbk(type_vvvvwbk);
|
vvvvwbk(type_vvvvwbk);
|
||||||
|
|
||||||
var target_vvvvwbl = jQuery("#jform_target input[type='radio']:checked").val();
|
var type_vvvvwbl = jQuery("#jform_type").val();
|
||||||
vvvvwbl(target_vvvvwbl);
|
vvvvwbl(type_vvvvwbl);
|
||||||
|
|
||||||
|
var target_vvvvwbm = jQuery("#jform_target input[type='radio']:checked").val();
|
||||||
|
vvvvwbm(target_vvvvwbm);
|
||||||
});
|
});
|
||||||
|
|
||||||
// the vvvvwbg function
|
|
||||||
function vvvvwbg(location_vvvvwbg)
|
|
||||||
{
|
|
||||||
// set the function logic
|
|
||||||
if (location_vvvvwbg == 1)
|
|
||||||
{
|
|
||||||
jQuery('#jform_admin_view').closest('.control-group').show();
|
|
||||||
if (jform_vvvvwbgwao_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_vvvvwbgwao_required = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
jQuery('#jform_admin_view').closest('.control-group').hide();
|
|
||||||
if (!jform_vvvvwbgwao_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_vvvvwbgwao_required = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// the vvvvwbh function
|
// the vvvvwbh function
|
||||||
function vvvvwbh(location_vvvvwbh)
|
function vvvvwbh(location_vvvvwbh)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (location_vvvvwbh == 2)
|
if (location_vvvvwbh == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_site_view').closest('.control-group').show();
|
jQuery('#jform_admin_view').closest('.control-group').show();
|
||||||
if (jform_vvvvwbhwap_required)
|
if (jform_vvvvwbhwap_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('site_view',0);
|
updateFieldRequired('admin_view',0);
|
||||||
jQuery('#jform_site_view').prop('required','required');
|
jQuery('#jform_admin_view').prop('required','required');
|
||||||
jQuery('#jform_site_view').attr('aria-required',true);
|
jQuery('#jform_admin_view').attr('aria-required',true);
|
||||||
jQuery('#jform_site_view').addClass('required');
|
jQuery('#jform_admin_view').addClass('required');
|
||||||
jform_vvvvwbhwap_required = false;
|
jform_vvvvwbhwap_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_site_view').closest('.control-group').hide();
|
jQuery('#jform_admin_view').closest('.control-group').hide();
|
||||||
if (!jform_vvvvwbhwap_required)
|
if (!jform_vvvvwbhwap_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('site_view',1);
|
updateFieldRequired('admin_view',1);
|
||||||
jQuery('#jform_site_view').removeAttr('required');
|
jQuery('#jform_admin_view').removeAttr('required');
|
||||||
jQuery('#jform_site_view').removeAttr('aria-required');
|
jQuery('#jform_admin_view').removeAttr('aria-required');
|
||||||
jQuery('#jform_site_view').removeClass('required');
|
jQuery('#jform_admin_view').removeClass('required');
|
||||||
jform_vvvvwbhwap_required = true;
|
jform_vvvvwbhwap_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvwbi function
|
// the vvvvwbi function
|
||||||
function vvvvwbi(type_vvvvwbi)
|
function vvvvwbi(location_vvvvwbi)
|
||||||
{
|
{
|
||||||
if (isSet(type_vvvvwbi) && type_vvvvwbi.constructor !== Array)
|
// set the function logic
|
||||||
|
if (location_vvvvwbi == 2)
|
||||||
{
|
{
|
||||||
var temp_vvvvwbi = type_vvvvwbi;
|
jQuery('#jform_site_view').closest('.control-group').show();
|
||||||
var type_vvvvwbi = [];
|
|
||||||
type_vvvvwbi.push(temp_vvvvwbi);
|
|
||||||
}
|
|
||||||
else if (!isSet(type_vvvvwbi))
|
|
||||||
{
|
|
||||||
var type_vvvvwbi = [];
|
|
||||||
}
|
|
||||||
var type = type_vvvvwbi.some(type_vvvvwbi_SomeFunc);
|
|
||||||
|
|
||||||
|
|
||||||
// set this function logic
|
|
||||||
if (type)
|
|
||||||
{
|
|
||||||
jQuery('#jform_url').closest('.control-group').show();
|
|
||||||
if (jform_vvvvwbiwaq_required)
|
if (jform_vvvvwbiwaq_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('url',0);
|
updateFieldRequired('site_view',0);
|
||||||
jQuery('#jform_url').prop('required','required');
|
jQuery('#jform_site_view').prop('required','required');
|
||||||
jQuery('#jform_url').attr('aria-required',true);
|
jQuery('#jform_site_view').attr('aria-required',true);
|
||||||
jQuery('#jform_url').addClass('required');
|
jQuery('#jform_site_view').addClass('required');
|
||||||
jform_vvvvwbiwaq_required = false;
|
jform_vvvvwbiwaq_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_url').closest('.control-group').hide();
|
jQuery('#jform_site_view').closest('.control-group').hide();
|
||||||
if (!jform_vvvvwbiwaq_required)
|
if (!jform_vvvvwbiwaq_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('url',1);
|
updateFieldRequired('site_view',1);
|
||||||
jQuery('#jform_url').removeAttr('required');
|
jQuery('#jform_site_view').removeAttr('required');
|
||||||
jQuery('#jform_url').removeAttr('aria-required');
|
jQuery('#jform_site_view').removeAttr('aria-required');
|
||||||
jQuery('#jform_url').removeClass('required');
|
jQuery('#jform_site_view').removeClass('required');
|
||||||
jform_vvvvwbiwaq_required = true;
|
jform_vvvvwbiwaq_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvwbi Some function
|
|
||||||
function type_vvvvwbi_SomeFunc(type_vvvvwbi)
|
|
||||||
{
|
|
||||||
// set the function logic
|
|
||||||
if (type_vvvvwbi == 3)
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// the vvvvwbj function
|
// the vvvvwbj function
|
||||||
function vvvvwbj(type_vvvvwbj)
|
function vvvvwbj(type_vvvvwbj)
|
||||||
{
|
{
|
||||||
@ -174,26 +119,26 @@ function vvvvwbj(type_vvvvwbj)
|
|||||||
// set this function logic
|
// set this function logic
|
||||||
if (type)
|
if (type)
|
||||||
{
|
{
|
||||||
jQuery('#jform_article').closest('.control-group').show();
|
jQuery('#jform_url').closest('.control-group').show();
|
||||||
if (jform_vvvvwbjwar_required)
|
if (jform_vvvvwbjwar_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('article',0);
|
updateFieldRequired('url',0);
|
||||||
jQuery('#jform_article').prop('required','required');
|
jQuery('#jform_url').prop('required','required');
|
||||||
jQuery('#jform_article').attr('aria-required',true);
|
jQuery('#jform_url').attr('aria-required',true);
|
||||||
jQuery('#jform_article').addClass('required');
|
jQuery('#jform_url').addClass('required');
|
||||||
jform_vvvvwbjwar_required = false;
|
jform_vvvvwbjwar_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_article').closest('.control-group').hide();
|
jQuery('#jform_url').closest('.control-group').hide();
|
||||||
if (!jform_vvvvwbjwar_required)
|
if (!jform_vvvvwbjwar_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('article',1);
|
updateFieldRequired('url',1);
|
||||||
jQuery('#jform_article').removeAttr('required');
|
jQuery('#jform_url').removeAttr('required');
|
||||||
jQuery('#jform_article').removeAttr('aria-required');
|
jQuery('#jform_url').removeAttr('aria-required');
|
||||||
jQuery('#jform_article').removeClass('required');
|
jQuery('#jform_url').removeClass('required');
|
||||||
jform_vvvvwbjwar_required = true;
|
jform_vvvvwbjwar_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -203,7 +148,7 @@ function vvvvwbj(type_vvvvwbj)
|
|||||||
function type_vvvvwbj_SomeFunc(type_vvvvwbj)
|
function type_vvvvwbj_SomeFunc(type_vvvvwbj)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (type_vvvvwbj == 1)
|
if (type_vvvvwbj == 3)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -229,26 +174,26 @@ function vvvvwbk(type_vvvvwbk)
|
|||||||
// set this function logic
|
// set this function logic
|
||||||
if (type)
|
if (type)
|
||||||
{
|
{
|
||||||
jQuery('#jform_content-lbl').closest('.control-group').show();
|
jQuery('#jform_article').closest('.control-group').show();
|
||||||
if (jform_vvvvwbkwas_required)
|
if (jform_vvvvwbkwas_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('content',0);
|
updateFieldRequired('article',0);
|
||||||
jQuery('#jform_content').prop('required','required');
|
jQuery('#jform_article').prop('required','required');
|
||||||
jQuery('#jform_content').attr('aria-required',true);
|
jQuery('#jform_article').attr('aria-required',true);
|
||||||
jQuery('#jform_content').addClass('required');
|
jQuery('#jform_article').addClass('required');
|
||||||
jform_vvvvwbkwas_required = false;
|
jform_vvvvwbkwas_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_content-lbl').closest('.control-group').hide();
|
jQuery('#jform_article').closest('.control-group').hide();
|
||||||
if (!jform_vvvvwbkwas_required)
|
if (!jform_vvvvwbkwas_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('content',1);
|
updateFieldRequired('article',1);
|
||||||
jQuery('#jform_content').removeAttr('required');
|
jQuery('#jform_article').removeAttr('required');
|
||||||
jQuery('#jform_content').removeAttr('aria-required');
|
jQuery('#jform_article').removeAttr('aria-required');
|
||||||
jQuery('#jform_content').removeClass('required');
|
jQuery('#jform_article').removeClass('required');
|
||||||
jform_vvvvwbkwas_required = true;
|
jform_vvvvwbkwas_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -258,7 +203,7 @@ function vvvvwbk(type_vvvvwbk)
|
|||||||
function type_vvvvwbk_SomeFunc(type_vvvvwbk)
|
function type_vvvvwbk_SomeFunc(type_vvvvwbk)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (type_vvvvwbk == 2)
|
if (type_vvvvwbk == 1)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -266,32 +211,87 @@ function type_vvvvwbk_SomeFunc(type_vvvvwbk)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// the vvvvwbl function
|
// the vvvvwbl function
|
||||||
function vvvvwbl(target_vvvvwbl)
|
function vvvvwbl(type_vvvvwbl)
|
||||||
{
|
{
|
||||||
// set the function logic
|
if (isSet(type_vvvvwbl) && type_vvvvwbl.constructor !== Array)
|
||||||
if (target_vvvvwbl == 1)
|
|
||||||
{
|
{
|
||||||
jQuery('#jform_groups').closest('.control-group').show();
|
var temp_vvvvwbl = type_vvvvwbl;
|
||||||
|
var type_vvvvwbl = [];
|
||||||
|
type_vvvvwbl.push(temp_vvvvwbl);
|
||||||
|
}
|
||||||
|
else if (!isSet(type_vvvvwbl))
|
||||||
|
{
|
||||||
|
var type_vvvvwbl = [];
|
||||||
|
}
|
||||||
|
var type = type_vvvvwbl.some(type_vvvvwbl_SomeFunc);
|
||||||
|
|
||||||
|
|
||||||
|
// set this function logic
|
||||||
|
if (type)
|
||||||
|
{
|
||||||
|
jQuery('#jform_content-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvwblwat_required)
|
if (jform_vvvvwblwat_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('groups',0);
|
updateFieldRequired('content',0);
|
||||||
jQuery('#jform_groups').prop('required','required');
|
jQuery('#jform_content').prop('required','required');
|
||||||
jQuery('#jform_groups').attr('aria-required',true);
|
jQuery('#jform_content').attr('aria-required',true);
|
||||||
jQuery('#jform_groups').addClass('required');
|
jQuery('#jform_content').addClass('required');
|
||||||
jform_vvvvwblwat_required = false;
|
jform_vvvvwblwat_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_groups').closest('.control-group').hide();
|
jQuery('#jform_content-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvwblwat_required)
|
if (!jform_vvvvwblwat_required)
|
||||||
|
{
|
||||||
|
updateFieldRequired('content',1);
|
||||||
|
jQuery('#jform_content').removeAttr('required');
|
||||||
|
jQuery('#jform_content').removeAttr('aria-required');
|
||||||
|
jQuery('#jform_content').removeClass('required');
|
||||||
|
jform_vvvvwblwat_required = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// the vvvvwbl Some function
|
||||||
|
function type_vvvvwbl_SomeFunc(type_vvvvwbl)
|
||||||
|
{
|
||||||
|
// set the function logic
|
||||||
|
if (type_vvvvwbl == 2)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// the vvvvwbm function
|
||||||
|
function vvvvwbm(target_vvvvwbm)
|
||||||
|
{
|
||||||
|
// set the function logic
|
||||||
|
if (target_vvvvwbm == 1)
|
||||||
|
{
|
||||||
|
jQuery('#jform_groups').closest('.control-group').show();
|
||||||
|
if (jform_vvvvwbmwau_required)
|
||||||
|
{
|
||||||
|
updateFieldRequired('groups',0);
|
||||||
|
jQuery('#jform_groups').prop('required','required');
|
||||||
|
jQuery('#jform_groups').attr('aria-required',true);
|
||||||
|
jQuery('#jform_groups').addClass('required');
|
||||||
|
jform_vvvvwbmwau_required = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
jQuery('#jform_groups').closest('.control-group').hide();
|
||||||
|
if (!jform_vvvvwbmwau_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('groups',1);
|
updateFieldRequired('groups',1);
|
||||||
jQuery('#jform_groups').removeAttr('required');
|
jQuery('#jform_groups').removeAttr('required');
|
||||||
jQuery('#jform_groups').removeAttr('aria-required');
|
jQuery('#jform_groups').removeAttr('aria-required');
|
||||||
jQuery('#jform_groups').removeClass('required');
|
jQuery('#jform_groups').removeClass('required');
|
||||||
jform_vvvvwblwat_required = true;
|
jform_vvvvwbmwau_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -130,7 +130,7 @@ function vvvvvvv(add_php_helper_admin_vvvvvvv)
|
|||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_php_helper_admin_vvvvvvv == 1)
|
if (add_php_helper_admin_vvvvvvv == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_helper_admin').closest('.control-group').show();
|
jQuery('#jform_php_helper_admin-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvvvvvv_required)
|
if (jform_vvvvvvvvvv_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_helper_admin',0);
|
updateFieldRequired('php_helper_admin',0);
|
||||||
@ -143,7 +143,7 @@ function vvvvvvv(add_php_helper_admin_vvvvvvv)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_helper_admin').closest('.control-group').hide();
|
jQuery('#jform_php_helper_admin-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvvvvvv_required)
|
if (!jform_vvvvvvvvvv_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_helper_admin',1);
|
updateFieldRequired('php_helper_admin',1);
|
||||||
@ -161,7 +161,7 @@ function vvvvvvw(add_php_helper_site_vvvvvvw)
|
|||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_php_helper_site_vvvvvvw == 1)
|
if (add_php_helper_site_vvvvvvw == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_helper_site').closest('.control-group').show();
|
jQuery('#jform_php_helper_site-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvvwvvw_required)
|
if (jform_vvvvvvwvvw_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_helper_site',0);
|
updateFieldRequired('php_helper_site',0);
|
||||||
@ -174,7 +174,7 @@ function vvvvvvw(add_php_helper_site_vvvvvvw)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_helper_site').closest('.control-group').hide();
|
jQuery('#jform_php_helper_site-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvvwvvw_required)
|
if (!jform_vvvvvvwvvw_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_helper_site',1);
|
updateFieldRequired('php_helper_site',1);
|
||||||
@ -192,7 +192,7 @@ function vvvvvvx(add_php_helper_both_vvvvvvx)
|
|||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_php_helper_both_vvvvvvx == 1)
|
if (add_php_helper_both_vvvvvvx == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_helper_both').closest('.control-group').show();
|
jQuery('#jform_php_helper_both-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvvxvvx_required)
|
if (jform_vvvvvvxvvx_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_helper_both',0);
|
updateFieldRequired('php_helper_both',0);
|
||||||
@ -205,7 +205,7 @@ function vvvvvvx(add_php_helper_both_vvvvvvx)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_helper_both').closest('.control-group').hide();
|
jQuery('#jform_php_helper_both-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvvxvvx_required)
|
if (!jform_vvvvvvxvvx_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_helper_both',1);
|
updateFieldRequired('php_helper_both',1);
|
||||||
@ -223,7 +223,7 @@ function vvvvvvy(add_css_admin_vvvvvvy)
|
|||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_css_admin_vvvvvvy == 1)
|
if (add_css_admin_vvvvvvy == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_css_admin').closest('.control-group').show();
|
jQuery('#jform_css_admin-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvvyvvy_required)
|
if (jform_vvvvvvyvvy_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('css_admin',0);
|
updateFieldRequired('css_admin',0);
|
||||||
@ -236,7 +236,7 @@ function vvvvvvy(add_css_admin_vvvvvvy)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_css_admin').closest('.control-group').hide();
|
jQuery('#jform_css_admin-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvvyvvy_required)
|
if (!jform_vvvvvvyvvy_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('css_admin',1);
|
updateFieldRequired('css_admin',1);
|
||||||
@ -254,7 +254,7 @@ function vvvvvvz(add_css_site_vvvvvvz)
|
|||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_css_site_vvvvvvz == 1)
|
if (add_css_site_vvvvvvz == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_css_site').closest('.control-group').show();
|
jQuery('#jform_css_site-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvvzvvz_required)
|
if (jform_vvvvvvzvvz_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('css_site',0);
|
updateFieldRequired('css_site',0);
|
||||||
@ -267,7 +267,7 @@ function vvvvvvz(add_css_site_vvvvvvz)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_css_site').closest('.control-group').hide();
|
jQuery('#jform_css_site-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvvzvvz_required)
|
if (!jform_vvvvvvzvvz_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('css_site',1);
|
updateFieldRequired('css_site',1);
|
||||||
@ -285,7 +285,7 @@ function vvvvvwa(add_javascript_vvvvvwa)
|
|||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_javascript_vvvvvwa == 1)
|
if (add_javascript_vvvvvwa == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_javascript').closest('.control-group').show();
|
jQuery('#jform_javascript-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvwavwa_required)
|
if (jform_vvvvvwavwa_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('javascript',0);
|
updateFieldRequired('javascript',0);
|
||||||
@ -298,7 +298,7 @@ function vvvvvwa(add_javascript_vvvvvwa)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_javascript').closest('.control-group').hide();
|
jQuery('#jform_javascript-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvwavwa_required)
|
if (!jform_vvvvvwavwa_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('javascript',1);
|
updateFieldRequired('javascript',1);
|
||||||
@ -423,7 +423,7 @@ function vvvvvwf(add_admin_event_vvvvvwf)
|
|||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_admin_event_vvvvvwf == 1)
|
if (add_admin_event_vvvvvwf == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_admin_event').closest('.control-group').show();
|
jQuery('#jform_php_admin_event-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvwfvwe_required)
|
if (jform_vvvvvwfvwe_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_admin_event',0);
|
updateFieldRequired('php_admin_event',0);
|
||||||
@ -436,7 +436,7 @@ function vvvvvwf(add_admin_event_vvvvvwf)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_admin_event').closest('.control-group').hide();
|
jQuery('#jform_php_admin_event-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvwfvwe_required)
|
if (!jform_vvvvvwfvwe_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_admin_event',1);
|
updateFieldRequired('php_admin_event',1);
|
||||||
@ -454,7 +454,7 @@ function vvvvvwg(add_site_event_vvvvvwg)
|
|||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_site_event_vvvvvwg == 1)
|
if (add_site_event_vvvvvwg == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_site_event').closest('.control-group').show();
|
jQuery('#jform_php_site_event-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvwgvwf_required)
|
if (jform_vvvvvwgvwf_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_site_event',0);
|
updateFieldRequired('php_site_event',0);
|
||||||
@ -467,7 +467,7 @@ function vvvvvwg(add_site_event_vvvvvwg)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_site_event').closest('.control-group').hide();
|
jQuery('#jform_php_site_event-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvwgvwf_required)
|
if (!jform_vvvvvwgvwf_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_site_event',1);
|
updateFieldRequired('php_site_event',1);
|
||||||
@ -549,12 +549,14 @@ function vvvvvwk(add_license_vvvvvwk)
|
|||||||
jQuery('.note_whmcs_lisencing_note').closest('.control-group').show();
|
jQuery('.note_whmcs_lisencing_note').closest('.control-group').show();
|
||||||
jQuery('#jform_whmcs_key').closest('.control-group').show();
|
jQuery('#jform_whmcs_key').closest('.control-group').show();
|
||||||
jQuery('#jform_whmcs_url').closest('.control-group').show();
|
jQuery('#jform_whmcs_url').closest('.control-group').show();
|
||||||
|
jQuery('#jform_whmcs_buy_link').closest('.control-group').show();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('.note_whmcs_lisencing_note').closest('.control-group').hide();
|
jQuery('.note_whmcs_lisencing_note').closest('.control-group').hide();
|
||||||
jQuery('#jform_whmcs_key').closest('.control-group').hide();
|
jQuery('#jform_whmcs_key').closest('.control-group').hide();
|
||||||
jQuery('#jform_whmcs_url').closest('.control-group').hide();
|
jQuery('#jform_whmcs_url').closest('.control-group').hide();
|
||||||
|
jQuery('#jform_whmcs_buy_link').closest('.control-group').hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -564,7 +566,7 @@ function vvvvvwl(add_php_postflight_install_vvvvvwl)
|
|||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_php_postflight_install_vvvvvwl == 1)
|
if (add_php_postflight_install_vvvvvwl == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_postflight_install').closest('.control-group').show();
|
jQuery('#jform_php_postflight_install-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvwlvwh_required)
|
if (jform_vvvvvwlvwh_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_postflight_install',0);
|
updateFieldRequired('php_postflight_install',0);
|
||||||
@ -577,7 +579,7 @@ function vvvvvwl(add_php_postflight_install_vvvvvwl)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_postflight_install').closest('.control-group').hide();
|
jQuery('#jform_php_postflight_install-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvwlvwh_required)
|
if (!jform_vvvvvwlvwh_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_postflight_install',1);
|
updateFieldRequired('php_postflight_install',1);
|
||||||
@ -595,7 +597,7 @@ function vvvvvwm(add_php_postflight_update_vvvvvwm)
|
|||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_php_postflight_update_vvvvvwm == 1)
|
if (add_php_postflight_update_vvvvvwm == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_postflight_update').closest('.control-group').show();
|
jQuery('#jform_php_postflight_update-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvwmvwi_required)
|
if (jform_vvvvvwmvwi_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_postflight_update',0);
|
updateFieldRequired('php_postflight_update',0);
|
||||||
@ -608,7 +610,7 @@ function vvvvvwm(add_php_postflight_update_vvvvvwm)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_postflight_update').closest('.control-group').hide();
|
jQuery('#jform_php_postflight_update-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvwmvwi_required)
|
if (!jform_vvvvvwmvwi_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_postflight_update',1);
|
updateFieldRequired('php_postflight_update',1);
|
||||||
@ -626,7 +628,7 @@ function vvvvvwn(add_php_method_uninstall_vvvvvwn)
|
|||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_php_method_uninstall_vvvvvwn == 1)
|
if (add_php_method_uninstall_vvvvvwn == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_method_uninstall').closest('.control-group').show();
|
jQuery('#jform_php_method_uninstall-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvwnvwj_required)
|
if (jform_vvvvvwnvwj_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_method_uninstall',0);
|
updateFieldRequired('php_method_uninstall',0);
|
||||||
@ -639,7 +641,7 @@ function vvvvvwn(add_php_method_uninstall_vvvvvwn)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_method_uninstall').closest('.control-group').hide();
|
jQuery('#jform_php_method_uninstall-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvwnvwj_required)
|
if (!jform_vvvvvwnvwj_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_method_uninstall',1);
|
updateFieldRequired('php_method_uninstall',1);
|
||||||
@ -657,7 +659,7 @@ function vvvvvwo(add_php_preflight_install_vvvvvwo)
|
|||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_php_preflight_install_vvvvvwo == 1)
|
if (add_php_preflight_install_vvvvvwo == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_preflight_install').closest('.control-group').show();
|
jQuery('#jform_php_preflight_install-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvwovwk_required)
|
if (jform_vvvvvwovwk_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_preflight_install',0);
|
updateFieldRequired('php_preflight_install',0);
|
||||||
@ -670,7 +672,7 @@ function vvvvvwo(add_php_preflight_install_vvvvvwo)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_preflight_install').closest('.control-group').hide();
|
jQuery('#jform_php_preflight_install-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvwovwk_required)
|
if (!jform_vvvvvwovwk_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_preflight_install',1);
|
updateFieldRequired('php_preflight_install',1);
|
||||||
@ -688,7 +690,7 @@ function vvvvvwp(add_php_preflight_update_vvvvvwp)
|
|||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_php_preflight_update_vvvvvwp == 1)
|
if (add_php_preflight_update_vvvvvwp == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_preflight_update').closest('.control-group').show();
|
jQuery('#jform_php_preflight_update-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvwpvwl_required)
|
if (jform_vvvvvwpvwl_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_preflight_update',0);
|
updateFieldRequired('php_preflight_update',0);
|
||||||
@ -701,7 +703,7 @@ function vvvvvwp(add_php_preflight_update_vvvvvwp)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_preflight_update').closest('.control-group').hide();
|
jQuery('#jform_php_preflight_update-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvwpvwl_required)
|
if (!jform_vvvvvwpvwl_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_preflight_update',1);
|
updateFieldRequired('php_preflight_update',1);
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -9,42 +9,42 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Some Global Values
|
// Some Global Values
|
||||||
jform_vvvvvzavyu_required = false;
|
jform_vvvvvzbvyv_required = false;
|
||||||
|
|
||||||
// Initial Script
|
// Initial Script
|
||||||
jQuery(document).ready(function()
|
jQuery(document).ready(function()
|
||||||
{
|
{
|
||||||
var add_php_view_vvvvvza = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
var add_php_view_vvvvvzb = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||||
vvvvvza(add_php_view_vvvvvza);
|
vvvvvzb(add_php_view_vvvvvzb);
|
||||||
});
|
});
|
||||||
|
|
||||||
// the vvvvvza function
|
// the vvvvvzb function
|
||||||
function vvvvvza(add_php_view_vvvvvza)
|
function vvvvvzb(add_php_view_vvvvvzb)
|
||||||
{
|
{
|
||||||
// set the function logic
|
// set the function logic
|
||||||
if (add_php_view_vvvvvza == 1)
|
if (add_php_view_vvvvvzb == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_view').closest('.control-group').show();
|
jQuery('#jform_php_view-lbl').closest('.control-group').show();
|
||||||
if (jform_vvvvvzavyu_required)
|
if (jform_vvvvvzbvyv_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_view',0);
|
updateFieldRequired('php_view',0);
|
||||||
jQuery('#jform_php_view').prop('required','required');
|
jQuery('#jform_php_view').prop('required','required');
|
||||||
jQuery('#jform_php_view').attr('aria-required',true);
|
jQuery('#jform_php_view').attr('aria-required',true);
|
||||||
jQuery('#jform_php_view').addClass('required');
|
jQuery('#jform_php_view').addClass('required');
|
||||||
jform_vvvvvzavyu_required = false;
|
jform_vvvvvzbvyv_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_php_view').closest('.control-group').hide();
|
jQuery('#jform_php_view-lbl').closest('.control-group').hide();
|
||||||
if (!jform_vvvvvzavyu_required)
|
if (!jform_vvvvvzbvyv_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('php_view',1);
|
updateFieldRequired('php_view',1);
|
||||||
jQuery('#jform_php_view').removeAttr('required');
|
jQuery('#jform_php_view').removeAttr('required');
|
||||||
jQuery('#jform_php_view').removeAttr('aria-required');
|
jQuery('#jform_php_view').removeAttr('aria-required');
|
||||||
jQuery('#jform_php_view').removeClass('required');
|
jQuery('#jform_php_view').removeClass('required');
|
||||||
jform_vvvvvzavyu_required = true;
|
jform_vvvvvzbvyv_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user