Files
smarty/libs/sysplugins/method.unregister_compiler_function.php

33 lines
760 B
PHP

<?php
/**
* Smarty method Unregister_Compiler_Function
*
* Unregister a Smarty compiler function plugin
*
* @package Smarty
* @subpackage SmartyMethod
* @author Uwe Tews
*/
/**
* Smarty class Unregister_Compiler_Function
*
* Unregister a Smarty compiler function plugin
*/
class Smarty_Method_Unregister_Compiler_Function extends Smarty_Internal_Base {
/**
* Unregisters compiler function
*
* @param string $compiler_tag name of template function
*/
public function execute($compiler_tag)
{
if (isset($this->smarty->registered_plugins[$compiler_tag]) && $this->smarty->registered_plugins[$compiler_tag][0] == 'compiler') {
unset($this->smarty->registered_plugins[$compiler_tag]);
}
}
}
?>