pcf_templ_getVarArray (line
124)
returns an array with fields and types
array[SIMPLE|COMPLEX][TYPE][name]
each array element has a NAME, a TYPE and a replace string note COMPLEX elements are not splitted up
array
pcf_templ_getVarArray
(string $aTemplate, [char $varSign = "\$"], [bool $debug = False])
-
string
$aTemplate
-
char
$varSign
-
bool
$debug
pcf_templ_getVarNames (line
253)
returns an array with variable names
array
pcf_templ_getVarNames
(string $aTemplate, [char $varSign = "\$"], [bool $debug = False])
-
string
$aTemplate
-
char
$varSign
-
bool
$debug
pcf_tmpl_findComplexReplace (line
76)
splits the template into the replace string of a complex var and the rest of the template
example "LINKTYPE....?$ asdfsadf " will return "$?LINKTYPE....?$" and set $aTemplate to " asdfsadf "
string
pcf_tmpl_findComplexReplace
( &$aTemplate, string $type, [ $varSign = "\$"], [boolean $debug = False], string $aTemplate)
-
string
$aTemplate
-
string
$type
-
boolean
$debug
-
&$aTemplate
-
$varSign
pcf_tmpl_get (line
748)
reads $aFile in $GLOBALS['PROJECT']['TEMPLATEPATH'] parses the template with $aArr and returns it as string
string
pcf_tmpl_get
(string $aFileName, [array $aArr = NULL], [bool $debug = False], [bool $fromTmplDir = True])
-
string
$aFileName
-
array
$aArr
-
bool
$debug
-
bool
$fromTmplDir
pcf_tmpl_getVars (line
307)
returns an array with fields found in the template
each array element has a NAME and a TYPE index
array
pcf_tmpl_getVars
(string $aTemplate, [char $varSign = '$'], [bool $debug = False])
-
string
$aTemplate
-
char
$varSign
-
bool
$debug
pcf_tmpl_htmlgermChars (line
782)
converts german specialchars into theire html representation (ß ....)
string
pcf_tmpl_htmlgermChars
(string $aText, [boolean $debug = False])
-
string
$aText
-
boolean
$debug
pcf_tmpl_parse (line
422)
parses a template and replaces the values found
string
pcf_tmpl_parse
(string $aTemplate, [array $aArr = NULL], [bool $debug = False], [char $varSign = "\$"])
-
string
$aTemplate: the template to parse
-
array
$aArr: the Array of the $* fields
-
bool
$debug
-
char
$varSign
pcf_tmpl_parseAdminFile (line
696)
parses am admin templdate (under $GLOBALS['OCSP']['ADMINPATH'] ../admin-tmpl)
string
pcf_tmpl_parseAdminFile
(string $aFileName, [array $aArr = NULL], [boolean $debug = False], [char $varSign = '$'])
-
string
$aFileName
-
array
$aArr
-
boolean
$debug
-
char
$varSign
pcf_tmpl_parseFile (line
667)
reads $aFile in $GLOBALS['PROJECT']['TEMPLATEPATH'] parses the template with $aArr and returns it returns if the template file was found
string
pcf_tmpl_parseFile
(string $aFileName, [array $aArr = NULL], [boolean $debug = False], [char $varSign = '$'])
-
string
$aFileName
-
array
$aArr
-
boolean
$debug
-
char
$varSign
pcf_tmpl_repl_specials (line
339)
replaces specialvields ($#....$)
string
pcf_tmpl_repl_specials
(string $aTemplate, array $aArr, [boolean $debug = False])
-
string
$aTemplate: the template to parse
-
array
$aArr: the Array of the $* fields
-
boolean
$debug
pcf_tmpl_repl_values (line
390)
replaces all simple datafields ($*FIELD$) with the value of $arr
NOTE: fields which are not set are not removed
string
pcf_tmpl_repl_values
(string $aTemplate, array $aArr, [bool $debug = False], [char $varSign = "\$"])
-
string
$aTemplate: the template to parse
-
array
$aArr: the Array of the $* fields
-
bool
$debug
-
char
$varSign
pcf_tmpl_write (line
721)
echos pcf_tmpl_parseFile
string
pcf_tmpl_write
(string $aFileName, [array $aArr = NULL], [boolean $debug = False])
-
string
$aFileName
-
array
$aArr
-
boolean
$debug