|
| __set (string $param, $value) |
|
| create (string $name, callable $definition) |
|
|
| $_name = "" |
|
| $_definition = null |
|
SlaxWeb\Hooks\Hook::__set |
( |
string |
$param, |
|
|
|
$value |
|
) |
| |
Set magic method
Used to set protected class properties, and ensures that 'name' and 'definition' properties can not be overwritten.
- Parameters
-
string | $param | Name of the property |
mixed | $value | Value of the property |
- Returns
- void
SlaxWeb\Hooks\Hook::create |
( |
string |
$name, |
|
|
callable |
$definition |
|
) |
| |
Create the Hook
Create the hook by adding its name and definition to the protected properties.
- Parameters
-
string | $name | Name of the hook |
callable | $definition | Definition of the hook |
- Returns
- void
The documentation for this class was generated from the following file:
- /opt/slax0rDev/slaxweb/hooks/src/Hook.php