gluon-web-remote

Web remote Administration for big size of gluon routers
git clone git://archive.git.mtrnord.blog/MTRNord/gluon-web-remote.git
Log | Files | Refs | README

smarty_internal_compile_rdelim.php (1019B)


      1 <?php
      2 /**
      3  * Smarty Internal Plugin Compile Rdelim
      4  * Compiles the {rdelim} tag
      5  *
      6  * @package    Smarty
      7  * @subpackage Compiler
      8  * @author     Uwe Tews
      9  */
     10 
     11 /**
     12  * Smarty Internal Plugin Compile Rdelim Class
     13  *
     14  * @package    Smarty
     15  * @subpackage Compiler
     16  */
     17 class Smarty_Internal_Compile_Rdelim extends Smarty_Internal_CompileBase
     18 {
     19     /**
     20      * Compiles code for the {rdelim} tag
     21      * This tag does output the right delimiter.
     22      *
     23      * @param  array  $args     array with attributes from parser
     24      * @param  object $compiler compiler object
     25      *
     26      * @return string compiled code
     27      */
     28     public function compile($args, $compiler)
     29     {
     30         $_attr = $this->getAttributes($compiler, $args);
     31         if ($_attr['nocache'] === true) {
     32             $compiler->trigger_template_error('nocache option not allowed', $compiler->lex->taglineno);
     33         }
     34         // this tag does not return compiled code
     35         $compiler->has_code = true;
     36 
     37         return $compiler->smarty->right_delimiter;
     38     }
     39 }