* @author Uwe Tews * @package Smarty * @subpackage PluginsInternal * @version 3-SVN$Rev: 3286 $ */ /** * Utility class * * @package Smarty * @subpackage Security */ class Smarty_Internal_Utility { /** * private constructor to prevent calls creation of new instances */ final private function __construct() { // intentionally left blank } /** * Return array of tag/attributes of all tags used by an template * * @param Smarty_Internal_Template $template * * @throws Exception * @throws SmartyException * @return array of tag/attributes */ public static function getTags(Smarty_Internal_Template $template) { $template->smarty->get_used_tags = true; $template->compileTemplateSource(); return $template->used_tags; } }