From 0603c39cc12c0cedc6cb73cafe558f057797d822 Mon Sep 17 00:00:00 2001 From: aB0t Date: Wed, 18 Sep 2024 04:40:33 +0200 Subject: [PATCH] Release of v5.0.3-alpha4 Fix database default fields to allow NULL. #1169. Fix the power list field to allow search. #1167. Expanded the Demo component in JCB v4 to include more advance features. --- CHANGELOG.md | 11 +- ComponentbuilderInstallerScript.php | 6 +- README.md | 12 +- admin/README.txt | 12 +- admin/access.xml | 1 - .../joomla_4/ADMIN_VIEW_CONTROLLER.php | 18 +- admin/custom/dynamicDownloadController.php | 16 + admin/forms/custom_code.xml | 1 + admin/forms/joomla_component.xml | 2 +- admin/forms/power.xml | 7 +- admin/forms/repository.xml | 4 +- .../en-GB/en-GB.com_componentbuilder.ini | 20 +- .../en-GB/en-GB.com_componentbuilder.sys.ini | 2 - admin/layouts/fieldtype/fields_fullwidth.php | 4 +- admin/layouts/table.php | 28 +- admin/sql/install.mysql.utf8.sql | 1401 ++++++++++------- .../Admin_custom_tabsController.php | 16 + .../src/Controller/Admin_fieldsController.php | 16 + .../Admin_fields_conditionsController.php | 16 + .../Admin_fields_relationsController.php | 16 + admin/src/Controller/Admin_viewController.php | 16 + .../Controller/Class_extendsController.php | 16 + .../src/Controller/Class_methodController.php | 16 + .../Controller/Class_propertyController.php | 16 + admin/src/Controller/CompilerController.php | 6 + .../Component_admin_viewsController.php | 16 + .../Controller/Component_configController.php | 16 + ...Component_custom_admin_menusController.php | 16 + ...Component_custom_admin_viewsController.php | 16 + .../Component_dashboardController.php | 16 + .../Component_files_foldersController.php | 16 + .../Component_modulesController.php | 16 + .../Component_mysql_tweaksController.php | 16 + .../Component_placeholdersController.php | 16 + .../Component_pluginsController.php | 16 + .../Controller/Component_routerController.php | 16 + .../Component_site_viewsController.php | 16 + .../Component_updatesController.php | 16 + .../Custom_admin_viewController.php | 16 + .../src/Controller/Custom_codeController.php | 16 + .../src/Controller/Dynamic_getController.php | 16 + admin/src/Controller/FieldController.php | 16 + admin/src/Controller/FieldtypeController.php | 235 ++- admin/src/Controller/FieldtypesController.php | 211 ++- .../Controller/Help_documentController.php | 16 + .../Controller/Joomla_componentController.php | 16 + .../Controller/Joomla_moduleController.php | 16 + ...la_module_files_folders_urlsController.php | 16 + .../Joomla_module_updatesController.php | 16 + .../Controller/Joomla_modulesController.php | 9 - .../Controller/Joomla_pluginController.php | 16 + ...la_plugin_files_folders_urlsController.php | 16 + .../Joomla_plugin_groupController.php | 16 + .../Joomla_plugin_updatesController.php | 16 + .../src/Controller/Joomla_powerController.php | 16 + admin/src/Controller/LanguageController.php | 16 + .../Language_translationController.php | 16 + admin/src/Controller/LayoutController.php | 16 + admin/src/Controller/LibraryController.php | 16 + .../Controller/Library_configController.php | 16 + .../Library_files_folders_urlsController.php | 16 + .../src/Controller/PlaceholderController.php | 16 + admin/src/Controller/PowerController.php | 16 + admin/src/Controller/RepositoryController.php | 16 + admin/src/Controller/ServerController.php | 16 + admin/src/Controller/Site_viewController.php | 16 + admin/src/Controller/SnippetController.php | 16 + .../src/Controller/Snippet_typeController.php | 16 + admin/src/Controller/TemplateController.php | 16 + .../Controller/Validation_ruleController.php | 16 + admin/src/Helper/ComponentbuilderHelper.php | 8 +- admin/src/Model/AjaxModel.php | 52 +- admin/src/Model/Joomla_pluginsModel.php | 3 +- admin/src/View/Joomla_module/HtmlView.php | 6 +- admin/src/View/Joomla_modules/HtmlView.php | 5 - admin/src/View/Joomla_plugin/HtmlView.php | 22 +- componentbuilder.xml | 6 +- componentbuilder_update_server.xml | 6 +- images/vdm/demo500.jpg | Bin 0 -> 55435 bytes images/vdm/index.html | 1 + .../VDM.Joomla.FOF/src/Encrypt/Randval.php | 2 +- .../VDM.Joomla/src/Abstraction/BaseTable.php | 22 +- .../VDM.Joomla/src/Abstraction/Model.php | 2 +- .../JoomlaFive/ComHelperClass/CreateUser.php | 127 ++ .../JoomlaFive/ComHelperClass/index.html | 1 + .../JoomlaFive/Plugin/Extension.php | 33 +- .../JoomlaFour/ComHelperClass/CreateUser.php | 125 ++ .../JoomlaFour/ComHelperClass/index.html | 1 + .../JoomlaFour/Plugin/Extension.php | 33 +- .../JoomlaThree/ComHelperClass/CreateUser.php | 366 +++++ .../JoomlaThree/ComHelperClass/index.html | 1 + .../src/Componentbuilder/Compiler/Config.php | 30 +- .../Compiler/Creator/Builders.php | 3 +- .../Compiler/Customcode/Dispenser.php | 49 +- .../Compiler/Customcode/Extractor.php | 2 +- .../src/Componentbuilder/Compiler/Factory.php | 2 + .../Componentbuilder/Compiler/Helper/Get.php | 2 +- .../Compiler/Helper/Infusion.php | 7 +- .../Compiler/Helper/Interpretation.php | 416 +---- .../ComHelperClass/CreateUserInterface.php | 36 + .../Architecture/ComHelperClass/index.html | 1 + .../Componentbuilder/Compiler/Model/Sql.php | 14 +- .../Compiler/Model/Sqldump.php | 8 +- .../Compiler/Model/Sqltweaking.php | 7 +- .../Compiler/Model/Updatesql.php | 7 +- .../Service/ArchitectureComHelperClass.php | 118 ++ .../src/Componentbuilder/File/Display.php | 220 +++ .../src/Componentbuilder/File/Factory.php | 48 + .../src/Componentbuilder/File/Handler.php | 129 ++ .../src/Componentbuilder/File/Manager.php | 256 +++ .../Componentbuilder/File/Service/File.php | 115 ++ .../Componentbuilder/File/Service/index.html | 1 + .../src/Componentbuilder/File/Type.php | 301 ++++ .../src/Componentbuilder/File/index.html | 1 + .../VDM.Joomla/src/Componentbuilder/Table.php | 110 +- .../Exception/NoUserIdFoundException.php | 23 + .../Utilities/Exception/index.html | 1 + .../Componentbuilder/Utilities/UserHelper.php | 481 ++++++ .../vendor_jcb/VDM.Joomla/src/Data/Guid.php | 110 ++ .../VDM.Joomla/src/Data/MultiSubform.php | 5 +- .../VDM.Joomla/src/Data/Subform.php | 101 +- .../VDM.Joomla/src/Data/UsersSubform.php | 614 ++++++++ .../src/Interfaces/Data/GuidInterface.php | 36 + .../src/Interfaces/Data/SubformInterface.php | 3 +- .../src/Interfaces/ModelInterface.php | 2 +- .../VDM.Joomla/src/Service/Data.php | 19 + .../src/Utilities/Component/Helper.php | 170 +- .../VDM.Joomla/src/Utilities/MimeHelper.php | 1174 ++++++++++++++ .../VDM.Joomla/src/Utilities/UploadHelper.php | 327 ++++ 129 files changed, 7128 insertions(+), 1449 deletions(-) create mode 100644 admin/custom/dynamicDownloadController.php create mode 100644 images/vdm/demo500.jpg create mode 100644 images/vdm/index.html create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Architecture/JoomlaFive/ComHelperClass/CreateUser.php create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Architecture/JoomlaFive/ComHelperClass/index.html create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Architecture/JoomlaFour/ComHelperClass/CreateUser.php create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Architecture/JoomlaFour/ComHelperClass/index.html create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Architecture/JoomlaThree/ComHelperClass/CreateUser.php create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Architecture/JoomlaThree/ComHelperClass/index.html create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Interfaces/Architecture/ComHelperClass/CreateUserInterface.php create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Interfaces/Architecture/ComHelperClass/index.html create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Service/ArchitectureComHelperClass.php create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Display.php create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Factory.php create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Handler.php create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Manager.php create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Service/File.php create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Service/index.html create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Type.php create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/index.html create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Utilities/Exception/NoUserIdFoundException.php create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Utilities/Exception/index.html create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Utilities/UserHelper.php create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Data/Guid.php create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Data/UsersSubform.php create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Interfaces/Data/GuidInterface.php create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Utilities/MimeHelper.php create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Utilities/UploadHelper.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c2cc27bd..3cc49bd6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,17 @@ -# v5.0.3-alpha3 +# v5.0.3-alpha4 -- Fix usergrouplist compiler triggers. #1100 -- Add field type power integration [init, reset, push] +- Fix database default fields to allow NULL. #1169 +- Fix the power list field to allow search. #1167 +- Expanded the Demo component in JCB v4 to include more advance features. # v5.0.3-alpha - Add push option to powers area - Fix library save as copy error. #1162 - Fix the error when no components exists. #1164 -- Fix search page error due to File class. +- Fix search page error due to File class. +- Fix usergrouplist compiler triggers. #1100 +- Add field type power integration [init, reset, push] # v5.0.2 diff --git a/ComponentbuilderInstallerScript.php b/ComponentbuilderInstallerScript.php index a47a672b5..ca5b22233 100644 --- a/ComponentbuilderInstallerScript.php +++ b/ComponentbuilderInstallerScript.php @@ -1514,10 +1514,10 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface // Fix the assets table rules column size. - $this->setDatabaseAssetsRulesFix(95680, "MEDIUMTEXT"); + $this->setDatabaseAssetsRulesFix(95520, "MEDIUMTEXT"); // Install the global extension params. $this->setExtensionsParams( - '{"autorName":"Llewellyn van der Merwe","autorEmail":"joomla@vdm.io","subform_layouts":"default","editor":"none","manage_jcb_package_directories":"2","set_browser_storage":"1","storage_time_to_live":"global","super_powers_documentation":"0","powers_repository":"0","super_powers_repositories":"0","builder_gif_size":"480-272","compiler_plugin":["componentbuilderactionlogcompiler","componentbuilderfieldorderingcompiler","componentbuilderheaderscompiler","componentbuilderpowersautoloadercompiler","componentbuilderprivacycompiler"],"add_menu_prefix":"1","menu_prefix":"»","namespace_prefix":"JCB","minify":"0","language":"en-GB","percentagelanguageadd":"30","assets_table_fix":"2","compiler_field_builder_type":"2","field_name_builder":"1","type_name_builder":"1","import_guid_only":"1","export_language_strings":"1","cronjob_backup_type":"1","cronjob_backup_server":"0","backup_package_name":"JCB_Backup_[YEAR]_[MONTH]_[DAY]","export_company":"Vast Development Method","export_owner":"Llewellyn van der Merwe","export_email":"joomla@vdm.io","export_website":"https://dev.vdm.io/","export_license":"GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html","export_copyright":"Copyright (C) 2015. All Rights Reserved","check_in":"-1 day","save_history":"1","history_limit":"10","add_jquery_framework":"1","uikit_load":"1","uikit_min":"","uikit_style":""}' + '{"autorName":"Llewellyn van der Merwe","autorEmail":"joomla@vdm.io","subform_layouts":"default","editor":"none","manage_jcb_package_directories":"2","set_browser_storage":"1","storage_time_to_live":"global","super_powers_documentation":"0","powers_repository":"0","super_powers_repositories":"0","builder_gif_size":"480-272","compiler_plugin":["componentbuilderactionlogcompiler","componentbuilderfieldorderingcompiler","componentbuilderheaderscompiler","componentbuilderpowersautoloadercompiler","componentbuilderprivacycompiler"],"add_menu_prefix":"1","menu_prefix":"»","namespace_prefix":"JCB","minify":"0","language":"en-GB","percentagelanguageadd":"30","assets_table_fix":"2","compiler_field_builder_type":"2","field_name_builder":"2","type_name_builder":"2","import_guid_only":"1","export_language_strings":"1","cronjob_backup_type":"1","cronjob_backup_server":"0","backup_package_name":"JCB_Backup_[YEAR]_[MONTH]_[DAY]","export_company":"Vast Development Method","export_owner":"Llewellyn van der Merwe","export_email":"joomla@vdm.io","export_website":"https://dev.vdm.io/","export_license":"GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html","export_copyright":"Copyright (C) 2015. All Rights Reserved","check_in":"-1 day","save_history":"1","history_limit":"10","add_jquery_framework":"1","uikit_load":"1","uikit_min":"","uikit_style":""}' ); @@ -3270,7 +3270,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface echo '
-

