예제 #1
0
파일: Define.php 프로젝트: palmic/lbox
 public function after(PHPTAL_Php_CodeWriter $codewriter)
 {
     if ($this->tmp_content_var) {
         $codewriter->recycleTempVariable($this->tmp_content_var);
     }
     if ($this->_pushedContext) {
         $codewriter->popContext();
     }
 }
예제 #2
0
파일: Id.php 프로젝트: rafalenden/KioCMS
 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);
 }
예제 #3
0
 public function after(PHPTAL_Php_CodeWriter $codewriter)
 {
     $codewriter->doEnd('if');
     $codewriter->recycleTempVariable($this->tmp_var);
 }
예제 #4
0
파일: Cache.php 프로젝트: jo-m/ecamp3
 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);
 }
예제 #5
0
 public function after(PHPTAL_Php_CodeWriter $codewriter)
 {
     if ($this->varname) {
         $codewriter->recycleTempVariable($this->varname);
     }
 }
예제 #6
0
 public function after(PHPTAL_Php_CodeWriter $codewriter)
 {
     foreach ($this->vars_to_recycle as $var) {
         $codewriter->recycleTempVariable($var);
     }
 }
예제 #7
0
 public function after(PHPTAL_Php_CodeWriter $codewriter)
 {
     $codewriter->doEnd();
     $codewriter->popContext();
     $codewriter->recycleTempVariable($this->var);
 }