PHP Class Redaxscript\Hook

Since: 2.2.0
Author: Henry Ruhs
Afficher le fichier Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 méthode

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
Résultat array

construct() public static méthode

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

getEventArray() public static méthode

get the event array
Since: 3.0.0
public static getEventArray ( ) : array
Résultat array

getModuleArray() public static méthode

get the module array
Since: 2.2.0
public static getModuleArray ( ) : array
Résultat array

init() public static méthode

init the class
Since: 2.6.0
public static init ( )

trigger() public static méthode

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
Résultat mixed

Property Details

$_eventArray protected_oe static_oe property

array of triggered events
protected static array $_eventArray
Résultat array

$_moduleArray protected_oe static_oe property

array of installed and enabled modules
protected static array $_moduleArray
Résultat array

$_namespace protected_oe static_oe property

module namespace
protected static string $_namespace
Résultat string

$_registry protected_oe static_oe property

instance of the registry class
protected static object $_registry
Résultat object