Hook
- Full name:
\Zotlabs\Extend\Hook
Methods
register
public static register(mixed $hook, mixed $file, mixed $function, mixed $version = 1, mixed $priority): mixed
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$hook |
mixed | |
$file |
mixed | |
$function |
mixed | |
$version |
mixed | |
$priority |
mixed |
register_array
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$file |
mixed | |
$arr |
mixed |
unregister
public static unregister(mixed $hook, mixed $file, mixed $function, mixed $version = 1, mixed $priority): mixed
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$hook |
mixed | |
$file |
mixed | |
$function |
mixed | |
$version |
mixed | |
$priority |
mixed |
unregister_by_file
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$file |
string |
insert
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$hook |
string | name of hook to attach callback |
$fn |
string | function name of callback handler |
$version |
int | hook interface version, 0 uses two callback params, 1 uses one callback param |
$priority |
int | currently not implemented in this function, would require the hook array to be resorted |
Automatically generated on 2025-03-19