public final function translateText($a_text) { return ZTemplate::fill($a_text, $this->m_locale, $this->m_braces); }
public static function compile($a_template, $a_data = null, $a_brackets = null) { $t = new ZTemplate(); if ($a_template) { $t->setTemplate($a_template); } if ($a_data) { $t->setData($a_data); } if ($a_brackets) { $t->setBrackets($a_brackets); } $o = $t->parse(); unset($t); return $o; }