Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Template Class Reference

List of all members.

Detailed Description

Author:
Roland Schmitt <>

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 & Destructor Documentation

Template::Template strPath  ) 
 

constructor.

sets the path to the template folder

Definition at line 36 of file template.php.

References $strPath.


Member Function Documentation

Template::addReplacements aNewReplacements  ) 
 

adds replacements for the template
old replacements will be overwritten

Parameters:
$aNewReplacements array with new replacements
Note:
format: [StringToReplace] => [ReplaceString]

Definition at line 162 of file template.php.

Template::get_area strAreaName  ) 
 

replaces all _*_% with appropriate values or deletes them, if not present

Returns:
returns a part of the template

Definition at line 84 of file template.php.

References $strArea, and split_area().

Template::get_html  ) 
 

Returns:
returns the Template without the areas

Definition at line 111 of file template.php.

Template::get_tmpl  ) 
 

Returns:
returns the complete template

Definition at line 119 of file template.php.

Template::getPath  ) 
 

returns the current template path

Definition at line 61 of file template.php.

Template::getReplacements  ) 
 

Returns:
array with all replacements

Definition at line 170 of file template.php.

Template::myrecode strString  ) 
 

Definition at line 175 of file template.php.

Template::setTemplate strFile  ) 
 

sets the template path

Definition at line 69 of file template.php.

References $strPath.

Template::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

Parameters:
$strAreaName area to extract
$booDelete delete the area in the template?
Returns:
boolean

Definition at line 132 of file template.php.

Referenced by get_area().


Member Data Documentation

Template::$aArea = array()
 

Array with areas as strings.

Definition at line 27 of file template.php.

Template::$aReplacements = array()
 

current replacements ([STRING] => 'REPLACEMENT')

Definition at line 28 of file template.php.

Template::$strAreaEnd
 

Definition at line 31 of file template.php.

Template::$strAreaPre
 

Definition at line 29 of file template.php.

Template::$strAreaStart
 

Definition at line 30 of file template.php.

Template::$strHtml
 

Html without extracted areas.

Definition at line 26 of file template.php.

Template::$strPath
 

Path to template folder.

Definition at line 24 of file template.php.

Referenced by setTemplate(), and Template().

Template::$strTmpl
 

Complete template file without replacements.

Definition at line 25 of file template.php.


The documentation for this class was generated from the following file:
Generated on Sun May 8 19:29:46 2005 for PhpMap by  doxygen 1.4.2