phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
BaseHooksTrait Class Reference
+ Inheritance diagram for BaseHooksTrait:

Public Member Functions

 hookExists ($hookKey)
 
 getHook ($hookKey)
 
 addHook ($hookKey, $callable)
 Adds a new Hook.
 
 execHook ($hookKey,... $variables)
 Executes the hook with key $hookKey.
 

Protected Attributes

 $_hooks =[]
 

Detailed Description

Definition at line 5 of file BaseHooksTrait.php.

Member Function Documentation

◆ addHook()

addHook (   $hookKey,
  $callable 
)

Adds a new Hook.

Parameters
String$hookKey
callable$callable

Definition at line 32 of file BaseHooksTrait.php.

◆ execHook()

execHook (   $hookKey,
  $variables 
)

Executes the hook with key $hookKey.

Parameters
string$hookKey
mixed | null$variable
Returns
void|mixed

Definition at line 42 of file BaseHooksTrait.php.

◆ getHook()

getHook (   $hookKey)
Parameters
string$hookKey
Returns
callable|NULL

Definition at line 20 of file BaseHooksTrait.php.

◆ hookExists()

hookExists (   $hookKey)
Parameters
string$hookKey
Returns
boolean

Definition at line 12 of file BaseHooksTrait.php.

Field Documentation

◆ $_hooks

$_hooks =[]
protected

Definition at line 6 of file BaseHooksTrait.php.


The documentation for this class was generated from the following file: