From 40d867e6029657eed9326dee3c7d8da16b234183 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Mon, 26 Aug 2019 19:30:22 +0200 Subject: [PATCH] add onBeforeBuildAccessSections & onAfterBuildAccessSections events to compiler of JCB. --- README.md | 6 +++--- admin/README.txt | 6 +++--- admin/helpers/compiler/e_Interpretation.php | 8 ++++++++ admin/helpers/componentbuilder.php | 3 --- site/helpers/componentbuilder.php | 3 --- 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index bd6f26bfb..69e9d270f 100644 --- a/README.md +++ b/README.md @@ -150,10 +150,10 @@ TODO + *Version*: 2.10.0 + *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **247882** ++ *Line count*: **247734** + *Field count*: **1343** -+ *File count*: **1608** -+ *Folder count*: **253** ++ *File count*: **1604** ++ *Folder count*: **250** > 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 bd6f26bfb..69e9d270f 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -150,10 +150,10 @@ TODO + *Version*: 2.10.0 + *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **247882** ++ *Line count*: **247734** + *Field count*: **1343** -+ *File count*: **1608** -+ *Folder count*: **253** ++ *File count*: **1604** ++ *Folder count*: **250** > 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/helpers/compiler/e_Interpretation.php b/admin/helpers/compiler/e_Interpretation.php index 61fddfa43..405e66284 100644 --- a/admin/helpers/compiler/e_Interpretation.php +++ b/admin/helpers/compiler/e_Interpretation.php @@ -15703,7 +15703,11 @@ function vdm_dkim() { $this->componentGlobal = array(); $this->permissionViews = array(); + // Trigger Event: jcb_ce_onBeforeBuildAccessSections + $this->triggerEvent('jcb_ce_onBeforeBuildAccessSections', array(&$this->componentContext, $this)); + $this->componentHead[] = '
'; + $this->componentHead[] = $this->_t(2) . ''; $this->componentHead[] = $this->_t(2) . ''; $this->componentHead[] = $this->_t(2) . ''; @@ -15938,6 +15942,10 @@ function vdm_dkim() { $this->buildPermissions($view, $nameView, $nameViews, $menuControllers); } } + + // Trigger Event: jcb_ce_onAfterBuildAccessSections + $this->triggerEvent('jcb_ce_onAfterBuildAccessSections', array(&$this->componentContext, $this)); + // set the views permissions now if (ComponentbuilderHelper::checkArray($this->permissionViews)) { diff --git a/admin/helpers/componentbuilder.php b/admin/helpers/componentbuilder.php index 3bb805bba..9f35ace27 100644 --- a/admin/helpers/componentbuilder.php +++ b/admin/helpers/componentbuilder.php @@ -5215,9 +5215,6 @@ abstract class ComponentbuilderHelper && ($timestamp <= PHP_INT_MAX) && ($timestamp >= ~PHP_INT_MAX); } - - - // Privacy integration with Joomla Privacy suite /** * Load the Component xml manifest. diff --git a/site/helpers/componentbuilder.php b/site/helpers/componentbuilder.php index a36a0c130..8fb06b96d 100644 --- a/site/helpers/componentbuilder.php +++ b/site/helpers/componentbuilder.php @@ -5215,9 +5215,6 @@ abstract class ComponentbuilderHelper && ($timestamp <= PHP_INT_MAX) && ($timestamp >= ~PHP_INT_MAX); } - - - // Privacy integration with Joomla Privacy suite public static function jsonToString($value, $sperator = ", ", $table = null, $id = 'id', $name = 'name')