PHP Class Redaxscript\Hook

Since: 2.2.0
Author: Henry Ruhs
显示文件 Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Property Type Description
$_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

Public Methods

Method Description
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

Method Details

collect() public static method

collect from module hook
Since: 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
return array

construct() public static method

constructor of the class
Since: 2.6.0
public static construct ( Registry $registry )
$registry Registry instance of the registry class

getEventArray() public static method

get the event array
Since: 3.0.0
public static getEventArray ( ) : array
return array

getModuleArray() public static method

get the module array
Since: 2.2.0
public static getModuleArray ( ) : array
return array

init() public static method

init the class
Since: 2.6.0
public static init ( )

trigger() public static method

trigger the module hook
Since: 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
return mixed

Property Details

$_eventArray protected_oe static_oe property

array of triggered events
protected static array $_eventArray
return array

$_moduleArray protected_oe static_oe property

array of installed and enabled modules
protected static array $_moduleArray
return array

$_namespace protected_oe static_oe property

module namespace
protected static string $_namespace
return string

$_registry protected_oe static_oe property

instance of the registry class
protected static object $_registry
return object