Code

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