/** * 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')); }
/** * @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); }