public function writeXml($rset) { $fout = php_io_File::write("RomanianDictionary.xml", false); $fout->writeString(_hx_deref(new haxe_Template(haxe_Resource::getString("header")))->execute(_hx_anonymous(array()), null)); $wordTemplate = new haxe_Template(haxe_Resource::getString("word")); $»it = $rset; while ($»it->hasNext()) { $row = $»it->next(); $properties = _hx_anonymous(array("id" => $row->id, "word" => $row->lexicon, "definition" => $row->htmlRep)); $fout->writeString($wordTemplate->execute($properties, null) . "\n"); unset($properties); } $fout->writeString(_hx_deref(new haxe_Template(haxe_Resource::getString("footer")))->execute(_hx_anonymous(array()), null)); $fout->close(); }
{ $args = func_get_args(); return call_user_func_array(self::$globals, $args); } static $globals; function __toString() { return 'haxe.Template'; } } haxe_Template::$splitter = new EReg("(::[A-Za-z0-9_ ()&|!+=/><*.\"-]+::|\\\$\\\$([A-Za-z0-9_-]+)\\()", ""); haxe_Template::$expr_splitter = new EReg("(\\(|\\)|[ \r\n\t]*\"[^\"]*\"[ \r\n\t]*|[!+=/><*.&|-]+)", ""); haxe_Template::$expr_trim = new EReg("^[ ]*([^ ]+)[ ]*\$", ""); haxe_Template::$expr_int = new EReg("^[0-9]+\$", ""); haxe_Template::$expr_float = new EReg("^([+-]?)(?=\\d|,\\d)\\d*(,\\d*)?([Ee]([+-]?\\d+))?\$", ""); haxe_Template::$globals = _hx_anonymous(array()); function haxe_Template_0(&$data, &$e, &$expr, &$l, &$s) { try { return call_user_func($e); } catch (Exception $__hx__e) { $_ex_ = $__hx__e instanceof HException ? $__hx__e->e : $__hx__e; $exc = $_ex_; throw new HException("Error : " . Std::string($exc) . " in " . _hx_string_or_null($expr)); } } function haxe_Template_1(&$str, &$v) { return $str; } function haxe_Template_2(&$i, &$v)