Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /sitemap/include/parse.inc.php
sitemap - Richy's Site Map

Includes::parse

"parse" module.

 

public module parse

"parse" module.
This parse module is used heavily to "parse" the CSS and HTML templates and_replace the <<<>>> tags. Contains one function, parse(). Gets included by_about.php, css.php, index.php and sitemap.php and is used also by_include/fullscreen.inc.php.

Version$Revision: 1.1.1.1 $
Copyright(c)2002 R.J. Vrijhof

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Magic$Id: parse.inc.php,v 1.1.1.1 2002/01/19 16:46:58 richy Exp $

 

Public Method Summary

string

parse(string $path, [ array $params ])

The main function of module "parse".

Public Method Details

parse

public string parse( string $path, [ array $params ] )

  The main function of module "parse".
Does what module "parse" is for: read a template, do a str_replace() on all_<<<>>> tags with the items of the $params variable, and output the resulting_text.

Parameter
string $path
full path to the template file
array $params = >>array()<<
the parameters as an array of items,
as follows:
"text between <<<>>>" => "text to replace with"
Returns string $file

content of template file with <<<>>> tags
replaced

Author(s) Richard Vrijhof <R.J.Vrijhof@bigfoot.com>


Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta