|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Collaboration diagram for PGT storage:Modules | |
| PGT storage in a database | |
| PGT storage on the filesystem | |
Namespaces | |
| namespace | PhpCAS |
Functions | |
| CAS_Client::_initPGTStorage () | |
| This method is used to initialize the storage of PGT's. More... | |
| CAS_Client::_storePGT ($pgt, $pgt_iou) | |
| This method stores a PGT. More... | |
| CAS_Client::_loadPGT ($pgt_iou) | |
| This method reads a PGT from its Iou and deletes the corresponding storage entry. More... | |
| CAS_Client::setPGTStorage ($storage) | |
| This method can be used to set a custom PGT storage object. More... | |
| CAS_Client::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... | |
| CAS_Client::setPGTStorageFile ($path='') | |
| This method is used to tell phpCAS to store the response of the CAS server to PGT requests onto the filesystem. More... | |
| CAS_Client::_validatePGT (&$validate_url, $text_response, $tree_response) | |
| This method is used to validate a PGT; halt on failure. More... | |
| CAS_Client::retrievePT ($target_service, &$err_code, &$err_msg) | |
| This method is used to retrieve PT's from the CAS server thanks to a PGT. More... | |
| CAS_PGTStorage_AbstractStorage::__construct ($cas_parent) | |
| The constructor of the class, should be called only by inherited classes. More... | |
| CAS_PGTStorage_AbstractStorage::getStorageType () | |
| This virtual method returns an informational string giving the type of storage used by the object (used for debugging purposes). More... | |
| CAS_PGTStorage_AbstractStorage::getStorageInfo () | |
| This virtual method returns an informational string giving informations on the parameters of the storage. More... | |
| CAS_PGTStorage_AbstractStorage::setErrorMessage ($error_message) | |
| This method sets en error message, which can be read later by PGTStorage::getErrorMessage(). More... | |
| CAS_PGTStorage_AbstractStorage::getErrorMessage () | |
| This method returns an error message set by PGTStorage::setErrorMessage(). More... | |
| CAS_PGTStorage_AbstractStorage::isInitialized () | |
| This method tells if the storage has already been intialized. More... | |
| CAS_PGTStorage_AbstractStorage::init () | |
| This virtual method initializes the object. More... | |
| CAS_PGTStorage_AbstractStorage::write ($pgt, $pgt_iou) | |
| This virtual method stores a PGT and its corresponding PGT Iuo. More... | |
| CAS_PGTStorage_AbstractStorage::read ($pgt_iou) | |
| This virtual method reads a PGT corresponding to a PGT Iou and deletes the corresponding storage entry. More... | |
Variables | |
| CAS_Client::$_pgt_storage | |
| an instance of a class inheriting of PGTStorage, used to deal with PGT storage. More... | |
| CAS_PGTStorage_AbstractStorage::$_error_message | |
| string used to store an error message. More... | |
| CAS_PGTStorage_AbstractStorage::$_initialized | |
| a boolean telling if the storage has already been initialized. More... | |
| CAS_PGTStorage_AbstractStorage::__construct | ( | $cas_parent | ) |
The constructor of the class, should be called only by inherited classes.
| CAS_Client | $cas_parent | the CAS _client instance that creates the current object. |
Definition at line 67 of file AbstractStorage.php.
References phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Here is the call graph for this function:
|
private |
This method is used to initialize the storage of PGT's.
Halts on error.
Definition at line 2516 of file Client.php.
References CAS_Client\setPGTStorageFile().
Referenced by CAS_Client\_loadPGT(), and CAS_Client\_storePGT().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
This method reads a PGT from its Iou and deletes the corresponding storage entry.
| string | $pgt_iou | the PGT Iou |
Definition at line 2551 of file Client.php.
References CAS_Client\_initPGTStorage().
Referenced by CAS_Client\_validatePGT().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
This method stores a PGT.
Halts on error.
| string | $pgt | the PGT to store |
| string | $pgt_iou | its corresponding Iou |
Definition at line 2535 of file Client.php.
References CAS_Client\_initPGTStorage().
Referenced by CAS_Client\_callback().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
This method is used to validate a PGT; halt on failure.
| string | &$validate_url | the URL of the request to the CAS server. |
| string | $text_response | the response of the CAS server, as is (XML text); result of CAS_Client::validateCAS10() or CAS_Client::validateCAS20(). |
| string | $tree_response | the response of the CAS server, as a DOM XML tree; result of CAS_Client::validateCAS10() or CAS_Client::validateCAS20(). |
Definition at line 2680 of file Client.php.
References CAS_Client\_loadPGT(), CAS_Client\_setPGT(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by CAS_Client\isAuthenticated().
Here is the call graph for this function:
Here is the caller graph for this function:| CAS_PGTStorage_AbstractStorage::getErrorMessage | ( | ) |
This method returns an error message set by PGTStorage::setErrorMessage().
Definition at line 144 of file AbstractStorage.php.
References CAS_PGTStorage_AbstractStorage\$_error_message.
| CAS_PGTStorage_AbstractStorage::getStorageInfo | ( | ) |
This virtual method returns an informational string giving informations on the parameters of the storage.
(used for debugging purposes).
Reimplemented in CAS_PGTStorage_Db, and CAS_PGTStorage_File.
Definition at line 103 of file AbstractStorage.php.
References phpCAS\error().
Here is the call graph for this function:| CAS_PGTStorage_AbstractStorage::getStorageType | ( | ) |
This virtual method returns an informational string giving the type of storage used by the object (used for debugging purposes).
Reimplemented in CAS_PGTStorage_Db, and CAS_PGTStorage_File.
Definition at line 90 of file AbstractStorage.php.
References phpCAS\error().
Here is the call graph for this function:| CAS_PGTStorage_AbstractStorage::init | ( | ) |
This virtual method initializes the object.
Reimplemented in CAS_PGTStorage_Db, and CAS_PGTStorage_File.
Definition at line 178 of file AbstractStorage.php.
| CAS_PGTStorage_AbstractStorage::isInitialized | ( | ) |
This method tells if the storage has already been intialized.
Definition at line 168 of file AbstractStorage.php.
References CAS_PGTStorage_AbstractStorage\$_initialized.
Referenced by CAS_PGTStorage_Db\createTable(), CAS_PGTStorage_Db\init(), and CAS_PGTStorage_File\init().
Here is the caller graph for this function:| CAS_PGTStorage_AbstractStorage::read | ( | $pgt_iou | ) |
This virtual method reads a PGT corresponding to a PGT Iou and deletes the corresponding storage entry.
| string | $pgt_iou | the PGT iou |
Reimplemented in CAS_PGTStorage_Db, and CAS_PGTStorage_File.
Definition at line 213 of file AbstractStorage.php.
References phpCAS\error().
Here is the call graph for this function:| CAS_Client::retrievePT | ( | $target_service, | |
| & | $err_code, | ||
| & | $err_msg | ||
| ) |
This method is used to retrieve PT's from the CAS server thanks to a PGT.
| string | $target_service | the service to ask for with the PT. |
| string | &$err_code | an error code (PHPCAS_SERVICE_OK on success). |
| string | &$err_msg | an error message (empty on success). |
Definition at line 2742 of file Client.php.
References CAS_Client\_getPGT(), CAS_Client\_readURL(), CAS_Client\getServerProxyURL(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by CAS_Client\initializeProxiedService().
Here is the call graph for this function:
Here is the caller graph for this function:| CAS_PGTStorage_AbstractStorage::setErrorMessage | ( | $error_message | ) |
This method sets en error message, which can be read later by PGTStorage::getErrorMessage().
| string | $error_message | an error message |
Definition at line 131 of file AbstractStorage.php.
| CAS_Client::setPGTStorage | ( | $storage | ) |
This method can be used to set a custom PGT storage object.
| CAS_PGTStorage_AbstractStorage | $storage | a PGT storage object that inherits from the CAS_PGTStorage_AbstractStorage class |
Definition at line 2567 of file Client.php.
References CAS_Client\ensureIsProxy(), and phpCAS\error().
Referenced by CAS_Client\setPGTStorageDb(), and CAS_Client\setPGTStorageFile().
Here is the call graph for this function:
Here is the caller graph for this function:| CAS_Client::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.
| string | $dsn_or_pdo | a dsn string to use for creating a PDO object or a PDO object |
| string | $username | the username to use when connecting to the database |
| string | $password | the password to use when connecting to the database |
| string | $table | the table to use for storing and retrieving PGTs |
| string | $driver_options | any driver options to use when connecting to the database |
Definition at line 2603 of file Client.php.
References $password, CAS_Client\ensureIsProxy(), and CAS_Client\setPGTStorage().
Here is the call graph for this function:| CAS_Client::setPGTStorageFile | ( | $path = '' | ) |
This method is used to tell phpCAS to store the response of the CAS server to PGT requests onto the filesystem.
| string | $path | the path where the PGT's should be stored |
Definition at line 2648 of file Client.php.
References CAS_Client\ensureIsProxy(), and CAS_Client\setPGTStorage().
Referenced by CAS_Client\_initPGTStorage().
Here is the call graph for this function:
Here is the caller graph for this function:| CAS_PGTStorage_AbstractStorage::write | ( | $pgt, | |
| $pgt_iou | |||
| ) |
This virtual method stores a PGT and its corresponding PGT Iuo.
| string | $pgt | the PGT |
| string | $pgt_iou | the PGT iou |
Reimplemented in CAS_PGTStorage_Db, and CAS_PGTStorage_File.
Definition at line 198 of file AbstractStorage.php.
References phpCAS\error().
Here is the call graph for this function:| CAS_PGTStorage_AbstractStorage::$_error_message |
string used to store an error message.
Written by PGTStorage::setErrorMessage(), read by PGTStorage::getErrorMessage().
Definition at line 119 of file AbstractStorage.php.
Referenced by CAS_PGTStorage_AbstractStorage\getErrorMessage().
| CAS_PGTStorage_AbstractStorage::$_initialized |
a boolean telling if the storage has already been initialized.
Written by PGTStorage::init(), read by PGTStorage::isInitialized().
Definition at line 159 of file AbstractStorage.php.
Referenced by CAS_PGTStorage_AbstractStorage\isInitialized().
|
private |
an instance of a class inheriting of PGTStorage, used to deal with PGT storage.
Created by CAS_Client::setPGTStorageFile(), used by CAS_Client::setPGTStorageFile() and CAS_Client::_initPGTStorage().
Definition at line 2508 of file Client.php.