PHP Класс Falcon_Autohooker, Falcon

Показать файл Открыть проект

Открытые методы

Метод Описание
register_hooks ( boolean | array $prefixes = false ) Register hooks

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
check_eaccelerator_saneness ( ) : boolean Check if eAccelerator is loaded, and if so, is sane

Описание методов

add_action() защищенный статический Метод

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() защищенный статический Метод

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() публичный статический Метод

Register hooks
См. также: Sputnik_Library_Plugin::register_hooks
См. также: 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