Gumbo_Interface_Template
Template Interface
Author(s): |
Michael Luster <mluster79@yahoo.com> |
License: | New BSD License |
Copyright: | Copyright (c) 2007, iBayou, Michael Luster |
Link: | http://sourceforge.net/projects/phpgumbo |
Version: | 0.0.1 |
Interface Methods
public static void assign ( string|array $key, [mixed $val] )
[line 49]
Assigns a global template variable
All global template variable references will be prepended with "global_*" string. This will separate the global variables from local template variables.
Parameter(s):
- (string|array) $key :: template reference
- (mixed) $val :: template value
- precondition:
must be a primitive type
[ Top ]public static string getDirCompile ( ) [line 138]Returns the global Template compile directory
[ Top ]public static string getDirConfig ( ) [line 150]Returns the global Template config directory
[ Top ]public static mixed getVar ( string $key ) [line 120]Returns a global template variable value
Parameter(s):
- (string) $key :: variable reference
[ Top ]public static bool isEngine ( string $engine ) [line 171]Returns if the Template Engine exists
Parameter(s):
- (string) $engine
[ Top ]public static void setDirCache ( string $loc ) [line 85]Sets the global template file cache directory
Parameter(s):
- (string) $loc
- precondition:
is_dir ($loc)
[ Top ]public static void setDirCompile ( string $loc ) [line 78]Sets the global template file compile directory
Parameter(s):
- (string) $loc
- precondition:
is_dir ($loc)
[ Top ]public static void setDirConfig ( string $loc ) [line 92]Sets the global template file config directory
Parameter(s):
- (string) $loc
- precondition:
is_dir ($loc)
[ Top ]public static void setDirTpl ( string $loc ) [line 71]Sets the global template file directory
Parameter(s):
- (string) $loc
- precondition:
is_dir ($loc)
[ Top ]public static void setEngine ( string $engine ) [line 64]Sets the global template engine to use
Parameter(s):
- (string) $engine
[ Top ]public static void setLeftDelimeter ( string $val ) [line 98]Sets the global left delimeter value
Parameter(s):
- (string) $val
[ Top ]public static void setRightDelimeter ( string $val ) [line 104]Sets the global right delimeter value
Parameter(s):
- (string) $val
[ Top ]