Deutschland United States United Kingdom
ContentLion - Open Source CMS

Blame internalcompilerdelim.php

Details | Last modification | View Log

Rev Author Line
2 user_6
<?php
user_6
/**
user_6
 * Smarty Internal Plugin Compile Rdelim
user_6
 *
user_6
 * Compiles the {rdelim} tag
user_6
 * @package Smarty
user_6
 * @subpackage Compiler
user_6
 * @author Uwe Tews
user_6
 */
user_6
 
user_6
/**
user_6
 * Smarty Internal Plugin Compile Rdelim Class
user_6
 *
user_6
 * @package Smarty
user_6
 * @subpackage Compiler
user_6
 */
user_6
class Plugin_Smarty_InternalCompileRdelim extends Plugin_Smarty_InternalCompileBase
user_6
{
user_6
    /**
user_6
     * Compiles code for the {rdelim} tag
user_6
     *
user_6
     * This tag does output the right delimiter.
user_6
     *
user_6
     * @param  array  $args     array with attributes from parser
user_6
     * @param  object $compiler compiler object
user_6
     * @return string compiled code
user_6
     */
user_6
    public function compile($args, $compiler)
user_6
    {
user_6
        $_attr = $this->getAttributes($compiler, $args);
user_6
        if ($_attr['nocache'] === true) {
user_6
            $compiler->trigger_template_error('nocache option not allowed', $compiler->lex->taglineno);
user_6
        }
user_6
        // this tag does not return compiled code
user_6
        $compiler->has_code = true;
user_6
 
user_6
        return $compiler->smarty->right_delimiter;
user_6
    }
user_6
 
user_6
}