DB_NestedSet::triggerEvent()
-- Triggers and event an calls the event listeners
Description
Ce module n'est actuellement pas documenté.
Paramètres
- chaîne de caractères
$event
The Event that occured
- array
$eparams
A associative array of params which may be needed by the handler
- object
$node
A Reference to the node object which was subject to changes
Valeurs renvoyées
throws
no exceptions thrown
Note
Cette fonction ne peut pas être appelée de façon statique.
Exemple
Exemple 39-1. Trigger Event
<?php
require_once('DB/NestedSet.php');
$nestedSet =& DB_NestedSet::factory('DB', $dsn, $params);
$nestedSet->AddListener("nodeCreate", "listener");
$parent = $nestedSet->createRootNode(array('name' => 'rootnode'), false, true);
$node = $nestedSet->createSubNode($parent, array('name' => "node"));
$nestedSet->TriggerEvent("nodeDelete", $node);
?>
|
|