PHP Class Falcon_Autohooker, Falcon

Mostrar archivo Open project: rmccue/Falcon

Public Methods

Method Description
register_hooks ( boolean | array $prefixes = false ) Register hooks

Protected Methods

Method Description
add_action ( string $hook, string $method = null, integer $priority = 10, $params = null, string $class = null ) Add a method as a action
add_filter ( string $hook, string $method = null, integer $priority = 10, $params = null, string $class = null ) Add a method as a filter

Private Methods

Method Description
check_eaccelerator_saneness ( ) : boolean Check if eAccelerator is loaded, and if so, is sane

Method Details

add_action() protected static method

This is exactly the same as {@see \add_action()} but instead of passing a full callback, only the method needs to be passed in.
protected static add_action ( string $hook, string $method = null, integer $priority = 10, $params = null, string $class = null )
$hook string Action name
$method string Method name on current class, or priority (as an int)
$priority integer Specify the order in which the functions associated with a particular action are executed (default: 10)
$class string Internal use only

add_filter() protected static method

This is exactly the same as {@see \add_filter()} but instead of passing a full callback, only the method needs to be passed in.
protected static add_filter ( string $hook, string $method = null, integer $priority = 10, $params = null, string $class = null )
$hook string Filter name
$method string Method name on current class, or priority (as an int)
$priority integer Specify the order in which the functions associated with a particular action are executed (default: 10)
$class string Internal use only

register_hooks() public static method

Register hooks
See also: Sputnik_Library_Plugin::register_hooks
See also: Sputnik_Library_Plugin_Dynamic::register_hooks
public static register_hooks ( boolean | array $prefixes = false )
$prefixes boolean | array True for default (`action_`/`filter_`), array with keys "action" & "filter" or false