+ Moved variables resolution in the compiler Parser. (Temp. solution until the new...
[haanga.git] / lib / Haanga / Extension / Tag / Trans.php
blob8c8497f157a555c8ce1caba45bd4d0ca8bfdb0e7
1 <?php
3 class Haanga_Extension_Tag_Trans
5 public $is_block = FALSE;
7 static function generator($cmp, $args, $redirect)
9 $code = hcode();
11 $exec = hexec('_', $args[0]);
13 if (count($args) > 1) {
14 $exec = hexec('sprintf', $exec);
15 foreach ($args as $id => $arg) {
16 if ($id !== 0) {
17 $exec->param($arg);
23 if ($redirect) {
24 $code->decl($redirect, $exec);
25 } else {
26 $cmp->do_print($code, $exec);
29 return $code;