4 * Smarty Method UnregisterPlugin
6 * Smarty::unregisterPlugin() method
9 * @subpackage PluginsInternal
12 class Smarty_Internal_Method_UnregisterPlugin
15 * Valid for Smarty and template object
22 * Registers plugin to be used in templates
24 * @api Smarty::unregisterPlugin()
25 * @link http://www.smarty.net/docs/en/api.unregister.plugin.tpl
27 * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj
28 * @param string $type plugin type
29 * @param string $name name of template tag
31 * @return \Smarty|\Smarty_Internal_Template
33 public function unregisterPlugin(Smarty_Internal_TemplateBase $obj, $type, $name)
35 $smarty = $obj->_getSmartyObj();
36 if (isset($smarty->registered_plugins[ $type ][ $name ])) {
37 unset($smarty->registered_plugins[ $type ][ $name ]);