1<?php 2/** 3 * Smarty Internal Plugin Compile Rdelim 4 * Compiles the {rdelim} tag 5 * 6 * @package Smarty 7 * @subpackage Compiler 8 * @author Uwe Tews 9 */ 10 11/** 12 * Smarty Internal Plugin Compile Rdelim Class 13 * 14 * @package Smarty 15 * @subpackage Compiler 16 */ 17class Smarty_Internal_Compile_Rdelim extends Smarty_Internal_Compile_Ldelim 18{ 19 /** 20 * Compiles code for the {rdelim} tag 21 * This tag does output the right 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 parent::compile($args, $compiler); 32 return $compiler->smarty->right_delimiter; 33 } 34} 35