Пример #1
0
 /**
  * Method to assign phrases to tags
  * @param $tag
  * @param $text
  */
 private function add($tag, $text)
 {
     $this->phrases[$tag] = tpl_functions($text, 1, array('DATE', 'VAR', 'URL'));
 }
Пример #2
0
 /**
  * @param $string
  * @return mixed
  */
 function applyFunctions($string)
 {
     global $NAV, $SNP, $APP;
     // init globals
     $NAV = array();
     $SNP = array();
     $APP = $this->applets;
     return tpl_functions($string, $this->config->cfg('system', 'var_loop'), array(), true);
 }