PHP Classes
Icontem

File: documentation.txt


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Frederico R. Galvão  >  TemplateBuilder  >  documentation.txt  
File: documentation.txt
Role: Documentation
Content type: text/plain
Description: Class documentation
Class: TemplateBuilder
Powerful and easy class to manage templates
 

Contents

Class file image Download
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>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products