From 3ba62566cbd728003a686351806f3dd520aa04d6 Mon Sep 17 00:00:00 2001 From: aB0t Date: Thu, 15 Aug 2024 01:37:23 +0200 Subject: [PATCH] Release of v1.2.4 --- componentbuilderprivacycompiler.php | 27 +++++++++---------- componentbuilderprivacycompiler.xml | 6 +++-- ...ension_componentbuilderprivacycompiler.ini | 2 ++ ...on_componentbuilderprivacycompiler.sys.ini | 2 ++ ...ension_componentbuilderprivacycompiler.ini | 2 +- ...on_componentbuilderprivacycompiler.sys.ini | 2 +- 6 files changed, 23 insertions(+), 18 deletions(-) create mode 100644 language/af-ZA/af-ZA.plg_extension_componentbuilderprivacycompiler.ini create mode 100644 language/af-ZA/af-ZA.plg_extension_componentbuilderprivacycompiler.sys.ini diff --git a/componentbuilderprivacycompiler.php b/componentbuilderprivacycompiler.php index 40bdb23..4d8653a 100644 --- a/componentbuilderprivacycompiler.php +++ b/componentbuilderprivacycompiler.php @@ -12,28 +12,27 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/componentbuilder.php'); + use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\Application\CMSApplication; use Joomla\CMS\Plugin\CMSPlugin; -use Joomla\Registry\Registry; -use VDM\Joomla\Utilities\JsonHelper; -use VDM\Joomla\Utilities\ArrayHelper; -use VDM\Joomla\Utilities\StringHelper; -use Joomla\CMS\Component\ComponentHelper; - -JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/componentbuilder.php'); - +use Joomla\Registry\Registry; use VDM\Joomla\Componentbuilder\Compiler\Factory as CFactory; use VDM\Joomla\Componentbuilder\Compiler\Utilities\Placefix; use VDM\Joomla\Componentbuilder\Compiler\Utilities\Indent; -use VDM\Joomla\Componentbuilder\Compiler\Utilities\Line; +use VDM\Joomla\Componentbuilder\Compiler\Utilities\Line; +use VDM\Joomla\Utilities\JsonHelper; +use VDM\Joomla\Utilities\ArrayHelper; +use VDM\Joomla\Utilities\StringHelper; +use Joomla\CMS\Component\ComponentHelper; /** * Extension - Componentbuilder Privacy Compiler plugin. * * @package ComponentbuilderPrivacyCompiler - * @since 1.2.3 + * @since 1.2.4 */ class PlgExtensionComponentbuilderPrivacyCompiler extends CMSPlugin { @@ -332,7 +331,7 @@ class PlgExtensionComponentbuilderPrivacyCompiler extends CMSPlugin $lang_key = $view->placeholders[Placefix::_("LANG_PREFIX")] . '_PRIVACY_CANT_REMOVE_CONTACT_SUPPORT'; } $methods .= PHP_EOL . Indent::_(2) . "//" . Line::_(__Line__, __Class__) . " Check if any reasons were found not to allow removal"; - $methods .= PHP_EOL . Indent::_(2) . "if (ArrayHelper::check(\$reasons))"; + $methods .= PHP_EOL . Indent::_(2) . "if (Super__"."_0a59c65c_9daf_4bc9_baf4_e063ff9e6a8a___Power::check(\$reasons))"; $methods .= PHP_EOL . Indent::_(2) . "{"; $methods .= PHP_EOL . Indent::_(3) . "\$status->canRemove = false;"; // set language string @@ -445,7 +444,7 @@ class PlgExtensionComponentbuilderPrivacyCompiler extends CMSPlugin $methods .= PHP_EOL . Indent::_(2) . "//" . Line::_(__Line__, __Class__) . " Get all item details of " . $view->name_list . " that belong to this user"; $methods .= PHP_EOL . Indent::_(2) . "\$items = \$model->getPrivacyExport(\$pks, \$user);"; $methods .= PHP_EOL . Indent::_(2) . "//" . Line::_(__Line__, __Class__) . " check if we have items since permissions could block the request"; - $methods .= PHP_EOL . Indent::_(2) . "if (ArrayHelper::check(\$items))"; + $methods .= PHP_EOL . Indent::_(2) . "if (Super__"."_0a59c65c_9daf_4bc9_baf4_e063ff9e6a8a___Power::check(\$items))"; $methods .= PHP_EOL . Indent::_(2) . "{"; $methods .= PHP_EOL . Indent::_(3) . "//" . Line::_(__Line__, __Class__) . " Remove " . $view->name_single . " default columns"; $methods .= PHP_EOL . Indent::_(3) . "foreach (array('params', 'asset_id', 'checked_out', 'checked_out_time', 'created', 'created_by', 'modified', 'modified_by', 'published', 'ordering', 'access', 'version', 'hits') as \$column)"; @@ -682,7 +681,7 @@ class PlgExtensionComponentbuilderPrivacyCompiler extends CMSPlugin $methods .= PHP_EOL . Indent::_(2) . "//" . Line::_(__Line__, __Class__) . " get all items for the " . $view->name_list . " table that belong to this user"; $methods .= PHP_EOL . Indent::_(2) . "\$pks = \$db->setQuery(\$query)->loadColumn();"; - $methods .= PHP_EOL .PHP_EOL . Indent::_(2) . "if (ArrayHelper::check(\$pks))"; + $methods .= PHP_EOL .PHP_EOL . Indent::_(2) . "if (Super__"."_0a59c65c_9daf_4bc9_baf4_e063ff9e6a8a___Power::check(\$pks))"; $methods .= PHP_EOL . Indent::_(2) . "{"; $methods .= PHP_EOL . Indent::_(3) . "//" . Line::_(__Line__, __Class__) . " get the " . $viewName_single . " model"; $methods .= PHP_EOL . Indent::_(3) . "\$model = self::getModel('" . $viewName_single . "', JPATH_ADMINISTRATOR . '/components/com_" . Placefix::_("component") . "');"; @@ -769,7 +768,7 @@ class PlgExtensionComponentbuilderPrivacyCompiler extends CMSPlugin $methods .= PHP_EOL . Indent::_(3) . "\$table = \$model->getTable();"; $methods .= PHP_EOL . Indent::_(3) . "//" . Line::_(__Line__, __Class__) . " check that we still have pseudoanonymised data for " . $view->name_list . " set"; - $methods .= PHP_EOL . Indent::_(3) . "if (!ArrayHelper::check(\$pseudoanonymisedData))"; + $methods .= PHP_EOL . Indent::_(3) . "if (!Super__"."_0a59c65c_9daf_4bc9_baf4_e063ff9e6a8a___Power::check(\$pseudoanonymisedData))"; $methods .= PHP_EOL . Indent::_(3) . "{"; $methods .= PHP_EOL . Indent::_(4) . "//" . Line::_(__Line__, __Class__) . " still archive all items"; $methods .= PHP_EOL . Indent::_(4) . "\$table->publish(\$pks, 2);"; diff --git a/componentbuilderprivacycompiler.xml b/componentbuilderprivacycompiler.xml index 97d0f03..59bdcd8 100644 --- a/componentbuilderprivacycompiler.xml +++ b/componentbuilderprivacycompiler.xml @@ -1,13 +1,13 @@ PLG_EXTENSION_COMPONENTBUILDERPRIVACYCOMPILER - 27th July, 2024 + 14th August, 2024 Llewellyn van der Merwe joomla@vdm.io https://dev.vdm.io Copyright (C) 2015 Vast Development Method. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt - 1.2.3 + 1.2.4 PLG_EXTENSION_COMPONENTBUILDERPRIVACYCOMPILER_XML_DESCRIPTION @@ -17,6 +17,8 @@ en-GB/en-GB.plg_extension_componentbuilderprivacycompiler.ini en-GB/en-GB.plg_extension_componentbuilderprivacycompiler.sys.ini + af-ZA/af-ZA.plg_extension_componentbuilderprivacycompiler.ini + af-ZA/af-ZA.plg_extension_componentbuilderprivacycompiler.sys.ini diff --git a/language/af-ZA/af-ZA.plg_extension_componentbuilderprivacycompiler.ini b/language/af-ZA/af-ZA.plg_extension_componentbuilderprivacycompiler.ini new file mode 100644 index 0000000..ff80c61 --- /dev/null +++ b/language/af-ZA/af-ZA.plg_extension_componentbuilderprivacycompiler.ini @@ -0,0 +1,2 @@ +PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_YES="Ja" +PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NO="Nee" \ No newline at end of file diff --git a/language/af-ZA/af-ZA.plg_extension_componentbuilderprivacycompiler.sys.ini b/language/af-ZA/af-ZA.plg_extension_componentbuilderprivacycompiler.sys.ini new file mode 100644 index 0000000..ff80c61 --- /dev/null +++ b/language/af-ZA/af-ZA.plg_extension_componentbuilderprivacycompiler.sys.ini @@ -0,0 +1,2 @@ +PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_YES="Ja" +PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NO="Nee" \ No newline at end of file diff --git a/language/en-GB/en-GB.plg_extension_componentbuilderprivacycompiler.ini b/language/en-GB/en-GB.plg_extension_componentbuilderprivacycompiler.ini index d9c266b..f86c33e 100644 --- a/language/en-GB/en-GB.plg_extension_componentbuilderprivacycompiler.ini +++ b/language/en-GB/en-GB.plg_extension_componentbuilderprivacycompiler.ini @@ -1,4 +1,4 @@ PLG_EXTENSION_COMPONENTBUILDERPRIVACYCOMPILER="Extension - Componentbuilder Privacy Compiler" PLG_EXTENSION_COMPONENTBUILDERPRIVACYCOMPILER_DESCRIPTION="This plugin is used to build the privacy plugin for your component during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.Also be sure to link your admin views to the privacy suite of Joomla via our other Content - Componentbuilder Privacy Tabs plugin." -PLG_EXTENSION_COMPONENTBUILDERPRIVACYCOMPILER_XML_DESCRIPTION="

