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