From 4928a8baaf9920925722dcd8239ebc2cad3c6246 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Tue, 30 Aug 2022 17:28:41 +0200 Subject: [PATCH] Moves multiple class methods to their own power classes. Moves many compiler config values to its own config class. Updated the Expantion method to use the new config class. --- README.md | 8 +- admin/README.txt | 8 +- admin/config.xml | 14 +- admin/controllers/compiler.php | 15 +- admin/helpers/compiler.php | 228 +- admin/helpers/compiler/a_Get.php | 2814 +-- admin/helpers/compiler/b_Structure.php | 300 +- admin/helpers/compiler/c_Fields.php | 1542 +- admin/helpers/compiler/e_Interpretation.php | 15639 ++++++++-------- admin/helpers/compiler/f_Infusion.php | 1399 +- .../en-GB/en-GB.com_componentbuilder.ini | 23 +- admin/models/compiler.php | 12 +- admin/models/powers.php | 2 + admin/views/compiler/tmpl/default.php | 8 +- admin/views/compiler/view.html.php | 6 +- admin/views/powers/tmpl/default_body.php | 5 +- componentbuilder.xml | 2 +- .../Compiler/Component/Placeholder.php | 144 + .../Component}/index.html | 0 .../src/Componentbuilder/Compiler/Config.php | 543 +- .../Componentbuilder/Compiler/Customcode.php | 635 + .../Compiler/Customcode/External.php | 406 + .../Compiler/Customcode/Gui.php | 256 + .../Customcode}/index.html | 0 .../Extension/JoomlaThree}/InstallScript.php | 175 +- .../Compiler/Extension/JoomlaThree/index.html | 1 + .../src/Componentbuilder/Compiler/Factory.php | 111 + .../Compiler/Interfaces/EventInterface.php | 33 + .../Interfaces/GetScriptInterface.php} | 27 +- .../Compiler/Interfaces/InstallInterface.php | 44 + .../Compiler/Interfaces/index.html | 1 + .../Compiler/JoomlaThree/Event.php | 98 + .../Compiler/JoomlaThree/index.html | 1 + .../Componentbuilder/Compiler/Language.php | 201 + .../Compiler/Language/Extractor.php | 254 + .../Compiler/Language/index.html | 1 + .../Componentbuilder/Compiler/Placeholder.php | 262 + .../Compiler/Placeholder/Reverse.php | 243 + .../Compiler/Placeholder/index.html | 1 + .../src/Componentbuilder/Compiler/Power.php | 517 + .../Compiler/Service/Component.php | 56 + .../Compiler/Service/Config.php | 54 + .../Compiler/Service/Customcode.php | 99 + .../Compiler/Service/Event.php | 55 + .../Compiler/Service/Extension.php | 55 + .../Compiler/Service/Language.php | 78 + .../Compiler/Service/Placeholder.php | 78 + .../Compiler/Service/Power.php | 59 + .../Compiler/Service/index.html | 1 + .../Compiler/Utilities/Indent.php | 90 + .../Compiler/Utilities/Line.php | 79 + .../Compiler/Utilities/Placefix.php | 106 + .../Compiler/Utilities/index.html | 1 + .../Factory/Compiler/Config.php | 257 - .../VDM.Joomla/src/Componentbuilder/Tab.php | 58 - .../jcb_powers/VDM.Joomla/src/index.html | 1 + .../en-GB/en-GB.com_componentbuilder.ini | 15 + site/models/api.php | 27 +- 58 files changed, 14568 insertions(+), 12580 deletions(-) create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Component/Placeholder.php rename libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/{Extension => Compiler/Component}/index.html (100%) create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Customcode.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Customcode/External.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Customcode/Gui.php rename libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/{Factory/Compiler => Compiler/Customcode}/index.html (100%) rename libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/{Extension => Compiler/Extension/JoomlaThree}/InstallScript.php (66%) create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Extension/JoomlaThree/index.html create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Factory.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Interfaces/EventInterface.php rename libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/{Line.php => Compiler/Interfaces/GetScriptInterface.php} (51%) create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Interfaces/InstallInterface.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Interfaces/index.html create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/JoomlaThree/Event.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/JoomlaThree/index.html create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Language.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Language/Extractor.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Language/index.html create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Placeholder.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Placeholder/Reverse.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Placeholder/index.html create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Power.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Service/Component.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Service/Config.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Service/Customcode.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Service/Event.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Service/Extension.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Service/Language.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Service/Placeholder.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Service/Power.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Service/index.html create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Utilities/Indent.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Utilities/Line.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Utilities/Placefix.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/Utilities/index.html delete mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Factory/Compiler/Config.php delete mode 100644 libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Tab.php create mode 100644 libraries/jcb_powers/VDM.Joomla/src/index.html diff --git a/README.md b/README.md index 680ab3df8..84cd3b690 100644 --- a/README.md +++ b/README.md @@ -140,14 +140,14 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 21st August, 2022 ++ *Last Build*: 30th August, 2022 + *Version*: 3.1.5 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **312270** ++ *Line count*: **319334** + *Field count*: **2002** -+ *File count*: **2057** -+ *Folder count*: **351** ++ *File count*: **2087** ++ *Folder count*: **359** > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com). > Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) diff --git a/admin/README.txt b/admin/README.txt index 680ab3df8..84cd3b690 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -140,14 +140,14 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 21st August, 2022 ++ *Last Build*: 30th August, 2022 + *Version*: 3.1.5 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **312270** ++ *Line count*: **319334** + *Field count*: **2002** -+ *File count*: **2057** -+ *Folder count*: **351** ++ *File count*: **2087** ++ *Folder count*: **359** > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com). > Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) diff --git a/admin/config.xml b/admin/config.xml index 4535b441b..974a94e8f 100644 --- a/admin/config.xml +++ b/admin/config.xml @@ -930,11 +930,11 @@ min="1" showon="development_method:2">