phpCAS client initializer.
- Parameters
-
string | $server_version | the version of the CAS server |
string | $server_hostname | the hostname of the CAS server |
string | $server_port | the port the CAS server is running on |
string | $server_uri | the URI the CAS server is responding on |
bool | $changeSessionID | Allow phpCAS to change the session_id (Single Sign Out/handleLogoutRequests is based on that change) |
- Returns
- a newly created CAS_Client object
- Note
- Only one of the phpCAS::client() and phpCAS::proxy functions should be called, only once, and before all other methods (except phpCAS::getVersion() and phpCAS::setDebug()).
Definition at line 345 of file CAS.php.
References phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by ilCASAuth\__construct(), ilAuthProviderCAS\doAuthentication(), and ilAuthContainerCAS\initCAS().
353 if (is_object(self::$_PHPCAS_CLIENT)) {
354 phpCAS :: error(self::$_PHPCAS_INIT_CALL[
'method'] .
'() has already been called (at ' . self::$_PHPCAS_INIT_CALL[
'file'] .
':' . self::$_PHPCAS_INIT_CALL[
'line'] .
')');
358 $dbg = debug_backtrace();
359 self::$_PHPCAS_INIT_CALL = array(
361 'file' => $dbg[0][
'file'],
362 'line' => $dbg[0][
'line'],
363 'method' => __CLASS__ .
'::' . __FUNCTION__
static error($msg)
This method is used by interface methods to print an error and where the function was originally call...
static traceEnd($res='')
This method is used to indicate the end of the execution of a function in debug mode.
static traceBegin()
This method is used to indicate the start of the execution of a function in debug mode...
The CAS_Client class is a client interface that provides CAS authentication to PHP applications...