/**
  * Return array of tag/attributes of all tags used by an template
  *
  * @param Smarty_Internal_Template $templae template object
  * @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;
 }