diff options
Diffstat (limited to 'libs/Smarty.class.php')
| -rw-r--r-- | libs/Smarty.class.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 483ff222..6c9b7489 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -236,6 +236,8 @@ class Smarty extends Smarty_Internal_Data { public $inheritance = false; // generate deprecated function call notices? public $deprecation_notices = true; + // internal flag for getTags() + public $get_used_tags = false; // Smarty 2 BC public $_version = self::SMARTY_VERSION; // self pointer to Smarty object @@ -715,6 +717,17 @@ class Smarty extends Smarty_Internal_Data { } /** + * Return array of tag/attributes of all tags used by an template + * + * @param object $templae template object + * @return array of tag/attributes + */ + public function getTags(Smarty_Internal_Template $template) + { + return Smarty_Internal_Utility::getTags($template); + } + + /** * clean up properties on cloned object */ public function __clone() |
