fusionpbx/resources/templates/engine/smarty/sysplugins/smarty_internal_compile_lde...

38 lines
1.0 KiB
PHP
Raw Permalink Normal View History

2013-11-09 21:02:56 +01:00
<?php
/**
* Smarty Internal Plugin Compile Ldelim
* Compiles the {ldelim} tag
*
2018-11-07 08:18:14 +01:00
* @package Smarty
2013-11-09 21:02:56 +01:00
* @subpackage Compiler
2018-11-07 08:18:14 +01:00
* @author Uwe Tews
2013-11-09 21:02:56 +01:00
*/
/**
* Smarty Internal Plugin Compile Ldelim Class
*
2018-11-07 08:18:14 +01:00
* @package Smarty
2013-11-09 21:02:56 +01:00
* @subpackage Compiler
*/
class Smarty_Internal_Compile_Ldelim extends Smarty_Internal_CompileBase
{
/**
* Compiles code for the {ldelim} tag
* This tag does output the left delimiter
2018-11-07 08:18:14 +01:00
*
* @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
*
2013-11-09 21:02:56 +01:00
* @return string compiled code
2018-11-07 08:18:14 +01:00
* @throws \SmartyCompilerException
2013-11-09 21:02:56 +01:00
*/
2018-11-07 08:18:14 +01:00
public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler)
2013-11-09 21:02:56 +01:00
{
$_attr = $this->getAttributes($compiler, $args);
2018-11-07 08:18:14 +01:00
if ($_attr[ 'nocache' ] === true) {
$compiler->trigger_template_error('nocache option not allowed', null, true);
2013-11-09 21:02:56 +01:00
}
return $compiler->smarty->left_delimiter;
}
}