* Array of references objects that have Subscribed to this publisher
*/
var $subscriber = array();
var $tokens = array();
var $pushEvent = array();
var $popEvent = array();
/**#@-*/
/**
* Adds a subscriber to the {@link $subscriber} array().
* if $event is '*', the publisher will use $object as the default event handler
* @param integer $event see {@link Parser.inc} PARSER_EVENT_* constants
* @param class $object any class that has a HandleEvent() method like {@link phpDocumentor_IntermediateParser::HandleEvent()} or {@link Classes::HandleEvent()}
*/
function subscribe($event, &$object)
{
$this->subscriber[$event] =& $object;
}
/**
* @param integer $event see {@link Parser.inc} PARSER_EVENT_* constants
* @param mixed $data anything the subscribed event handler is expecting