Documentation

Hook
in package

Table of Contents

Properties

$callback  : mixed
$function_key  : mixed
$hook_name  : mixed
$original_callback  : mixed
$priority  : mixed
$that  : mixed

Methods

__construct()  : void
__construct
inject()  : mixed
rebind()  : void
rebind
remove()  : bool
Remove and un-hook the handler
replace()  : bool
replace

Properties

$callback

public mixed $callback

$function_key

public mixed $function_key

$hook_name

public mixed $hook_name

$original_callback

public mixed $original_callback

$priority

public mixed $priority

$that

public mixed $that

Methods

__construct()

__construct

public __construct(mixed $hook_name, mixed $callback, mixed $priority, mixed $function_key) : void
Parameters
$hook_name : mixed
$callback : mixed
$priority : mixed
$function_key : mixed

inject()

public inject(mixed $before[, mixed $after = false ]) : mixed
Parameters
$before : mixed
$after : mixed = false

rebind()

rebind

public rebind(mixed $hook_name, mixed $callback[, mixed $priority = 10 ][, mixed $accepted_args = 1 ]) : void
Parameters
$hook_name : mixed
$callback : mixed
$priority : mixed = 10
$accepted_args : mixed = 1

remove()

Remove and un-hook the handler

public remove() : bool
Return values
bool

true on success

replace()

replace

public replace(mixed $callback) : bool
Parameters
$callback : mixed
Return values
bool

        
On this page

Search results