PHP Classes

File: plugins/include_plugin.php

Recommend this page to a friend!
  Classes of Full name   x64Template Engine   plugins/include_plugin.php   Download  
File: plugins/include_plugin.php
Role: Class source
Content type: text/plain
Description: Plugin
Class: x64Template Engine
Template engine extensible with plug-in classes
Author: By
Last change:
Date: 18 years ago
Size: 601 bytes
 

Contents

Class file image Download
<?php

class include_plugin
{
    function
setup($s=null)
    {
        return array(
'refresh_object'=>false);
    }

    function
parse($contents,&$object)
    {
       
$file=null;
       
$tags=$object->get_tags('include','plugin');

        while ((
$file=x64Template::get_statement($tags,$contents))!==false)
        {
           
$_file=urldecode($file);
           
$_file=$object->fetch($_file);
           
$contents=str_replace($tags['b'].$file.$tags['e'],$_file,$contents);
        }
        return
$contents;
    }
    function
version($of_what)
    {
        switch (
$of_what)
        {
            case
"protocol":
                return
"1.0";
                break;
            case
"plugin":
                return
"0.1";
                break;
        }
    }
}
?>