[*] 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:
+3
-3
@@ -113,7 +113,7 @@ class FeatureCore extends ObjectModel
|
||||
public function add($autodate = true, $nullValues = false)
|
||||
{
|
||||
$return = parent::add($autodate, true);
|
||||
Module::hookExec('afterSaveFeature', array('id_feature' => $this->id));
|
||||
Hook::exec('afterSaveFeature', array('id_feature' => $this->id));
|
||||
return $return;
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ class FeatureCore extends ObjectModel
|
||||
|
||||
$return = parent::delete();
|
||||
if($return)
|
||||
Module::hookExec('afterDeleteFeature', array('id_feature' => $this->id));
|
||||
Hook::exec('afterDeleteFeature', array('id_feature' => $this->id));
|
||||
|
||||
/* Reinitializing position */
|
||||
$this->cleanPositions();
|
||||
@@ -155,7 +155,7 @@ class FeatureCore extends ObjectModel
|
||||
Db::getInstance()->AutoExecute(_DB_PREFIX_.$this->table.'_lang', $field, 'UPDATE', '`'.
|
||||
pSQL($this->identifier).'` = '.(int)$this->id.' AND `id_lang` = '.(int)$field['id_lang']);
|
||||
}
|
||||
Module::hookExec('afterSaveFeature', array('id_feature' => $this->id));
|
||||
Hook::exec('afterSaveFeature', array('id_feature' => $this->id));
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user