bool
DB_NestedSet::triggerEvent
(
string
$event
,
&$node
,
array
$eparams
= false
,
object
$
)
This package is not documented yet.
$event
The Event that occured
&$node
Node
$eparams
A associative array of params which may be needed by the handler
$node
A Reference to the node object which was subject to changes
throws no exceptions thrown
This function can not be called statically.
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);
?>