A singleton class to manage static smarty plugins registered by modules.
package |
CMS |
---|---|
license |
GPL |
author |
Robert Campbell calguy1000@cmsmadesimple.org |
internal | |
access |
private |
since | 1.11 |
get_instance()
find(string $name, string $type) : array
string
$namestring
$type array
addStatic(string $module_name, string $name, string $type, callable $callback, boolean $cachable = TRUE, integer $available)
string
$module_nameThe module name
string
$nameThe plugin name
string
$typeThe plugin type (function,block,modifier)
callable
$callbackA static function to call.
boolean
$cachableWhether the plugin is cachable
integer
$availableFlags indicating the availability of the plugin. See AVAil_ADMIN AND AVAIL_FRONTEND
add(string $module_name, string $name, string $type, callable $callback, boolean $cachable = TRUE, integer $available)
This method is normally called from within a module's installation directory.
string
$module_nameThe module name
string
$nameThe plugin name
string
$typeThe plugin type (function,block,modifier)
callable
$callbackA static function to call.
boolean
$cachableWhether the plugin is cachable
integer
$availableFlags indicating the availability of the plugin. See AVAil_ADMIN AND AVAIL_FRONTEND
remove_by_module(string $module_name)
string
$module_name_remove_by_module(string $module_name)
string
$module_nameremove_by_name(string $name)
string
$name_remove_by_name(string $name)
string
$nameAVAIL_FRONTEND
AVAIL_ADMIN