![]() |
Antidot PHP API
version 0.16.0
##PHP API to simplify integration of Antidot components
|
Filter node callback manager. More...
Public Member Functions | |
add_callbacks (array $callbacks) | |
Adds one or more callbacks. | |
is_managed_type ($node_type) | |
Checks whether provided node type is managed. | |
apply_filter ($node) | |
Applies registered callback for given node. |
Filter node callback manager.
add_callbacks | ( | array | $callbacks | ) |
Adds one or more callbacks.
This override any existing callback with same identifier.
$callbacks | [in] one callback or array filled with one or more callbacks of type FilterNode or one of its subclass. |
apply_filter | ( | $node | ) |
Applies registered callback for given node.
$node | [in] node to work on. |
is_managed_type | ( | $node_type | ) |
Checks whether provided node type is managed.
$node_type | [in] node type to check. |
True
when given node type is managed, false
otherwise.