Cts_Plugin

Author

Jaybill McCarthy

Instance Variables

$_logger

var $_logger

Constructors

Cts_Plugin

function Cts_Plugin()

Instance Methods

addActionHook

function addActionHook($hook)

TBD

Arguments

hookThe name of the hook to add.  Ex.: mymodule_default_index_pre_render

Returns

void

addFilterHook

function addFilterHook($hook)

TBD

Arguments

hookThe name of the hook to add.  Ex.: mymodule_default_index

Returns

void

addFilter

function addFilter($hook,  
$class_name,  
$function_name,  
$priority =  10)

TBD

Arguments

hookThe name of the hook to add.  Ex.: mymodule_default_index
class_nameThe name of the class to add the hook to.
function_nameThe name of the function to execute within the plugin.
priorityAn integer telling the system how to deal with multiple plugins attached to the same hook.

Returns

void

addAction

function addAction($hook,  
$class_name,  
$function_name,  
$priority =  10)

TBD

Arguments

hookThe name of the hook to add.  Ex.: mymodule_default_index_pre_render
class_nameThe name of the class to add the hook to.
function_nameThe name of the function to execute within the plugin.
priorityAn integer telling the system how to deal with multiple plugins attached to the same hook.

Returns

void

doFilter

function doFilter($hook,
$params)

Processes a plugin for a filter hook.

Arguments

hookThe name of the filter hook.
paramsAn array of key-value parameters.

Returns

The parameter array that was passed in. with any changes made durung plugin processing.

doAction

function doAction($hook,
$params)

Processes a plugin for an action hook.

Arguments

hookThe name of the action hook.
paramsAn array of key-value parameters.

Returns

void

var $_logger
function Cts_Plugin()
function addActionHook($hook)
TBD
function addFilterHook($hook)
TBD
function addFilter($hook,  
$class_name,  
$function_name,  
$priority =  10)
TBD
function addAction($hook,  
$class_name,  
$function_name,  
$priority =  10)
TBD
function doFilter($hook,
$params)
Processes a plugin for a filter hook.
function doAction($hook,
$params)
Processes a plugin for an action hook.
Close