Exemplo n.º 1
0
 public function after(PHPTAL_Php_CodeWriter $codewriter)
 {
     if ($this->tmp_content_var) {
         $codewriter->recycleTempVariable($this->tmp_content_var);
     }
     if ($this->_pushedContext) {
         $codewriter->popContext();
     }
 }
Exemplo n.º 2
0
 public function after(PHPTAL_Php_CodeWriter $codewriter)
 {
     // end of if PROCEED
     $codewriter->doEnd();
     // if trigger found, notify the end of the node
     $codewriter->doIf($this->var);
     $codewriter->pushCode($this->var . '->end(' . $codewriter->str($this->expression) . ', $tpl)');
     $codewriter->doEnd();
     $codewriter->recycleTempVariable($this->var);
 }
Exemplo n.º 3
0
 public function after(PHPTAL_Php_CodeWriter $codewriter)
 {
     $codewriter->doEnd('if');
     $codewriter->recycleTempVariable($this->tmp_var);
 }
Exemplo n.º 4
0
 public function after(PHPTAL_Php_CodeWriter $codewriter)
 {
     $codewriter->doEval('file_put_contents(' . $this->cache_filename_var . ', ob_get_flush())');
     $codewriter->doElse();
     $codewriter->doEval('readfile(' . $this->cache_filename_var . ')');
     $codewriter->doEnd('if');
     $codewriter->recycleTempVariable($this->cache_filename_var);
 }
Exemplo n.º 5
0
 public function after(PHPTAL_Php_CodeWriter $codewriter)
 {
     if ($this->varname) {
         $codewriter->recycleTempVariable($this->varname);
     }
 }
Exemplo n.º 6
0
 public function after(PHPTAL_Php_CodeWriter $codewriter)
 {
     foreach ($this->vars_to_recycle as $var) {
         $codewriter->recycleTempVariable($var);
     }
 }
Exemplo n.º 7
0
 public function after(PHPTAL_Php_CodeWriter $codewriter)
 {
     $codewriter->doEnd();
     $codewriter->popContext();
     $codewriter->recycleTempVariable($this->var);
 }