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

Class: MicroTemplate

Source Location: /public_html/admin/install/classes/micro_template.class.php

Class Overview


Class Template


Constants

Methods



Class Details

[line 6]
Class Template



[ Top ]


Class Methods


static method quick [line 38]

static string quick( string $root, string $template, [ $env = array()])

Render content quickly



Tags:

access:  public


Parameters:

string   $root  
string   $template  
array   $env  

[ Top ]

constructor __construct [line 53]

MicroTemplate __construct( string $root)

MicroTemplate constructor.



Tags:

access:  public


Parameters:

string   $root  

[ Top ]

method display [line 202]

void display( string $templateFile)

Display content with the template file given



Tags:

access:  public


Parameters:

string   $templateFile  

[ Top ]

method esc [line 217]

array|string esc( array|string $value)

Escape a string so it can safely be displayed



Tags:

access:  public


Parameters:

array|string   $value  

[ Top ]

method set [line 230]

void set( string|array $name, [mixed|null $value = null])

Set a template variable / variables



Tags:

access:  public


Parameters:

string|array   $name  
mixed|null   $value  

[ Top ]

method setEncoding [line 67]

void setEncoding( string $encoding)

Set character set encoding



Tags:

access:  public


Parameters:

string   $encoding  

[ Top ]


Class Constants

DEFAULT_FILE_EXTENSION =  '.thtml'

[line 8]


[ Top ]



Documentation generated on Sun, 02 Oct 2016 07:52:21 +0000 by phpDocumentor 1.4.3