| @@ 28-48 (lines=21) @@ | ||
| 25 | */ |
|
| 26 | class referencesNewcategoryAction extends references_action |
|
| 27 | { |
|
| 28 | public function registerEvents() |
|
| 29 | { |
|
| 30 | /** |
|
| 31 | * La liste des évènements traités par le plugin se présente sous la forme d'un tableau compposé comme ceci : |
|
| 32 | * |
|
| 33 | * Indice Signification |
|
| 34 | * ---------------------- |
|
| 35 | * 0 Evènement sur lequel se raccrocher (voir class/references_plugins.php::EVENT_ON_PRODUCT_CREATE |
|
| 36 | * 1 Priorité du plugin (de 1 à 5) |
|
| 37 | * 2 Script Php à inclure |
|
| 38 | * 3 Classe à instancier |
|
| 39 | * 4 Méthode à appeler |
|
| 40 | */ |
|
| 41 | $events = array(); |
|
| 42 | $events[] = array( |
|
| 43 | references_plugins::EVENT_ON_CATEGORY_CREATE, |
|
| 44 | references_plugins::EVENT_PRIORITY_1, |
|
| 45 | basename(__FILE__), |
|
| 46 | __CLASS__, |
|
| 47 | 'fireNewCategory' |
|
| 48 | ); |
|
| 49 | ||
| 50 | return $events; |
|
| 51 | } |
|
| @@ 28-48 (lines=21) @@ | ||
| 25 | */ |
|
| 26 | class referencesNewreferenceAction extends references_action |
|
| 27 | { |
|
| 28 | public function registerEvents() |
|
| 29 | { |
|
| 30 | /** |
|
| 31 | * La liste des évènements traités par le plugin se présente sous la forme d'un tableau compposé comme ceci : |
|
| 32 | * |
|
| 33 | * Indice Signification |
|
| 34 | * ---------------------- |
|
| 35 | * 0 Evènement sur lequel se raccrocher (voir class/references_plugins.php::EVENT_ON_PRODUCT_CREATE |
|
| 36 | * 1 Priorité du plugin (de 1 à 5) |
|
| 37 | * 2 Script Php à inclure |
|
| 38 | * 3 Classe à instancier |
|
| 39 | * 4 Méthode à appeler |
|
| 40 | */ |
|
| 41 | $events = array(); |
|
| 42 | $events[] = array( |
|
| 43 | references_plugins::EVENT_ON_REFERENCE_CREATE, |
|
| 44 | references_plugins::EVENT_PRIORITY_1, |
|
| 45 | basename(__FILE__), |
|
| 46 | __CLASS__, |
|
| 47 | 'fireNewReference' |
|
| 48 | ); |
|
| 49 | ||
| 50 | return $events; |
|
| 51 | } |
|