Class for register/unregister methods
__construct($smarty)
registerClass($class_name, string $class_impl)
stringthe 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)
booleansmarty argument format, else traditional
registerPlugin(string $type, string $tag, callback $callback, boolean $cacheable, array $cache_attr)
stringplugin type
stringname of template tag
callbackPHP callback to register
booleanif true (default) this fuction is cachable
arraycaching attributes if any
registerResource(string $type, array $callback)
stringname of resource type
arrayarray of callbacks to handle resource
unregisterPlugin(string $type, string $tag)
stringof plugin
stringname of plugin
unregisterResource(string $type)
stringname of resource type