Source for file Publisher.inc
Documentation is available at Publisher.inc
* a class for handling the publishing of data
* phpDocumentor :: automatic documentation generator
* Copyright (c) 2000-2006 Kellin, Joshua Eichorn
* This library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General
* Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* @copyright 2000-2006 Kellin, Joshua Eichorn
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @version CVS: $Id: Publisher.inc,v 1.3 2006/04/30 22:18:14 cellog Exp $
* @link http://www.phpdoc.org
* @link http://pear.php.net/PhpDocumentor
* a class for handling the publishing of data
* @version $Id: Publisher.inc,v 1.3 2006/04/30 22:18:14 cellog Exp $
* Array of references objects that have Subscribed to this publisher
* 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()}
* @param integer $event see {@link Parser.inc} PARSER_EVENT_* constants
* @param mixed $data anything the subscribed event handler is expecting
// see if there is a specific event handler
$this->subscriber[$event]->HandleEvent($event,$data);
$this->subscriber['*']->HandleEvent($event,$data);
|