CLASS:
TemplateBuilder
Version:
2.5
Description:
TemplateBuilder is a PHP class for mananging multi-level templates.
Templates are very usefull because you can define dynamic parts of a page with blocks and
sub-blocks. For example, you could create tables with multiple rows by defining each
row as a block. These blocks accept variables or functions defined by the user or predefined
(see the PHP Functions Reference).
Working with templates you can separate your PHP code from your HTML code. It will transform
your programs codes more clearly to understand, clean and easy to maintaim.
Installation:
Just include the file "TemplateBuilder.php" in you script.
Class Function Reference:
- parse_template (string filename)
Description: Open and interprets a template.
Example: $TP->parse_template($temp_path);
Note: Before use this function you have to declare the classe like $TP = new TemplateBuilder;
- print_error
- print_file_info
- open_file
- interpreta_buga_exp
- valida_sintaxe
- parse_var
- call_var
- parse_func
- interpreta_parameter
- call_func
- build_parameter_list
Note: For internal use only.
Bugs:
No bugs reported.
if you find someone write to: <fred@nbconsultoria.com.br>
License:
If you use this script, an e-mail with your opinion about this class is always wellcome. :)
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.
Authors:
- Edson C. Melo <eneto@emcinfo.com.br>
- Frederico R. Galvão <fred@nbconsultoria.com.br>
|