[*] 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
+3 -3
View File
@@ -110,7 +110,7 @@ class AttributeCore extends ObjectModel
$return = parent::delete();
if ($return)
Module::hookExec('afterDeleteAttribute', array('id_attribute' => $this->id));
Hook::exec('afterDeleteAttribute', array('id_attribute' => $this->id));
return $return;
}
@@ -118,7 +118,7 @@ class AttributeCore extends ObjectModel
{
$return = parent::update($null_values);
if ($return)
Module::hookExec('afterSaveAttribute', array('id_attribute' => $this->id));
Hook::exec('afterSaveAttribute', array('id_attribute' => $this->id));
return $return;
}
@@ -129,7 +129,7 @@ class AttributeCore extends ObjectModel
$return = parent::add($autodate, $null_values);
if ($return)
Module::hookExec('afterSaveAttribute', array('id_attribute' => $this->id));
Hook::exec('afterSaveAttribute', array('id_attribute' => $this->id));
return $return;
}