Location: PHPKode > scripts > Redstart Templating > Redstart-Templating-master/Redstart/Templating/Compiler/CompilerInterface.php
<?php

namespace Redstart\Templating\Compiler;

/**
 * Template Compiler Interface
 *
 * @package Redstart    
 * @subpackage Redstart_Templating_Complier
 *
 * @author Hyyan Abo Fakher
 * @since Redstart 1.0
 * @version 1.0
 */
interface CompilerInterface {

    /**
     * Compile the given file 
     * @param string $file $file path
     * @return string
     */
    public function compile($file);

    /**
     * Check If the compiler can compile the given file
     * @param string $file $file path
     * @return boolean true if the compiler can handle file compiling or false 
     */
    public function isSupported($file);

    /**
     * Called by the template after the template is included in the
     * <tt>fetch</tt> scope
     * @param string $content the content of the included template
     * @return string the new content
     * 
     */
    public function fetched($content);

    /**
     * Called by the template after the template file is fetched and the after
     * the compiler's <tt>fetched()</tt> method is called
     */
    public function finalize();

    /**
     * Called by the template when the compiler is attached to the template system
     */
    public function install();

    /**
     * Called by the template before the new complier is set
     */
    public function uninstall();

    /**
     * Get the compiler's template
     * @return \Redstart\Templating\Template
     */
    public function getTemplate();
}

Return current item: Redstart Templating