[*] PROJECT : New Module API (part 1)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9790 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user