Class for register/unregister methods
__construct($smarty)
registerClass($class_name, string $class_impl)
string
the referenced PHP class to register
registerDefaultPluginHandler($callback)
mixed string | array $plugin class/methode name
registerDefaultTemplateHandler($callback)
mixed string | array class/method name
registerObject($object_name, $object_impl, $allowed, boolean $smarty_args, $block_methods)
boolean
smarty argument format, else traditional
registerPlugin(string $type, string $tag, callback $callback, boolean $cacheable, array $cache_attr)
string
plugin type
string
name of template tag
callback
PHP callback to register
boolean
if true (default) this fuction is cachable
array
caching attributes if any
registerResource(string $type, array $callback)
string
name of resource type
array
array of callbacks to handle resource
unregisterPlugin(string $type, string $tag)
string
of plugin
string
name of plugin
unregisterResource(string $type)
string
name of resource type