[*] PROJECT : New Module API (part 1)

This commit is contained in:
fSerny
2011-11-02 10:49:01 +00:00
parent 7f830c2f4e
commit d5e265f75e
53 changed files with 640 additions and 339 deletions
+5 -5
View File
@@ -183,7 +183,7 @@ class CategoryCore extends ObjectModel
if (!isset($this->doNotRegenerateNTree) || !$this->doNotRegenerateNTree)
self::regenerateEntireNtree();
$this->updateGroup($this->groupBox);
Module::hookExec('categoryAddition', array('category' => $this));
Hook::exec('categoryAddition', array('category' => $this));
return $ret;
}
@@ -208,7 +208,7 @@ class CategoryCore extends ObjectModel
self::regenerateEntireNtree();
$this->recalculateLevelDepth($this->id_category);
}
Module::hookExec('categoryUpdate', array('category' => $this));
Hook::exec('categoryUpdate', array('category' => $this));
return $ret;
}
@@ -218,7 +218,7 @@ class CategoryCore extends ObjectModel
public function toggleStatus()
{
$result = parent::toggleStatus();
Module::hookExec('categoryUpdate');
Hook::exec('categoryUpdate');
return $result;
}
@@ -347,7 +347,7 @@ class CategoryCore extends ObjectModel
if (!isset($this->doNotRegenerateNTree) || !$this->doNotRegenerateNTree)
self::regenerateEntireNtree();
Module::hookExec('categoryDeletion', array('category' => $this));
Hook::exec('categoryDeletion', array('category' => $this));
/* Delete Categories in GroupReduction */
foreach ($to_delete as $category)
@@ -1055,7 +1055,7 @@ class CategoryCore extends ObjectModel
SET `position` = '.(int)$position.'
WHERE `id_parent` = '.(int)$moved_category['id_parent'].'
AND `id_category`='.(int)$moved_category['id_category']));
Module::hookExec('categoryUpdate');
Hook::exec('categoryUpdate');
return $result;
}