| // +----------------------------------------------------------------------+ // // $Id$ // // */ /** * Poor mans event handler for DB_NestedSet * * Mostly for demo purposes or for extending it if * someone has ideas... * * @author Daniel Khan * @package DB_NestedSet * @version $Revision: 1.4 $ * @access public */ Class DB_NestedSetEvent { /** * Constructor * * @return void */ function DB_NestedSetEvent() { } /** * Destructor * * @return void */ function _DB_NestedSetEvent() { } /** * Calls the event handler * * You may want to do a switch() here and call you methods * depending on the event * * @param string $event The Event that occured * @param object node $node A Reference to the node object which was subject to changes * @param array $eparams A associative array of params which may be needed by the handler * @return void * @access private */ function callEvent($event, &$node, $eparams = array()) { echo "
Override callEvent() if you want to have custom event handlers
\n"; echo "Event $event was called with the following params:

\n"; echo "
";
        print_r($eparams);
        echo "

\n"; } } ?>