PHP Класс Redaxscript\Hook

С версии: 2.2.0
Автор: Henry Ruhs
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$_eventArray array array of triggered events
$_moduleArray array array of installed and enabled modules
$_namespace string module namespace
$_registry object instance of the registry class

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

Метод Описание
collect ( string $event = null, array $parameterArray = [] ) : array collect from module hook
construct ( Registry $registry ) constructor of the class
getEventArray ( ) : array get the event array
getModuleArray ( ) : array get the module array
init ( ) init the class
trigger ( string $event = null, array $parameterArray = [] ) : mixed trigger the module hook

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

collect() публичный статический Метод

collect from module hook
С версии: 3.0.0
public static collect ( string $event = null, array $parameterArray = [] ) : array
$event string name of the module event
$parameterArray array parameter of the module hook
Результат array

construct() публичный статический Метод

constructor of the class
С версии: 2.6.0
public static construct ( Registry $registry )
$registry Registry instance of the registry class

getEventArray() публичный статический Метод

get the event array
С версии: 3.0.0
public static getEventArray ( ) : array
Результат array

getModuleArray() публичный статический Метод

get the module array
С версии: 2.2.0
public static getModuleArray ( ) : array
Результат array

init() публичный статический Метод

init the class
С версии: 2.6.0
public static init ( )

trigger() публичный статический Метод

trigger the module hook
С версии: 3.0.0
public static trigger ( string $event = null, array $parameterArray = [] ) : mixed
$event string name of the module event
$parameterArray array parameter of the module hook
Результат mixed

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

$_eventArray защищенное статическое свойство

array of triggered events
protected static array $_eventArray
Результат array

$_moduleArray защищенное статическое свойство

array of installed and enabled modules
protected static array $_moduleArray
Результат array

$_namespace защищенное статическое свойство

module namespace
protected static string $_namespace
Результат string

$_registry защищенное статическое свойство

instance of the registry class
protected static object $_registry
Результат object