Deutschland United States United Kingdom
ContentLion - Open Source CMS

internalcompilewhileclose.php

Blame | Last modification | View Log

<?php

/**
 * Smarty Internal Plugin Compile Whileclose Class
 *
 * @package Smarty
 * @subpackage Compiler
 */

class Plugin_Smarty_InternalCompileWhileclose extends Plugin_Smarty_InternalCompileBase
{
    /**
     * Compiles code for the {/while} tag
     *
     * @param  array  $args     array with attributes from parser
     * @param  object $compiler compiler object
     * @return string compiled code
     */

    public function compile($args, $compiler)
    {
        // must endblock be nocache?
        if ($compiler->nocache) {
            $compiler->tag_nocache = true;
        }
        $compiler->nocache = $this->closeTag($compiler, array('while'));

        return "<?php }?>";
    }

}