Source for file Test.php
Documentation is available at Test.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2002 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.02 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: nobody <nobody@localhost> |
// +----------------------------------------------------------------------+
// $Id: Test.php,v 1.11 2003/10/10 09:27:32 alan_k Exp $
// This is a temporary file - it includes some of the
// Code that will have to go in the Engine eventually..
// Used to test parsing and generation.
//ini_set('include_path', ini_get('include_path').realpath(dirname(__FILE__) . '/../../..'));
require_once 'Gtk/VarDump.php';
require_once 'Console/Getopt.php';
require_once 'HTML/Template/Flexy.php';
require_once 'HTML/Template/Flexy/Compiler.php';
// this is the main runable...
class HTML_Template_Flexy_Test {
function HTML_Template_Flexy_Test () {
$GLOBALS['_HTML_TEMPLATE_FLEXY']['currentOptions'] = array (
// mapp of keys to values..
$args = Console_Getopt ::ReadPHPArgV ();
$vals = Console_Getopt ::getopt ($args,'');
$this->error (0 ,"No Files supplied");
foreach($files as $file) {
$this->error (0 ," File $path Does not exist" );
$this->files[] = $realpath;
var $files; // array of files to compile
foreach($this->files as $file) {
$flexy = new HTML_Template_Flexy (array (
'valid_functions' => 'include'
$compiler = HTML_Template_Flexy_Compiler ::factory ($flexy->options );
function error ($id,$msg) {
echo " ERROR $id : $msg\n";
function debug ($id,$msg) {
echo " Debug Message ($id) : $msg\n";
new HTML_Template_Flexy_Test;
Documentation generated on Mon, 11 Mar 2019 10:15:16 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|