Robert Vock <smir@andaloria.de>
Definition at line 22 of file template.php.
Public Member Functions | |
Template ($strPath) | |
constructor. | |
getPath () | |
returns the current template path | |
setTemplate ($strFile) | |
sets the template path | |
get_area ($strAreaName) | |
replaces all _*_% with appropriate values or deletes them, if not present | |
get_html () | |
get_tmpl () | |
split_area ($strAreaName, $booDelete=false) | |
deletes the area $strAreaName in the template, saves the area into the area array and replaces the area with a var tag or deletes it completely | |
addReplacements ($aNewReplacements) | |
adds replacements for the template old replacements will be overwritten | |
getReplacements () | |
myrecode ($strString) | |
Public Attributes | |
$strPath | |
Path to template folder. | |
$strTmpl | |
Complete template file without replacements. | |
$strHtml | |
Html without extracted areas. | |
$aArea = array() | |
Array with areas as strings. | |
$aReplacements = array() | |
current replacements ([STRING] => 'REPLACEMENT') | |
$strAreaPre | |
$strAreaStart | |
$strAreaEnd |
|
constructor. sets the path to the template folder Definition at line 36 of file template.php. References $strPath. |
|
adds replacements for the template
Definition at line 162 of file template.php. |
|
replaces all _*_% with appropriate values or deletes them, if not present
Definition at line 84 of file template.php. References $strArea, and split_area(). |
|
Definition at line 111 of file template.php. |
|
Definition at line 119 of file template.php. |
|
returns the current template path
Definition at line 61 of file template.php. |
|
Definition at line 170 of file template.php. |
|
Definition at line 175 of file template.php. |
|
sets the template path
Definition at line 69 of file template.php. References $strPath. |
|
deletes the area $strAreaName in the template,
Definition at line 132 of file template.php. Referenced by get_area(). |
|
Array with areas as strings.
Definition at line 27 of file template.php. |
|
current replacements ([STRING] => 'REPLACEMENT')
Definition at line 28 of file template.php. |
|
Definition at line 31 of file template.php. |
|
Definition at line 29 of file template.php. |
|
Definition at line 30 of file template.php. |
|
Html without extracted areas.
Definition at line 26 of file template.php. |
|
Path to template folder.
Definition at line 24 of file template.php. Referenced by setTemplate(), and Template(). |
|
Complete template file without replacements.
Definition at line 25 of file template.php. |