Compare commits
56 Commits
Author | SHA1 | Date | |
---|---|---|---|
279831da30 | |||
a52d230aeb | |||
180f1cec6d | |||
dbe7880199 | |||
6c4bab5ea9 | |||
1e5fda0327 | |||
65e6511a3e | |||
95b6a23159 | |||
feb4ae9c24 | |||
d7665fe88d | |||
043686814c | |||
fdd1cf7390 | |||
1447e06dd7 | |||
c0f79ec4ba | |||
9285f0a2b1 | |||
73d383c755 | |||
6ad253be44 | |||
e71ba204ca | |||
b208f4f616 | |||
2e758308d2 | |||
38176365de | |||
e200e2179d | |||
a20d661878 | |||
f19b0335ed | |||
45c255485f | |||
5962b557c8 | |||
7fcc93aa5b | |||
49ef674c79 | |||
5b1813db7c | |||
1d5a99878a | |||
abb046f671 | |||
f3539185ab | |||
b3c4414320 | |||
be0d61ceae | |||
7ef25c2bb1 | |||
231d8aa984 | |||
42e85b3944 | |||
fdc66fe4c7 | |||
5a8124fa29 | |||
2a6be54317 | |||
103457eef7 | |||
70e198abf3 | |||
62bdb8a659 | |||
78208d1525 | |||
f5c6fa899d | |||
df65ca3456 | |||
e36b84f301 | |||
a6013c4b22 | |||
812857da81 | |||
6dd654c745 | |||
0a7b91829f | |||
b42a3a5420 | |||
2cf6f6ab11 | |||
21254738a8 | |||
a62476d260 | |||
0ca49414d2 |
96
README.md
96
README.md
@ -1,5 +1,7 @@
|
|||||||
# Joomla Component Builder (JCB)
|
# Joomla Component Builder ([JCB](http://joomlacomponentbuilder.com))
|
||||||
[](https://github.com/vdm-io/Joomla-Component-Builder/releases) [](https://github.com/vdm-io/Joomla-Component-Builder/releases)
|
[](https://github.com/vdm-io/Joomla-Component-Builder/releases) [](https://github.com/vdm-io/Joomla-Component-Builder/releases)
|
||||||
|
[](#backers)
|
||||||
|
[](#sponsors)
|
||||||
|
|
||||||
This is a [Joomla 3.x](https://extensions.joomla.org/extension/component-builder/) component. [__See In Action__](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
This is a [Joomla 3.x](https://extensions.joomla.org/extension/component-builder/) component. [__See In Action__](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||||
|
|
||||||
@ -9,29 +11,36 @@ 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.8.2) 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.9.8) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||||
|
|
||||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://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)
|
||||||
|
|
||||||
Once installed upgrades are quick and easy via the default Joomla upgrade area.
|
Once installed upgrades are quick and easy via the default [Joomla](https://extensions.joomla.org/extension/component-builder/) upgrade area.
|
||||||
|
|
||||||
Some of the Features
|
Some of the Features
|
||||||
====================
|
====================
|
||||||
|
|
||||||
|
+ Fetch Code from IDE and place it back in component during next compilation.
|
||||||
|
+ Add [Joomla custom fields](https://www.youtube.com/watch?v=n5RBmP0uNCM&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=0s&index=75) in any of your components.
|
||||||
|
+ Add you [own dashboard](https://www.youtube.com/watch?v=tU7TeYn1Djo&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=60) in the back-end.
|
||||||
|
+ [Dynamic File and Folder](https://www.youtube.com/watch?v=_c7wzW075lA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=0s&index=56) Inclusion concept.
|
||||||
|
+ [Easy Translation](https://www.youtube.com/watch?v=q5NwKGnOHoQ&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=0s&index=51) via excel.
|
||||||
|
+ Adding your [own rule validation](https://www.youtube.com/watch?v=Z6-ggKtX35o&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=0s&index=46) to a field in [JCB](http://joomlacomponentbuilder.com)
|
||||||
|
+ [Automated backup system](https://www.youtube.com/watch?v=GUWZaODo_IM&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=0s&index=40) in [JCB](http://joomlacomponentbuilder.com).
|
||||||
+ Adding mySQL Dump to any View/Table.
|
+ Adding mySQL Dump to any View/Table.
|
||||||
+ Grab existing Table data and build a dynamic dump.
|
+ Grab existing Table data and build a dynamic dump.
|
||||||
+ Unlimited Joomla Components.
|
+ Unlimited [Joomla](https://extensions.joomla.org/extension/component-builder/) Components.
|
||||||
+ Unlimited Tables/Views.
|
+ Unlimited Tables/Views.
|
||||||
+ Reusing Views and Fields.
|
+ Reusing Views and Fields.
|
||||||
+ Runs on Your Own Joomla Install.
|
+ Runs on Your Own [Joomla](https://extensions.joomla.org/extension/component-builder/) Install.
|
||||||
+ Add Dynamic/custom back-end views that uses Table and Chart result sets.
|
+ Add Dynamic/custom back-end views that uses Table and Chart result sets.
|
||||||
+ Build data query of extreme complex nature to use in Dynamic/custom views.
|
+ Build data query of extreme complex nature to use in Dynamic/custom views.
|
||||||
+ Highly Dynamic/custom Front-end Structures.
|
+ Highly Dynamic/custom Front-end Structures.
|
||||||
+ Dynamically setup templates and layouts for Front-end design.
|
+ Dynamically setup templates and layouts for Front-end design.
|
||||||
+ Integration of the excellent UIKIT lib.
|
+ Integration of the excellent UIKIT lib.
|
||||||
+ Integration of the excellent FOOTABLE lib.
|
+ Integration of the excellent FOOTABLE lib.
|
||||||
+ All Joomla Standard Field Types (including repeatable fields).
|
+ All [Joomla](https://extensions.joomla.org/extension/component-builder/) Standard Field Types (including subforms).
|
||||||
+ Strong Implementation of all Joomla Form Security.
|
+ Strong Implementation of all [Joomla](https://extensions.joomla.org/extension/component-builder/) Form Security.
|
||||||
+ Load data via ajax with ease.
|
+ Load data via ajax with ease.
|
||||||
+ You can add an Update Server to Components you build.
|
+ You can add an Update Server to Components you build.
|
||||||
+ Build advanced Dynamic front-end forms.
|
+ Build advanced Dynamic front-end forms.
|
||||||
@ -40,13 +49,13 @@ Some of the Features
|
|||||||
+ Include any amount of custom files and folders during build.
|
+ Include any amount of custom files and folders during build.
|
||||||
+ Static helper class with smart methods already included.
|
+ Static helper class with smart methods already included.
|
||||||
+ Static helper methods Can easily be added.
|
+ Static helper methods Can easily be added.
|
||||||
+ Direct install from complier view.
|
+ Direct install from compiler view.
|
||||||
+ Integrative with native Joomla Categories and Tags.
|
+ Integrative with native [Joomla](https://extensions.joomla.org/extension/component-builder/) Categories and Tags.
|
||||||
+ Fully Dynamic Search Friendly URL Auto Implementation.
|
+ Fully Dynamic Search Friendly URL Auto Implementation.
|
||||||
+ Custom scripting options all over the MVC structure.
|
+ Custom scripting options all over the MVC structure.
|
||||||
+ Permission implementation down to each view, item and field.
|
+ Permission implementation down to each view, item and field.
|
||||||
+ Easy extendible to include other libraries.
|
+ Easy extendible to include other libraries.
|
||||||
+ Can include SQL and visioning update link to distribute your component updates via Joomla default upgrade of components.
|
+ Can include SQL and visioning update link to distribute your component updates via [Joomla](https://extensions.joomla.org/extension/component-builder/) default upgrade of components.
|
||||||
+ Easy Export & Import addon to all backend-tables.
|
+ Easy Export & Import addon to all backend-tables.
|
||||||
+ Overriding ability of import concepts in all backend-tables.
|
+ Overriding ability of import concepts in all backend-tables.
|
||||||
+ The Batch and Filter implementation on all backend-list views.
|
+ The Batch and Filter implementation on all backend-list views.
|
||||||
@ -55,8 +64,8 @@ Some of the Features
|
|||||||
Just Imagine
|
Just Imagine
|
||||||
====================
|
====================
|
||||||
|
|
||||||
+ Your Component Back-end can be more advanced then the Joomla Article Manager.
|
+ Your Component Back-end can be more advanced then the [Joomla](https://extensions.joomla.org/extension/component-builder/) Article Manager.
|
||||||
+ Your Code as Perfectly Unified to the strict Joomla Standards.
|
+ Your Code as Perfectly Unified to the strict [Joomla](https://extensions.joomla.org/extension/component-builder/) Standards.
|
||||||
+ Adding Custom Scripting almost anywhere in the MVC structure.
|
+ Adding Custom Scripting almost anywhere in the MVC structure.
|
||||||
+ Import and export feature to all backend-views.
|
+ Import and export feature to all backend-views.
|
||||||
+ Batch copy and move/update feature for all backend-views.
|
+ Batch copy and move/update feature for all backend-views.
|
||||||
@ -76,13 +85,13 @@ You are in Control
|
|||||||
+ You can dynamically add internal help structures to all component.
|
+ You can dynamically add internal help structures to all component.
|
||||||
+ There is no limitations on how big or how much you want to build (server limitation only).
|
+ There is no limitations on how big or how much you want to build (server limitation only).
|
||||||
+ This is a complete factory kind of component that functions like a deployment hub.
|
+ This is a complete factory kind of component that functions like a deployment hub.
|
||||||
+ Export any component completely mapped in JCB and import into another JCB.
|
+ Export any component completely mapped in [JCB](http://joomlacomponentbuilder.com) and import into another [JCB](http://joomlacomponentbuilder.com).
|
||||||
+ This and much much more are all possible with this component builder!
|
+ This and much much more are all possible with this component builder!
|
||||||
|
|
||||||
Get More Demo Content
|
Get More Demo Content
|
||||||
====================
|
====================
|
||||||
|
|
||||||
> The cat is out of the bag, JCB fully mapped can now be yours! Including many other JCB mapped components.
|
> The cat is out of the bag, [JCB](http://joomlacomponentbuilder.com) fully mapped can now be yours! Including many other [JCB](http://joomlacomponentbuilder.com) mapped components.
|
||||||
|
|
||||||
### All you need to do is [explained here](https://vdm.bz/how-to-get-free-vdm-package-keys)!
|
### All you need to do is [explained here](https://vdm.bz/how-to-get-free-vdm-package-keys)!
|
||||||
|
|
||||||
@ -95,29 +104,38 @@ Where can you get support and help?
|
|||||||
+ [The JCB Tutorials](https://www.youtube.com/playlist?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE)
|
+ [The JCB Tutorials](https://www.youtube.com/playlist?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE)
|
||||||
+ [Hello World Tutorial](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
+ [Hello World Tutorial](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||||
+ [The JCB! Wiki](https://github.com/vdm-io/Joomla-Component-Builder/wiki)
|
+ [The JCB! Wiki](https://github.com/vdm-io/Joomla-Component-Builder/wiki)
|
||||||
+ [JCB Google Group/forum](https://groups.google.com/a/vdm.io/d/forum/jcb)
|
+ [JCB Google Group/forum](https://vdm.bz/jcb-forum)
|
||||||
+ [Report a Security Issue](http://joomlacomponentbuilder.com/report-security-issues)
|
+ [Report a Security Issue](http://joomlacomponentbuilder.com/report-security-issues)
|
||||||
+ [Community Complaint](http://joomlacomponentbuilder.com/community-complaint)
|
+ [Community Complaint](http://joomlacomponentbuilder.com/community-complaint)
|
||||||
+ [Open Issue On Github](https://github.com/vdm-io/Joomla-Component-Builder/issues) ^^
|
+ [Open Issue On Github](https://github.com/vdm-io/Joomla-Component-Builder/issues) ^^
|
||||||
|
+ [JCB IRC Channel](https://vdm.bz/jcb-irc)
|
||||||
|
|
||||||
Since JCB has [become a community](https://github.com/vdm-io/Joomla-Component-Builder/blob/staging/.github/SUPPORT.md) project [VDM.io](https://www.vdm.io/) is **no longer solely responsible** for support.
|
Since [JCB](http://joomlacomponentbuilder.com) has [become a community](https://github.com/vdm-io/Joomla-Component-Builder/blob/staging/.github/SUPPORT.md) project [VDM.io](https://www.vdm.io/) is **no longer solely responsible** for support.
|
||||||
|
|
||||||
We have started a [**JCB forum**](https://groups.google.com/a/vdm.io/d/forum/jcb) where you can post questions, about how things work, or if you need some kind of help in relation to your development of your components.
|
We have started a [**JCB forum**](https://vdm.bz/jcb-forum) where you can post questions, about how things work, or if you need some kind of help in relation to your development of your components.
|
||||||
|
|
||||||
^^ Then if you run into any issues, related to the JCB code, like bugs, **start by searching** the (*open & closed*) issues over on Github, and if the issue has not been mentioned before, **then only** open a new issue, following the [community guidelines](https://github.com/vdm-io/Joomla-Component-Builder/blob/master/.github/CONTRIBUTING.md).
|
^^ Then if you run into any issues, related to the [JCB](http://joomlacomponentbuilder.com) code, like bugs, **start by searching** the (*open & closed*) issues over on Github, and if the issue has not been mentioned before, **then only** open a new issue, following the [community guidelines](https://github.com/vdm-io/Joomla-Component-Builder/blob/master/.github/CONTRIBUTING.md).
|
||||||
|
|
||||||
WHY GIVE IT AWAY LIKE THIS?
|
WHY GIVE IT AWAY LIKE THIS?
|
||||||
====================
|
====================
|
||||||
|
|
||||||
> We are Open Source Enthusiast
|
> We are Open Source Enthusiast
|
||||||
> Who Support the Joomla Community
|
> Who Support the [Joomla](https://extensions.joomla.org/extension/component-builder/) Community
|
||||||
|
|
||||||
Our idea was to almost let this tool serve as a cheat sheet to how things can be done... and with the help of other developers end up formulating the way how things not only can, but must be done to insure secure, stable, scalable and maintainable code is produced.
|
Our idea was to almost let this tool serve as a cheat sheet to how things can be done... and with the help of other developers end up formulating the way how things not only can, but must be done to insure secure, stable, scalable and maintainable code is produced.
|
||||||
|
|
||||||
MAKING IT BETTER!
|
MAKING IT BETTER!
|
||||||
====================
|
====================
|
||||||
|
|
||||||
Watch the [proposed development workflow](https://vdm.bz/proposed-development-workflow).
|
Get involved on the forums, and the GitHub issues, and you can even help us develop/improve the pipeline of [JCB](http://joomlacomponentbuilder.com) for continues delivery. We really want to see [JCB](http://joomlacomponentbuilder.com) remain the tool of choice for all [Joomla Component Development](https://extensions.joomla.org/extension/component-builder/) needs and ideas.
|
||||||
|
|
||||||
|
TODO
|
||||||
|
======
|
||||||
|
|
||||||
|
- Add automatic (REST) API ability for all components build with [JCB](http://joomlacomponentbuilder.com). So we can link any component build with JCB to an Android/Apple APP.
|
||||||
|
- Add automatic unit testing. To nurture pipeline integration for all components build with [JCB](http://joomlacomponentbuilder.com).
|
||||||
|
- Team collaborative development across [JCB](http://joomlacomponentbuilder.com) installations offline and online.
|
||||||
|
- Documentation (maintained by the community) for [JCB](http://joomlacomponentbuilder.com). (help us select the best system for this)
|
||||||
|
|
||||||
# Build Details
|
# Build Details
|
||||||
|
|
||||||
@ -125,21 +143,35 @@ 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*: 7th July, 2018
|
+ *Last Build*: 19th December, 2018
|
||||||
+ *Version*: 2.8.2
|
+ *Version*: 2.9.8
|
||||||
+ *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*: **186287**
|
+ *Line count*: **195554**
|
||||||
+ *Field count*: **1058**
|
+ *Field count*: **1087**
|
||||||
+ *File count*: **1238**
|
+ *File count*: **1275**
|
||||||
+ *Folder count*: **197**
|
+ *Folder count*: **201**
|
||||||
|
|
||||||
> This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com).
|
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||||
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
|
|
||||||
## Donations
|
## Contributors
|
||||||
|
This project exists thanks to all the people who contribute.
|
||||||
|
<a href="https://github.com/vdm-io/Joomla-Component-Builder/graphs/contributors"><img src="https://opencollective.com/Joomla-Component-Builder/contributors.svg?width=890&button=false" /></a>
|
||||||
|
|
||||||
Come on buy VDM a coffee :)
|
### Backers
|
||||||
* PayPal: [paypal.me/asseblief](https://www.paypal.me/asseblief) (Asseblief = Please) in Afrikaans
|
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/Joomla-Component-Builder#backer)]
|
||||||
* Bitcoin: 18vURxYpPFjvNk8BnUy1ovCAyQmY3MzkSf
|
<a href="https://opencollective.com/Joomla-Component-Builder#backers" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/backers.svg?width=890"></a>
|
||||||
* Ethereum: 0x9548144662b47327c954f3e214edb96662d51218
|
|
||||||
|
### Sponsors
|
||||||
|
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/Joomla-Component-Builder#sponsor)]
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/0/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/0/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/1/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/1/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/2/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/2/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/3/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/3/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/4/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/4/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/5/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/5/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/6/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/6/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/7/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/7/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/8/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/8/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/9/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/9/avatar.svg"></a>
|
@ -1,5 +1,7 @@
|
|||||||
# Joomla Component Builder (JCB)
|
# Joomla Component Builder ([JCB](http://joomlacomponentbuilder.com))
|
||||||
[](https://github.com/vdm-io/Joomla-Component-Builder/releases) [](https://github.com/vdm-io/Joomla-Component-Builder/releases)
|
[](https://github.com/vdm-io/Joomla-Component-Builder/releases) [](https://github.com/vdm-io/Joomla-Component-Builder/releases)
|
||||||
|
[](#backers)
|
||||||
|
[](#sponsors)
|
||||||
|
|
||||||
This is a [Joomla 3.x](https://extensions.joomla.org/extension/component-builder/) component. [__See In Action__](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
This is a [Joomla 3.x](https://extensions.joomla.org/extension/component-builder/) component. [__See In Action__](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||||
|
|
||||||
@ -9,29 +11,36 @@ 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.8.2) 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.9.8) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||||
|
|
||||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://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)
|
||||||
|
|
||||||
Once installed upgrades are quick and easy via the default Joomla upgrade area.
|
Once installed upgrades are quick and easy via the default [Joomla](https://extensions.joomla.org/extension/component-builder/) upgrade area.
|
||||||
|
|
||||||
Some of the Features
|
Some of the Features
|
||||||
====================
|
====================
|
||||||
|
|
||||||
|
+ Fetch Code from IDE and place it back in component during next compilation.
|
||||||
|
+ Add [Joomla custom fields](https://www.youtube.com/watch?v=n5RBmP0uNCM&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=0s&index=75) in any of your components.
|
||||||
|
+ Add you [own dashboard](https://www.youtube.com/watch?v=tU7TeYn1Djo&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=60) in the back-end.
|
||||||
|
+ [Dynamic File and Folder](https://www.youtube.com/watch?v=_c7wzW075lA&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=0s&index=56) Inclusion concept.
|
||||||
|
+ [Easy Translation](https://www.youtube.com/watch?v=q5NwKGnOHoQ&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=0s&index=51) via excel.
|
||||||
|
+ Adding your [own rule validation](https://www.youtube.com/watch?v=Z6-ggKtX35o&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=0s&index=46) to a field in [JCB](http://joomlacomponentbuilder.com)
|
||||||
|
+ [Automated backup system](https://www.youtube.com/watch?v=GUWZaODo_IM&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=0s&index=40) in [JCB](http://joomlacomponentbuilder.com).
|
||||||
+ Adding mySQL Dump to any View/Table.
|
+ Adding mySQL Dump to any View/Table.
|
||||||
+ Grab existing Table data and build a dynamic dump.
|
+ Grab existing Table data and build a dynamic dump.
|
||||||
+ Unlimited Joomla Components.
|
+ Unlimited [Joomla](https://extensions.joomla.org/extension/component-builder/) Components.
|
||||||
+ Unlimited Tables/Views.
|
+ Unlimited Tables/Views.
|
||||||
+ Reusing Views and Fields.
|
+ Reusing Views and Fields.
|
||||||
+ Runs on Your Own Joomla Install.
|
+ Runs on Your Own [Joomla](https://extensions.joomla.org/extension/component-builder/) Install.
|
||||||
+ Add Dynamic/custom back-end views that uses Table and Chart result sets.
|
+ Add Dynamic/custom back-end views that uses Table and Chart result sets.
|
||||||
+ Build data query of extreme complex nature to use in Dynamic/custom views.
|
+ Build data query of extreme complex nature to use in Dynamic/custom views.
|
||||||
+ Highly Dynamic/custom Front-end Structures.
|
+ Highly Dynamic/custom Front-end Structures.
|
||||||
+ Dynamically setup templates and layouts for Front-end design.
|
+ Dynamically setup templates and layouts for Front-end design.
|
||||||
+ Integration of the excellent UIKIT lib.
|
+ Integration of the excellent UIKIT lib.
|
||||||
+ Integration of the excellent FOOTABLE lib.
|
+ Integration of the excellent FOOTABLE lib.
|
||||||
+ All Joomla Standard Field Types (including repeatable fields).
|
+ All [Joomla](https://extensions.joomla.org/extension/component-builder/) Standard Field Types (including subforms).
|
||||||
+ Strong Implementation of all Joomla Form Security.
|
+ Strong Implementation of all [Joomla](https://extensions.joomla.org/extension/component-builder/) Form Security.
|
||||||
+ Load data via ajax with ease.
|
+ Load data via ajax with ease.
|
||||||
+ You can add an Update Server to Components you build.
|
+ You can add an Update Server to Components you build.
|
||||||
+ Build advanced Dynamic front-end forms.
|
+ Build advanced Dynamic front-end forms.
|
||||||
@ -40,13 +49,13 @@ Some of the Features
|
|||||||
+ Include any amount of custom files and folders during build.
|
+ Include any amount of custom files and folders during build.
|
||||||
+ Static helper class with smart methods already included.
|
+ Static helper class with smart methods already included.
|
||||||
+ Static helper methods Can easily be added.
|
+ Static helper methods Can easily be added.
|
||||||
+ Direct install from complier view.
|
+ Direct install from compiler view.
|
||||||
+ Integrative with native Joomla Categories and Tags.
|
+ Integrative with native [Joomla](https://extensions.joomla.org/extension/component-builder/) Categories and Tags.
|
||||||
+ Fully Dynamic Search Friendly URL Auto Implementation.
|
+ Fully Dynamic Search Friendly URL Auto Implementation.
|
||||||
+ Custom scripting options all over the MVC structure.
|
+ Custom scripting options all over the MVC structure.
|
||||||
+ Permission implementation down to each view, item and field.
|
+ Permission implementation down to each view, item and field.
|
||||||
+ Easy extendible to include other libraries.
|
+ Easy extendible to include other libraries.
|
||||||
+ Can include SQL and visioning update link to distribute your component updates via Joomla default upgrade of components.
|
+ Can include SQL and visioning update link to distribute your component updates via [Joomla](https://extensions.joomla.org/extension/component-builder/) default upgrade of components.
|
||||||
+ Easy Export & Import addon to all backend-tables.
|
+ Easy Export & Import addon to all backend-tables.
|
||||||
+ Overriding ability of import concepts in all backend-tables.
|
+ Overriding ability of import concepts in all backend-tables.
|
||||||
+ The Batch and Filter implementation on all backend-list views.
|
+ The Batch and Filter implementation on all backend-list views.
|
||||||
@ -55,8 +64,8 @@ Some of the Features
|
|||||||
Just Imagine
|
Just Imagine
|
||||||
====================
|
====================
|
||||||
|
|
||||||
+ Your Component Back-end can be more advanced then the Joomla Article Manager.
|
+ Your Component Back-end can be more advanced then the [Joomla](https://extensions.joomla.org/extension/component-builder/) Article Manager.
|
||||||
+ Your Code as Perfectly Unified to the strict Joomla Standards.
|
+ Your Code as Perfectly Unified to the strict [Joomla](https://extensions.joomla.org/extension/component-builder/) Standards.
|
||||||
+ Adding Custom Scripting almost anywhere in the MVC structure.
|
+ Adding Custom Scripting almost anywhere in the MVC structure.
|
||||||
+ Import and export feature to all backend-views.
|
+ Import and export feature to all backend-views.
|
||||||
+ Batch copy and move/update feature for all backend-views.
|
+ Batch copy and move/update feature for all backend-views.
|
||||||
@ -76,13 +85,13 @@ You are in Control
|
|||||||
+ You can dynamically add internal help structures to all component.
|
+ You can dynamically add internal help structures to all component.
|
||||||
+ There is no limitations on how big or how much you want to build (server limitation only).
|
+ There is no limitations on how big or how much you want to build (server limitation only).
|
||||||
+ This is a complete factory kind of component that functions like a deployment hub.
|
+ This is a complete factory kind of component that functions like a deployment hub.
|
||||||
+ Export any component completely mapped in JCB and import into another JCB.
|
+ Export any component completely mapped in [JCB](http://joomlacomponentbuilder.com) and import into another [JCB](http://joomlacomponentbuilder.com).
|
||||||
+ This and much much more are all possible with this component builder!
|
+ This and much much more are all possible with this component builder!
|
||||||
|
|
||||||
Get More Demo Content
|
Get More Demo Content
|
||||||
====================
|
====================
|
||||||
|
|
||||||
> The cat is out of the bag, JCB fully mapped can now be yours! Including many other JCB mapped components.
|
> The cat is out of the bag, [JCB](http://joomlacomponentbuilder.com) fully mapped can now be yours! Including many other [JCB](http://joomlacomponentbuilder.com) mapped components.
|
||||||
|
|
||||||
### All you need to do is [explained here](https://vdm.bz/how-to-get-free-vdm-package-keys)!
|
### All you need to do is [explained here](https://vdm.bz/how-to-get-free-vdm-package-keys)!
|
||||||
|
|
||||||
@ -95,29 +104,38 @@ Where can you get support and help?
|
|||||||
+ [The JCB Tutorials](https://www.youtube.com/playlist?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE)
|
+ [The JCB Tutorials](https://www.youtube.com/playlist?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE)
|
||||||
+ [Hello World Tutorial](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
+ [Hello World Tutorial](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||||
+ [The JCB! Wiki](https://github.com/vdm-io/Joomla-Component-Builder/wiki)
|
+ [The JCB! Wiki](https://github.com/vdm-io/Joomla-Component-Builder/wiki)
|
||||||
+ [JCB Google Group/forum](https://groups.google.com/a/vdm.io/d/forum/jcb)
|
+ [JCB Google Group/forum](https://vdm.bz/jcb-forum)
|
||||||
+ [Report a Security Issue](http://joomlacomponentbuilder.com/report-security-issues)
|
+ [Report a Security Issue](http://joomlacomponentbuilder.com/report-security-issues)
|
||||||
+ [Community Complaint](http://joomlacomponentbuilder.com/community-complaint)
|
+ [Community Complaint](http://joomlacomponentbuilder.com/community-complaint)
|
||||||
+ [Open Issue On Github](https://github.com/vdm-io/Joomla-Component-Builder/issues) ^^
|
+ [Open Issue On Github](https://github.com/vdm-io/Joomla-Component-Builder/issues) ^^
|
||||||
|
+ [JCB IRC Channel](https://vdm.bz/jcb-irc)
|
||||||
|
|
||||||
Since JCB has [become a community](https://github.com/vdm-io/Joomla-Component-Builder/blob/staging/.github/SUPPORT.md) project [VDM.io](https://www.vdm.io/) is **no longer solely responsible** for support.
|
Since [JCB](http://joomlacomponentbuilder.com) has [become a community](https://github.com/vdm-io/Joomla-Component-Builder/blob/staging/.github/SUPPORT.md) project [VDM.io](https://www.vdm.io/) is **no longer solely responsible** for support.
|
||||||
|
|
||||||
We have started a [**JCB forum**](https://groups.google.com/a/vdm.io/d/forum/jcb) where you can post questions, about how things work, or if you need some kind of help in relation to your development of your components.
|
We have started a [**JCB forum**](https://vdm.bz/jcb-forum) where you can post questions, about how things work, or if you need some kind of help in relation to your development of your components.
|
||||||
|
|
||||||
^^ Then if you run into any issues, related to the JCB code, like bugs, **start by searching** the (*open & closed*) issues over on Github, and if the issue has not been mentioned before, **then only** open a new issue, following the [community guidelines](https://github.com/vdm-io/Joomla-Component-Builder/blob/master/.github/CONTRIBUTING.md).
|
^^ Then if you run into any issues, related to the [JCB](http://joomlacomponentbuilder.com) code, like bugs, **start by searching** the (*open & closed*) issues over on Github, and if the issue has not been mentioned before, **then only** open a new issue, following the [community guidelines](https://github.com/vdm-io/Joomla-Component-Builder/blob/master/.github/CONTRIBUTING.md).
|
||||||
|
|
||||||
WHY GIVE IT AWAY LIKE THIS?
|
WHY GIVE IT AWAY LIKE THIS?
|
||||||
====================
|
====================
|
||||||
|
|
||||||
> We are Open Source Enthusiast
|
> We are Open Source Enthusiast
|
||||||
> Who Support the Joomla Community
|
> Who Support the [Joomla](https://extensions.joomla.org/extension/component-builder/) Community
|
||||||
|
|
||||||
Our idea was to almost let this tool serve as a cheat sheet to how things can be done... and with the help of other developers end up formulating the way how things not only can, but must be done to insure secure, stable, scalable and maintainable code is produced.
|
Our idea was to almost let this tool serve as a cheat sheet to how things can be done... and with the help of other developers end up formulating the way how things not only can, but must be done to insure secure, stable, scalable and maintainable code is produced.
|
||||||
|
|
||||||
MAKING IT BETTER!
|
MAKING IT BETTER!
|
||||||
====================
|
====================
|
||||||
|
|
||||||
Watch the [proposed development workflow](https://vdm.bz/proposed-development-workflow).
|
Get involved on the forums, and the GitHub issues, and you can even help us develop/improve the pipeline of [JCB](http://joomlacomponentbuilder.com) for continues delivery. We really want to see [JCB](http://joomlacomponentbuilder.com) remain the tool of choice for all [Joomla Component Development](https://extensions.joomla.org/extension/component-builder/) needs and ideas.
|
||||||
|
|
||||||
|
TODO
|
||||||
|
======
|
||||||
|
|
||||||
|
- Add automatic (REST) API ability for all components build with [JCB](http://joomlacomponentbuilder.com). So we can link any component build with JCB to an Android/Apple APP.
|
||||||
|
- Add automatic unit testing. To nurture pipeline integration for all components build with [JCB](http://joomlacomponentbuilder.com).
|
||||||
|
- Team collaborative development across [JCB](http://joomlacomponentbuilder.com) installations offline and online.
|
||||||
|
- Documentation (maintained by the community) for [JCB](http://joomlacomponentbuilder.com). (help us select the best system for this)
|
||||||
|
|
||||||
# Build Details
|
# Build Details
|
||||||
|
|
||||||
@ -125,21 +143,35 @@ 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*: 7th July, 2018
|
+ *Last Build*: 19th December, 2018
|
||||||
+ *Version*: 2.8.2
|
+ *Version*: 2.9.8
|
||||||
+ *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*: **186287**
|
+ *Line count*: **195554**
|
||||||
+ *Field count*: **1058**
|
+ *Field count*: **1087**
|
||||||
+ *File count*: **1238**
|
+ *File count*: **1275**
|
||||||
+ *Folder count*: **197**
|
+ *Folder count*: **201**
|
||||||
|
|
||||||
> This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com).
|
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||||
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
|
|
||||||
## Donations
|
## Contributors
|
||||||
|
This project exists thanks to all the people who contribute.
|
||||||
|
<a href="https://github.com/vdm-io/Joomla-Component-Builder/graphs/contributors"><img src="https://opencollective.com/Joomla-Component-Builder/contributors.svg?width=890&button=false" /></a>
|
||||||
|
|
||||||
Come on buy VDM a coffee :)
|
### Backers
|
||||||
* PayPal: [paypal.me/asseblief](https://www.paypal.me/asseblief) (Asseblief = Please) in Afrikaans
|
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/Joomla-Component-Builder#backer)]
|
||||||
* Bitcoin: 18vURxYpPFjvNk8BnUy1ovCAyQmY3MzkSf
|
<a href="https://opencollective.com/Joomla-Component-Builder#backers" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/backers.svg?width=890"></a>
|
||||||
* Ethereum: 0x9548144662b47327c954f3e214edb96662d51218
|
|
||||||
|
### Sponsors
|
||||||
|
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/Joomla-Component-Builder#sponsor)]
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/0/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/0/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/1/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/1/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/2/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/2/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/3/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/3/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/4/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/4/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/5/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/5/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/6/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/6/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/7/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/7/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/8/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/8/avatar.svg"></a>
|
||||||
|
<a href="https://opencollective.com/Joomla-Component-Builder/sponsor/9/website" target="_blank"><img src="https://opencollective.com/Joomla-Component-Builder/sponsor/9/avatar.svg"></a>
|
@ -15,6 +15,7 @@
|
|||||||
<action name="core.edit.own" title="JACTION_EDITOWN" description="JACTION_EDITOWN_COMPONENT_DESC" />
|
<action name="core.edit.own" title="JACTION_EDITOWN" description="JACTION_EDITOWN_COMPONENT_DESC" />
|
||||||
<action name="core.edit.created_by" title="COM_COMPONENTBUILDER_EDIT_CREATED_BY" description="COM_COMPONENTBUILDER_EDIT_CREATED_BY_DESC" />
|
<action name="core.edit.created_by" title="COM_COMPONENTBUILDER_EDIT_CREATED_BY" description="COM_COMPONENTBUILDER_EDIT_CREATED_BY_DESC" />
|
||||||
<action name="core.edit.created" title="COM_COMPONENTBUILDER_EDIT_CREATED_DATE" description="COM_COMPONENTBUILDER_EDIT_CREATED_DATE_DESC" />
|
<action name="core.edit.created" title="COM_COMPONENTBUILDER_EDIT_CREATED_DATE" description="COM_COMPONENTBUILDER_EDIT_CREATED_DATE_DESC" />
|
||||||
|
<action name="admin_view.run_expansion" title="COM_COMPONENTBUILDER_ADMIN_VIEW_RUN_EXPANSION_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_ADMIN_VIEW_RUN_EXPANSION_BUTTON_ACCESS_DESC" />
|
||||||
<action name="admin_view.access" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_ACCESS" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_ACCESS_DESC" />
|
<action name="admin_view.access" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_ACCESS" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_ACCESS_DESC" />
|
||||||
<action name="admin_view.batch" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_BATCH_USE" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_BATCH_USE_DESC" />
|
<action name="admin_view.batch" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_BATCH_USE" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_BATCH_USE_DESC" />
|
||||||
<action name="admin_view.create" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_CREATE" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_CREATE_DESC" />
|
<action name="admin_view.create" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_CREATE" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_CREATE_DESC" />
|
||||||
@ -30,6 +31,16 @@
|
|||||||
<action name="admin_view.export" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_EXPORT" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_EXPORT_DESC" />
|
<action name="admin_view.export" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_EXPORT" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_EXPORT_DESC" />
|
||||||
<action name="admin_view.import" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_IMPORT" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_IMPORT_DESC" />
|
<action name="admin_view.import" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_IMPORT" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_IMPORT_DESC" />
|
||||||
<action name="admin_view.submenu" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_SUBMENU" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_SUBMENU_DESC" />
|
<action name="admin_view.submenu" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_SUBMENU" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_SUBMENU_DESC" />
|
||||||
|
<action name="admin_custom_tabs.access" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_ACCESS" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_ACCESS_DESC" />
|
||||||
|
<action name="admin_custom_tabs.batch" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_BATCH_USE" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_BATCH_USE_DESC" />
|
||||||
|
<action name="admin_custom_tabs.create" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_CREATE" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_CREATE_DESC" />
|
||||||
|
<action name="admin_custom_tabs.delete" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_DELETE" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_DELETE_DESC" />
|
||||||
|
<action name="admin_custom_tabs.edit" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_DESC" />
|
||||||
|
<action name="admin_custom_tabs.edit.created_by" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_CREATED_BY" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_CREATED_BY_DESC" />
|
||||||
|
<action name="admin_custom_tabs.edit.created" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_CREATED_DATE" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_CREATED_DATE_DESC" />
|
||||||
|
<action name="admin_custom_tabs.edit.own" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_OWN" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_OWN_DESC" />
|
||||||
|
<action name="admin_custom_tabs.edit.state" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_STATE" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_STATE_DESC" />
|
||||||
|
<action name="admin_custom_tabs.version" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_VERSION" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_VERSION_DESC" />
|
||||||
<action name="admin_fields.access" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_ACCESS" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_ACCESS_DESC" />
|
<action name="admin_fields.access" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_ACCESS" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_ACCESS_DESC" />
|
||||||
<action name="admin_fields.batch" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_BATCH_USE" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_BATCH_USE_DESC" />
|
<action name="admin_fields.batch" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_BATCH_USE" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_BATCH_USE_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.access" title="COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_ACCESS" description="COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS_ACCESS_DESC" />
|
||||||
@ -63,6 +74,7 @@
|
|||||||
<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" />
|
||||||
|
<action name="compiler.run_expansion" title="COM_COMPONENTBUILDER_COMPILER_RUN_EXPANSION_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_COMPILER_RUN_EXPANSION_BUTTON_ACCESS_DESC" />
|
||||||
<action name="compiler.submenu" title="COM_COMPONENTBUILDER_COMPILER_SUBMENU" description="COM_COMPONENTBUILDER_COMPILER_SUBMENU_DESC" />
|
<action name="compiler.submenu" title="COM_COMPONENTBUILDER_COMPILER_SUBMENU" description="COM_COMPONENTBUILDER_COMPILER_SUBMENU_DESC" />
|
||||||
<action name="component_admin_views.access" title="COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_ACCESS" description="COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_ACCESS_DESC" />
|
<action name="component_admin_views.access" title="COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_ACCESS" description="COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_ACCESS_DESC" />
|
||||||
<action name="component_admin_views.batch" title="COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_BATCH_USE" description="COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_BATCH_USE_DESC" />
|
<action name="component_admin_views.batch" title="COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_BATCH_USE" description="COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_BATCH_USE_DESC" />
|
||||||
@ -163,6 +175,7 @@
|
|||||||
<action name="custom_admin_view.export" title="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EXPORT" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EXPORT_DESC" />
|
<action name="custom_admin_view.export" title="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EXPORT" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EXPORT_DESC" />
|
||||||
<action name="custom_admin_view.import" title="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_IMPORT" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_IMPORT_DESC" />
|
<action name="custom_admin_view.import" title="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_IMPORT" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_IMPORT_DESC" />
|
||||||
<action name="custom_admin_view.submenu" title="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_SUBMENU" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_SUBMENU_DESC" />
|
<action name="custom_admin_view.submenu" title="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_SUBMENU" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_SUBMENU_DESC" />
|
||||||
|
<action name="custom_code.run_expansion" title="COM_COMPONENTBUILDER_CUSTOM_CODE_RUN_EXPANSION_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_CUSTOM_CODE_RUN_EXPANSION_BUTTON_ACCESS_DESC" />
|
||||||
<action name="custom_code.access" title="COM_COMPONENTBUILDER_CUSTOM_CODES_ACCESS" description="COM_COMPONENTBUILDER_CUSTOM_CODES_ACCESS_DESC" />
|
<action name="custom_code.access" title="COM_COMPONENTBUILDER_CUSTOM_CODES_ACCESS" description="COM_COMPONENTBUILDER_CUSTOM_CODES_ACCESS_DESC" />
|
||||||
<action name="custom_code.batch" title="COM_COMPONENTBUILDER_CUSTOM_CODES_BATCH_USE" description="COM_COMPONENTBUILDER_CUSTOM_CODES_BATCH_USE_DESC" />
|
<action name="custom_code.batch" title="COM_COMPONENTBUILDER_CUSTOM_CODES_BATCH_USE" description="COM_COMPONENTBUILDER_CUSTOM_CODES_BATCH_USE_DESC" />
|
||||||
<action name="custom_code.create" title="COM_COMPONENTBUILDER_CUSTOM_CODES_CREATE" description="COM_COMPONENTBUILDER_CUSTOM_CODES_CREATE_DESC" />
|
<action name="custom_code.create" title="COM_COMPONENTBUILDER_CUSTOM_CODES_CREATE" description="COM_COMPONENTBUILDER_CUSTOM_CODES_CREATE_DESC" />
|
||||||
@ -177,6 +190,7 @@
|
|||||||
<action name="custom_code.export" title="COM_COMPONENTBUILDER_CUSTOM_CODES_EXPORT" description="COM_COMPONENTBUILDER_CUSTOM_CODES_EXPORT_DESC" />
|
<action name="custom_code.export" title="COM_COMPONENTBUILDER_CUSTOM_CODES_EXPORT" description="COM_COMPONENTBUILDER_CUSTOM_CODES_EXPORT_DESC" />
|
||||||
<action name="custom_code.import" title="COM_COMPONENTBUILDER_CUSTOM_CODES_IMPORT" description="COM_COMPONENTBUILDER_CUSTOM_CODES_IMPORT_DESC" />
|
<action name="custom_code.import" title="COM_COMPONENTBUILDER_CUSTOM_CODES_IMPORT" description="COM_COMPONENTBUILDER_CUSTOM_CODES_IMPORT_DESC" />
|
||||||
<action name="custom_code.submenu" title="COM_COMPONENTBUILDER_CUSTOM_CODES_SUBMENU" description="COM_COMPONENTBUILDER_CUSTOM_CODES_SUBMENU_DESC" />
|
<action name="custom_code.submenu" title="COM_COMPONENTBUILDER_CUSTOM_CODES_SUBMENU" description="COM_COMPONENTBUILDER_CUSTOM_CODES_SUBMENU_DESC" />
|
||||||
|
<action name="dynamic_get.run_expansion" title="COM_COMPONENTBUILDER_DYNAMIC_GET_RUN_EXPANSION_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_DYNAMIC_GET_RUN_EXPANSION_BUTTON_ACCESS_DESC" />
|
||||||
<action name="dynamic_get.access" title="COM_COMPONENTBUILDER_DYNAMIC_GETS_ACCESS" description="COM_COMPONENTBUILDER_DYNAMIC_GETS_ACCESS_DESC" />
|
<action name="dynamic_get.access" title="COM_COMPONENTBUILDER_DYNAMIC_GETS_ACCESS" description="COM_COMPONENTBUILDER_DYNAMIC_GETS_ACCESS_DESC" />
|
||||||
<action name="dynamic_get.batch" title="COM_COMPONENTBUILDER_DYNAMIC_GETS_BATCH_USE" description="COM_COMPONENTBUILDER_DYNAMIC_GETS_BATCH_USE_DESC" />
|
<action name="dynamic_get.batch" title="COM_COMPONENTBUILDER_DYNAMIC_GETS_BATCH_USE" description="COM_COMPONENTBUILDER_DYNAMIC_GETS_BATCH_USE_DESC" />
|
||||||
<action name="dynamic_get.create" title="COM_COMPONENTBUILDER_DYNAMIC_GETS_CREATE" description="COM_COMPONENTBUILDER_DYNAMIC_GETS_CREATE_DESC" />
|
<action name="dynamic_get.create" title="COM_COMPONENTBUILDER_DYNAMIC_GETS_CREATE" description="COM_COMPONENTBUILDER_DYNAMIC_GETS_CREATE_DESC" />
|
||||||
@ -190,6 +204,7 @@
|
|||||||
<action name="dynamic_get.export" title="COM_COMPONENTBUILDER_DYNAMIC_GETS_EXPORT" description="COM_COMPONENTBUILDER_DYNAMIC_GETS_EXPORT_DESC" />
|
<action name="dynamic_get.export" title="COM_COMPONENTBUILDER_DYNAMIC_GETS_EXPORT" description="COM_COMPONENTBUILDER_DYNAMIC_GETS_EXPORT_DESC" />
|
||||||
<action name="dynamic_get.import" title="COM_COMPONENTBUILDER_DYNAMIC_GETS_IMPORT" description="COM_COMPONENTBUILDER_DYNAMIC_GETS_IMPORT_DESC" />
|
<action name="dynamic_get.import" title="COM_COMPONENTBUILDER_DYNAMIC_GETS_IMPORT" description="COM_COMPONENTBUILDER_DYNAMIC_GETS_IMPORT_DESC" />
|
||||||
<action name="dynamic_get.submenu" title="COM_COMPONENTBUILDER_DYNAMIC_GETS_SUBMENU" description="COM_COMPONENTBUILDER_DYNAMIC_GETS_SUBMENU_DESC" />
|
<action name="dynamic_get.submenu" title="COM_COMPONENTBUILDER_DYNAMIC_GETS_SUBMENU" description="COM_COMPONENTBUILDER_DYNAMIC_GETS_SUBMENU_DESC" />
|
||||||
|
<action name="field.run_expansion" title="COM_COMPONENTBUILDER_FIELD_RUN_EXPANSION_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_FIELD_RUN_EXPANSION_BUTTON_ACCESS_DESC" />
|
||||||
<action name="field.access" title="COM_COMPONENTBUILDER_FIELDS_ACCESS" description="COM_COMPONENTBUILDER_FIELDS_ACCESS_DESC" />
|
<action name="field.access" title="COM_COMPONENTBUILDER_FIELDS_ACCESS" description="COM_COMPONENTBUILDER_FIELDS_ACCESS_DESC" />
|
||||||
<action name="field.batch" title="COM_COMPONENTBUILDER_FIELDS_BATCH_USE" description="COM_COMPONENTBUILDER_FIELDS_BATCH_USE_DESC" />
|
<action name="field.batch" title="COM_COMPONENTBUILDER_FIELDS_BATCH_USE" description="COM_COMPONENTBUILDER_FIELDS_BATCH_USE_DESC" />
|
||||||
<action name="field.create" title="COM_COMPONENTBUILDER_FIELDS_CREATE" description="COM_COMPONENTBUILDER_FIELDS_CREATE_DESC" />
|
<action name="field.create" title="COM_COMPONENTBUILDER_FIELDS_CREATE" description="COM_COMPONENTBUILDER_FIELDS_CREATE_DESC" />
|
||||||
@ -242,9 +257,11 @@
|
|||||||
<action name="help_document.import" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT_DESC" />
|
<action name="help_document.import" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT_DESC" />
|
||||||
<action name="help_document.submenu" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU_DESC" />
|
<action name="help_document.submenu" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU_DESC" />
|
||||||
<action name="joomla_component.backup" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BACKUP_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BACKUP_BUTTON_ACCESS_DESC" />
|
<action name="joomla_component.backup" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BACKUP_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BACKUP_BUTTON_ACCESS_DESC" />
|
||||||
|
<action name="joomla_component.clear_tmp" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLEAR_TMP_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLEAR_TMP_BUTTON_ACCESS_DESC" />
|
||||||
<action name="joomla_component.clone" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLONE_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLONE_BUTTON_ACCESS_DESC" />
|
<action name="joomla_component.clone" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLONE_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLONE_BUTTON_ACCESS_DESC" />
|
||||||
<action name="joomla_component.export_jcb_packages" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_JCB_PACKAGES_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_JCB_PACKAGES_BUTTON_ACCESS_DESC" />
|
<action name="joomla_component.export_jcb_packages" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_JCB_PACKAGES_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_JCB_PACKAGES_BUTTON_ACCESS_DESC" />
|
||||||
<action name="joomla_component.import_jcb_packages" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_JCB_PACKAGES_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_JCB_PACKAGES_BUTTON_ACCESS_DESC" />
|
<action name="joomla_component.import_jcb_packages" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_JCB_PACKAGES_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_JCB_PACKAGES_BUTTON_ACCESS_DESC" />
|
||||||
|
<action name="joomla_component.run_expansion" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_RUN_EXPANSION_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_RUN_EXPANSION_BUTTON_ACCESS_DESC" />
|
||||||
<action name="joomla_component.access" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS_DESC" />
|
<action name="joomla_component.access" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS_DESC" />
|
||||||
<action name="joomla_component.batch" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE_DESC" />
|
<action name="joomla_component.batch" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE_DESC" />
|
||||||
<action name="joomla_component.create" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_CREATE" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_CREATE_DESC" />
|
<action name="joomla_component.create" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_CREATE" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_CREATE_DESC" />
|
||||||
@ -582,6 +599,17 @@
|
|||||||
<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.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" />
|
<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>
|
||||||
|
<section name="admin_custom_tabs">
|
||||||
|
<action name="admin_custom_tabs.edit" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_DESC" />
|
||||||
|
<action name="admin_custom_tabs.edit.own" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_OWN" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_OWN_DESC" />
|
||||||
|
<action name="admin_custom_tabs.edit.state" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_STATE" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_STATE_DESC" />
|
||||||
|
<action name="admin_custom_tabs.edit.created_by" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_CREATED_BY" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_CREATED_BY_DESC" />
|
||||||
|
<action name="admin_custom_tabs.edit.created" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_CREATED_DATE" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_CREATED_DATE_DESC" />
|
||||||
|
<action name="admin_custom_tabs.create" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_CREATE" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_CREATE_DESC" />
|
||||||
|
<action name="admin_custom_tabs.delete" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_DELETE" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_DELETE_DESC" />
|
||||||
|
<action name="admin_custom_tabs.access" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_ACCESS" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_ACCESS_DESC" />
|
||||||
|
<action name="admin_custom_tabs.version" title="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_EDIT_VERSION" description="COM_COMPONENTBUILDER_ADMINS_CUSTOM_TABS_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" />
|
||||||
|
14
admin/assets/css/admin_custom_tabs.css
Normal file
14
admin/assets/css/admin_custom_tabs.css
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
/**
|
||||||
|
* @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 */
|
||||||
|
|
||||||
|
|
||||||
|
.tab_html { width: 1027px; height: 338px; }
|
@ -10,4 +10,7 @@
|
|||||||
|
|
||||||
/* CSS Document */
|
/* CSS Document */
|
||||||
|
|
||||||
|
|
||||||
|
.bestview {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
13
admin/assets/css/admins_custom_tabs.css
Normal file
13
admin/assets/css/admins_custom_tabs.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 */
|
||||||
|
|
||||||
|
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import Joomla controlleradmin library
|
|
||||||
jimport('joomla.application.component.controlleradmin');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### Controller
|
* ###Component### Controller
|
||||||
*/
|
*/
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,10 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import the Joomla modellist library
|
|
||||||
jimport('joomla.application.component.modellist');
|
|
||||||
jimport('joomla.application.component.helper');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### Model
|
* ###Component### Model
|
||||||
*/
|
*/
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import Joomla view library
|
|
||||||
jimport('joomla.application.component.view');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### View class
|
* ###Component### View class
|
||||||
*/
|
*/
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -33,9 +21,9 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
* ###Component### component helper.
|
* ###Component### component helper.
|
||||||
*/
|
*/
|
||||||
abstract class ###Component###Helper
|
abstract class ###Component###Helper
|
||||||
{###ADMIN_GLOBAL_EVENT_HELPER### ###CUSTOM_HELPER_SCRIPT### ###BOTH_CUSTOM_HELPER_SCRIPT###
|
{###ADMIN_GLOBAL_EVENT_HELPER######CUSTOM_HELPER_SCRIPT######BOTH_CUSTOM_HELPER_SCRIPT###
|
||||||
/**
|
/**
|
||||||
* Load the Component xml manifest.
|
* Load the Component xml manifest.
|
||||||
**/
|
**/
|
||||||
public static function manifest()
|
public static function manifest()
|
||||||
{
|
{
|
||||||
@ -44,12 +32,12 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Joomla version object
|
* Joomla version object
|
||||||
**/
|
**/
|
||||||
protected static $JVersion;
|
protected static $JVersion;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* set/get Joomla version
|
* set/get Joomla version
|
||||||
**/
|
**/
|
||||||
public static function jVersion()
|
public static function jVersion()
|
||||||
{
|
{
|
||||||
@ -62,7 +50,7 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the Contributors details.
|
* Load the Contributors details.
|
||||||
**/
|
**/
|
||||||
public static function getContributors()
|
public static function getContributors()
|
||||||
{
|
{
|
||||||
@ -100,7 +88,7 @@ abstract class ###Component###Helper
|
|||||||
}###HELP###
|
}###HELP###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configure the Linkbar.
|
* Configure the Linkbar.
|
||||||
**/
|
**/
|
||||||
public static function addSubmenu($submenu)
|
public static function addSubmenu($submenu)
|
||||||
{
|
{
|
||||||
@ -108,7 +96,7 @@ abstract class ###Component###Helper
|
|||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// load the submenus to sidebar
|
// load the submenus to sidebar
|
||||||
###SUBMENU###
|
###SUBMENU###
|
||||||
}###HELPER_CREATEUSER### ###HELPER_UIKIT### ###HELPER_EXEL###
|
}###HELPER_CREATEUSER######HELPER_UIKIT######HELPER_EXEL###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a Variable
|
* Get a Variable
|
||||||
@ -248,16 +236,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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -313,183 +301,149 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the actions permissions
|
* Get the action permissions
|
||||||
|
*
|
||||||
|
* @param string $view The related view name
|
||||||
|
* @param int $record The item to act upon
|
||||||
|
* @param string $views The related list view name
|
||||||
|
* @param mixed $target Only get this permission (like edit, create, delete)
|
||||||
|
* @param string $component The target component
|
||||||
|
*
|
||||||
|
* @return object The JObject of permission/authorised actions
|
||||||
|
*
|
||||||
**/
|
**/
|
||||||
public static function getActions($view,&$record = null,$views = null)
|
public static function getActions($view, &$record = null, $views = null, $target = null, $component = '###component###')
|
||||||
{
|
{
|
||||||
jimport('joomla.access.access');
|
// get the user object
|
||||||
|
$user = JFactory::getUser();
|
||||||
$user = JFactory::getUser();
|
// load the JObject
|
||||||
$result = new JObject;
|
$result = new JObject;
|
||||||
$view = self::safeString($view);
|
// make view name safe (just incase)
|
||||||
|
$view = self::safeString($view);
|
||||||
if (self::checkString($views))
|
if (self::checkString($views))
|
||||||
{
|
{
|
||||||
$views = self::safeString($views);
|
$views = self::safeString($views);
|
||||||
}
|
}
|
||||||
// get all actions from component
|
// get all actions from component
|
||||||
$actions = JAccess::getActions('com_###component###', 'component');
|
$actions = JAccess::getActionsFromFile(
|
||||||
// set acctions only set in component settiongs
|
JPATH_ADMINISTRATOR . '/components/com_' . $component . '/access.xml',
|
||||||
$componentActions = array('core.admin','core.manage','core.options','core.export');
|
"/access/section[@name='component']/"
|
||||||
|
);
|
||||||
|
// if non found then return empty JObject
|
||||||
|
if (empty($actions))
|
||||||
|
{
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
// get created by if not found
|
||||||
|
if (self::checkObject($record) && !isset($record->created_by) && isset($record->id))
|
||||||
|
{
|
||||||
|
$record->created_by = self::getVar($view, $record->id, 'id', 'created_by', '=', $component);
|
||||||
|
}
|
||||||
|
// set actions only set in component settings
|
||||||
|
$componentActions = array('core.admin', 'core.manage', 'core.options', 'core.export');
|
||||||
|
// check if we have a target
|
||||||
|
$checkTarget = false;
|
||||||
|
if ($target)
|
||||||
|
{
|
||||||
|
// convert to an array
|
||||||
|
if (self::checkString($target))
|
||||||
|
{
|
||||||
|
$target = array($target);
|
||||||
|
}
|
||||||
|
// check if we are good to go
|
||||||
|
if (self::checkArray($target))
|
||||||
|
{
|
||||||
|
$checkTarget = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
// loop the actions and set the permissions
|
// loop the actions and set the permissions
|
||||||
foreach ($actions as $action)
|
foreach ($actions as $action)
|
||||||
{
|
{
|
||||||
// set to use component default
|
// check target action filter
|
||||||
$fallback= true;
|
if ($checkTarget && self::filterActions($view, $action->name, $target))
|
||||||
if (self::checkObject($record) && isset($record->id) && $record->id > 0 && !in_array($action->name,$componentActions))
|
|
||||||
{
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
// set to use component default
|
||||||
|
$fallback = true;
|
||||||
|
// reset permission per/action
|
||||||
|
$permission = false;
|
||||||
|
$catpermission = false;
|
||||||
|
// set area
|
||||||
|
$area = 'comp';
|
||||||
|
// check if the record has an ID and the action is item related (not a component action)
|
||||||
|
if (self::checkObject($record) && isset($record->id) && $record->id > 0 && !in_array($action->name, $componentActions) &&
|
||||||
|
(strpos($action->name, 'core.') !== false || strpos($action->name, $view . '.') !== false))
|
||||||
|
{
|
||||||
|
// we are in item
|
||||||
|
$area = 'item';
|
||||||
// The record has been set. Check the record permissions.
|
// The record has been set. Check the record permissions.
|
||||||
$permission = $user->authorise($action->name, 'com_###component###.'.$view.'.' . (int) $record->id);
|
$permission = $user->authorise($action->name, 'com_' . $component . '.' . $view . '.' . (int) $record->id);
|
||||||
if (!$permission) // TODO removed && !is_null($permission)
|
// if no permission found, check edit own
|
||||||
|
if (!$permission)
|
||||||
{
|
{
|
||||||
if ($action->name == 'core.edit' || $action->name == $view.'.edit')
|
// With edit, if the created_by matches current user then dig deeper.
|
||||||
|
if (($action->name === 'core.edit' || $action->name === $view . '.edit') && $record->created_by > 0 && ($record->created_by == $user->id))
|
||||||
{
|
{
|
||||||
if ($user->authorise('core.edit.own', 'com_###component###.'.$view.'.' . (int) $record->id))
|
// the correct target
|
||||||
|
$coreCheck = (array) explode('.', $action->name);
|
||||||
|
// check that we have both local and global access
|
||||||
|
if ($user->authorise($coreCheck[0] . '.edit.own', 'com_' . $component . '.' . $view . '.' . (int) $record->id) &&
|
||||||
|
$user->authorise($coreCheck[0] . '.edit.own', 'com_' . $component))
|
||||||
{
|
{
|
||||||
// If the owner matches 'me' then allow.
|
// allow edit
|
||||||
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
|
$result->set($action->name, true);
|
||||||
{
|
// set not to use global default
|
||||||
$result->set($action->name, true);
|
// because we already validated it
|
||||||
// set not to use component default
|
$fallback = false;
|
||||||
$fallback= false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result->set($action->name, false);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback= false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
elseif ($user->authorise($view.'edit.own', 'com_###component###.'.$view.'.' . (int) $record->id))
|
else
|
||||||
{
|
{
|
||||||
// If the owner matches 'me' then allow.
|
// do not allow edit
|
||||||
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
|
$result->set($action->name, false);
|
||||||
{
|
$fallback = false;
|
||||||
$result->set($action->name, true);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback= false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result->set($action->name, false);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback= false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
elseif ($user->authorise('core.edit.own', 'com_###component###'))
|
|
||||||
{
|
|
||||||
// If the owner matches 'me' then allow.
|
|
||||||
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
|
|
||||||
{
|
|
||||||
$result->set($action->name, true);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback= false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result->set($action->name, false);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback= false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
elseif ($user->authorise($view.'edit.own', 'com_###component###'))
|
|
||||||
{
|
|
||||||
// If the owner matches 'me' then allow.
|
|
||||||
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
|
|
||||||
{
|
|
||||||
$result->set($action->name, true);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback= false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result->set($action->name, false);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback= false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif (self::checkString($views) && isset($record->catid) && $record->catid > 0)
|
elseif (self::checkString($views) && isset($record->catid) && $record->catid > 0)
|
||||||
{
|
{
|
||||||
|
// we are in item
|
||||||
|
$area = 'category';
|
||||||
|
// set the core check
|
||||||
|
$coreCheck = explode('.', $action->name);
|
||||||
|
$core = $coreCheck[0];
|
||||||
// make sure we use the core. action check for the categories
|
// make sure we use the core. action check for the categories
|
||||||
if (strpos($action->name,$view) !== false && strpos($action->name,'core.') === false ) {
|
if (strpos($action->name, $view) !== false && strpos($action->name, 'core.') === false )
|
||||||
$coreCheck = explode('.',$action->name);
|
{
|
||||||
$coreCheck[0] = 'core';
|
$coreCheck[0] = 'core';
|
||||||
$categoryCheck = implode('.',$coreCheck);
|
$categoryCheck = implode('.', $coreCheck);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$categoryCheck = $action->name;
|
$categoryCheck = $action->name;
|
||||||
}
|
}
|
||||||
// The record has a category. Check the category permissions.
|
// The record has a category. Check the category permissions.
|
||||||
$catpermission = $user->authorise($categoryCheck, 'com_###component###.'.$views.'.category.' . (int) $record->catid);
|
$catpermission = $user->authorise($categoryCheck, 'com_' . $component . '.' . $views . '.category.' . (int) $record->catid);
|
||||||
if (!$catpermission && !is_null($catpermission))
|
if (!$catpermission && !is_null($catpermission))
|
||||||
{
|
{
|
||||||
if ($action->name == 'core.edit' || $action->name == $view.'.edit')
|
// With edit, if the created_by matches current user then dig deeper.
|
||||||
|
if (($action->name === 'core.edit' || $action->name === $view . '.edit') && $record->created_by > 0 && ($record->created_by == $user->id))
|
||||||
{
|
{
|
||||||
if ($user->authorise('core.edit.own', 'com_###component###.'.$views.'.category.' . (int) $record->catid))
|
// check that we have both local and global access
|
||||||
|
if ($user->authorise('core.edit.own', 'com_' . $component . '.' . $views . '.category.' . (int) $record->catid) &&
|
||||||
|
$user->authorise($core . '.edit.own', 'com_' . $component))
|
||||||
{
|
{
|
||||||
// If the owner matches 'me' then allow.
|
// allow edit
|
||||||
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
|
$result->set($action->name, true);
|
||||||
{
|
// set not to use global default
|
||||||
$result->set($action->name, true);
|
// because we already validated it
|
||||||
// set not to use component default
|
$fallback = false;
|
||||||
$fallback= false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result->set($action->name, false);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback= false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
elseif ($user->authorise($view.'edit.own', 'com_###component###.'.$views.'.category.' . (int) $record->catid))
|
else
|
||||||
{
|
{
|
||||||
// If the owner matches 'me' then allow.
|
// do not allow edit
|
||||||
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
|
$result->set($action->name, false);
|
||||||
{
|
$fallback = false;
|
||||||
$result->set($action->name, true);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback= false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result->set($action->name, false);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback= false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
elseif ($user->authorise('core.edit.own', 'com_###component###'))
|
|
||||||
{
|
|
||||||
// If the owner matches 'me' then allow.
|
|
||||||
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
|
|
||||||
{
|
|
||||||
$result->set($action->name, true);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback= false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result->set($action->name, false);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback= false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
elseif ($user->authorise($view.'edit.own', 'com_###component###'))
|
|
||||||
{
|
|
||||||
// If the owner matches 'me' then allow.
|
|
||||||
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
|
|
||||||
{
|
|
||||||
$result->set($action->name, true);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback= false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result->set($action->name, false);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback= false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -498,14 +452,49 @@ abstract class ###Component###Helper
|
|||||||
// if allowed then fallback on component global settings
|
// if allowed then fallback on component global settings
|
||||||
if ($fallback)
|
if ($fallback)
|
||||||
{
|
{
|
||||||
$result->set($action->name, $user->authorise($action->name, 'com_###component###'));
|
// if item/category blocks access then don't fall back on global
|
||||||
|
if ((($area === 'item') && !$permission) || (($area === 'category') && !$catpermission))
|
||||||
|
{
|
||||||
|
// do not allow
|
||||||
|
$result->set($action->name, false);
|
||||||
|
}
|
||||||
|
// Finally remember the global settings have the final say. (even if item allow)
|
||||||
|
// The local item permissions can block, but it can't open and override of global permissions.
|
||||||
|
// Since items are created by users and global permissions is set by system admin.
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$result->set($action->name, $user->authorise($action->name, 'com_' . $component));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get any component's model
|
* Filter the action permissions
|
||||||
|
*
|
||||||
|
* @param string $action The action to check
|
||||||
|
* @param array $targets The array of target actions
|
||||||
|
*
|
||||||
|
* @return boolean true if action should be filtered out
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
protected static function filterActions(&$view, &$action, &$targets)
|
||||||
|
{
|
||||||
|
foreach ($targets as $target)
|
||||||
|
{
|
||||||
|
if (strpos($action, $view . '.' . $target) !== false ||
|
||||||
|
strpos($action, 'core.' . $target) !== false)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get any component's model
|
||||||
**/
|
**/
|
||||||
public static function getModel($name, $path = JPATH_COMPONENT_ADMINISTRATOR, $component = '###Component###', $config = array())
|
public static function getModel($name, $path = JPATH_COMPONENT_ADMINISTRATOR, $component = '###Component###', $config = array())
|
||||||
{
|
{
|
||||||
@ -549,9 +538,9 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add to asset Table
|
* Add to asset Table
|
||||||
*/
|
*/
|
||||||
public static function setAsset($id,$table)
|
public static function setAsset($id, $table, $inherit = true)
|
||||||
{
|
{
|
||||||
$parent = JTable::getInstance('Asset');
|
$parent = JTable::getInstance('Asset');
|
||||||
$parent->loadByName('com_###component###');
|
$parent->loadByName('com_###component###');
|
||||||
@ -583,7 +572,7 @@ abstract class ###Component###Helper
|
|||||||
$asset->name = $name;
|
$asset->name = $name;
|
||||||
$asset->title = $title;
|
$asset->title = $title;
|
||||||
// get the default asset rules
|
// get the default asset rules
|
||||||
$rules = self::getDefaultAssetRules('com_###component###',$table);
|
$rules = self::getDefaultAssetRules('com_###component###', $table, $inherit);
|
||||||
if ($rules instanceof JAccessRules)
|
if ($rules instanceof JAccessRules)
|
||||||
{
|
{
|
||||||
$asset->rules = (string) $rules;
|
$asset->rules = (string) $rules;
|
||||||
@ -611,55 +600,62 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the default asset Rules for a component/view.
|
* Gets the default asset Rules for a component/view.
|
||||||
*/
|
*/
|
||||||
protected static function getDefaultAssetRules($component,$view)
|
protected static function getDefaultAssetRules($component, $view, $inherit = true)
|
||||||
{
|
{
|
||||||
// Need to find the asset id by the name of the component.
|
// if new or inherited
|
||||||
$db = JFactory::getDbo();
|
$assetId = 0;
|
||||||
$query = $db->getQuery(true)
|
// Only get the actual item rules if not inheriting
|
||||||
->select($db->quoteName('id'))
|
if (!$inherit)
|
||||||
->from($db->quoteName('#__assets'))
|
|
||||||
->where($db->quoteName('name') . ' = ' . $db->quote($component));
|
|
||||||
$db->setQuery($query);
|
|
||||||
$db->execute();
|
|
||||||
if ($db->loadRowList())
|
|
||||||
{
|
{
|
||||||
// asset alread set so use saved rules
|
// Need to find the asset id by the name of the component.
|
||||||
$assetId = (int) $db->loadResult();
|
$db = JFactory::getDbo();
|
||||||
$result = JAccess::getAssetRules($assetId);
|
$query = $db->getQuery(true)
|
||||||
if ($result instanceof JAccessRules)
|
->select($db->quoteName('id'))
|
||||||
|
->from($db->quoteName('#__assets'))
|
||||||
|
->where($db->quoteName('name') . ' = ' . $db->quote($component));
|
||||||
|
$db->setQuery($query);
|
||||||
|
$db->execute();
|
||||||
|
// check that there is a value
|
||||||
|
if ($db->getNumRows())
|
||||||
{
|
{
|
||||||
$_result = (string) $result;
|
// asset already set so use saved rules
|
||||||
$_result = json_decode($_result);
|
$assetId = (int) $db->loadResult();
|
||||||
foreach ($_result as $name => &$rule)
|
|
||||||
{
|
|
||||||
$v = explode('.', $name);
|
|
||||||
if ($view !== $v[0])
|
|
||||||
{
|
|
||||||
// remove since it is not part of this view
|
|
||||||
unset($_result->$name);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// clear the value since we inherit
|
|
||||||
$rule = array();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// check if there are any view values remaining
|
|
||||||
if (count((array)$_result))
|
|
||||||
{
|
|
||||||
$_result = json_encode($_result);
|
|
||||||
$_result = array($_result);
|
|
||||||
// Instantiate and return the JAccessRules object for the asset rules.
|
|
||||||
$rules = new JAccessRules($_result);
|
|
||||||
|
|
||||||
return $rules;
|
|
||||||
}
|
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return JAccess::getAssetRules(0);
|
// get asset rules
|
||||||
|
$result = JAccess::getAssetRules($assetId);
|
||||||
|
if ($result instanceof JAccessRules)
|
||||||
|
{
|
||||||
|
$_result = (string) $result;
|
||||||
|
$_result = json_decode($_result);
|
||||||
|
foreach ($_result as $name => &$rule)
|
||||||
|
{
|
||||||
|
$v = explode('.', $name);
|
||||||
|
if ($view !== $v[0])
|
||||||
|
{
|
||||||
|
// remove since it is not part of this view
|
||||||
|
unset($_result->$name);
|
||||||
|
}
|
||||||
|
elseif ($inherit)
|
||||||
|
{
|
||||||
|
// clear the value since we inherit
|
||||||
|
$rule = array();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// check if there are any view values remaining
|
||||||
|
if (count($_result))
|
||||||
|
{
|
||||||
|
$_result = json_encode($_result);
|
||||||
|
$_result = array($_result);
|
||||||
|
// Instantiate and return the JAccessRules object for the asset rules.
|
||||||
|
$rules = new JAccessRules($_result);
|
||||||
|
// return filtered rules
|
||||||
|
return $rules;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -753,6 +749,46 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get the field object
|
||||||
|
*
|
||||||
|
* @param array $attributes The array of attributes
|
||||||
|
* @param string $default The default of the field
|
||||||
|
* @param array $options The options to apply to the XML element
|
||||||
|
*
|
||||||
|
* @return object
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public static function getFieldObject(&$attributes, $default = '', $options = null)
|
||||||
|
{
|
||||||
|
// make sure we have attributes and a type value
|
||||||
|
if (self::checkArray($attributes) && isset($attributes['type']))
|
||||||
|
{
|
||||||
|
// make sure the form helper class is loaded
|
||||||
|
if (!method_exists('JFormHelper', 'loadFieldType'))
|
||||||
|
{
|
||||||
|
jimport('joomla.form.form');
|
||||||
|
}
|
||||||
|
// get field type
|
||||||
|
$field = JFormHelper::loadFieldType($attributes['type'],true);
|
||||||
|
// start field xml
|
||||||
|
$XML = new SimpleXMLElement('<field/>');
|
||||||
|
// load the attributes
|
||||||
|
self::xmlAddAttributes($XML, $attributes);
|
||||||
|
// check if we have options
|
||||||
|
if (self::checkArray($options))
|
||||||
|
{
|
||||||
|
// load the options
|
||||||
|
self::xmlAddOptions($XML, $options);
|
||||||
|
}
|
||||||
|
// setup the field
|
||||||
|
$field->setup($XML, $default);
|
||||||
|
// return the field object
|
||||||
|
return $field;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Render Bool Button
|
* Render Bool Button
|
||||||
*
|
*
|
||||||
@ -771,8 +807,6 @@ abstract class ###Component###Helper
|
|||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
// check if there is additional button class
|
// check if there is additional button class
|
||||||
$additional = isset($args[1]) ? (string) $args[1] : ''; // not used at this time
|
$additional = isset($args[1]) ? (string) $args[1] : ''; // not used at this time
|
||||||
// start the xml
|
|
||||||
$buttonXML = new SimpleXMLElement('<field/>');
|
|
||||||
// button attributes
|
// button attributes
|
||||||
$buttonAttributes = array(
|
$buttonAttributes = array(
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
@ -781,30 +815,20 @@ abstract class ###Component###Helper
|
|||||||
'class' => 'btn-group',
|
'class' => 'btn-group',
|
||||||
'filter' => 'INT',
|
'filter' => 'INT',
|
||||||
'default' => isset($args[2]) ? (int) $args[2] : 0);
|
'default' => isset($args[2]) ? (int) $args[2] : 0);
|
||||||
// load the haskey attributes
|
|
||||||
self::xmlAddAttributes($buttonXML, $buttonAttributes);
|
|
||||||
// set the button options
|
// set the button options
|
||||||
$buttonOptions = array(
|
$buttonOptions = array(
|
||||||
'1' => isset($args[3]) ? self::htmlEscape($args[3]) : 'JYES',
|
'1' => isset($args[3]) ? self::htmlEscape($args[3]) : 'JYES',
|
||||||
'0' => isset($args[4]) ? self::htmlEscape($args[4]) : 'JNO');
|
'0' => isset($args[4]) ? self::htmlEscape($args[4]) : 'JNO');
|
||||||
// load the button options
|
// return the input
|
||||||
self::xmlAddOptions($buttonXML, $buttonOptions);
|
return self::getFieldObject($buttonAttributes, $buttonAttributes['default'], $buttonOptions)->input;
|
||||||
|
|
||||||
// get the radio element
|
|
||||||
$button = JFormHelper::loadFieldType('radio');
|
|
||||||
|
|
||||||
// run
|
|
||||||
$button->setup($buttonXML, $buttonAttributes['default']);
|
|
||||||
|
|
||||||
return $button->input;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if have an json string
|
* Check if have an json string
|
||||||
*
|
*
|
||||||
* @input string The json string to check
|
* @input string The json string to check
|
||||||
*
|
*
|
||||||
* @returns bool true on success
|
* @returns bool true on success
|
||||||
**/
|
**/
|
||||||
public static function checkJson($string)
|
public static function checkJson($string)
|
||||||
{
|
{
|
||||||
@ -817,11 +841,11 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if have an object with a length
|
* Check if have an object with a length
|
||||||
*
|
*
|
||||||
* @input object The object to check
|
* @input object The object to check
|
||||||
*
|
*
|
||||||
* @returns bool true on success
|
* @returns bool true on success
|
||||||
**/
|
**/
|
||||||
public static function checkObject($object)
|
public static function checkObject($object)
|
||||||
{
|
{
|
||||||
@ -833,15 +857,15 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if have an array with a length
|
* Check if have an array with a length
|
||||||
*
|
*
|
||||||
* @input array The array to check
|
* @input array The array to check
|
||||||
*
|
*
|
||||||
* @returns bool true on success
|
* @returns bool/int number of items in array on success
|
||||||
**/
|
**/
|
||||||
public static function checkArray($array, $removeEmptyString = false)
|
public static function checkArray($array, $removeEmptyString = false)
|
||||||
{
|
{
|
||||||
if (isset($array) && is_array($array) && count((array)$array) > 0)
|
if (isset($array) && is_array($array) && ($nr = count((array)$array)) > 0)
|
||||||
{
|
{
|
||||||
// also make sure the empty strings are removed
|
// also make sure the empty strings are removed
|
||||||
if ($removeEmptyString)
|
if ($removeEmptyString)
|
||||||
@ -855,17 +879,17 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
return self::checkArray($array, false);
|
return self::checkArray($array, false);
|
||||||
}
|
}
|
||||||
return true;
|
return $nr;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if have a string with a length
|
* Check if have a string with a length
|
||||||
*
|
*
|
||||||
* @input string The string to check
|
* @input string The string to check
|
||||||
*
|
*
|
||||||
* @returns bool true on success
|
* @returns bool true on success
|
||||||
**/
|
**/
|
||||||
public static function checkString($string)
|
public static function checkString($string)
|
||||||
{
|
{
|
||||||
@ -877,10 +901,10 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if we are connected
|
* Check if we are connected
|
||||||
* Thanks https://stackoverflow.com/a/4860432/1429677
|
* Thanks https://stackoverflow.com/a/4860432/1429677
|
||||||
*
|
*
|
||||||
* @returns bool true on success
|
* @returns bool true on success
|
||||||
**/
|
**/
|
||||||
public static function isConnected()
|
public static function isConnected()
|
||||||
{
|
{
|
||||||
@ -902,11 +926,11 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Merge an array of array's
|
* Merge an array of array's
|
||||||
*
|
*
|
||||||
* @input array The arrays you would like to merge
|
* @input array The arrays you would like to merge
|
||||||
*
|
*
|
||||||
* @returns array on success
|
* @returns array on success
|
||||||
**/
|
**/
|
||||||
public static function mergeArrays($arrays)
|
public static function mergeArrays($arrays)
|
||||||
{
|
{
|
||||||
@ -932,11 +956,11 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shorten a string
|
* Shorten a string
|
||||||
*
|
*
|
||||||
* @input string The you would like to shorten
|
* @input string The you would like to shorten
|
||||||
*
|
*
|
||||||
* @returns string on success
|
* @returns string on success
|
||||||
**/
|
**/
|
||||||
public static function shorten($string, $length = 40, $addTip = true)
|
public static function shorten($string, $length = 40, $addTip = true)
|
||||||
{
|
{
|
||||||
@ -973,13 +997,13 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Making strings safe (various ways)
|
* Making strings safe (various ways)
|
||||||
*
|
*
|
||||||
* @input string The you would like to make safe
|
* @input string The you would like to make safe
|
||||||
*
|
*
|
||||||
* @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 +1032,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);
|
||||||
$string = preg_replace("/[^A-Za-z ]/", '', $string);
|
// remove all and keep only characters
|
||||||
|
if ($keepOnlyCharacters)
|
||||||
|
{
|
||||||
|
$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')
|
||||||
{
|
{
|
||||||
@ -1108,11 +1141,11 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert an integer into an English word string
|
* Convert an integer into an English word string
|
||||||
* Thanks to Tom Nicholson <http://php.net/manual/en/function.strval.php#41988>
|
* Thanks to Tom Nicholson <http://php.net/manual/en/function.strval.php#41988>
|
||||||
*
|
*
|
||||||
* @input an int
|
* @input an int
|
||||||
* @returns a string
|
* @returns a string
|
||||||
**/
|
**/
|
||||||
public static function numberToString($x)
|
public static function numberToString($x)
|
||||||
{
|
{
|
||||||
@ -1199,9 +1232,9 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Random Key
|
* Random Key
|
||||||
*
|
*
|
||||||
* @returns a string
|
* @returns a string
|
||||||
**/
|
**/
|
||||||
public static function randomkey($size)
|
public static function randomkey($size)
|
||||||
{
|
{
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -138,17 +126,17 @@ abstract class ###Component###Email
|
|||||||
$replyto = $conf->get('replyto');
|
$replyto = $conf->get('replyto');
|
||||||
$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)
|
||||||
{
|
{
|
||||||
@ -196,9 +184,6 @@ abstract class ###Component###Email
|
|||||||
// 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)
|
||||||
{
|
{
|
||||||
@ -322,7 +307,7 @@ abstract class ###Component###Email
|
|||||||
$body[] = "<head>";
|
$body[] = "<head>";
|
||||||
$body[] = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";
|
$body[] = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";
|
||||||
$body[] = "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>";
|
$body[] = "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>";
|
||||||
$body[] = "<title>".$subject."</title>";
|
$body[] = "<title>" . $subject . "</title>";
|
||||||
$body[] = "<style type=\"text/css\">";
|
$body[] = "<style type=\"text/css\">";
|
||||||
$body[] = "#outlook a {padding:0;}";
|
$body[] = "#outlook a {padding:0;}";
|
||||||
$body[] = ".ExternalClass {width:100%;}";
|
$body[] = ".ExternalClass {width:100%;}";
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -33,7 +21,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
* ###Component### component helper
|
* ###Component### component helper
|
||||||
*/
|
*/
|
||||||
abstract class ###Component###Helper
|
abstract class ###Component###Helper
|
||||||
{###SITE_GLOBAL_EVENT_HELPER### ###SITE_CUSTOM_HELPER_SCRIPT### ###BOTH_CUSTOM_HELPER_SCRIPT###
|
{###SITE_GLOBAL_EVENT_HELPER######SITE_CUSTOM_HELPER_SCRIPT######BOTH_CUSTOM_HELPER_SCRIPT###
|
||||||
|
|
||||||
public static function jsonToString($value, $sperator = ", ", $table = null, $id = 'id', $name = 'name')
|
public static function jsonToString($value, $sperator = ", ", $table = null, $id = 'id', $name = 'name')
|
||||||
{
|
{
|
||||||
@ -58,16 +46,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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -84,7 +72,7 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the Component xml manifest.
|
* Load the Component xml manifest.
|
||||||
**/
|
**/
|
||||||
public static function manifest()
|
public static function manifest()
|
||||||
{
|
{
|
||||||
@ -93,12 +81,12 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Joomla version object
|
* Joomla version object
|
||||||
**/
|
**/
|
||||||
protected static $JVersion;
|
protected static $JVersion;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* set/get Joomla version
|
* set/get Joomla version
|
||||||
**/
|
**/
|
||||||
public static function jVersion()
|
public static function jVersion()
|
||||||
{
|
{
|
||||||
@ -111,7 +99,7 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the Contributors details.
|
* Load the Contributors details.
|
||||||
**/
|
**/
|
||||||
public static function getContributors()
|
public static function getContributors()
|
||||||
{
|
{
|
||||||
@ -149,7 +137,7 @@ abstract class ###Component###Helper
|
|||||||
}###HELP_SITE###
|
}###HELP_SITE###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get any component's model
|
* Get any component's model
|
||||||
**/
|
**/
|
||||||
public static function getModel($name, $path = JPATH_COMPONENT_SITE, $component = '###Component###', $config = array())
|
public static function getModel($name, $path = JPATH_COMPONENT_SITE, $component = '###Component###', $config = array())
|
||||||
{
|
{
|
||||||
@ -193,9 +181,9 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add to asset Table
|
* Add to asset Table
|
||||||
*/
|
*/
|
||||||
public static function setAsset($id,$table)
|
public static function setAsset($id, $table, $inherit = true)
|
||||||
{
|
{
|
||||||
$parent = JTable::getInstance('Asset');
|
$parent = JTable::getInstance('Asset');
|
||||||
$parent->loadByName('com_###component###');
|
$parent->loadByName('com_###component###');
|
||||||
@ -212,8 +200,6 @@ abstract class ###Component###Helper
|
|||||||
|
|
||||||
if ($error)
|
if ($error)
|
||||||
{
|
{
|
||||||
$this->setError($error);
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -229,7 +215,7 @@ abstract class ###Component###Helper
|
|||||||
$asset->name = $name;
|
$asset->name = $name;
|
||||||
$asset->title = $title;
|
$asset->title = $title;
|
||||||
// get the default asset rules
|
// get the default asset rules
|
||||||
$rules = self::getDefaultAssetRules('com_###component###',$table);
|
$rules = self::getDefaultAssetRules('com_###component###', $table, $inherit);
|
||||||
if ($rules instanceof JAccessRules)
|
if ($rules instanceof JAccessRules)
|
||||||
{
|
{
|
||||||
$asset->rules = (string) $rules;
|
$asset->rules = (string) $rules;
|
||||||
@ -257,55 +243,62 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the default asset Rules for a component/view.
|
* Gets the default asset Rules for a component/view.
|
||||||
*/
|
*/
|
||||||
protected static function getDefaultAssetRules($component,$view)
|
protected static function getDefaultAssetRules($component, $view, $inherit = true)
|
||||||
{
|
{
|
||||||
// Need to find the asset id by the name of the component.
|
// if new or inherited
|
||||||
$db = JFactory::getDbo();
|
$assetId = 0;
|
||||||
$query = $db->getQuery(true)
|
// Only get the actual item rules if not inheriting
|
||||||
->select($db->quoteName('id'))
|
if (!$inherit)
|
||||||
->from($db->quoteName('#__assets'))
|
|
||||||
->where($db->quoteName('name') . ' = ' . $db->quote($component));
|
|
||||||
$db->setQuery($query);
|
|
||||||
$db->execute();
|
|
||||||
if ($db->loadRowList())
|
|
||||||
{
|
{
|
||||||
// asset alread set so use saved rules
|
// Need to find the asset id by the name of the component.
|
||||||
$assetId = (int) $db->loadResult();
|
$db = JFactory::getDbo();
|
||||||
$result = JAccess::getAssetRules($assetId);
|
$query = $db->getQuery(true)
|
||||||
if ($result instanceof JAccessRules)
|
->select($db->quoteName('id'))
|
||||||
|
->from($db->quoteName('#__assets'))
|
||||||
|
->where($db->quoteName('name') . ' = ' . $db->quote($component));
|
||||||
|
$db->setQuery($query);
|
||||||
|
$db->execute();
|
||||||
|
// check that there is a value
|
||||||
|
if ($db->getNumRows())
|
||||||
{
|
{
|
||||||
$_result = (string) $result;
|
// asset already set so use saved rules
|
||||||
$_result = json_decode($_result);
|
$assetId = (int) $db->loadResult();
|
||||||
foreach ($_result as $name => &$rule)
|
|
||||||
{
|
|
||||||
$v = explode('.', $name);
|
|
||||||
if ($view !== $v[0])
|
|
||||||
{
|
|
||||||
// remove since it is not part of this view
|
|
||||||
unset($_result->$name);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// clear the value since we inherit
|
|
||||||
$rule = array();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// check if there are any view values remaining
|
|
||||||
if (count((array)$_result))
|
|
||||||
{
|
|
||||||
$_result = json_encode($_result);
|
|
||||||
$_result = array($_result);
|
|
||||||
// Instantiate and return the JAccessRules object for the asset rules.
|
|
||||||
$rules = new JAccessRules($_result);
|
|
||||||
|
|
||||||
return $rules;
|
|
||||||
}
|
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return JAccess::getAssetRules(0);
|
// get asset rules
|
||||||
|
$result = JAccess::getAssetRules($assetId);
|
||||||
|
if ($result instanceof JAccessRules)
|
||||||
|
{
|
||||||
|
$_result = (string) $result;
|
||||||
|
$_result = json_decode($_result);
|
||||||
|
foreach ($_result as $name => &$rule)
|
||||||
|
{
|
||||||
|
$v = explode('.', $name);
|
||||||
|
if ($view !== $v[0])
|
||||||
|
{
|
||||||
|
// remove since it is not part of this view
|
||||||
|
unset($_result->$name);
|
||||||
|
}
|
||||||
|
elseif ($inherit)
|
||||||
|
{
|
||||||
|
// clear the value since we inherit
|
||||||
|
$rule = array();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// check if there are any view values remaining
|
||||||
|
if (count($_result))
|
||||||
|
{
|
||||||
|
$_result = json_encode($_result);
|
||||||
|
$_result = array($_result);
|
||||||
|
// Instantiate and return the JAccessRules object for the asset rules.
|
||||||
|
$rules = new JAccessRules($_result);
|
||||||
|
// return filtered rules
|
||||||
|
return $rules;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -399,10 +392,50 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get the field object
|
||||||
|
*
|
||||||
|
* @param array $attributes The array of attributes
|
||||||
|
* @param string $default The default of the field
|
||||||
|
* @param array $options The options to apply to the XML element
|
||||||
|
*
|
||||||
|
* @return object
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public static function getFieldObject($attributes, $default = '', $options = null)
|
||||||
|
{
|
||||||
|
// make sure we have attributes and a type value
|
||||||
|
if (self::checkArray($attributes) && isset($attributes['type']))
|
||||||
|
{
|
||||||
|
// make sure the form helper class is loaded
|
||||||
|
if (!method_exists('JFormHelper', 'loadFieldType'))
|
||||||
|
{
|
||||||
|
jimport('joomla.form.form');
|
||||||
|
}
|
||||||
|
// get field type
|
||||||
|
$field = JFormHelper::loadFieldType($attributes['type'],true);
|
||||||
|
// start field xml
|
||||||
|
$XML = new SimpleXMLElement('<field/>');
|
||||||
|
// load the attributes
|
||||||
|
self::xmlAddAttributes($XML, $attributes);
|
||||||
|
// check if we have options
|
||||||
|
if (self::checkArray($options))
|
||||||
|
{
|
||||||
|
// load the options
|
||||||
|
self::xmlAddOptions($XML, $options);
|
||||||
|
}
|
||||||
|
// setup the field
|
||||||
|
$field->setup($XML, $default);
|
||||||
|
// return the field object
|
||||||
|
return $field;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Render Bool Button
|
* Render Bool Button
|
||||||
*
|
*
|
||||||
* @param array $args All the args for the button
|
* @param array $args All the args for the button
|
||||||
* 0) name
|
* 0) name
|
||||||
* 1) additional (options class) // not used at this time
|
* 1) additional (options class) // not used at this time
|
||||||
* 2) default
|
* 2) default
|
||||||
@ -417,8 +450,6 @@ abstract class ###Component###Helper
|
|||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
// check if there is additional button class
|
// check if there is additional button class
|
||||||
$additional = isset($args[1]) ? (string) $args[1] : ''; // not used at this time
|
$additional = isset($args[1]) ? (string) $args[1] : ''; // not used at this time
|
||||||
// start the xml
|
|
||||||
$buttonXML = new SimpleXMLElement('<field/>');
|
|
||||||
// button attributes
|
// button attributes
|
||||||
$buttonAttributes = array(
|
$buttonAttributes = array(
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
@ -427,23 +458,13 @@ abstract class ###Component###Helper
|
|||||||
'class' => 'btn-group',
|
'class' => 'btn-group',
|
||||||
'filter' => 'INT',
|
'filter' => 'INT',
|
||||||
'default' => isset($args[2]) ? (int) $args[2] : 0);
|
'default' => isset($args[2]) ? (int) $args[2] : 0);
|
||||||
// load the haskey attributes
|
|
||||||
self::xmlAddAttributes($buttonXML, $buttonAttributes);
|
|
||||||
// set the button options
|
// set the button options
|
||||||
$buttonOptions = array(
|
$buttonOptions = array(
|
||||||
'1' => isset($args[3]) ? self::htmlEscape($args[3]) : 'JYES',
|
'1' => isset($args[3]) ? self::htmlEscape($args[3]) : 'JYES',
|
||||||
'0' => isset($args[4]) ? self::htmlEscape($args[4]) : 'JNO');
|
'0' => isset($args[4]) ? self::htmlEscape($args[4]) : 'JNO');
|
||||||
// load the button options
|
// return the input
|
||||||
self::xmlAddOptions($buttonXML, $buttonOptions);
|
return self::getFieldObject($buttonAttributes, $buttonAttributes['default'], $buttonOptions)->input;
|
||||||
|
}###HELPER_UIKIT######HELPER_CREATEUSER###
|
||||||
// get the radio element
|
|
||||||
$button = JFormHelper::loadFieldType('radio');
|
|
||||||
|
|
||||||
// run
|
|
||||||
$button->setup($buttonXML, $buttonAttributes['default']);
|
|
||||||
|
|
||||||
return $button->input;
|
|
||||||
}###HELPER_UIKIT### ###HELPER_CREATEUSER###
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a variable
|
* Get a variable
|
||||||
@ -600,183 +621,149 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the actions permissions
|
* Get the action permissions
|
||||||
|
*
|
||||||
|
* @param string $view The related view name
|
||||||
|
* @param int $record The item to act upon
|
||||||
|
* @param string $views The related list view name
|
||||||
|
* @param mixed $target Only get this permission (like edit, create, delete)
|
||||||
|
* @param string $component The target component
|
||||||
|
*
|
||||||
|
* @return object The JObject of permission/authorised actions
|
||||||
|
*
|
||||||
**/
|
**/
|
||||||
public static function getActions($view,&$record = null,$views = null)
|
public static function getActions($view, &$record = null, $views = null, $target = null, $component = '###component###')
|
||||||
{
|
{
|
||||||
jimport('joomla.access.access');
|
// get the user object
|
||||||
|
$user = JFactory::getUser();
|
||||||
$user = JFactory::getUser();
|
// load the JObject
|
||||||
$result = new JObject;
|
$result = new JObject;
|
||||||
$view = self::safeString($view);
|
// make view name safe (just incase)
|
||||||
|
$view = self::safeString($view);
|
||||||
if (self::checkString($views))
|
if (self::checkString($views))
|
||||||
{
|
{
|
||||||
$views = self::safeString($views);
|
$views = self::safeString($views);
|
||||||
}
|
}
|
||||||
// get all actions from component
|
// get all actions from component
|
||||||
$actions = JAccess::getActions('com_###component###', 'component');
|
$actions = JAccess::getActionsFromFile(
|
||||||
// set acctions only set in component settiongs
|
JPATH_ADMINISTRATOR . '/components/com_' . $component . '/access.xml',
|
||||||
$componentActions = array('core.admin','core.manage','core.options','core.export');
|
"/access/section[@name='component']/"
|
||||||
|
);
|
||||||
|
// if non found then return empty JObject
|
||||||
|
if (empty($actions))
|
||||||
|
{
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
// get created by if not found
|
||||||
|
if (self::checkObject($record) && !isset($record->created_by) && isset($record->id))
|
||||||
|
{
|
||||||
|
$record->created_by = self::getVar($view, $record->id, 'id', 'created_by', '=', $component);
|
||||||
|
}
|
||||||
|
// set actions only set in component settings
|
||||||
|
$componentActions = array('core.admin', 'core.manage', 'core.options', 'core.export');
|
||||||
|
// check if we have a target
|
||||||
|
$checkTarget = false;
|
||||||
|
if ($target)
|
||||||
|
{
|
||||||
|
// convert to an array
|
||||||
|
if (self::checkString($target))
|
||||||
|
{
|
||||||
|
$target = array($target);
|
||||||
|
}
|
||||||
|
// check if we are good to go
|
||||||
|
if (self::checkArray($target))
|
||||||
|
{
|
||||||
|
$checkTarget = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
// loop the actions and set the permissions
|
// loop the actions and set the permissions
|
||||||
foreach ($actions as $action)
|
foreach ($actions as $action)
|
||||||
{
|
{
|
||||||
|
// check target action filter
|
||||||
|
if ($checkTarget && self::filterActions($view, $action->name, $target))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// set to use component default
|
// set to use component default
|
||||||
$fallback = true;
|
$fallback = true;
|
||||||
if (self::checkObject($record) && isset($record->id) && $record->id > 0 && !in_array($action->name,$componentActions))
|
// reset permission per/action
|
||||||
|
$permission = false;
|
||||||
|
$catpermission = false;
|
||||||
|
// set area
|
||||||
|
$area = 'comp';
|
||||||
|
// check if the record has an ID and the action is item related (not a component action)
|
||||||
|
if (self::checkObject($record) && isset($record->id) && $record->id > 0 && !in_array($action->name, $componentActions) &&
|
||||||
|
(strpos($action->name, 'core.') !== false || strpos($action->name, $view . '.') !== false))
|
||||||
{
|
{
|
||||||
|
// we are in item
|
||||||
|
$area = 'item';
|
||||||
// The record has been set. Check the record permissions.
|
// The record has been set. Check the record permissions.
|
||||||
$permission = $user->authorise($action->name, 'com_###component###.'.$view.'.' . (int) $record->id);
|
$permission = $user->authorise($action->name, 'com_' . $component . '.' . $view . '.' . (int) $record->id);
|
||||||
if (!$permission) // TODO removed && !is_null($permission)
|
// if no permission found, check edit own
|
||||||
|
if (!$permission)
|
||||||
{
|
{
|
||||||
if ($action->name == 'core.edit' || $action->name == $view.'.edit')
|
// With edit, if the created_by matches current user then dig deeper.
|
||||||
|
if (($action->name === 'core.edit' || $action->name === $view . '.edit') && $record->created_by > 0 && ($record->created_by == $user->id))
|
||||||
{
|
{
|
||||||
if ($user->authorise('core.edit.own', 'com_###component###.'.$view.'.' . (int) $record->id))
|
// the correct target
|
||||||
|
$coreCheck = (array) explode('.', $action->name);
|
||||||
|
// check that we have both local and global access
|
||||||
|
if ($user->authorise($coreCheck[0] . '.edit.own', 'com_' . $component . '.' . $view . '.' . (int) $record->id) &&
|
||||||
|
$user->authorise($coreCheck[0] . '.edit.own', 'com_' . $component))
|
||||||
{
|
{
|
||||||
// If the owner matches 'me' then allow.
|
// allow edit
|
||||||
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
|
$result->set($action->name, true);
|
||||||
{
|
// set not to use global default
|
||||||
$result->set($action->name, true);
|
// because we already validated it
|
||||||
// set not to use component default
|
$fallback = false;
|
||||||
$fallback = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result->set($action->name, false);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
elseif ($user->authorise($view.'edit.own', 'com_###component###.'.$view.'.' . (int) $record->id))
|
else
|
||||||
{
|
{
|
||||||
// If the owner matches 'me' then allow.
|
// do not allow edit
|
||||||
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
|
$result->set($action->name, false);
|
||||||
{
|
$fallback = false;
|
||||||
$result->set($action->name, true);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result->set($action->name, false);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
elseif ($user->authorise('core.edit.own', 'com_###component###'))
|
|
||||||
{
|
|
||||||
// If the owner matches 'me' then allow.
|
|
||||||
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
|
|
||||||
{
|
|
||||||
$result->set($action->name, true);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result->set($action->name, false);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
elseif ($user->authorise($view.'edit.own', 'com_###component###'))
|
|
||||||
{
|
|
||||||
// If the owner matches 'me' then allow.
|
|
||||||
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
|
|
||||||
{
|
|
||||||
$result->set($action->name, true);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result->set($action->name, false);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif (self::checkString($views) && isset($record->catid) && $record->catid > 0)
|
elseif (self::checkString($views) && isset($record->catid) && $record->catid > 0)
|
||||||
{
|
{
|
||||||
|
// we are in item
|
||||||
|
$area = 'category';
|
||||||
|
// set the core check
|
||||||
|
$coreCheck = explode('.', $action->name);
|
||||||
|
$core = $coreCheck[0];
|
||||||
// make sure we use the core. action check for the categories
|
// make sure we use the core. action check for the categories
|
||||||
if (strpos($action->name,$view) !== false && strpos($action->name,'core.') === false ) {
|
if (strpos($action->name, $view) !== false && strpos($action->name, 'core.') === false )
|
||||||
$coreCheck = explode('.',$action->name);
|
{
|
||||||
$coreCheck[0] = 'core';
|
$coreCheck[0] = 'core';
|
||||||
$categoryCheck = implode('.',$coreCheck);
|
$categoryCheck = implode('.', $coreCheck);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$categoryCheck = $action->name;
|
$categoryCheck = $action->name;
|
||||||
}
|
}
|
||||||
// The record has a category. Check the category permissions.
|
// The record has a category. Check the category permissions.
|
||||||
$catpermission = $user->authorise($categoryCheck, 'com_###component###.'.$views.'.category.' . (int) $record->catid);
|
$catpermission = $user->authorise($categoryCheck, 'com_' . $component . '.' . $views . '.category.' . (int) $record->catid);
|
||||||
if (!$catpermission && !is_null($catpermission))
|
if (!$catpermission && !is_null($catpermission))
|
||||||
{
|
{
|
||||||
if ($action->name == 'core.edit' || $action->name == $view.'.edit')
|
// With edit, if the created_by matches current user then dig deeper.
|
||||||
|
if (($action->name === 'core.edit' || $action->name === $view . '.edit') && $record->created_by > 0 && ($record->created_by == $user->id))
|
||||||
{
|
{
|
||||||
if ($user->authorise('core.edit.own', 'com_###component###.'.$views.'.category.' . (int) $record->catid))
|
// check that we have both local and global access
|
||||||
|
if ($user->authorise('core.edit.own', 'com_' . $component . '.' . $views . '.category.' . (int) $record->catid) &&
|
||||||
|
$user->authorise($core . '.edit.own', 'com_' . $component))
|
||||||
{
|
{
|
||||||
// If the owner matches 'me' then allow.
|
// allow edit
|
||||||
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
|
$result->set($action->name, true);
|
||||||
{
|
// set not to use global default
|
||||||
$result->set($action->name, true);
|
// because we already validated it
|
||||||
// set not to use component default
|
$fallback = false;
|
||||||
$fallback = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result->set($action->name, false);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
elseif ($user->authorise($view.'edit.own', 'com_###component###.'.$views.'.category.' . (int) $record->catid))
|
else
|
||||||
{
|
{
|
||||||
// If the owner matches 'me' then allow.
|
// do not allow edit
|
||||||
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
|
$result->set($action->name, false);
|
||||||
{
|
$fallback = false;
|
||||||
$result->set($action->name, true);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result->set($action->name, false);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
elseif ($user->authorise('core.edit.own', 'com_###component###'))
|
|
||||||
{
|
|
||||||
// If the owner matches 'me' then allow.
|
|
||||||
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
|
|
||||||
{
|
|
||||||
$result->set($action->name, true);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result->set($action->name, false);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
elseif ($user->authorise($view.'edit.own', 'com_###component###'))
|
|
||||||
{
|
|
||||||
// If the owner matches 'me' then allow.
|
|
||||||
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
|
|
||||||
{
|
|
||||||
$result->set($action->name, true);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result->set($action->name, false);
|
|
||||||
// set not to use component default
|
|
||||||
$fallback = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -785,18 +772,53 @@ abstract class ###Component###Helper
|
|||||||
// if allowed then fallback on component global settings
|
// if allowed then fallback on component global settings
|
||||||
if ($fallback)
|
if ($fallback)
|
||||||
{
|
{
|
||||||
$result->set($action->name, $user->authorise($action->name, 'com_###component###'));
|
// if item/category blocks access then don't fall back on global
|
||||||
|
if ((($area === 'item') && !$permission) || (($area === 'category') && !$catpermission))
|
||||||
|
{
|
||||||
|
// do not allow
|
||||||
|
$result->set($action->name, false);
|
||||||
|
}
|
||||||
|
// Finally remember the global settings have the final say. (even if item allow)
|
||||||
|
// The local item permissions can block, but it can't open and override of global permissions.
|
||||||
|
// Since items are created by users and global permissions is set by system admin.
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$result->set($action->name, $user->authorise($action->name, 'com_' . $component));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if have an json string
|
* Filter the action permissions
|
||||||
*
|
*
|
||||||
* @input string The json string to check
|
* @param string $action The action to check
|
||||||
|
* @param array $targets The array of target actions
|
||||||
*
|
*
|
||||||
* @returns bool true on success
|
* @return boolean true if action should be filtered out
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
protected static function filterActions(&$view, &$action, &$targets)
|
||||||
|
{
|
||||||
|
foreach ($targets as $target)
|
||||||
|
{
|
||||||
|
if (strpos($action, $view . '.' . $target) !== false ||
|
||||||
|
strpos($action, 'core.' . $target) !== false)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if have an json string
|
||||||
|
*
|
||||||
|
* @input string The json string to check
|
||||||
|
*
|
||||||
|
* @returns bool true on success
|
||||||
**/
|
**/
|
||||||
public static function checkJson($string)
|
public static function checkJson($string)
|
||||||
{
|
{
|
||||||
@ -809,11 +831,11 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if have an object with a length
|
* Check if have an object with a length
|
||||||
*
|
*
|
||||||
* @input object The object to check
|
* @input object The object to check
|
||||||
*
|
*
|
||||||
* @returns bool true on success
|
* @returns bool true on success
|
||||||
**/
|
**/
|
||||||
public static function checkObject($object)
|
public static function checkObject($object)
|
||||||
{
|
{
|
||||||
@ -825,15 +847,15 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if have an array with a length
|
* Check if have an array with a length
|
||||||
*
|
*
|
||||||
* @input array The array to check
|
* @input array The array to check
|
||||||
*
|
*
|
||||||
* @returns bool true on success
|
* @returns bool/int number of items in array on success
|
||||||
**/
|
**/
|
||||||
public static function checkArray($array, $removeEmptyString = false)
|
public static function checkArray($array, $removeEmptyString = false)
|
||||||
{
|
{
|
||||||
if (isset($array) && is_array($array) && count((array)$array) > 0)
|
if (isset($array) && is_array($array) && ($nr = count((array)$array)) > 0)
|
||||||
{
|
{
|
||||||
// also make sure the empty strings are removed
|
// also make sure the empty strings are removed
|
||||||
if ($removeEmptyString)
|
if ($removeEmptyString)
|
||||||
@ -847,17 +869,17 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
return self::checkArray($array, false);
|
return self::checkArray($array, false);
|
||||||
}
|
}
|
||||||
return true;
|
return $nr;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if have a string with a length
|
* Check if have a string with a length
|
||||||
*
|
*
|
||||||
* @input string The string to check
|
* @input string The string to check
|
||||||
*
|
*
|
||||||
* @returns bool true on success
|
* @returns bool true on success
|
||||||
**/
|
**/
|
||||||
public static function checkString($string)
|
public static function checkString($string)
|
||||||
{
|
{
|
||||||
@ -869,10 +891,10 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if we are connected
|
* Check if we are connected
|
||||||
* Thanks https://stackoverflow.com/a/4860432/1429677
|
* Thanks https://stackoverflow.com/a/4860432/1429677
|
||||||
*
|
*
|
||||||
* @returns bool true on success
|
* @returns bool true on success
|
||||||
**/
|
**/
|
||||||
public static function isConnected()
|
public static function isConnected()
|
||||||
{
|
{
|
||||||
@ -894,11 +916,11 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Merge an array of array's
|
* Merge an array of array's
|
||||||
*
|
*
|
||||||
* @input array The arrays you would like to merge
|
* @input array The arrays you would like to merge
|
||||||
*
|
*
|
||||||
* @returns array on success
|
* @returns array on success
|
||||||
**/
|
**/
|
||||||
public static function mergeArrays($arrays)
|
public static function mergeArrays($arrays)
|
||||||
{
|
{
|
||||||
@ -924,11 +946,11 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shorten a string
|
* Shorten a string
|
||||||
*
|
*
|
||||||
* @input string The you would like to shorten
|
* @input string The you would like to shorten
|
||||||
*
|
*
|
||||||
* @returns string on success
|
* @returns string on success
|
||||||
**/
|
**/
|
||||||
public static function shorten($string, $length = 40, $addTip = true)
|
public static function shorten($string, $length = 40, $addTip = true)
|
||||||
{
|
{
|
||||||
@ -965,13 +987,13 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Making strings safe (various ways)
|
* Making strings safe (various ways)
|
||||||
*
|
*
|
||||||
* @input string The you would like to make safe
|
* @input string The you would like to make safe
|
||||||
*
|
*
|
||||||
* @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 +1022,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);
|
||||||
$string = preg_replace("/[^A-Za-z ]/", '', $string);
|
// remove all and keep only characters
|
||||||
|
if ($keepOnlyCharacters)
|
||||||
|
{
|
||||||
|
$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')
|
||||||
{
|
{
|
||||||
@ -1100,11 +1131,11 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert an integer into an English word string
|
* Convert an integer into an English word string
|
||||||
* Thanks to Tom Nicholson <http://php.net/manual/en/function.strval.php#41988>
|
* Thanks to Tom Nicholson <http://php.net/manual/en/function.strval.php#41988>
|
||||||
*
|
*
|
||||||
* @input an int
|
* @input an int
|
||||||
* @returns a string
|
* @returns a string
|
||||||
**/
|
**/
|
||||||
public static function numberToString($x)
|
public static function numberToString($x)
|
||||||
{
|
{
|
||||||
@ -1191,9 +1222,9 @@ abstract class ###Component###Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Random Key
|
* Random Key
|
||||||
*
|
*
|
||||||
* @returns a string
|
* @returns a string
|
||||||
**/
|
**/
|
||||||
public static function randomkey($size)
|
public static function randomkey($size)
|
||||||
{
|
{
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,23 +17,32 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import Joomla controlleradmin library
|
|
||||||
jimport('joomla.application.component.controlleradmin');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Views### Controller
|
* ###Views### Controller
|
||||||
*/
|
*/
|
||||||
class ###Component###Controller###Views### extends JControllerAdmin
|
class ###Component###Controller###Views### extends JControllerAdmin
|
||||||
{
|
{
|
||||||
protected $text_prefix = 'COM_###COMPONENT###_###VIEWS###';
|
|
||||||
/**
|
/**
|
||||||
* Proxy for getModel.
|
* The prefix to use with controller messages.
|
||||||
* @since 2.5
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function getModel($name = '###View###', $prefix = '###Component###Model', $config = array())
|
protected $text_prefix = 'COM_###COMPONENT###_###VIEWS###';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get a model object, loading it if required.
|
||||||
|
*
|
||||||
|
* @param string $name The model name. Optional.
|
||||||
|
* @param string $prefix The class prefix. Optional.
|
||||||
|
* @param array $config Configuration array for model. Optional.
|
||||||
|
*
|
||||||
|
* @return JModelLegacy The model.
|
||||||
|
*
|
||||||
|
* @since 1.6
|
||||||
|
*/
|
||||||
|
public function getModel($name = '###View###', $prefix = '###Component###Model', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
|
return parent::getModel($name, $prefix, $config);
|
||||||
|
}###CONTROLLEREXIMPORTMETHOD######CUSTOM_ADMIN_DYNAMIC_BUTTONS_CONTROLLER######ADMIN_CUSTOM_BUTTONS_CONTROLLER_LIST###
|
||||||
return $model;
|
|
||||||
}###CONTROLLEREXIMPORTMETHOD### ###CUSTOM_ADMIN_DYNAMIC_BUTTONS_CONTROLLER### ###ADMIN_CUSTOM_BUTTONS_CONTROLLER_LIST###
|
|
||||||
}
|
}
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import Joomla controlleradmin library
|
|
||||||
jimport('joomla.application.component.controlleradmin');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###SViews### Controller
|
* ###SViews### Controller
|
||||||
*/
|
*/
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import Joomla controllerform library
|
|
||||||
jimport('joomla.application.component.controllerform');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###View### Controller
|
* ###View### Controller
|
||||||
*/
|
*/
|
||||||
@ -46,6 +31,13 @@ class ###Component###Controller###View### extends JControllerForm
|
|||||||
*/
|
*/
|
||||||
protected $task;
|
protected $task;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class constructor.
|
||||||
|
*
|
||||||
|
* @param array $config A named array of configuration variables.
|
||||||
|
*
|
||||||
|
* @since 1.6
|
||||||
|
*/
|
||||||
public function __construct($config = array())
|
public function __construct($config = array())
|
||||||
{
|
{
|
||||||
$this->view_list = '###Views###'; // safeguard for setting the return view listing to the main view.
|
$this->view_list = '###Views###'; // safeguard for setting the return view listing to the main view.
|
||||||
@ -87,42 +79,25 @@ class ###Component###Controller###View### extends JControllerForm
|
|||||||
*
|
*
|
||||||
* @return string The arguments to append to the redirect URL.
|
* @return string The arguments to append to the redirect URL.
|
||||||
*
|
*
|
||||||
* @since 12.2
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
$tmpl = $this->input->get('tmpl');
|
// get the referral options (old method use return instead see parent)
|
||||||
$layout = $this->input->get('layout', 'edit', 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
// get redirect info.
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
// Setup redirect info.
|
// set the referral options
|
||||||
|
if ($refid && $ref)
|
||||||
$append = '';
|
|
||||||
|
|
||||||
if ($refid)
|
|
||||||
{
|
{
|
||||||
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
|
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
|
||||||
}
|
}
|
||||||
elseif ($ref)
|
elseif ($ref)
|
||||||
{
|
{
|
||||||
$append .= '&ref='.(string)$ref;
|
$append = '&ref='. (string)$ref . $append;
|
||||||
}
|
|
||||||
|
|
||||||
if ($tmpl)
|
|
||||||
{
|
|
||||||
$append .= '&tmpl=' . $tmpl;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($layout)
|
|
||||||
{
|
|
||||||
$append .= '&layout=' . $layout;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($recordId)
|
|
||||||
{
|
|
||||||
$append .= '&' . $urlVar . '=' . $recordId;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $append;
|
return $append;
|
||||||
@ -161,43 +136,45 @@ class ###Component###Controller###View### extends JControllerForm
|
|||||||
*/
|
*/
|
||||||
public function cancel($key = null)
|
public function cancel($key = null)
|
||||||
{
|
{
|
||||||
// get the referal details
|
// get the referral options
|
||||||
$this->ref = $this->input->get('ref', 0, 'word');
|
$this->ref = $this->input->get('ref', 0, 'word');
|
||||||
$this->refid = $this->input->get('refid', 0, 'int');
|
$this->refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
|
// Check if there is a return value
|
||||||
|
$return = $this->input->get('return', null, 'base64');
|
||||||
|
|
||||||
$cancel = parent::cancel($key);
|
$cancel = parent::cancel($key);
|
||||||
|
|
||||||
if ($cancel)
|
if (!is_null($return) && JUri::isInternal(base64_decode($return)))
|
||||||
{
|
{
|
||||||
if ($this->refid)
|
$redirect = base64_decode($return);
|
||||||
{
|
|
||||||
$redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid;
|
|
||||||
|
|
||||||
// Redirect to the item screen.
|
// Redirect to the return value.
|
||||||
$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(
|
$this->setRedirect(
|
||||||
JRoute::_(
|
JRoute::_(
|
||||||
'index.php?option=' . $this->option . '&view=' . $this->view_list, false
|
$redirect, false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
elseif ($this->refid && $this->ref)
|
||||||
|
{
|
||||||
|
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
|
||||||
|
|
||||||
|
// Redirect to the item screen.
|
||||||
|
$this->setRedirect(
|
||||||
|
JRoute::_(
|
||||||
|
'index.php?option=' . $this->option . $redirect, false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
elseif ($this->ref)
|
||||||
|
{
|
||||||
|
$redirect = '&view='.(string)$this->ref;
|
||||||
|
|
||||||
|
// Redirect to the list screen.
|
||||||
|
$this->setRedirect(
|
||||||
|
JRoute::_(
|
||||||
|
'index.php?option=' . $this->option . $redirect, false
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -216,11 +193,15 @@ class ###Component###Controller###View### extends JControllerForm
|
|||||||
*/
|
*/
|
||||||
public function save($key = null, $urlVar = null)
|
public function save($key = null, $urlVar = null)
|
||||||
{
|
{
|
||||||
// get the referal details
|
// get the referral options
|
||||||
$this->ref = $this->input->get('ref', 0, 'word');
|
$this->ref = $this->input->get('ref', 0, 'word');
|
||||||
$this->refid = $this->input->get('refid', 0, 'int');
|
$this->refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
if ($this->ref || $this->refid)
|
// Check if there is a return value
|
||||||
|
$return = $this->input->get('return', null, 'base64');
|
||||||
|
$canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return)));
|
||||||
|
|
||||||
|
if ($this->ref || $this->refid || $canReturn)
|
||||||
{
|
{
|
||||||
// to make sure the item is checkedin on redirect
|
// to make sure the item is checkedin on redirect
|
||||||
$this->task = 'save';
|
$this->task = 'save';
|
||||||
@ -228,9 +209,22 @@ class ###Component###Controller###View### extends JControllerForm
|
|||||||
|
|
||||||
$saved = parent::save($key, $urlVar);
|
$saved = parent::save($key, $urlVar);
|
||||||
|
|
||||||
if ($this->refid && $saved)
|
// This is not needed since parent save already does this
|
||||||
|
// Due to the ref and refid implementation we need to add this
|
||||||
|
if ($canReturn)
|
||||||
{
|
{
|
||||||
$redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid;
|
$redirect = base64_decode($return);
|
||||||
|
|
||||||
|
// Redirect to the return value.
|
||||||
|
$this->setRedirect(
|
||||||
|
JRoute::_(
|
||||||
|
$redirect, false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
elseif ($this->refid && $this->ref)
|
||||||
|
{
|
||||||
|
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
|
||||||
|
|
||||||
// Redirect to the item screen.
|
// Redirect to the item screen.
|
||||||
$this->setRedirect(
|
$this->setRedirect(
|
||||||
@ -239,9 +233,9 @@ class ###Component###Controller###View### extends JControllerForm
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
elseif ($this->ref && $saved)
|
elseif ($this->ref)
|
||||||
{
|
{
|
||||||
$redirect = '&view='.(string)$this->ref;
|
$redirect = '&view=' . (string)$this->ref;
|
||||||
|
|
||||||
// Redirect to the list screen.
|
// Redirect to the list screen.
|
||||||
$this->setRedirect(
|
$this->setRedirect(
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import Joomla controllerform library
|
|
||||||
jimport('joomla.application.component.controller');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### ###SView### Controller
|
* ###Component### ###SView### Controller
|
||||||
*/
|
*/
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import Joomla controllerform library
|
|
||||||
jimport('joomla.application.component.controllerform');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###View### Controller
|
* ###View### Controller
|
||||||
*/
|
*/
|
||||||
@ -46,6 +31,13 @@ class ###Component###Controller###View### extends JControllerForm
|
|||||||
*/
|
*/
|
||||||
protected $task;
|
protected $task;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class constructor.
|
||||||
|
*
|
||||||
|
* @param array $config A named array of configuration variables.
|
||||||
|
*
|
||||||
|
* @since 1.6
|
||||||
|
*/
|
||||||
public function __construct($config = array())
|
public function __construct($config = array())
|
||||||
{
|
{
|
||||||
$this->view_list = '###SITE_DEFAULT_VIEW###'; // safeguard for setting the return view listing to the default site view.
|
$this->view_list = '###SITE_DEFAULT_VIEW###'; // safeguard for setting the return view listing to the default site view.
|
||||||
@ -87,42 +79,25 @@ class ###Component###Controller###View### extends JControllerForm
|
|||||||
*
|
*
|
||||||
* @return string The arguments to append to the redirect URL.
|
* @return string The arguments to append to the redirect URL.
|
||||||
*
|
*
|
||||||
* @since 12.2
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
$tmpl = $this->input->get('tmpl');
|
// get the referral options (old method use return instead see parent)
|
||||||
$layout = $this->input->get('layout', 'edit', 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
// get redirect info.
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
// Setup redirect info.
|
// set the referral options
|
||||||
|
if ($refid && $ref)
|
||||||
$append = '';
|
{
|
||||||
|
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
|
||||||
if ($refid)
|
|
||||||
{
|
|
||||||
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
|
|
||||||
}
|
}
|
||||||
elseif ($ref)
|
elseif ($ref)
|
||||||
{
|
{
|
||||||
$append .= '&ref='.(string)$ref;
|
$append = '&ref='. (string)$ref . $append;
|
||||||
}
|
|
||||||
|
|
||||||
if ($tmpl)
|
|
||||||
{
|
|
||||||
$append .= '&tmpl=' . $tmpl;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($layout)
|
|
||||||
{
|
|
||||||
$append .= '&layout=' . $layout;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($recordId)
|
|
||||||
{
|
|
||||||
$append .= '&' . $urlVar . '=' . $recordId;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $append;
|
return $append;
|
||||||
@ -161,43 +136,45 @@ class ###Component###Controller###View### extends JControllerForm
|
|||||||
*/
|
*/
|
||||||
public function cancel($key = null)
|
public function cancel($key = null)
|
||||||
{
|
{
|
||||||
// get the referal details
|
// get the referral options
|
||||||
$this->ref = $this->input->get('ref', 0, 'word');
|
$this->ref = $this->input->get('ref', 0, 'word');
|
||||||
$this->refid = $this->input->get('refid', 0, 'int');
|
$this->refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
|
// Check if there is a return value
|
||||||
|
$return = $this->input->get('return', null, 'base64');
|
||||||
|
|
||||||
$cancel = parent::cancel($key);
|
$cancel = parent::cancel($key);
|
||||||
|
|
||||||
if ($cancel)
|
if (!is_null($return) && JUri::isInternal(base64_decode($return)))
|
||||||
{
|
{
|
||||||
if ($this->refid)
|
$redirect = base64_decode($return);
|
||||||
{
|
|
||||||
$redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid;
|
|
||||||
|
|
||||||
// Redirect to the item screen.
|
// Redirect to the return value.
|
||||||
$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(
|
$this->setRedirect(
|
||||||
JRoute::_(
|
JRoute::_(
|
||||||
'index.php?option=' . $this->option . '&view=' . $this->view_list, false
|
$redirect, false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
elseif ($this->refid && $this->ref)
|
||||||
|
{
|
||||||
|
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
|
||||||
|
|
||||||
|
// Redirect to the item screen.
|
||||||
|
$this->setRedirect(
|
||||||
|
JRoute::_(
|
||||||
|
'index.php?option=' . $this->option . $redirect, false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
elseif ($this->ref)
|
||||||
|
{
|
||||||
|
$redirect = '&view=' . (string)$this->ref;
|
||||||
|
|
||||||
|
// Redirect to the list screen.
|
||||||
|
$this->setRedirect(
|
||||||
|
JRoute::_(
|
||||||
|
'index.php?option=' . $this->option . $redirect, false
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -216,11 +193,15 @@ class ###Component###Controller###View### extends JControllerForm
|
|||||||
*/
|
*/
|
||||||
public function save($key = null, $urlVar = null)
|
public function save($key = null, $urlVar = null)
|
||||||
{
|
{
|
||||||
// get the referal details
|
// get the referral options
|
||||||
$this->ref = $this->input->get('ref', 0, 'word');
|
$this->ref = $this->input->get('ref', 0, 'word');
|
||||||
$this->refid = $this->input->get('refid', 0, 'int');
|
$this->refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
if ($this->ref || $this->refid)
|
// Check if there is a return value
|
||||||
|
$return = $this->input->get('return', null, 'base64');
|
||||||
|
$canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return)));
|
||||||
|
|
||||||
|
if ($this->ref || $this->refid || $canReturn)
|
||||||
{
|
{
|
||||||
// to make sure the item is checkedin on redirect
|
// to make sure the item is checkedin on redirect
|
||||||
$this->task = 'save';
|
$this->task = 'save';
|
||||||
@ -228,9 +209,22 @@ class ###Component###Controller###View### extends JControllerForm
|
|||||||
|
|
||||||
$saved = parent::save($key, $urlVar);
|
$saved = parent::save($key, $urlVar);
|
||||||
|
|
||||||
if ($this->refid && $saved)
|
// This is not needed since parent save already does this
|
||||||
|
// Due to the ref and refid implementation we need to add this
|
||||||
|
if ($canReturn)
|
||||||
{
|
{
|
||||||
$redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid;
|
$redirect = base64_decode($return);
|
||||||
|
|
||||||
|
// Redirect to the return value.
|
||||||
|
$this->setRedirect(
|
||||||
|
JRoute::_(
|
||||||
|
$redirect, false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
elseif ($this->refid && $this->ref)
|
||||||
|
{
|
||||||
|
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
|
||||||
|
|
||||||
// Redirect to the item screen.
|
// Redirect to the item screen.
|
||||||
$this->setRedirect(
|
$this->setRedirect(
|
||||||
@ -239,9 +233,9 @@ class ###Component###Controller###View### extends JControllerForm
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
elseif ($this->ref && $saved)
|
elseif ($this->ref)
|
||||||
{
|
{
|
||||||
$redirect = '&view='.(string)$this->ref;
|
$redirect = '&view=' . (string)$this->ref;
|
||||||
|
|
||||||
// Redirect to the list screen.
|
// Redirect to the list screen.
|
||||||
$this->setRedirect(
|
$this->setRedirect(
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import Joomla controller library
|
|
||||||
jimport('joomla.application.component.controller');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* General Controller of ###Component### component
|
* General Controller of ###Component### component
|
||||||
*/
|
*/
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import Joomla controllerform library
|
|
||||||
jimport('joomla.application.component.controller');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### Ajax Controller
|
* ###Component### Ajax Controller
|
||||||
*/
|
*/
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import Joomla controllerform library
|
|
||||||
jimport('joomla.application.component.controller');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### Ajax Controller
|
* ###Component### Ajax Controller
|
||||||
*/
|
*/
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import Joomla controllerform library
|
|
||||||
jimport('joomla.application.component.controller');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### Help Controller
|
* ###Component### Help Controller
|
||||||
*/
|
*/
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import Joomla controllerform library
|
|
||||||
jimport('joomla.application.component.controller');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### Help Controller
|
* ###Component### Help Controller
|
||||||
*/
|
*/
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import Joomla controller library
|
|
||||||
jimport('joomla.application.component.controller');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### Component Controller
|
* ###Component### Component Controller
|
||||||
*/
|
*/
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import Joomla controllerform library
|
|
||||||
jimport('joomla.application.component.controller');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### ###SView### Controller
|
* ###Component### ###SView### Controller
|
||||||
*/
|
*/
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -48,9 +36,9 @@ class JFormField###Type### extends JFormFieldCheckboxes
|
|||||||
/**
|
/**
|
||||||
* Method to get a list of options for a list input.
|
* Method to get a list of options for a list input.
|
||||||
*
|
*
|
||||||
* @return array An array of JHtml options.
|
* @return array An array of JHtml options.
|
||||||
*/
|
*/
|
||||||
public function getOptions()
|
protected function getOptions()
|
||||||
{
|
{
|
||||||
###JFORM_GETOPTIONS_PHP###
|
###JFORM_GETOPTIONS_PHP###
|
||||||
}
|
}
|
||||||
|
35
admin/compiler/joomla_3/JFormFieldCustom.php
Normal file
35
admin/compiler/joomla_3/JFormFieldCustom.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');
|
||||||
|
?>
|
||||||
|
###BOM###
|
||||||
|
|
||||||
|
// No direct access to this file
|
||||||
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// import the ###JFORM_extends### field type
|
||||||
|
jimport('joomla.form.helper');
|
||||||
|
JFormHelper::loadFieldClass('###JFORM_extends###');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ###Type### Form Field class for the ###Component### component
|
||||||
|
*/
|
||||||
|
class JFormField###Type### extends JFormField###JFORM_EXTENDS###
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The ###type### field type.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $type = '###type###';###JFORM_TYPE_PHP###
|
||||||
|
}
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -48,9 +36,9 @@ class JFormField###Type### extends JFormFieldList
|
|||||||
/**
|
/**
|
||||||
* Method to get a list of options for a list input.
|
* Method to get a list of options for a list input.
|
||||||
*
|
*
|
||||||
* @return array An array of JHtml options.
|
* @return array An array of JHtml options.
|
||||||
*/
|
*/
|
||||||
public function getOptions()
|
protected function getOptions()
|
||||||
{
|
{
|
||||||
###JFORM_GETOPTIONS_PHP###
|
###JFORM_GETOPTIONS_PHP###
|
||||||
}
|
}
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -48,9 +36,9 @@ class JFormField###Type### extends JFormFieldRadio
|
|||||||
/**
|
/**
|
||||||
* Method to get a list of options for a list input.
|
* Method to get a list of options for a list input.
|
||||||
*
|
*
|
||||||
* @return array An array of JHtml options.
|
* @return array An array of JHtml options.
|
||||||
*/
|
*/
|
||||||
public function getOptions()
|
protected function getOptions()
|
||||||
{
|
{
|
||||||
###JFORM_GETOPTIONS_PHP###
|
###JFORM_GETOPTIONS_PHP###
|
||||||
}
|
}
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -31,9 +19,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
use Joomla\Registry\Registry;
|
use Joomla\Registry\Registry;
|
||||||
|
|
||||||
// import Joomla modelform library
|
|
||||||
jimport('joomla.application.component.modeladmin');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### ###View### Model
|
* ###Component### ###View### Model
|
||||||
*/
|
*/
|
||||||
@ -66,6 +51,9 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
*/
|
*/
|
||||||
public function getTable($type = '###view###', $prefix = '###Component###Table', $config = array())
|
public function getTable($type = '###view###', $prefix = '###Component###Table', $config = array())
|
||||||
{
|
{
|
||||||
|
// add table path for when model gets used from other component
|
||||||
|
$this->addTablePath(JPATH_ADMINISTRATOR . '/components/com_###component###/tables');
|
||||||
|
// get instance of the table
|
||||||
return JTable::getInstance($type, $prefix, $config);
|
return JTable::getInstance($type, $prefix, $config);
|
||||||
}###ADMIN_CUSTOM_BUTTONS_METHOD###
|
}###ADMIN_CUSTOM_BUTTONS_METHOD###
|
||||||
|
|
||||||
@ -106,20 +94,23 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
}###LINKEDVIEWGLOBAL###
|
}###LINKEDVIEWGLOBAL###
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}###LINKEDVIEWMETHODS### ###LICENSE_LOCKED_SET_BOOL###
|
}###LINKEDVIEWMETHODS######LICENSE_LOCKED_SET_BOOL###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
*
|
*
|
||||||
* @param array $data Data for the form.
|
* @param array $data Data for the form.
|
||||||
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
|
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
|
||||||
|
* @param array $options Optional array of options for the form creation.
|
||||||
*
|
*
|
||||||
* @return mixed A JForm object on success, false on failure
|
* @return mixed A JForm object on success, false on failure
|
||||||
*
|
*
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function getForm($data = array(), $loadData = true)
|
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
|
||||||
{###JMODELADMIN_GETFORM###
|
{
|
||||||
|
// set load data option
|
||||||
|
$options['load_data'] = $loadData;###JMODELADMIN_GETFORM###
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -247,7 +238,7 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}###VALIDATIONFIX### ###UNIQUEFIELDS###
|
}###VALIDATIONFIX######UNIQUEFIELDS###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to delete one or more records.
|
* Method to delete one or more records.
|
||||||
@ -382,7 +373,7 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}###MODEL_BATCH_COPY### ###MODEL_BATCH_MOVE###
|
}###MODEL_BATCH_COPY######MODEL_BATCH_MOVE###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to save the form data.
|
* Method to save the form data.
|
||||||
@ -406,7 +397,7 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}###CHECKBOX_SAVE### ###METHOD_ITEM_SAVE###
|
}###CHECKBOX_SAVE######METHOD_ITEM_SAVE###
|
||||||
|
|
||||||
// Set the Params Items to data
|
// Set the Params Items to data
|
||||||
if (isset($data['params']) && is_array($data['params']))
|
if (isset($data['params']) && is_array($data['params']))
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -31,9 +19,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
use Joomla\Registry\Registry;
|
use Joomla\Registry\Registry;
|
||||||
|
|
||||||
// import Joomla modelform library
|
|
||||||
jimport('joomla.application.component.modeladmin');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### ###View### Model
|
* ###Component### ###View### Model
|
||||||
*/
|
*/
|
||||||
@ -66,6 +51,9 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
*/
|
*/
|
||||||
public function getTable($type = '###view###', $prefix = '###Component###Table', $config = array())
|
public function getTable($type = '###view###', $prefix = '###Component###Table', $config = array())
|
||||||
{
|
{
|
||||||
|
// add table path for when model gets used from other component
|
||||||
|
$this->addTablePath(JPATH_ADMINISTRATOR . '/components/com_###component###/tables');
|
||||||
|
// get instance of the table
|
||||||
return JTable::getInstance($type, $prefix, $config);
|
return JTable::getInstance($type, $prefix, $config);
|
||||||
}###ADMIN_CUSTOM_BUTTONS_METHOD###
|
}###ADMIN_CUSTOM_BUTTONS_METHOD###
|
||||||
|
|
||||||
@ -106,20 +94,23 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
}###LINKEDVIEWGLOBAL###
|
}###LINKEDVIEWGLOBAL###
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}###LINKEDVIEWMETHODS### ###LICENSE_LOCKED_SET_BOOL###
|
}###LINKEDVIEWMETHODS######LICENSE_LOCKED_SET_BOOL###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
*
|
*
|
||||||
* @param array $data Data for the form.
|
* @param array $data Data for the form.
|
||||||
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
|
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
|
||||||
|
* @param array $options Optional array of options for the form creation.
|
||||||
*
|
*
|
||||||
* @return mixed A JForm object on success, false on failure
|
* @return mixed A JForm object on success, false on failure
|
||||||
*
|
*
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function getForm($data = array(), $loadData = true)
|
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
|
||||||
{###JMODELADMIN_GETFORM###
|
{
|
||||||
|
// set load data option
|
||||||
|
$options['load_data'] = $loadData;###JMODELADMIN_GETFORM###
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -247,7 +238,7 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}###VALIDATIONFIX### ###UNIQUEFIELDS###
|
}###VALIDATIONFIX######UNIQUEFIELDS###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to delete one or more records.
|
* Method to delete one or more records.
|
||||||
@ -382,7 +373,7 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}###MODEL_BATCH_COPY### ###MODEL_BATCH_MOVE###
|
}###MODEL_BATCH_COPY######MODEL_BATCH_MOVE###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to save the form data.
|
* Method to save the form data.
|
||||||
@ -406,7 +397,7 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}###CHECKBOX_SAVE### ###METHOD_ITEM_SAVE###
|
}###CHECKBOX_SAVE######METHOD_ITEM_SAVE###
|
||||||
|
|
||||||
// Set the Params Items to data
|
// Set the Params Items to data
|
||||||
if (isset($data['params']) && is_array($data['params']))
|
if (isset($data['params']) && is_array($data['params']))
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import Joomla modelitem library
|
|
||||||
jimport('joomla.application.component.modelitem');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### ###SView### Model
|
* ###Component### ###SView### Model
|
||||||
*/
|
*/
|
||||||
@ -138,5 +123,5 @@ class ###Component###Model###SView### extends JModelItem
|
|||||||
}###CUSTOM_ADMIN_AFTER_GET_ITEM###
|
}###CUSTOM_ADMIN_AFTER_GET_ITEM###
|
||||||
|
|
||||||
return $this->_item[$pk];
|
return $this->_item[$pk];
|
||||||
}###CUSTOM_ADMIN_CUSTOM_METHODS### ###LICENSE_LOCKED_SET_BOOL### ###CUSTOM_ADMIN_CUSTOM_BUTTONS_METHOD###
|
}###CUSTOM_ADMIN_CUSTOM_METHODS######LICENSE_LOCKED_SET_BOOL######CUSTOM_ADMIN_CUSTOM_BUTTONS_METHOD###
|
||||||
}
|
}
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import Joomla modelitem library
|
|
||||||
jimport('joomla.application.component.modelitem');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### ###SView### Model
|
* ###Component### ###SView### Model
|
||||||
*/
|
*/
|
||||||
@ -131,5 +116,5 @@ class ###Component###Model###SView### extends JModelItem
|
|||||||
}###SITE_AFTER_GET_ITEM###
|
}###SITE_AFTER_GET_ITEM###
|
||||||
|
|
||||||
return $this->_item[$pk];
|
return $this->_item[$pk];
|
||||||
}###LICENSE_LOCKED_SET_BOOL### ###SITE_CUSTOM_METHODS### ###SITE_CUSTOM_BUTTONS_METHOD### ###SITE_CUSTOM_GET_FORM_METHOD###
|
}###LICENSE_LOCKED_SET_BOOL######SITE_CUSTOM_METHODS######SITE_CUSTOM_BUTTONS_METHOD###
|
||||||
}
|
}
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import the Joomla modellist library
|
|
||||||
jimport('joomla.application.component.modellist');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Views### Model
|
* ###Views### Model
|
||||||
*/
|
*/
|
||||||
@ -93,9 +78,9 @@ class ###Component###Model###Views### extends JModelList
|
|||||||
* @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 getItems()
|
public function getItems()
|
||||||
{###LICENSE_LOCKED_CHECK### ###CHECKINCALL###
|
{###LICENSE_LOCKED_CHECK######CHECKINCALL###
|
||||||
// load parent items
|
// load parent items
|
||||||
$items = parent::getItems();###GET_ITEMS_METHOD_STRING_FIX### ###SELECTIONTRANSLATIONFIX### ###GET_ITEMS_METHOD_AFTER_ALL###
|
$items = parent::getItems();###GET_ITEMS_METHOD_STRING_FIX######SELECTIONTRANSLATIONFIX######GET_ITEMS_METHOD_AFTER_ALL###
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -109,7 +94,7 @@ class ###Component###Model###Views### extends JModelList
|
|||||||
protected function getListQuery()
|
protected function getListQuery()
|
||||||
{###LICENSE_LOCKED_CHECK###
|
{###LICENSE_LOCKED_CHECK###
|
||||||
###LISTQUERY###
|
###LISTQUERY###
|
||||||
}###MODELEXPORTMETHOD### ###LICENSE_LOCKED_SET_BOOL###
|
}###MODELEXPORTMETHOD######LICENSE_LOCKED_SET_BOOL###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,8 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
jimport('joomla.application.component.helper');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### Ajax Model
|
* ###Component### Ajax Model
|
||||||
*/
|
*/
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import the Joomla modellist library
|
|
||||||
jimport('joomla.application.component.modellist');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### Model for ###SViews###
|
* ###Component### Model for ###SViews###
|
||||||
*/
|
*/
|
||||||
@ -86,14 +71,14 @@ class ###Component###Model###SViews### extends JModelList
|
|||||||
// redirect away if not a correct (TODO for now we go to default view)
|
// redirect away if not a correct (TODO for now we go to default view)
|
||||||
$app->redirect('index.php?option=com_###component###');
|
$app->redirect('index.php?option=com_###component###');
|
||||||
return false;
|
return false;
|
||||||
}###LICENSE_LOCKED_CHECK### ###CUSTOM_ADMIN_BEFORE_GET_ITEMS###
|
}###LICENSE_LOCKED_CHECK######CUSTOM_ADMIN_BEFORE_GET_ITEMS###
|
||||||
// load parent items
|
// load parent items
|
||||||
$items = parent::getItems();
|
$items = parent::getItems();
|
||||||
|
|
||||||
// Get the global params
|
// Get the global params
|
||||||
$globalParams = JComponentHelper::getParams('com_###component###', true);###CUSTOM_ADMIN_GET_ITEMS### ###CUSTOM_ADMIN_AFTER_GET_ITEMS###
|
$globalParams = JComponentHelper::getParams('com_###component###', true);###CUSTOM_ADMIN_GET_ITEMS######CUSTOM_ADMIN_AFTER_GET_ITEMS###
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
}###CUSTOM_ADMIN_CUSTOM_METHODS### ###LICENSE_LOCKED_SET_BOOL### ###CUSTOM_ADMIN_CUSTOM_BUTTONS_METHOD###
|
}###CUSTOM_ADMIN_CUSTOM_METHODS######LICENSE_LOCKED_SET_BOOL######CUSTOM_ADMIN_CUSTOM_BUTTONS_METHOD###
|
||||||
}
|
}
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import the Joomla modellist library
|
|
||||||
jimport('joomla.application.component.modellist');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### Model for ###SViews###
|
* ###Component### Model for ###SViews###
|
||||||
*/
|
*/
|
||||||
@ -77,14 +62,14 @@ class ###Component###Model###SViews### extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
$user = JFactory::getUser();###USER_PERMISSION_CHECK_ACCESS### ###LICENSE_LOCKED_CHECK### ###SITE_BEFORE_GET_ITEMS###
|
$user = JFactory::getUser();###USER_PERMISSION_CHECK_ACCESS######LICENSE_LOCKED_CHECK######SITE_BEFORE_GET_ITEMS###
|
||||||
// load parent items
|
// load parent items
|
||||||
$items = parent::getItems();
|
$items = parent::getItems();
|
||||||
|
|
||||||
// Get the global params
|
// Get the global params
|
||||||
$globalParams = JComponentHelper::getParams('com_###component###', true);###SITE_GET_ITEMS### ###SITE_AFTER_GET_ITEMS###
|
$globalParams = JComponentHelper::getParams('com_###component###', true);###SITE_GET_ITEMS######SITE_AFTER_GET_ITEMS###
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
}###LICENSE_LOCKED_SET_BOOL### ###SITE_CUSTOM_METHODS### ###SITE_CUSTOM_BUTTONS_METHOD### ###SITE_CUSTOM_GET_FORM_METHOD###
|
}###LICENSE_LOCKED_SET_BOOL######SITE_CUSTOM_METHODS######SITE_CUSTOM_BUTTONS_METHOD###
|
||||||
}
|
}
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -31,9 +19,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
use Joomla\Registry\Registry;
|
use Joomla\Registry\Registry;
|
||||||
|
|
||||||
// import Joomla table library
|
|
||||||
jimport('joomla.database.table');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Views### Table class
|
* ###Views### Table class
|
||||||
*/
|
*/
|
||||||
@ -54,7 +39,7 @@ class ###Component###Table###View### extends JTable
|
|||||||
*/
|
*/
|
||||||
function __construct(&$db)
|
function __construct(&$db)
|
||||||
{
|
{
|
||||||
parent::__construct('#__###component###_###view###', 'id', $db);###JTABLECONSTRUCTOR### ###LICENSE_LOCKED_CHECK###
|
parent::__construct('#__###component###_###view###', 'id', $db);###JTABLECONSTRUCTOR######LICENSE_LOCKED_CHECK###
|
||||||
}
|
}
|
||||||
|
|
||||||
public function bind($array, $ignore = '')
|
public function bind($array, $ignore = '')
|
||||||
@ -237,7 +222,7 @@ class ###Component###Table###View### extends JTable
|
|||||||
{
|
{
|
||||||
// asset alread set so use saved rules
|
// asset alread set so use saved rules
|
||||||
$assetId = (int) $db->loadResult();
|
$assetId = (int) $db->loadResult();
|
||||||
return JAccess::getAssetRules($assetId);
|
return JAccess::getAssetRules($assetId); // (TODO) instead of keeping inherited Allowed it becomes Allowed.
|
||||||
}
|
}
|
||||||
// try again
|
// try again
|
||||||
elseif ($try)
|
elseif ($try)
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,10 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access'); ###LICENSE_LOCKED_DEFINED###
|
defined('_JEXEC') or die('Restricted access'); ###LICENSE_LOCKED_DEFINED######CUSTOM_ADMIN_GET_MODULE_JIMPORT###
|
||||||
|
|
||||||
// import Joomla view library
|
|
||||||
jimport('joomla.application.component.view');###CUSTOM_ADMIN_GET_MODULE_JIMPORT###
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### View class for the ###SView###
|
* ###Component### View class for the ###SView###
|
||||||
@ -54,9 +39,9 @@ class ###Component###View###SView### extends JViewLegacy
|
|||||||
* Prepares the document
|
* Prepares the document
|
||||||
*/
|
*/
|
||||||
protected function setDocument()
|
protected function setDocument()
|
||||||
{###CUSTOM_ADMIN_LIBRARIES_LOADER### ###CUSTOM_ADMIN_DOCUMENT_METADATA### ###CUSTOM_ADMIN_UIKIT_LOADER### ###CUSTOM_ADMIN_GOOGLECHART_LOADER### ###CUSTOM_ADMIN_FOOTABLE_LOADER### ###CUSTOM_ADMIN_DOCUMENT_CUSTOM_PHP###
|
{###CUSTOM_ADMIN_LIBRARIES_LOADER######CUSTOM_ADMIN_DOCUMENT_METADATA######CUSTOM_ADMIN_UIKIT_LOADER######CUSTOM_ADMIN_GOOGLECHART_LOADER######CUSTOM_ADMIN_FOOTABLE_LOADER######CUSTOM_ADMIN_DOCUMENT_CUSTOM_PHP###
|
||||||
// add the document default css file
|
// add the document default css file
|
||||||
$this->document->addStyleSheet(JURI::root(true) .'/administrator/components/com_###component###/assets/css/###sview###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###CUSTOM_ADMIN_DOCUMENT_CUSTOM_CSS### ###CUSTOM_ADMIN_DOCUMENT_CUSTOM_JS###
|
$this->document->addStyleSheet(JURI::root(true) .'/administrator/components/com_###component###/assets/css/###sview###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###CUSTOM_ADMIN_DOCUMENT_CUSTOM_CSS######CUSTOM_ADMIN_DOCUMENT_CUSTOM_JS###
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
||||||
|
|
||||||
// import Joomla view library
|
|
||||||
jimport('joomla.application.component.view');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###View### View class
|
* ###View### View class
|
||||||
*/
|
*/
|
||||||
@ -43,27 +28,37 @@ class ###Component###View###View### extends JViewLegacy
|
|||||||
*/
|
*/
|
||||||
public function display($tpl = null)
|
public function display($tpl = null)
|
||||||
{
|
{
|
||||||
|
// set params
|
||||||
|
$this->params = JComponentHelper::getParams('com_###component###');
|
||||||
// Assign the variables
|
// Assign the variables
|
||||||
$this->form = $this->get('Form');
|
$this->form = $this->get('Form');
|
||||||
$this->item = $this->get('Item');
|
$this->item = $this->get('Item');
|
||||||
$this->script = $this->get('Script');
|
$this->script = $this->get('Script');
|
||||||
$this->state = $this->get('State');
|
$this->state = $this->get('State');
|
||||||
// get action permissions
|
// get action permissions
|
||||||
$this->canDo = ###Component###Helper::getActions('###view###',$this->item);
|
$this->canDo = ###Component###Helper::getActions('###view###', $this->item);
|
||||||
// get input
|
// get input
|
||||||
$jinput = JFactory::getApplication()->input;
|
$jinput = JFactory::getApplication()->input;
|
||||||
$this->ref = $jinput->get('ref', 0, 'word');
|
$this->ref = $jinput->get('ref', 0, 'word');
|
||||||
$this->refid = $jinput->get('refid', 0, 'int');
|
$this->refid = $jinput->get('refid', 0, 'int');
|
||||||
|
$return = $jinput->get('return', null, 'base64');
|
||||||
|
// set the referral string
|
||||||
$this->referral = '';
|
$this->referral = '';
|
||||||
if ($this->refid)
|
if ($this->refid && $this->ref)
|
||||||
{
|
{
|
||||||
// return to the item that refered to this item
|
// return to the item that referred to this item
|
||||||
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
|
$this->referral = '&ref=' . (string)$this->ref . '&refid=' . (int)$this->refid;
|
||||||
}
|
}
|
||||||
elseif($this->ref)
|
elseif($this->ref)
|
||||||
{
|
{
|
||||||
// return to the list view that refered to this item
|
// return to the list view that referred to this item
|
||||||
$this->referral = '&ref='.(string)$this->ref;
|
$this->referral = '&ref=' . (string)$this->ref;
|
||||||
|
}
|
||||||
|
// check return value
|
||||||
|
if (!is_null($return))
|
||||||
|
{
|
||||||
|
// add the return value
|
||||||
|
$this->referral .= '&return=' . (string)$return;
|
||||||
}###LINKEDVIEWITEMS###
|
}###LINKEDVIEWITEMS###
|
||||||
|
|
||||||
// Set the toolbar
|
// Set the toolbar
|
||||||
@ -122,7 +117,7 @@ class ###Component###View###View### extends JViewLegacy
|
|||||||
$this->document = JFactory::getDocument();
|
$this->document = JFactory::getDocument();
|
||||||
}
|
}
|
||||||
$this->document->setTitle(JText::_($isNew ? 'COM_###COMPONENT###_###VIEW###_NEW' : 'COM_###COMPONENT###_###VIEW###_EDIT'));
|
$this->document->setTitle(JText::_($isNew ? 'COM_###COMPONENT###_###VIEW###_NEW' : 'COM_###COMPONENT###_###VIEW###_EDIT'));
|
||||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_###component###/assets/css/###view###.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###AJAXTOKE### ###LINKEDVIEWTABLESCRIPTS###
|
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_###component###/assets/css/###view###.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###AJAXTOKE######LINKEDVIEWTABLESCRIPTS###
|
||||||
$this->document->addScript(JURI::root() . $this->script, (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
$this->document->addScript(JURI::root() . $this->script, (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||||
$this->document->addScript(JURI::root() . "administrator/components/com_###component###/views/###view###/submitbutton.js", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); ###DOCUMENT_CUSTOM_PHP###
|
$this->document->addScript(JURI::root() . "administrator/components/com_###component###/views/###view###/submitbutton.js", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); ###DOCUMENT_CUSTOM_PHP###
|
||||||
JText::script('view not acceptable. Error');
|
JText::script('view not acceptable. Error');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
||||||
|
|
||||||
// import Joomla view library
|
|
||||||
jimport('joomla.application.component.view');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###View### View class
|
* ###View### View class
|
||||||
*/
|
*/
|
||||||
@ -43,27 +28,37 @@ class ###Component###View###View### extends JViewLegacy
|
|||||||
*/
|
*/
|
||||||
public function display($tpl = null)
|
public function display($tpl = null)
|
||||||
{
|
{
|
||||||
|
// set params
|
||||||
|
$this->params = JComponentHelper::getParams('com_###component###');
|
||||||
// Assign the variables
|
// Assign the variables
|
||||||
$this->form = $this->get('Form');
|
$this->form = $this->get('Form');
|
||||||
$this->item = $this->get('Item');
|
$this->item = $this->get('Item');
|
||||||
$this->script = $this->get('Script');
|
$this->script = $this->get('Script');
|
||||||
$this->state = $this->get('State');
|
$this->state = $this->get('State');
|
||||||
// get action permissions
|
// get action permissions
|
||||||
$this->canDo = ###Component###Helper::getActions('###view###',$this->item);
|
$this->canDo = ###Component###Helper::getActions('###view###', $this->item);
|
||||||
// get input
|
// get input
|
||||||
$jinput = JFactory::getApplication()->input;
|
$jinput = JFactory::getApplication()->input;
|
||||||
$this->ref = $jinput->get('ref', 0, 'word');
|
$this->ref = $jinput->get('ref', 0, 'word');
|
||||||
$this->refid = $jinput->get('refid', 0, 'int');
|
$this->refid = $jinput->get('refid', 0, 'int');
|
||||||
$this->referral = '';
|
$return = $jinput->get('return', null, 'base64');
|
||||||
if ($this->refid)
|
// set the referral string
|
||||||
|
$this->referral = '';
|
||||||
|
if ($this->refid && $this->ref)
|
||||||
{
|
{
|
||||||
// return to the item that refered to this item
|
// return to the item that referred to this item
|
||||||
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
|
$this->referral = '&ref=' . (string)$this->ref . '&refid=' . (int)$this->refid;
|
||||||
}
|
}
|
||||||
elseif($this->ref)
|
elseif($this->ref)
|
||||||
{
|
{
|
||||||
// return to the list view that refered to this item
|
// return to the list view that referred to this item
|
||||||
$this->referral = '&ref='.(string)$this->ref;
|
$this->referral = '&ref=' . (string)$this->ref;
|
||||||
|
}
|
||||||
|
// check return value
|
||||||
|
if (!is_null($return))
|
||||||
|
{
|
||||||
|
// add the return value
|
||||||
|
$this->referral .= '&return=' . (string)$return;
|
||||||
}###LINKEDVIEWITEMS###
|
}###LINKEDVIEWITEMS###
|
||||||
|
|
||||||
// Set the toolbar
|
// Set the toolbar
|
||||||
@ -126,11 +121,11 @@ class ###Component###View###View### extends JViewLegacy
|
|||||||
$this->document = JFactory::getDocument();
|
$this->document = JFactory::getDocument();
|
||||||
}
|
}
|
||||||
$this->document->setTitle(JText::_($isNew ? 'COM_###COMPONENT###_###VIEW###_NEW' : 'COM_###COMPONENT###_###VIEW###_EDIT'));
|
$this->document->setTitle(JText::_($isNew ? 'COM_###COMPONENT###_###VIEW###_NEW' : 'COM_###COMPONENT###_###VIEW###_EDIT'));
|
||||||
// we need this to fix the form display
|
// we need this to fix the form display (TODO)
|
||||||
$this->document->addStyleSheet(JURI::root()."administrator/templates/isis/css/template.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
$this->document->addStyleSheet(JURI::root()."administrator/templates/isis/css/template.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||||
$this->document->addScript(JURI::root()."administrator/templates/isis/js/template.js", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
$this->document->addScript(JURI::root()."administrator/templates/isis/js/template.js", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||||
// the default style of this view
|
// the default style of this view
|
||||||
$this->document->addStyleSheet(JURI::root()."components/com_###component###/assets/css/###view###.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###AJAXTOKE### ###LINKEDVIEWTABLESCRIPTS###
|
$this->document->addStyleSheet(JURI::root()."components/com_###component###/assets/css/###view###.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###AJAXTOKE######LINKEDVIEWTABLESCRIPTS###
|
||||||
// default javascript of this view
|
// default javascript of this view
|
||||||
$this->document->addScript(JURI::root().$this->script, (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
$this->document->addScript(JURI::root().$this->script, (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||||
$this->document->addScript(JURI::root(). "components/com_###component###/views/###view###/submitbutton.js", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); ###DOCUMENT_CUSTOM_PHP###
|
$this->document->addScript(JURI::root(). "components/com_###component###/views/###view###/submitbutton.js", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); ###DOCUMENT_CUSTOM_PHP###
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
||||||
|
|
||||||
// import Joomla view library
|
|
||||||
jimport('joomla.application.component.view');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### Import View
|
* ###Component### Import View
|
||||||
*/
|
*/
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
||||||
|
|
||||||
// import Joomla view library
|
|
||||||
jimport('joomla.application.component.view');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### ###View### View
|
* ###Component### ###View### View
|
||||||
*/
|
*/
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
||||||
|
|
||||||
// import Joomla view library
|
|
||||||
jimport('joomla.application.component.view');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### View class for the ###Views###
|
* ###Component### View class for the ###Views###
|
||||||
*/
|
*/
|
||||||
@ -131,7 +116,7 @@ class ###Component###View###Views### extends JViewLegacy
|
|||||||
// add the button to the page
|
// add the button to the page
|
||||||
$dhtml = $layout->render(array('title' => $title));
|
$dhtml = $layout->render(array('title' => $title));
|
||||||
$bar->appendButton('Custom', $dhtml, 'batch');
|
$bar->appendButton('Custom', $dhtml, 'batch');
|
||||||
}###CUSTOM_ADMIN_DYNAMIC_BUTTONS### ###ADMIN_CUSTOM_BUTTONS_LIST###
|
}###CUSTOM_ADMIN_DYNAMIC_BUTTONS######ADMIN_CUSTOM_BUTTONS_LIST###
|
||||||
|
|
||||||
if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete))
|
if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete))
|
||||||
{
|
{
|
||||||
@ -141,7 +126,7 @@ class ###Component###View###Views### extends JViewLegacy
|
|||||||
{
|
{
|
||||||
JToolbarHelper::trash('###views###.trash');
|
JToolbarHelper::trash('###views###.trash');
|
||||||
}###EXPORTBUTTON###
|
}###EXPORTBUTTON###
|
||||||
}###ADMIN_CUSTOM_FUNCTION_ONLY_BUTTONS_LIST### ###IMPORTBUTTON###
|
}###ADMIN_CUSTOM_FUNCTION_ONLY_BUTTONS_LIST######IMPORTBUTTON###
|
||||||
|
|
||||||
// set help url for this view if found
|
// set help url for this view if found
|
||||||
$help_url = ###Component###Helper::getHelpUrl('###views###');
|
$help_url = ###Component###Helper::getHelpUrl('###views###');
|
||||||
@ -187,7 +172,7 @@ class ###Component###View###Views### extends JViewLegacy
|
|||||||
'batch[access]',
|
'batch[access]',
|
||||||
JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text')
|
JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text')
|
||||||
);
|
);
|
||||||
}###CATEGORYFILTER### ###OTHERFILTERS###
|
}###CATEGORYFILTER######OTHERFILTERS###
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,10 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######CUSTOM_ADMIN_GET_MODULE_JIMPORT###
|
||||||
|
|
||||||
// import Joomla view library
|
|
||||||
jimport('joomla.application.component.view');###CUSTOM_ADMIN_GET_MODULE_JIMPORT###
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### View class for the ###SViews###
|
* ###Component### View class for the ###SViews###
|
||||||
@ -54,9 +39,9 @@ class ###Component###View###SViews### extends JViewLegacy
|
|||||||
* Prepares the document
|
* Prepares the document
|
||||||
*/
|
*/
|
||||||
protected function setDocument()
|
protected function setDocument()
|
||||||
{###CUSTOM_ADMIN_LIBRARIES_LOADER### ###CUSTOM_ADMIN_UIKIT_LOADER### ###CUSTOM_ADMIN_GOOGLECHART_LOADER### ###CUSTOM_ADMIN_FOOTABLE_LOADER### ###CUSTOM_ADMIN_DOCUMENT_CUSTOM_PHP###
|
{###CUSTOM_ADMIN_LIBRARIES_LOADER######CUSTOM_ADMIN_UIKIT_LOADER######CUSTOM_ADMIN_GOOGLECHART_LOADER######CUSTOM_ADMIN_FOOTABLE_LOADER######CUSTOM_ADMIN_DOCUMENT_CUSTOM_PHP###
|
||||||
// add the document default css file
|
// add the document default css file
|
||||||
$this->document->addStyleSheet(JURI::root(true) .'/administrator/components/com_###component###/assets/css/###sviews###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###CUSTOM_ADMIN_DOCUMENT_CUSTOM_CSS### ###CUSTOM_ADMIN_DOCUMENT_CUSTOM_JS###
|
$this->document->addStyleSheet(JURI::root(true) .'/administrator/components/com_###component###/assets/css/###sviews###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###CUSTOM_ADMIN_DOCUMENT_CUSTOM_CSS######CUSTOM_ADMIN_DOCUMENT_CUSTOM_JS###
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,10 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######SITE_GET_MODULE_JIMPORT###
|
||||||
|
|
||||||
// import Joomla view library
|
|
||||||
jimport('joomla.application.component.view');###SITE_GET_MODULE_JIMPORT###
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### View class for the ###SViews###
|
* ###Component### View class for the ###SViews###
|
||||||
@ -52,9 +37,9 @@ class ###Component###View###SViews### extends JViewLegacy
|
|||||||
* Prepares the document
|
* Prepares the document
|
||||||
*/
|
*/
|
||||||
protected function _prepareDocument()
|
protected function _prepareDocument()
|
||||||
{###SITE_LIBRARIES_LOADER### ###SITE_UIKIT_LOADER### ###SITE_GOOGLECHART_LOADER### ###SITE_FOOTABLE_LOADER### ###SITE_DOCUMENT_METADATA### ###SITE_DOCUMENT_CUSTOM_PHP###
|
{###SITE_LIBRARIES_LOADER######SITE_UIKIT_LOADER######SITE_GOOGLECHART_LOADER######SITE_FOOTABLE_LOADER######SITE_DOCUMENT_METADATA######SITE_DOCUMENT_CUSTOM_PHP###
|
||||||
// add the document default css file
|
// add the document default css file
|
||||||
$this->document->addStyleSheet(JURI::root(true) .'/components/com_###component###/assets/css/###sview###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###SITE_DOCUMENT_CUSTOM_CSS### ###SITE_DOCUMENT_CUSTOM_JS###
|
$this->document->addStyleSheet(JURI::root(true) .'/components/com_###component###/assets/css/###sview###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###SITE_DOCUMENT_CUSTOM_CSS######SITE_DOCUMENT_CUSTOM_JS######SITE_JAVASCRIPT_FOR_BUTTONS###
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,10 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######SITE_GET_MODULE_JIMPORT###
|
||||||
|
|
||||||
// import Joomla view library
|
|
||||||
jimport('joomla.application.component.view');###SITE_GET_MODULE_JIMPORT###
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### View class for the ###SView###
|
* ###Component### View class for the ###SView###
|
||||||
@ -52,9 +37,9 @@ class ###Component###View###SView### extends JViewLegacy
|
|||||||
* Prepares the document
|
* Prepares the document
|
||||||
*/
|
*/
|
||||||
protected function _prepareDocument()
|
protected function _prepareDocument()
|
||||||
{###SITE_LIBRARIES_LOADER### ###SITE_UIKIT_LOADER### ###SITE_GOOGLECHART_LOADER### ###SITE_FOOTABLE_LOADER### ###SITE_DOCUMENT_METADATA### ###SITE_DOCUMENT_CUSTOM_PHP###
|
{###SITE_LIBRARIES_LOADER######SITE_UIKIT_LOADER######SITE_GOOGLECHART_LOADER######SITE_FOOTABLE_LOADER######SITE_DOCUMENT_METADATA######SITE_DOCUMENT_CUSTOM_PHP###
|
||||||
// add the document default css file
|
// add the document default css file
|
||||||
$this->document->addStyleSheet(JURI::root(true) .'/components/com_###component###/assets/css/###sview###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###SITE_DOCUMENT_CUSTOM_CSS### ###SITE_DOCUMENT_CUSTOM_JS###
|
$this->document->addStyleSheet(JURI::root(true) .'/components/com_###component###/assets/css/###sview###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###SITE_DOCUMENT_CUSTOM_CSS######SITE_DOCUMENT_CUSTOM_JS######SITE_JAVASCRIPT_FOR_BUTTONS###
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,9 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import Joomla controllerform library
|
|
||||||
jimport('joomla.application.component.controller');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### Ajax Controller
|
* ###Component### Ajax Controller
|
||||||
*/
|
*/
|
||||||
@ -47,14 +32,14 @@ class ###Component###ControllerAjax extends JControllerLegacy
|
|||||||
// load the tasks
|
// load the tasks
|
||||||
$this->registerTask('fieldRequired', 'ajax');
|
$this->registerTask('fieldRequired', 'ajax');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ajax()
|
public function ajax()
|
||||||
{
|
{
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$jinput = JFactory::getApplication()->input;
|
$jinput = JFactory::getApplication()->input;
|
||||||
// Check Token!
|
// Check Token!
|
||||||
$token = JSession::getFormToken();
|
$token = JSession::getFormToken();
|
||||||
$call_token = $jinput->get('token', 0, 'ALNUM');
|
$call_token = $jinput->get('token', 0, 'ALNUM');
|
||||||
if($user->id != 0 && $token == $call_token)
|
if($user->id != 0 && $token == $call_token)
|
||||||
{
|
{
|
||||||
$task = $this->getTask();
|
$task = $this->getTask();
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,29 +17,26 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
jimport('joomla.application.component.helper');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### Ajax Model
|
* ###Component### Ajax Model
|
||||||
*/
|
*/
|
||||||
class ###Component###ModelAjax extends JModelList
|
class ###Component###ModelAjax extends JModelList
|
||||||
{
|
{
|
||||||
protected $app_params;
|
protected $app_params;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
// get params
|
// get params
|
||||||
$this->app_params = JComponentHelper::getParams('com_###component###');
|
$this->app_params = JComponentHelper::getParams('com_###component###');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setFieldRequired($name,$form,$status)
|
public function setFieldRequired($name,$form,$status)
|
||||||
{
|
{
|
||||||
// get the session
|
// get the session
|
||||||
$session = JFactory::getSession();
|
$session = JFactory::getSession();
|
||||||
// get this forms set fields
|
// get this forms set fields
|
||||||
$fields = $session->get($form.'_requiredFieldFix');
|
$fields = $session->get($form.'_requiredFieldFix');
|
||||||
if(###Component###Helper::checkArray($fields))
|
if(###Component###Helper::checkArray($fields))
|
||||||
{
|
{
|
||||||
if ($status == 1)
|
if ($status == 1)
|
||||||
@ -62,7 +47,8 @@ class ###Component###ModelAjax extends JModelList
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// remove from array
|
// remove from array
|
||||||
if(($key = array_search($name, $fields)) !== false) {
|
if(($key = array_search($name, $fields)) !== false)
|
||||||
|
{
|
||||||
unset($fields[$key]);
|
unset($fields[$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -30,8 +18,8 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
defined('JPATH_BASE') or die;
|
defined('JPATH_BASE') or die;
|
||||||
|
|
||||||
JHtmlBehavior::core();
|
JHtmlBehavior::core();
|
||||||
$divWrapper = range(1,120,2);
|
$divWrapper = range(1,120,2);
|
||||||
$counter = 0;
|
$counter = 0;
|
||||||
?>
|
?>
|
||||||
<?php if ($displayData->ListSelection) : ?>
|
<?php if ($displayData->ListSelection) : ?>
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
<scriptfile>script.php</scriptfile>
|
<scriptfile>script.php</scriptfile>
|
||||||
|
|
||||||
<media destination="com_###component###" folder="media">
|
<media destination="com_###component###" folder="media">
|
||||||
<filename>index.html</filename>
|
<filename>index.html</filename>###EXSTRA_MEDIA_FILES###
|
||||||
<folder>js</folder>
|
<folder>js</folder>
|
||||||
<folder>css</folder>
|
<folder>css</folder>
|
||||||
<folder>images</folder>###EXSTRA_MEDIA_FOLDERS###
|
<folder>images</folder>###EXSTRA_MEDIA_FOLDERS###
|
||||||
@ -50,7 +50,7 @@
|
|||||||
<filename>controller.php</filename>
|
<filename>controller.php</filename>
|
||||||
<filename>index.html</filename>
|
<filename>index.html</filename>
|
||||||
<filename>router.php</filename>
|
<filename>router.php</filename>
|
||||||
<filename>###component###.php</filename>
|
<filename>###component###.php</filename>###EXSTRA_SITE_FILES###
|
||||||
<folder>assets</folder>
|
<folder>assets</folder>
|
||||||
<folder>helpers</folder>
|
<folder>helpers</folder>
|
||||||
<folder>controllers</folder>
|
<folder>controllers</folder>
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -28,29 +16,22 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
JHtml::_('behavior.tabstate');
|
||||||
|
|
||||||
// Access check.
|
// Access check.
|
||||||
if (!JFactory::getUser()->authorise('core.manage', 'com_###component###'))
|
if (!JFactory::getUser()->authorise('core.manage', 'com_###component###'))
|
||||||
{
|
{
|
||||||
return JError::raiseWaring(404, JText::_('JERROR_ALERTNOAUTHOR'));
|
throw new JAccessExceptionNotallowed(JText::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Load cms libraries
|
|
||||||
JLoader::registerPrefix('J', JPATH_PLATFORM . '/cms');
|
|
||||||
// Load joomla libraries without overwrite
|
|
||||||
JLoader::registerPrefix('J', JPATH_PLATFORM . '/joomla',false);
|
|
||||||
|
|
||||||
// Add CSS file for all pages
|
// Add CSS file for all pages
|
||||||
$document = JFactory::getDocument();
|
$document = JFactory::getDocument();
|
||||||
$document->addStyleSheet('components/com_###component###/assets/css/admin.css');
|
$document->addStyleSheet('components/com_###component###/assets/css/admin.css');
|
||||||
$document->addScript('components/com_###component###/assets/js/admin.js');
|
$document->addScript('components/com_###component###/assets/js/admin.js');
|
||||||
|
|
||||||
// require helper files
|
// require helper files
|
||||||
JLoader::register('###Component###Helper', dirname(__FILE__) . '/helpers/###component###.php'); ###HELPER_EMAIL###
|
JLoader::register('###Component###Helper', __DIR__ . '/helpers/###component###.php'); ###HELPER_EMAIL###
|
||||||
JLoader::register('JHtmlBatch_', dirname(__FILE__) . '/helpers/html/batch_.php');###LICENSE_LOCKED_INT### ###ADMIN_GLOBAL_EVENT###
|
JLoader::register('JHtmlBatch_', __DIR__ . '/helpers/html/batch_.php');###LICENSE_LOCKED_INT### ###ADMIN_GLOBAL_EVENT###
|
||||||
|
|
||||||
// import joomla controller library
|
|
||||||
jimport('joomla.application.component.controller');
|
|
||||||
|
|
||||||
// Get an instance of the controller prefixed by ###Component###
|
// Get an instance of the controller prefixed by ###Component###
|
||||||
$controller = JControllerLegacy::getInstance('###Component###');
|
$controller = JControllerLegacy::getInstance('###Component###');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -28,6 +16,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
JHtml::_('behavior.tabstate');
|
||||||
|
|
||||||
// Set the component css/js
|
// Set the component css/js
|
||||||
$document = JFactory::getDocument();
|
$document = JFactory::getDocument();
|
||||||
@ -35,18 +24,14 @@ $document->addStyleSheet('components/com_###component###/assets/css/site.css');
|
|||||||
$document->addScript('components/com_###component###/assets/js/site.js');
|
$document->addScript('components/com_###component###/assets/js/site.js');
|
||||||
|
|
||||||
// Require helper files
|
// Require helper files
|
||||||
JLoader::register('###Component###Helper', dirname(__FILE__) . '/helpers/###component###.php'); ###HELPER_EMAIL###
|
JLoader::register('###Component###Helper', __DIR__ . '/helpers/###component###.php'); ###HELPER_EMAIL###
|
||||||
JLoader::register('###Component###HelperRoute', dirname(__FILE__) . '/helpers/route.php');###LICENSE_LOCKED_INT### ###SITE_GLOBAL_EVENT###
|
JLoader::register('###Component###HelperRoute', __DIR__ . '/helpers/route.php');###LICENSE_LOCKED_INT### ###SITE_GLOBAL_EVENT###
|
||||||
|
|
||||||
// import joomla controller library
|
|
||||||
jimport('joomla.application.component.controller');
|
|
||||||
|
|
||||||
// Get an instance of the controller prefixed by ###Component###
|
// Get an instance of the controller prefixed by ###Component###
|
||||||
$controller = JControllerLegacy::getInstance('###Component###');
|
$controller = JControllerLegacy::getInstance('###Component###');
|
||||||
|
|
||||||
// Perform the request task
|
// Perform the request task
|
||||||
$jinput = JFactory::getApplication()->input;
|
$controller->execute(JFactory::getApplication()->input->get('task'));
|
||||||
$controller->execute($jinput->get('task', null, 'CMD'));
|
|
||||||
|
|
||||||
// Redirect if set by the controller
|
// Redirect if set by the controller
|
||||||
$controller->redirect();
|
$controller->redirect();
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,7 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED### ###CUSTOM_ADMIN_CODE_BODY###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######CUSTOM_ADMIN_CODE_BODY###
|
||||||
|
|
||||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||||
JHtml::_('behavior.tooltip');
|
JHtml::_('behavior.tooltip');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,6 +15,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED### ###CUSTOM_ADMIN_TEMPLATE_CODE_BODY###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######CUSTOM_ADMIN_TEMPLATE_CODE_BODY###
|
||||||
|
|
||||||
?>###CUSTOM_ADMIN_TEMPLATE_BODY###
|
?>###CUSTOM_ADMIN_TEMPLATE_BODY###
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,7 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access'); ###LICENSE_LOCKED_DEFINED###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,7 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access'); ###LICENSE_LOCKED_DEFINED###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
||||||
|
|
||||||
?>
|
?>
|
||||||
###LISTHEAD###
|
###LISTHEAD###
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,7 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED### ###CUSTOM_ADMIN_CODE_BODY###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######CUSTOM_ADMIN_CODE_BODY###
|
||||||
|
|
||||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||||
JHtml::_('behavior.tooltip');
|
JHtml::_('behavior.tooltip');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,7 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED### ###SITE_CODE_BODY###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######SITE_CODE_BODY###
|
||||||
|
|
||||||
?>
|
?>
|
||||||
###SITE_TOP_BUTTON### ###SITE_BODY### ###SITE_BOTTOM_BUTTON###
|
###SITE_TOP_FORM######SITE_TOP_BUTTON######SITE_BODY######SITE_BOTTOM_BUTTON######SITE_BOTTOM_FORM###
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,7 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED### ###SITE_CODE_BODY###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######SITE_CODE_BODY###
|
||||||
|
|
||||||
?>
|
?>
|
||||||
###SITE_TOP_BUTTON### ###SITE_BODY### ###SITE_BOTTOM_BUTTON###
|
###SITE_TOP_FORM######SITE_TOP_BUTTON######SITE_BODY######SITE_BOTTOM_BUTTON######SITE_BOTTOM_FORM###
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,6 +15,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED### ###SITE_TEMPLATE_CODE_BODY###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######SITE_TEMPLATE_CODE_BODY###
|
||||||
|
|
||||||
?>###SITE_TEMPLATE_BODY###
|
?>###SITE_TEMPLATE_BODY###
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -34,10 +22,10 @@ JHtml::_('behavior.tooltip');
|
|||||||
JHtml::_('behavior.formvalidation');
|
JHtml::_('behavior.formvalidation');
|
||||||
JHtml::_('formbehavior.chosen', 'select');
|
JHtml::_('formbehavior.chosen', 'select');
|
||||||
JHtml::_('behavior.keepalive');
|
JHtml::_('behavior.keepalive');
|
||||||
$componentParams = JComponentHelper::getParams('com_###component###');
|
$componentParams = $this->params; // will be removed just use $this->params instead
|
||||||
?>
|
?>
|
||||||
###EDITBODYFADEIN###
|
###EDITBODYFADEIN###
|
||||||
<form action="<?php echo JRoute::_('index.php?option=com_###component###&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
<form action="<?php echo JRoute::_('index.php?option=com_###component###&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||||
###EDITBODY###
|
###EDITBODY###
|
||||||
</form>
|
</form>
|
||||||
</div>###EDITBODYSCRIPT###
|
</div>###EDITBODYSCRIPT###
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -36,9 +24,9 @@ JHtml::_('formbehavior.chosen', 'select');
|
|||||||
JHtml::_('behavior.keepalive');
|
JHtml::_('behavior.keepalive');
|
||||||
JHtml::_('behavior.tabstate');
|
JHtml::_('behavior.tabstate');
|
||||||
JHtml::_('behavior.calendar');
|
JHtml::_('behavior.calendar');
|
||||||
$componentParams = JComponentHelper::getParams('com_###component###');
|
$componentParams = $this->params; // will be removed just use $this->params instead
|
||||||
?>
|
?>
|
||||||
<?php echo $this->toolbar->render(); ?>
|
<?php echo $this->toolbar->render(); ?>
|
||||||
<form action="<?php echo JRoute::_('index.php?option=com_###component###&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
<form action="<?php echo JRoute::_('index.php?option=com_###component###&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||||
###EDITBODY###
|
###EDITBODY###
|
||||||
</form>###EDITBODYSCRIPT###
|
</form>###EDITBODYSCRIPT###
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -27,7 +27,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
$app = JFactory::getApplication();
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,7 +15,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
defined('JPATH_BASE') or die('Restricted access');###CUSTOM_ADMIN_LAYOUT_CODE###
|
defined('JPATH_BASE') or die('Restricted access');###CUSTOM_ADMIN_LAYOUT_CODE###
|
||||||
|
|
||||||
?>###CUSTOM_ADMIN_LAYOUT_BODY###
|
?>###CUSTOM_ADMIN_LAYOUT_BODY###
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,7 +15,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
defined('JPATH_BASE') or die('Restricted access');###SITE_LAYOUT_CODE###
|
defined('JPATH_BASE') or die('Restricted access');###SITE_LAYOUT_CODE###
|
||||||
|
|
||||||
?>###SITE_LAYOUT_BODY###
|
?>###SITE_LAYOUT_BODY###
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,7 +15,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,7 +15,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,13 +15,12 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->###LAYOUTITEMS###;
|
$items = $displayData->###LAYOUTITEMS###;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
###LAYOUTITEMSHEADER###
|
###LAYOUTITEMSHEADER###
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,7 +15,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,7 +15,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
$app = JFactory::getApplication();
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -27,7 +15,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -29,10 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// Component Helper
|
|
||||||
jimport('joomla.application.component.helper');
|
|
||||||
jimport('joomla.application.categories');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ###Component### Route Helper
|
* ###Component### Route Helper
|
||||||
**/
|
**/
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -30,8 +18,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
JHTML::_('behavior.modal');
|
JHTML::_('behavior.modal');
|
||||||
jimport('joomla.installer.installer');
|
|
||||||
jimport('joomla.installer.helper');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Script File of ###Component### Component
|
* Script File of ###Component### Component
|
||||||
|
@ -400,6 +400,11 @@
|
|||||||
"rename": "layoutmetadata",
|
"rename": "layoutmetadata",
|
||||||
"type": "layoutmetadata"
|
"type": "layoutmetadata"
|
||||||
},
|
},
|
||||||
|
"JFormFieldCustom.php": {
|
||||||
|
"path": "c0mp0n3nt/admin/models/fields",
|
||||||
|
"rename": "JFormFieldCustom",
|
||||||
|
"type": "fieldcustom"
|
||||||
|
},
|
||||||
"JFormFieldList.php": {
|
"JFormFieldList.php": {
|
||||||
"path": "c0mp0n3nt/admin/models/fields",
|
"path": "c0mp0n3nt/admin/models/fields",
|
||||||
"rename": "JFormFieldList",
|
"rename": "JFormFieldList",
|
||||||
|
@ -1,25 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 30th April, 2015
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage componentbuilder.php
|
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
| |
|
| |
|
||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version ###VERSION###
|
@version ###VERSION###
|
||||||
@ -14,10 +14,10 @@
|
|||||||
@created ###CREATIONDATE###
|
@created ###CREATIONDATE###
|
||||||
@package ###Component_name###
|
@package ###Component_name###
|
||||||
@subpackage ###FILENAME###
|
@subpackage ###FILENAME###
|
||||||
@author ###AUTHOR### <###AUTHORWEBSITE###>###CONTRIBUTORS###
|
@author ###AUTHOR### <###AUTHORWEBSITE###>###CONTRIBUTORS###
|
||||||
@copyright ###COPYRIGHT###
|
@copyright ###COPYRIGHT###
|
||||||
@license ###LICENSE###
|
@license ###LICENSE###
|
||||||
|
|
||||||
###SHORT_DESCRIPTION###
|
###SHORT_DESCRIPTION###
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
@ -11,34 +11,27 @@
|
|||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
JHtml::_('behavior.tabstate');
|
||||||
|
|
||||||
// Access check.
|
// Access check.
|
||||||
if (!JFactory::getUser()->authorise('core.manage', 'com_componentbuilder'))
|
if (!JFactory::getUser()->authorise('core.manage', 'com_componentbuilder'))
|
||||||
{
|
{
|
||||||
return JError::raiseWaring(404, JText::_('JERROR_ALERTNOAUTHOR'));
|
throw new JAccessExceptionNotallowed(JText::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Load cms libraries
|
|
||||||
JLoader::registerPrefix('J', JPATH_PLATFORM . '/cms');
|
|
||||||
// Load joomla libraries without overwrite
|
|
||||||
JLoader::registerPrefix('J', JPATH_PLATFORM . '/joomla',false);
|
|
||||||
|
|
||||||
// Add CSS file for all pages
|
// Add CSS file for all pages
|
||||||
$document = JFactory::getDocument();
|
$document = JFactory::getDocument();
|
||||||
$document->addStyleSheet('components/com_componentbuilder/assets/css/admin.css');
|
$document->addStyleSheet('components/com_componentbuilder/assets/css/admin.css');
|
||||||
$document->addScript('components/com_componentbuilder/assets/js/admin.js');
|
$document->addScript('components/com_componentbuilder/assets/js/admin.js');
|
||||||
|
|
||||||
// require helper files
|
// require helper files
|
||||||
JLoader::register('ComponentbuilderHelper', dirname(__FILE__) . '/helpers/componentbuilder.php');
|
JLoader::register('ComponentbuilderHelper', __DIR__ . '/helpers/componentbuilder.php');
|
||||||
JLoader::register('ComponentbuilderEmail', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/componentbuilderemail.php');
|
JLoader::register('ComponentbuilderEmail', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/componentbuilderemail.php');
|
||||||
JLoader::register('JHtmlBatch_', dirname(__FILE__) . '/helpers/html/batch_.php');
|
JLoader::register('JHtmlBatch_', __DIR__ . '/helpers/html/batch_.php');
|
||||||
|
|
||||||
// Triger the Global Admin Event
|
// Triger the Global Admin Event
|
||||||
ComponentbuilderHelper::globalEvent($document);
|
ComponentbuilderHelper::globalEvent($document);
|
||||||
|
|
||||||
// import joomla controller library
|
|
||||||
jimport('joomla.application.component.controller');
|
|
||||||
|
|
||||||
// Get an instance of the controller prefixed by Componentbuilder
|
// Get an instance of the controller prefixed by Componentbuilder
|
||||||
$controller = JControllerLegacy::getInstance('Componentbuilder');
|
$controller = JControllerLegacy::getInstance('Componentbuilder');
|
||||||
|
|
||||||
|
@ -86,6 +86,7 @@
|
|||||||
description="COM_COMPONENTBUILDER_CONFIG_JCB_PACKAGE_DIRECTORIES_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CONFIG_JCB_PACKAGE_DIRECTORIES_DESCRIPTION"
|
||||||
class="list_class"
|
class="list_class"
|
||||||
multiple="true"
|
multiple="true"
|
||||||
|
default=""
|
||||||
showon="manage_jcb_package_directories:1">
|
showon="manage_jcb_package_directories:1">
|
||||||
<!-- Option Set. -->
|
<!-- Option Set. -->
|
||||||
<option value="vdm">
|
<option value="vdm">
|
||||||
@ -116,7 +117,7 @@
|
|||||||
label="COM_COMPONENTBUILDER_CONFIG_MENU_PREFIX_LABEL"
|
label="COM_COMPONENTBUILDER_CONFIG_MENU_PREFIX_LABEL"
|
||||||
size="30"
|
size="30"
|
||||||
maxlength="30"
|
maxlength="30"
|
||||||
default="»"
|
default="&#187;"
|
||||||
description="COM_COMPONENTBUILDER_CONFIG_MENU_PREFIX_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CONFIG_MENU_PREFIX_DESCRIPTION"
|
||||||
class="text_area"
|
class="text_area"
|
||||||
filter="SAFEHTML"
|
filter="SAFEHTML"
|
||||||
@ -688,9 +689,9 @@
|
|||||||
COM_COMPONENTBUILDER_CONFIG_EXPANSION</option>
|
COM_COMPONENTBUILDER_CONFIG_EXPANSION</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- Note_development_method_default Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_development_method_default Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_development_method_default" label="COM_COMPONENTBUILDER_CONFIG_NOTE_DEVELOPMENT_METHOD_DEFAULT_LABEL" description="COM_COMPONENTBUILDER_CONFIG_NOTE_DEVELOPMENT_METHOD_DEFAULT_DESCRIPTION" heading="h4" class="alert alert-info note_development_method_default" showon="development_method:1" />
|
<field type="note" name="note_development_method_default" label="COM_COMPONENTBUILDER_CONFIG_NOTE_DEVELOPMENT_METHOD_DEFAULT_LABEL" description="COM_COMPONENTBUILDER_CONFIG_NOTE_DEVELOPMENT_METHOD_DEFAULT_DESCRIPTION" heading="h2" class="alert alert-info note_development_method_default" showon="development_method:1" />
|
||||||
<!-- Note_development_method_expansion Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_development_method_expansion Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_development_method_expansion" label="COM_COMPONENTBUILDER_CONFIG_NOTE_DEVELOPMENT_METHOD_EXPANSION_LABEL" description="COM_COMPONENTBUILDER_CONFIG_NOTE_DEVELOPMENT_METHOD_EXPANSION_DESCRIPTION" heading="h4" class="alert alert-info note_development_method_expansion" showon="development_method:2" />
|
<field type="note" name="note_development_method_expansion" label="COM_COMPONENTBUILDER_CONFIG_NOTE_DEVELOPMENT_METHOD_EXPANSION_LABEL" description="COM_COMPONENTBUILDER_CONFIG_NOTE_DEVELOPMENT_METHOD_EXPANSION_DESCRIPTION" heading="h2" class="alert alert-info note_development_method_expansion" showon="development_method:2" />
|
||||||
<!-- Expansion Field. Type: Subform. (joomla) -->
|
<!-- Expansion Field. Type: Subform. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="subform"
|
type="subform"
|
||||||
@ -741,6 +742,7 @@
|
|||||||
name="placeholders"
|
name="placeholders"
|
||||||
label="COM_COMPONENTBUILDER_CONFIG_PLACEHOLDERS_LABEL"
|
label="COM_COMPONENTBUILDER_CONFIG_PLACEHOLDERS_LABEL"
|
||||||
value="1"
|
value="1"
|
||||||
|
default=""
|
||||||
required="false"
|
required="false"
|
||||||
description="COM_COMPONENTBUILDER_CONFIG_PLACEHOLDERS_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CONFIG_PLACEHOLDERS_DESCRIPTION"
|
||||||
class="inputbox"
|
class="inputbox"
|
||||||
@ -804,6 +806,7 @@
|
|||||||
label="COM_COMPONENTBUILDER_CONFIG_CRONJOB_BACKUP_FOLDER_PATH_LABEL"
|
label="COM_COMPONENTBUILDER_CONFIG_CRONJOB_BACKUP_FOLDER_PATH_LABEL"
|
||||||
size="70"
|
size="70"
|
||||||
maxlength="150"
|
maxlength="150"
|
||||||
|
default=""
|
||||||
description="COM_COMPONENTBUILDER_CONFIG_CRONJOB_BACKUP_FOLDER_PATH_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CONFIG_CRONJOB_BACKUP_FOLDER_PATH_DESCRIPTION"
|
||||||
class="text_area"
|
class="text_area"
|
||||||
readonly="false"
|
readonly="false"
|
||||||
@ -861,6 +864,7 @@
|
|||||||
label="COM_COMPONENTBUILDER_CONFIG_COMPILER_FOLDER_PATH_LABEL"
|
label="COM_COMPONENTBUILDER_CONFIG_COMPILER_FOLDER_PATH_LABEL"
|
||||||
size="70"
|
size="70"
|
||||||
maxlength="150"
|
maxlength="150"
|
||||||
|
default=""
|
||||||
description="COM_COMPONENTBUILDER_CONFIG_COMPILER_FOLDER_PATH_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CONFIG_COMPILER_FOLDER_PATH_DESCRIPTION"
|
||||||
class="text_area"
|
class="text_area"
|
||||||
readonly="false"
|
readonly="false"
|
||||||
@ -879,6 +883,7 @@
|
|||||||
label="COM_COMPONENTBUILDER_CONFIG_CUSTOM_FOLDER_PATH_LABEL"
|
label="COM_COMPONENTBUILDER_CONFIG_CUSTOM_FOLDER_PATH_LABEL"
|
||||||
size="70"
|
size="70"
|
||||||
maxlength="150"
|
maxlength="150"
|
||||||
|
default=""
|
||||||
description="COM_COMPONENTBUILDER_CONFIG_CUSTOM_FOLDER_PATH_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CONFIG_CUSTOM_FOLDER_PATH_DESCRIPTION"
|
||||||
class="text_area"
|
class="text_area"
|
||||||
readonly="false"
|
readonly="false"
|
||||||
@ -897,6 +902,7 @@
|
|||||||
label="COM_COMPONENTBUILDER_CONFIG_BACKUP_FOLDER_PATH_LABEL"
|
label="COM_COMPONENTBUILDER_CONFIG_BACKUP_FOLDER_PATH_LABEL"
|
||||||
size="70"
|
size="70"
|
||||||
maxlength="150"
|
maxlength="150"
|
||||||
|
default=""
|
||||||
description="COM_COMPONENTBUILDER_CONFIG_BACKUP_FOLDER_PATH_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CONFIG_BACKUP_FOLDER_PATH_DESCRIPTION"
|
||||||
class="text_area"
|
class="text_area"
|
||||||
readonly="false"
|
readonly="false"
|
||||||
@ -915,6 +921,7 @@
|
|||||||
label="COM_COMPONENTBUILDER_CONFIG_GIT_FOLDER_PATH_LABEL"
|
label="COM_COMPONENTBUILDER_CONFIG_GIT_FOLDER_PATH_LABEL"
|
||||||
size="70"
|
size="70"
|
||||||
maxlength="150"
|
maxlength="150"
|
||||||
|
default=""
|
||||||
description="COM_COMPONENTBUILDER_CONFIG_GIT_FOLDER_PATH_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CONFIG_GIT_FOLDER_PATH_DESCRIPTION"
|
||||||
class="text_area"
|
class="text_area"
|
||||||
readonly="false"
|
readonly="false"
|
||||||
@ -983,6 +990,7 @@
|
|||||||
label="COM_COMPONENTBUILDER_CONFIG_EXPORT_WEBSITE_LABEL"
|
label="COM_COMPONENTBUILDER_CONFIG_EXPORT_WEBSITE_LABEL"
|
||||||
size="60"
|
size="60"
|
||||||
maxlength="150"
|
maxlength="150"
|
||||||
|
default=""
|
||||||
description="COM_COMPONENTBUILDER_CONFIG_EXPORT_WEBSITE_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CONFIG_EXPORT_WEBSITE_DESCRIPTION"
|
||||||
class="text_area"
|
class="text_area"
|
||||||
required="true"
|
required="true"
|
||||||
@ -1031,6 +1039,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"
|
||||||
/>
|
/>
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user