2009-11-15 19:05:53 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2010-08-17 15:39:51 +00:00
|
|
|
* Smarty Internal Plugin Compile Rdelim
|
2011-09-16 14:19:56 +00:00
|
|
|
* Compiles the {rdelim} tag
|
2014-06-06 02:40:04 +00:00
|
|
|
*
|
|
|
|
* @package Smarty
|
2010-08-17 15:39:51 +00:00
|
|
|
* @subpackage Compiler
|
2014-06-06 02:40:04 +00:00
|
|
|
* @author Uwe Tews
|
2010-08-17 15:39:51 +00:00
|
|
|
*/
|
|
|
|
|
2009-11-15 19:05:53 +00:00
|
|
|
/**
|
2010-08-17 15:39:51 +00:00
|
|
|
* Smarty Internal Plugin Compile Rdelim Class
|
2011-09-16 14:19:56 +00:00
|
|
|
*
|
2014-06-06 02:40:04 +00:00
|
|
|
* @package Smarty
|
2011-09-16 14:19:56 +00:00
|
|
|
* @subpackage Compiler
|
|
|
|
*/
|
2017-11-20 04:07:51 +01:00
|
|
|
class Smarty_Internal_Compile_Rdelim extends Smarty_Internal_Compile_Ldelim
|
2013-07-14 22:15:45 +00:00
|
|
|
{
|
2009-11-15 19:05:53 +00:00
|
|
|
/**
|
2010-08-17 15:39:51 +00:00
|
|
|
* Compiles code for the {rdelim} tag
|
2011-09-16 14:19:56 +00:00
|
|
|
* This tag does output the right delimiter.
|
|
|
|
*
|
2018-06-12 09:58:15 +02:00
|
|
|
* @param array $args array with attributes from parser
|
2015-12-27 08:12:46 +01:00
|
|
|
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
|
2014-06-06 02:40:04 +00:00
|
|
|
*
|
2010-08-17 15:39:51 +00:00
|
|
|
* @return string compiled code
|
2015-12-27 08:12:46 +01:00
|
|
|
* @throws \SmartyCompilerException
|
2010-08-17 15:39:51 +00:00
|
|
|
*/
|
2015-08-06 01:19:11 +02:00
|
|
|
public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler)
|
2009-11-15 19:05:53 +00:00
|
|
|
{
|
2018-06-12 09:58:15 +02:00
|
|
|
parent::compile($args, $compiler);
|
2011-09-16 14:19:56 +00:00
|
|
|
return $compiler->smarty->right_delimiter;
|
|
|
|
}
|
2010-08-17 15:39:51 +00:00
|
|
|
}
|