Class: Publisher

Source Location: /phpDocumentor/Publisher.inc

Class Overview [line 54]


a class for handling the publishing of data

Author(s):

Version:

  • Release: @VER@

Copyright:

  • 2000-2007 Kellin, Joshua Eichorn

Variables

Constants

Methods


Child classes:

Parser
PHP Parser for PHP 4.2.3-

Inherited Variables

Inherited Constants

Inherited Methods



Class Details

a class for handling the publishing of data

Tags:

[ Top ]


Class Variables

$popEvent = array()

[line 67]

Type: array

Overrides:

[ Top ]

$pushEvent = array()

[line 66]

Type: array

Overrides:

[ Top ]

$subscriber = array()

[line 62]

Array of references objects that have Subscribed to this publisher

Type: array

Overrides:

[ Top ]

$tokens = array()

[line 64]

Type: array

Overrides:

[ Top ]


Class Methods

publishEvent

void publishEvent( integer $event, mixed $data)

[line 96]

Publish an event

Parameters:

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

[ Top ]

subscribe

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

[line 83]

Adds a subscriber to the $subscriber array().

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

Tags:

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

Parameters:

[ Top ]


Class Constants


Documentation generated on Tue, 06 Dec 2011 07:08:48 -0600 by phpDocumentor 1.4.4