ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
+ Collaboration diagram for PGT storage:

Functions

static phpCAS::setPGTStorage ($storage)
 This method can be used to set a custom PGT storage object. More...
 
static phpCAS::setPGTStorageDb ($dsn_or_pdo, $username='', $password='', $table='', $driver_options=null)
 This method is used to tell phpCAS to store the response of the CAS server to PGT requests in a database. More...
 
static phpCAS::setPGTStorageFile ($path='')
 This method is used to tell phpCAS to store the response of the CAS server to PGT requests onto the filesystem. More...
 

Variables

const CAS_PGT_STORAGE_FILE_DEFAULT_PATH session_save_path()
 Default path used when storing PGT's to file. More...
 

Detailed Description

Function Documentation

◆ setPGTStorage()

static phpCAS::setPGTStorage (   $storage)
static

This method can be used to set a custom PGT storage object.

Parameters
CAS_PGTStorage$storagea PGT storage object that inherits from the CAS_PGTStorage class
Returns
void

Definition at line 781 of file CAS.php.

References phpCAS\_validateProxyExists(), phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().

782  {
785 
786  try {
787  self::$_PHPCAS_CLIENT->setPGTStorage($storage);
788  } catch (Exception $e) {
789  phpCAS :: error(get_class($e) . ': ' . $e->getMessage());
790  }
792  }
static error($msg)
This method is used by interface methods to print an error and where the function was originally call...
Definition: CAS.php:543
static traceEnd($res='')
This method is used to indicate the end of the execution of a function in debug mode.
Definition: CAS.php:638
static _validateProxyExists()
Checks of a proxy client aready exists.
Definition: CAS.php:1824
static traceBegin()
This method is used to indicate the start of the execution of a function in debug mode...
Definition: CAS.php:591
+ Here is the call graph for this function:

◆ setPGTStorageDb()

static phpCAS::setPGTStorageDb (   $dsn_or_pdo,
  $username = '',
  $password = '',
  $table = '',
  $driver_options = null 
)
static

This method is used to tell phpCAS to store the response of the CAS server to PGT requests in a database.

Parameters
string$dsn_or_pdoa dsn string to use for creating a PDO object or a PDO object
string$usernamethe username to use when connecting to the database
string$passwordthe password to use when connecting to the database
string$tablethe table to use for storing and retrieving PGT's
string$driver_optionsany driver options to use when connecting to the database
Returns
void

Definition at line 811 of file CAS.php.

References phpCAS\_validateProxyExists(), phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().

813  {
816 
817  try {
818  self::$_PHPCAS_CLIENT->setPGTStorageDb($dsn_or_pdo, $username, $password, $table, $driver_options);
819  } catch (Exception $e) {
820  phpCAS :: error(get_class($e) . ': ' . $e->getMessage());
821  }
823  }
static error($msg)
This method is used by interface methods to print an error and where the function was originally call...
Definition: CAS.php:543
static traceEnd($res='')
This method is used to indicate the end of the execution of a function in debug mode.
Definition: CAS.php:638
static _validateProxyExists()
Checks of a proxy client aready exists.
Definition: CAS.php:1824
static traceBegin()
This method is used to indicate the start of the execution of a function in debug mode...
Definition: CAS.php:591
+ Here is the call graph for this function:

◆ setPGTStorageFile()

static phpCAS::setPGTStorageFile (   $path = '')
static

This method is used to tell phpCAS to store the response of the CAS server to PGT requests onto the filesystem.

Parameters
string$paththe path where the PGT's should be stored
Returns
void

Definition at line 833 of file CAS.php.

References $path, phpCAS\_validateProxyExists(), phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().

834  {
837 
838  try {
839  self::$_PHPCAS_CLIENT->setPGTStorageFile($path);
840  } catch (Exception $e) {
841  phpCAS :: error(get_class($e) . ': ' . $e->getMessage());
842  }
844  }
$path
Definition: aliased.php:25
static error($msg)
This method is used by interface methods to print an error and where the function was originally call...
Definition: CAS.php:543
static traceEnd($res='')
This method is used to indicate the end of the execution of a function in debug mode.
Definition: CAS.php:638
static _validateProxyExists()
Checks of a proxy client aready exists.
Definition: CAS.php:1824
static traceBegin()
This method is used to indicate the start of the execution of a function in debug mode...
Definition: CAS.php:591
+ Here is the call graph for this function:

Variable Documentation

◆ CAS_PGT_STORAGE_FILE_DEFAULT_PATH

const CAS_PGT_STORAGE_FILE_DEFAULT_PATH session_save_path()

Default path used when storing PGT's to file.

Definition at line 155 of file CAS.php.

Referenced by CAS_PGTStorage_File\__construct().