class/references_articles.php 1 location
|
@@ 503-509 (lines=7) @@
|
| 500 |
|
* @param object|references_articles $article L'annonce pour laquelle on fait la notification |
| 501 |
|
* @return bool |
| 502 |
|
*/ |
| 503 |
|
public function notifyNewArticle(references_articles $article) |
| 504 |
|
{ |
| 505 |
|
$plugins = references_plugins::getInstance(); |
| 506 |
|
$plugins->fireAction(references_plugins::EVENT_ON_REFERENCE_CREATE, new references_parameters(array('reference' => $article))); |
| 507 |
|
|
| 508 |
|
return true; |
| 509 |
|
} |
| 510 |
|
|
| 511 |
|
/** |
| 512 |
|
* Effectue la suppression d'un article (et de ses images et fichier attaché) |
class/references_categories.php 1 location
|
@@ 189-195 (lines=7) @@
|
| 186 |
|
* @param object|references_categories $category |
| 187 |
|
* @return bool |
| 188 |
|
*/ |
| 189 |
|
public function notifyNewCategory(references_categories $category) |
| 190 |
|
{ |
| 191 |
|
$plugins = references_plugins::getInstance(); |
| 192 |
|
$plugins->fireAction(references_plugins::EVENT_ON_CATEGORY_CREATE, new references_parameters(array('category' => $category))); |
| 193 |
|
|
| 194 |
|
return true; |
| 195 |
|
} |
| 196 |
|
|
| 197 |
|
/** |
| 198 |
|
* Indique si une catégorie est visible d'un utilisateur |