PHP Класс FOF30\Event\Observer

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$events
$subject The object to observe

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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() публичный Метод

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
Результат array

Описание свойств

$events защищенное свойство

protected $events

$subject защищенное свойство

The object to observe
protected $subject