Extension - Componentbuilder Privacy Compiler (v.1.2.3)

This plugin is used to build the privacy plugin for your component during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.Also be sure to link your admin views to the privacy suite of Joomla via our other Content - Componentbuilder Privacy Tabs plugin.

Created by Llewellyn van der Merwe
Development started 17th August, 2019

" +PLG_EXTENSION_COMPONENTBUILDERPRIVACYCOMPILER_XML_DESCRIPTION="

Extension - Componentbuilder Privacy Compiler (v.1.2.4)

This plugin is used to build the privacy plugin for your component during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.Also be sure to link your admin views to the privacy suite of Joomla via our other Content - Componentbuilder Privacy Tabs plugin.

Created by Llewellyn van der Merwe
Development started 17th August, 2019

" PLG_EXTENSION_COMPONENTBUILDERPRIVACYCOMPILER_YOU_DO_NOT_HAVE_A_GLOBAL_PRIVACY_PLUGIN_SETUP_SO_THE_INTEGRATION_WITH_JOOMLA_PRIVACY_SUITE_COULD_NOT_BE_BUILD="You do not have a global privacy plugin setup, so the integration with Joomla privacy suite could not be build." \ No newline at end of file diff --git a/language/en-GB/en-GB.plg_extension_componentbuilderprivacycompiler.sys.ini b/language/en-GB/en-GB.plg_extension_componentbuilderprivacycompiler.sys.ini index d9c266b..f86c33e 100644 --- a/language/en-GB/en-GB.plg_extension_componentbuilderprivacycompiler.sys.ini +++ b/language/en-GB/en-GB.plg_extension_componentbuilderprivacycompiler.sys.ini @@ -1,4 +1,4 @@ PLG_EXTENSION_COMPONENTBUILDERPRIVACYCOMPILER="Extension - Componentbuilder Privacy Compiler" PLG_EXTENSION_COMPONENTBUILDERPRIVACYCOMPILER_DESCRIPTION="This plugin is used to build the privacy plugin for your component during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.Also be sure to link your admin views to the privacy suite of Joomla via our other Content - Componentbuilder Privacy Tabs plugin." -PLG_EXTENSION_COMPONENTBUILDERPRIVACYCOMPILER_XML_DESCRIPTION="

Extension - Componentbuilder Privacy Compiler (v.1.2.3)

This plugin is used to build the privacy plugin for your component during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.Also be sure to link your admin views to the privacy suite of Joomla via our other Content - Componentbuilder Privacy Tabs plugin.

Created by Llewellyn van der Merwe
Development started 17th August, 2019

" +PLG_EXTENSION_COMPONENTBUILDERPRIVACYCOMPILER_XML_DESCRIPTION="

Extension - Componentbuilder Privacy Compiler (v.1.2.4)

This plugin is used to build the privacy plugin for your component during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.Also be sure to link your admin views to the privacy suite of Joomla via our other Content - Componentbuilder Privacy Tabs plugin.

Created by Llewellyn van der Merwe
Development started 17th August, 2019

" PLG_EXTENSION_COMPONENTBUILDERPRIVACYCOMPILER_YOU_DO_NOT_HAVE_A_GLOBAL_PRIVACY_PLUGIN_SETUP_SO_THE_INTEGRATION_WITH_JOOMLA_PRIVACY_SUITE_COULD_NOT_BE_BUILD="You do not have a global privacy plugin setup, so the integration with Joomla privacy suite could not be build." \ No newline at end of file