PHP Class FOF30\Event\Observer

Show file Open project: akeeba/fof Class Usage Examples

Protected Properties

Property Type Description
$events
$subject The object to observe

Public Methods

Method Description
__construct ( FOF30\Event\Observable &$subject ) Creates the observer and attaches it to the observable subject object
getObservableEvents ( ) : array Returns the list of events observable by this observer. Set the $this->events array manually for faster processing, or let this method use reflection to return a list of all public methods.

Method Details

__construct() public method

Creates the observer and attaches it to the observable subject object
public __construct ( FOF30\Event\Observable &$subject )
$subject FOF30\Event\Observable The observable object to attach the observer to

getObservableEvents() public method

Returns the list of events observable by this observer. Set the $this->events array manually for faster processing, or let this method use reflection to return a list of all public methods.
public getObservableEvents ( ) : array
return array

Property Details

$events protected property

protected $events

$subject protected property

The object to observe
protected $subject