Ejemplo n.º 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'));
 }
Ejemplo n.º 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);
 }