ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
+ 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 801 of file CAS.php.

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

802  {
805 
806  try {
807  self::$_PHPCAS_CLIENT->setPGTStorage($storage);
808  } catch (Exception $e) {
809  phpCAS :: error(get_class($e) . ': ' . $e->getMessage());
810  }
812  }
static error($msg)
This method is used by interface methods to print an error and where the function was originally call...
Definition: CAS.php:563
static traceEnd($res='')
This method is used to indicate the end of the execution of a function in debug mode.
Definition: CAS.php:658
static _validateProxyExists()
Checks of a proxy client aready exists.
Definition: CAS.php:1848
static traceBegin()
This method is used to indicate the start of the execution of a function in debug mode...
Definition: CAS.php:611
+ 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 831 of file CAS.php.

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

837  {
840 
841  try {
842  self::$_PHPCAS_CLIENT->setPGTStorageDb($dsn_or_pdo, $username, $password, $table, $driver_options);
843  } catch (Exception $e) {
844  phpCAS :: error(get_class($e) . ': ' . $e->getMessage());
845  }
847  }
static error($msg)
This method is used by interface methods to print an error and where the function was originally call...
Definition: CAS.php:563
static traceEnd($res='')
This method is used to indicate the end of the execution of a function in debug mode.
Definition: CAS.php:658
static _validateProxyExists()
Checks of a proxy client aready exists.
Definition: CAS.php:1848
$password
Definition: cron.php:14
static traceBegin()
This method is used to indicate the start of the execution of a function in debug mode...
Definition: CAS.php:611
if(empty($password)) $table
Definition: pwgen.php:24
+ 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 857 of file CAS.php.

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

858  {
861 
862  try {
863  self::$_PHPCAS_CLIENT->setPGTStorageFile($path);
864  } catch (Exception $e) {
865  phpCAS :: error(get_class($e) . ': ' . $e->getMessage());
866  }
868  }
$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:563
static traceEnd($res='')
This method is used to indicate the end of the execution of a function in debug mode.
Definition: CAS.php:658
static _validateProxyExists()
Checks of a proxy client aready exists.
Definition: CAS.php:1848
static traceBegin()
This method is used to indicate the start of the execution of a function in debug mode...
Definition: CAS.php:611
+ 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().