Yapter - Yet Another PHP Template Engine
Located in /yapter.php (line 58)
| Class | Description |
|---|---|
| Template | Yapter - Yet Another PHP Template Engine (Legacy Class) |
Tracks all block definitions from which multiple block instances can be created.
Template content blocks
$blox[blockname]['content'] holds the template's content $blox[blockname]['numlines'] holds the number of lines in the block $blox[blockname]['parsed'] holds an array with the parsed data $blox[$_ROOT] always holds the main template
Automatically hide unparsed blocks?
Ignore unknown variables?
Declared variables that were not set.
Script start time used to calculate debug execution time.
Array of variables available to all blocks
Warning level verbosity
Document Root
Yapter Constructor
Adds a new block to the blox-array
Adds a block definition to the block-definition array from which other blocks can be copied
Copies a block from the block definition array
Adds a new block, filling it with the specified's file contents
Resets the parsed data to an empty string and sets the block as "unparsed".
Error handler
Gets the debug string with the time required to parse the template.
Gets the content of a block.
Gets the parsed content of a block or the ROOT (complete) template.
Gets weather to hide unparsed template blocks.
Gets weather to ignore unknown template variables.
Gets the value of a variable.
Gets the level of verbosity of error/warning/notices that Yapter displays.
Hides all the contents of the specified block.
Notice handler
Parses the specified block, filling variables and nested blockdefs
Handles subprocessing of templates found in the main template file
Replaces the contents of one block with the contents of another.
Assigns a value to a variable ({varname}).
Assigns the contents of a file to a variable ({varname}).
Sets weather to hide unparsed template blocks.
Sets weather to ignore unknown template variables.
List of variables that were found to not be set during parsing.
Assigns values to multiple variables
Sets the level of verbosity of error/warning/notices that Yapter displays.
Warning handler
Issue warning the first time an assigned variable is found, but not set.
Documentation generated on Tue, 27 Feb 2007 22:01:39 -0500 by phpDocumentor 1.3.1