if $name is in URIs Query string the value is replaced otherwise $name=$value is appended to the uri
string
URI_changeGetValue
(string $uri, string $name, string $value, [boolean $debug = False])
-
string
$uri
-
string
$name
-
string
$value
-
boolean
$debug
----------------------------------------------------- Constructors
OCSP_HTMLPAGE
OCSP_HTMLPAGE
()
adds a body content (to a block)
if the blockname ends with [] the content is treaten as array in this case prepend is disabled
void
addBodyContent
(string $code, [boolean $prepend = False], [string $blockName = 'DEFAULT'])
-
string
$code
-
boolean
$prepend
-
string
$blockName
loads a html code file and adds it to the body by calling $this->addBodyContent()
void
addBodyContentFile
(string $file, [boolean $prepend = False], [string $blockName = 'DEFAULT'], [ $debug = False])
-
string
$file
-
boolean
$prepend
-
string
$blockName
-
$debug
adds a js command to the onLoad of the body
void
addBodyOnload
(string $jsCmd)
adds a css code
void
addCssCode
(string $code, [boolean $prepend = False], [boolean $debug = False])
-
string
$code
-
boolean
$prepend: add the code before already added code
-
boolean
$debug
adds a css link
void
addCssSrcLink
(string $src)
adds a string to the <head>
void
addHeadContent
(string $aString)
adds a file content to the <head>
void
addHeadContentFile
(string $file)
adds a javascript code
void
addJsCode
(string $code, [boolean $prepend = False], [boolean $debug = False])
-
string
$code
-
boolean
$prepend: add the code before already added code
-
boolean
$debug
includes a javascript code file into the header
void
addJsFile
(string $file, [boolean $prepend = False], [boolean $debug = False])
-
string
$file
-
boolean
$prepend: add the code before already added code
-
boolean
$debug
adds a javascript link
void
addJsSrcLink
(string $src)
appends a HTTP header field
void
appendHTTP_header
(string $field)
clears the HTTP header fields
void
clearHTTP_header
()
outputs the page
void
display
([boolean $closeBody = true], [string $convertCharSet = "UTF-8"])
-
boolean
$closeBody
-
string
$convertCharSet
Redefined in descendants as:
returns the ajax object of the page
returns the page content this methods returns the whole content for each block the blocks are ordered by there first time set
string
getBodyContent
([boolean $debug = False])
returns the HTML head <head>...</head>
string
getHtmlHead
()
returns a template var
mixed
getTemplateVar
(string $varName, [string $blockName = 'ALL'])
-
string
$varName
-
string
$blockName
parses a template var imediatly
void
parseTemplateVar
(string $varName, string $varValue, [ $blockName = 'ALL'], [bolean $debug = False])
-
string
$varName
-
string
$varValue
-
bolean
$debug
-
$blockName
sets the ajax object of the page
void
setAjaxObj
( &$ajaxObj, &OCSP_AJAX $ajaxObj)
-
&OCSP_AJAX
$ajaxObj
-
&$ajaxObj
sets the body onLoad event
void
setBodyOnload
(string $jsCmd)
sets the body tag
void
setBodyTag
(string $tag)
sets the docType
void
setDocType
(string $aType)
-
string
$aType: HTML Doctype
void
setJsOnErrorCode
(string $onErrorCode)
sets a meta tag
void
setMetaData
(string $name, string $content, [ $http_equiv = False], boolean $http_equiv;)
-
string
$name
-
string
$content
-
boolean
$http_equiv;
-
$http_equiv
sets a template var if no block is set it's add to 'ALL' and used in all blocks
to add an array set $varName to "" and $varValue to the array
void
setTemplateVar
(string $varName, mixed $varValue, [string $blockName = 'ALL'])
-
string
$varName
-
mixed
$varValue
-
string
$blockName
sets the title
void
setTitle
(string $aTitle)
returns the html code of the page
string
toHtml
([boolean $closeBody = TRUE])