Functions | |
CASClient::HTMLFilterOutput ($str) | |
This method filters a string by replacing special tokens by appropriate values and prints it. | |
CASClient::printHTMLHeader ($title) | |
This method prints the header of the HTML output (after filtering). | |
CASClient::printHTMLFooter () | |
This method prints the footer of the HTML output (after filtering). | |
CASClient::setHTMLHeader ($header) | |
This method set the HTML header used for all outputs. | |
CASClient::setHTMLFooter ($footer) | |
This method set the HTML footer used for all outputs. | |
Variables | |
CASClient::$_output_header | |
A string used to print the header of HTML pages. | |
CASClient::$_output_footer | |
A string used to print the footer of HTML pages. |
CASClient::HTMLFilterOutput | ( | $ | str | ) | [private, inherited] |
This method filters a string by replacing special tokens by appropriate values and prints it.
The corresponding tokens are taken into account:
Used by CASClient::PrintHTMLHeader() and CASClient::printHTMLFooter().
$str | the string to filter and output |
Definition at line 52 of file client.php.
References CASClient::getServerBaseURL(), and CASClient::getServerVersion().
Referenced by CASClient::printHTMLFooter(), and CASClient::printHTMLHeader().
{ $str = str_replace('__CAS_VERSION__',$this->getServerVersion(),$str); $str = str_replace('__PHPCAS_VERSION__',phpCAS::getVersion(),$str); $str = str_replace('__SERVER_BASE_URL__',$this->getServerBaseURL(),$str); echo $str; }
CASClient::printHTMLFooter | ( | ) | [private, inherited] |
This method prints the footer of the HTML output (after filtering).
If CASClient::setHTMLFooter() was not used, a default footer is output.
Definition at line 107 of file client.php.
References CASClient::getString(), and CASClient::HTMLFilterOutput().
Referenced by CASClient::logout(), and CASClient::redirectToCas().
{ $this->HTMLFilterOutput(empty($this->_output_footer) ?('<hr><address>phpCAS __PHPCAS_VERSION__ '.$this->getString(CAS_STR_USING_SERVER).' <a href="__SERVER_BASE_URL__">__SERVER_BASE_URL__</a> (CAS __CAS_VERSION__)</a></address></body></html>') :$this->_output_footer); }
CASClient::printHTMLHeader | ( | $ | title | ) | [private, inherited] |
This method prints the header of the HTML output (after filtering).
If CASClient::setHTMLHeader() was not used, a default header is output.
$title | the title of the page |
Definition at line 79 of file client.php.
References $title, and CASClient::HTMLFilterOutput().
Referenced by CASClient::logout(), and CASClient::redirectToCas().
{ $this->HTMLFilterOutput(str_replace('__TITLE__', $title, (empty($this->_output_header) ? '<html><head><title>__TITLE__</title></head><body><h1>__TITLE__</h1>' : $this->output_header) ) ); }
CASClient::setHTMLFooter | ( | $ | footer | ) | [inherited] |
This method set the HTML footer used for all outputs.
$footer | the HTML footer. |
Definition at line 133 of file client.php.
{ $this->_output_footer = $footer; }
CASClient::setHTMLHeader | ( | $ | header | ) | [inherited] |
This method set the HTML header used for all outputs.
$header | the HTML header. |
Definition at line 121 of file client.php.
{ $this->_output_header = $header; }
CASClient::$_output_footer [private, inherited] |
A string used to print the footer of HTML pages.
Written by CASClient::setHTMLFooter(), read by printHTMLFooter().
Definition at line 98 of file client.php.
CASClient::$_output_header [private, inherited] |
A string used to print the header of HTML pages.
Written by CASClient::setHTMLHeader(), read by CASClient::printHTMLHeader().
Definition at line 68 of file client.php.