Upgrade to Version 5.0.3-alpha3 Was Successful! Let us know if anything is not working as expected.

'; +

Upgrade to Version 5.0.3-alpha4 Was Successful! Let us know if anything is not working as expected.

'; // Add/Update component in the action logs extensions table. $this->setActionLogsExtensions(); diff --git a/README.md b/README.md index 9dfd86d2d..c365c96fc 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (5.0.3-alpha3) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (5.0.3-alpha4) 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) @@ -144,14 +144,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*: 23rd August, 2024 -+ *Version*: 5.0.3-alpha3 ++ *Last Build*: 18th September, 2024 ++ *Version*: 5.0.3-alpha4 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **835017** ++ *Line count*: **855127** + *Field count*: **2104** -+ *File count*: **5805** -+ *Folder count*: **622** ++ *File count*: **5912** ++ *Folder count*: **630** > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com). > Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io) diff --git a/admin/README.txt b/admin/README.txt index 9dfd86d2d..c365c96fc 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (5.0.3-alpha3) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (5.0.3-alpha4) 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) @@ -144,14 +144,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*: 23rd August, 2024 -+ *Version*: 5.0.3-alpha3 ++ *Last Build*: 18th September, 2024 ++ *Version*: 5.0.3-alpha4 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **835017** ++ *Line count*: **855127** + *Field count*: **2104** -+ *File count*: **5805** -+ *Folder count*: **622** ++ *File count*: **5912** ++ *Folder count*: **630** > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com). > Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io) diff --git a/admin/access.xml b/admin/access.xml index f02c11430..ae3451105 100644 --- a/admin/access.xml +++ b/admin/access.xml @@ -314,7 +314,6 @@ - diff --git a/admin/compiler/joomla_4/ADMIN_VIEW_CONTROLLER.php b/admin/compiler/joomla_4/ADMIN_VIEW_CONTROLLER.php index 14eff0389..222f6fba2 100644 --- a/admin/compiler/joomla_4/ADMIN_VIEW_CONTROLLER.php +++ b/admin/compiler/joomla_4/ADMIN_VIEW_CONTROLLER.php @@ -52,7 +52,23 @@ class ###View###Controller extends FormController * @var string * @since 1.6 */ - protected $view_list = '###views###';###ADMIN_CUSTOM_BUTTONS_CONTROLLER### + protected $view_list = '###views###'; + + /** + * Referral value + * + * @var string + * @since 5.0 + */ + protected string $ref; + + /** + * Referral ID value + * + * @var int + * @since 5.0 + */ + protected int $refid;###ADMIN_CUSTOM_BUTTONS_CONTROLLER### /** * Method override to check if you can add a new record. diff --git a/admin/custom/dynamicDownloadController.php b/admin/custom/dynamicDownloadController.php new file mode 100644 index 000000000..fe2ee525b --- /dev/null +++ b/admin/custom/dynamicDownloadController.php @@ -0,0 +1,16 @@ + + * @copyright Copyright (C) 2014. All Rights Reserved + * @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + * + **/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); +?> +###BOM### +[CUSTOMCODE=dynamicDownloadController] \ No newline at end of file diff --git a/admin/forms/custom_code.xml b/admin/forms/custom_code.xml index d4a4c2fee..79bd9bdc1 100644 --- a/admin/forms/custom_code.xml +++ b/admin/forms/custom_code.xml @@ -144,6 +144,7 @@ label="COM_COMPONENTBUILDER_CUSTOM_CODE_TYPE_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_CODE_TYPE_DESCRIPTION" class="btn-group btn-group-yesno" + default="0" required="true">