2012-07-04 01:23:08 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Smarty Internal Plugin Compile Ldelim
|
|
|
|
* Compiles the {ldelim} tag
|
|
|
|
*
|
2014-09-07 07:38:28 -04:00
|
|
|
* @package Smarty
|
2012-07-04 01:23:08 -04:00
|
|
|
* @subpackage Compiler
|
2014-09-07 07:38:28 -04:00
|
|
|
* @author Uwe Tews
|
2012-07-04 01:23:08 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Smarty Internal Plugin Compile Ldelim Class
|
|
|
|
*
|
2014-09-07 07:38:28 -04:00
|
|
|
* @package Smarty
|
2012-07-04 01:23:08 -04:00
|
|
|
* @subpackage Compiler
|
|
|
|
*/
|
2014-09-07 07:38:28 -04:00
|
|
|
class Smarty_Internal_Compile_Ldelim extends Smarty_Internal_CompileBase
|
|
|
|
{
|
2012-07-04 01:23:08 -04:00
|
|
|
/**
|
|
|
|
* Compiles code for the {ldelim} tag
|
|
|
|
* This tag does output the left delimiter
|
2014-09-07 07:38:28 -04:00
|
|
|
*
|
|
|
|
* @param array $args array with attributes from parser
|
|
|
|
* @param object $compiler compiler object
|
|
|
|
*
|
2012-07-04 01:23:08 -04:00
|
|
|
* @return string compiled code
|
|
|
|
*/
|
|
|
|
public function compile($args, $compiler)
|
|
|
|
{
|
|
|
|
$_attr = $this->getAttributes($compiler, $args);
|
|
|
|
if ($_attr['nocache'] === true) {
|
|
|
|
$compiler->trigger_template_error('nocache option not allowed', $compiler->lex->taglineno);
|
|
|
|
}
|
|
|
|
// this tag does not return compiled code
|
|
|
|
$compiler->has_code = true;
|
2014-09-07 07:38:28 -04:00
|
|
|
|
2012-07-04 01:23:08 -04:00
|
|
|
return $compiler->smarty->left_delimiter;
|
|
|
|
}
|
|
|
|
}
|