/framework/vendor/smarty3/lib/libs/sysplugins/smarty_internal_compile_ldelim.php
PHP | 32 lines | 11 code | 1 blank | 20 comment | 0 complexity | 35e7a259a048e50ff6a1d32844d4ecdb MD5 | raw file
1<?php 2 3/** 4* Smarty Internal Plugin Compile Ldelim 5* 6* Compiles the {ldelim} tag 7* @package Smarty 8* @subpackage Compiler 9* @author Uwe Tews 10*/ 11/** 12* Smarty Internal Plugin Compile Ldelim Class 13*/ 14class Smarty_Internal_Compile_Ldelim extends Smarty_Internal_CompileBase { 15 /** 16 * Compiles code for the {ldelim} tag 17 * 18 * This tag does output the left delimiter 19 * @param array $args array with attributes from parser 20 * @param object $compiler compiler object 21 * @return string compiled code 22 */ 23 public function compile($args, $compiler) 24 { 25 $this->compiler = $compiler; 26 $_attr = $this->_get_attributes($args); 27 // this tag does not return compiled code 28 $this->compiler->has_code = true; 29 return $this->compiler->smarty->left_delimiter; 30 } 31} 32?>