Deutschland United States United Kingdom
ContentLion - Open Source CMS

resourceuncompiled.php

Blame | Last modification | View Log

<?php
/**
 * Smarty Resource Plugin
 *
 * @package Smarty
 * @subpackage TemplateResources
 * @author Rodney Rehm
 */


/**
 * Smarty Resource Plugin
 *
 * Base implementation for resource plugins that don't use the compiler
 *
 * @package Smarty
 * @subpackage TemplateResources
 */

abstract class Plugin_Smarty_ResourceUncompiled extends Plugin_Smarty_Resource
{
    /**
     * Render and output the template (without using the compiler)
     *
     * @param  Plugin_Smarty_TemplateSource   $source    source object
     * @param  Plugin_Smarty_InternalTemplate $_template template object
     * @throws Plugin_Smarty_Exception          on failure
     */

    abstract public function renderUncompiled(Plugin_Smarty_TemplateSource $source, Plugin_Smarty_InternalTemplate $_template);

    /**
     * populate compiled object with compiled filepath
     *
     * @param Plugin_Smarty_TemplateCompiled $compiled  compiled object
     * @param Plugin_Smarty_InternalTemplate $_template template object (is ignored)
     */

    public function populateCompiledFilepath(Plugin_Smarty_TemplateCompiled $compiled, Plugin_Smarty_InternalTemplate $_template)
    {
        $compiled->filepath = false;
        $compiled->timestamp = false;
        $compiled->exists = false;
    }

}