Class Publisher

(line 54)

Description


Located in File: /phpDocumentor/Publisher.inc

a class for handling the publishing of data


Classes extended from Publisher:
Parser
PHP Parser for PHP 4.2.3-

Class Variables

Summary:
array $popEvent
array $pushEvent
array $subscriber
array $tokens

$popEvent = array() (line 67)

Data type : array

$pushEvent = array() (line 66)

Data type : array

$subscriber = array() (line 62)

Data type : array

Array of references objects that have Subscribed to this publisher

$tokens = array() (line 64)

Data type : array

Class Constants

Summary:

Method Detail

Summary:
void publishEvent (integer $event, mixed $data)
void subscribe (integer $event, class &$object)

Method publishEvent (line 96)

void publishEvent( integer $event, mixed $data)

Publish an event

Parameters

  • integer $event: see Parser.inc PARSER_EVENT_* constants
  • mixed $data: anything the subscribed event handler is expecting

Info

Method subscribe (line 83)

void subscribe( integer $event, class &$object)

Adds a subscriber to the $subscriber array().

if $event is '*', the publisher will use $object as the default event handler

Parameters

Info

  • todo - CS Cleanup - there's no way I can get the &$object desc under 85 chars

Inherited Variables

Inherited Class Variable Summary

Inherited Methods

Inherited Method Summary


Documentation generated on Mon, 05 Dec 2011 21:29:08 -0600 by phpDocumentor 1.4.4