PHP 클래스 Redaxscript\Hook

부터: 2.2.0
저자: Henry Ruhs
파일 보기 프로젝트 열기: redaxmedia/redaxscript 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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