SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class Event_Observer

Kohana event observer. Uses the SPL observer pattern.

Variables

NameVisibilityDescription
$caller 

Functions

NameVisibilityDescription
__constructpublicInitializes a new observer and attaches the subject as the caller.
notifypublicNotify the observer of a new message. This function must be defined in
removepublicDetaches this observer from the subject.
updatepublicUpdates the observer subject with a new caller.

public __construct

void $Event_Observer->__construct ( Event_Subject $caller );

Initializes a new observer and attaches the subject as the caller.

public notify

void $Event_Observer->notify ( mixed $message );

Notify the observer of a new message. This function must be defined in
all observers and must take exactly one parameter of any type.

public remove

object $Event_Observer->remove ( );

Detaches this observer from the subject.

public update

object $Event_Observer->update ( Event_Subject $caller );

Updates the observer subject with a new caller.