Geeklog
[ class tree: Geeklog ] [ index: Geeklog ] [ all elements ]

Class: ITemplate

Source Location: /system/classes/template.class.php

Interface Overview


The template class allows you to keep your HTML code in some external files which are completely free of PHP code, but contain replacement fields.


Methods



Class Details

[line 56]
The template class allows you to keep your HTML code in some external files which are completely free of PHP code, but contain replacement fields.

The class provides you with functions which can fill in the replacement fields with arbitrary strings. These strings can become very large, e.g. entire tables.

Note: If you think that this is like FastTemplates, read carefully. It isn't.




[ Top ]


Class Methods


method clear_var [line 60]

void clear_var( $varname)



Parameters:

   $varname  

[ Top ]

method finish [line 64]

void finish( $str)



Parameters:

   $str  

[ Top ]

method get_var [line 62]

void get_var( $varname)



Parameters:

   $varname  

[ Top ]

method parse [line 63]

void parse( $target, $varname, [ $append = false])



Parameters:

   $target  
   $varname  
   $append  

[ Top ]

method set_block [line 58]

void set_block( $parent, $varname, [ $name = ''])



Parameters:

   $parent  
   $varname  
   $name  

[ Top ]

method set_file [line 57]

void set_file( $varname, [ $filename = ''])



Parameters:

   $varname  
   $filename  

[ Top ]

method set_var [line 59]

void set_var( $varname, [ $value = ''], [ $append = false])



Parameters:

   $varname  
   $value  
   $append  

[ Top ]

method unset_var [line 61]

void unset_var( $varname)



Parameters:

   $varname  

[ Top ]


Documentation generated on Thu, 24 May 2012 02:09:19 -0400 by phpDocumentor 1.4.3