From afdb2c1e314b1c2ec8d2db8d658b9f397c437adb Mon Sep 17 00:00:00 2001 From: Ankush Maherwal Date: Fri, 29 Apr 2022 13:22:29 +0530 Subject: [PATCH] Task #166370 feat: use namespace in overall product --- administrator/models/hierarchy.php | 12 ++++++------ hierarchy.xml | 6 +++--- plugins/actionlog/hierarchy/hierarchy.php | 4 ++-- plugins/actionlog/hierarchy/hierarchy.xml | 6 +++--- plugins/privacy/hierarchy/hierarchy.xml | 6 +++--- script.hierarchy.php | 2 +- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/administrator/models/hierarchy.php b/administrator/models/hierarchy.php index ae0f328..e04fe16 100755 --- a/administrator/models/hierarchy.php +++ b/administrator/models/hierarchy.php @@ -176,7 +176,7 @@ public function save($data) // On before assigning manager PluginHelper::importPlugin("system"); PluginHelper::importPlugin("actionlog"); - Factory::getApplication()->triggerEvent("hierarchyOnBeforeSaveHierarchy", array($data, $isNew)); + Factory::getApplication()->triggerEvent("onBeforeHierarchySaveHierarchy", array($data, $isNew)); if (parent::save($data)) { @@ -185,7 +185,7 @@ public function save($data) // On after assigning manager PluginHelper::importPlugin("system"); PluginHelper::importPlugin("actionlog"); - Factory::getApplication()->triggerEvent("hierarchyOnAfterSaveHierarchy", array($data, $isNew)); + Factory::getApplication()->triggerEvent("onAfterHierarchySaveHierarchy", array($data, $isNew)); return $id; } @@ -404,14 +404,14 @@ public function delete(&$pks) // On before removing manager PluginHelper::importPlugin("system"); PluginHelper::importPlugin("actionlog"); - Factory::getApplication()->triggerEvent("hierarchyOnBeforeDeleteHierarchy", array($data)); + Factory::getApplication()->triggerEvent("onBeforeHierarchyDeleteHierarchy", array($data)); if ($hierarchyTable->delete($data['id'])) { // On after removing manager PluginHelper::importPlugin("system"); PluginHelper::importPlugin("actionlog"); - Factory::getApplication()->triggerEvent("hierarchyOnAfterDeleteHierarchy", array($data)); + Factory::getApplication()->triggerEvent("onAfterHierarchyDeleteHierarchy", array($data)); } else { @@ -429,14 +429,14 @@ public function delete(&$pks) // On before removing manager PluginHelper::importPlugin("system"); PluginHelper::importPlugin("actionlog"); - Factory::getApplication()->triggerEvent("hierarchyOnBeforeDeleteHierarchy", array($data)); + Factory::getApplication()->triggerEvent("onBeforeHierarchyDeleteHierarchy", array($data)); if ($hierarchyTable->delete($data['id'])) { // On after removing manager PluginHelper::importPlugin("system"); PluginHelper::importPlugin("actionlog"); - Factory::getApplication()->triggerEvent("hierarchyOnAfterDeleteHierarchy", array($data)); + Factory::getApplication()->triggerEvent("onAfterHierarchyDeleteHierarchy", array($data)); } else { diff --git a/hierarchy.xml b/hierarchy.xml index f3e680b..dae8a8a 100644 --- a/hierarchy.xml +++ b/hierarchy.xml @@ -1,13 +1,13 @@ com_hierarchy - 22nd Jul 2021 - Copyright (C) 2016 - 2021 Techjoomla. All rights reserved. + 29th Apr 2022 + Copyright (C) 2016 - 2022 Techjoomla. All rights reserved. http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL Techjoomla extensions@techjoomla.com https://techjoomla.com - 1.1.3 + 2.0.0 This tool will let the admin set a ‘Reports to’ field for each user in the system. This will be updated en masse using a CSV diff --git a/plugins/actionlog/hierarchy/hierarchy.php b/plugins/actionlog/hierarchy/hierarchy.php index 354fed5..660bc9c 100644 --- a/plugins/actionlog/hierarchy/hierarchy.php +++ b/plugins/actionlog/hierarchy/hierarchy.php @@ -81,7 +81,7 @@ protected function addLog($messages, $messageLanguageKey, $context, $userId = nu * * @since 1.1.1 */ - public function hierarchyOnAfterSaveHierarchy($data, $isNew) + public function onAfterHierarchySaveHierarchy($data, $isNew) { if (!$this->params->get('logActionForAssigningManager', 1) || !$isNew) { @@ -120,7 +120,7 @@ public function hierarchyOnAfterSaveHierarchy($data, $isNew) * * @since 1.1.1 */ - public function hierarchyOnAfterDeleteHierarchy($data) + public function onAfterHierarchyDeleteHierarchy($data) { if (!$this->params->get('logActionForRemoveManager', 1) || empty($data['id'])) { diff --git a/plugins/actionlog/hierarchy/hierarchy.xml b/plugins/actionlog/hierarchy/hierarchy.xml index 0250c68..55346c6 100644 --- a/plugins/actionlog/hierarchy/hierarchy.xml +++ b/plugins/actionlog/hierarchy/hierarchy.xml @@ -1,12 +1,12 @@ plg_actionlog_hierarchy - 1.1.3 - 22nd Jul 2021 + 2.0.0 + 29th Apr 2022 Techjoomla extensions@techjoomla.com https://techjoomla.com - Copyright (C) 2016 - 2021 Techjoomla. All rights reserved. + Copyright (C) 2016 - 2022 Techjoomla. All rights reserved. http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL PLG_ACTIONLOG_HIERARCHY_XML_DESCRIPTION diff --git a/plugins/privacy/hierarchy/hierarchy.xml b/plugins/privacy/hierarchy/hierarchy.xml index 7eadb46..430c127 100644 --- a/plugins/privacy/hierarchy/hierarchy.xml +++ b/plugins/privacy/hierarchy/hierarchy.xml @@ -1,12 +1,12 @@ plg_privacy_hierarchy - 1.1.3 - 22nd Jul 2021 + 2.0.0 + 29th Apr 2022 Techjoomla extensions@techjoomla.com https://techjoomla.com - Copyright (C) 2016 - 2021 Techjoomla. All rights reserved. + Copyright (C) 2016 - 2022 Techjoomla. All rights reserved. http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL PLG_PRIVACY_HIERARCHY_XML_DESCRIPTION diff --git a/script.hierarchy.php b/script.hierarchy.php index 9e293e7..85e2525 100755 --- a/script.hierarchy.php +++ b/script.hierarchy.php @@ -2,7 +2,7 @@ /** * @version SVN: * @package Com_Hierarchy - * @copyright Copyright (C) 2016 - 2021 Techjoomla. All rights reserved. + * @copyright Copyright (C) 2016 - 2022 Techjoomla. All rights reserved. * @license GNU General Public License version 2 or later; see http://www.gnu.org/licenses/gpl-2.0.html * Hierarchy Management Extension is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or