ILIAS
Release_4_0_x_branch Revision 61816
|
The PGTStorage class is a generic class for PGT storage. More...
Public Member Functions | |
getStorageType () | |
This virtual method returns an informational string giving the type of storage used by the object (used for debugging purposes). | |
getStorageInfo () | |
This virtual method returns an informational string giving informations on the parameters of the storage. | |
getErrorMessage () | |
This method returns an error message set by PGTStorage::setErrorMessage(). | |
getStorageType () | |
This virtual method returns an informational string giving the type of storage used by the object (used for debugging purposes). | |
getStorageInfo () | |
This virtual method returns an informational string giving informations on the parameters of the storage. | |
getErrorMessage () | |
This method returns an error message set by PGTStorage::setErrorMessage(). |
Protected Member Functions | |
PGTStorage ($cas_parent) | |
The constructor of the class, should be called only by inherited classes. | |
setErrorMessage ($error_message) | |
This method sets en error message, which can be read later by PGTStorage::getErrorMessage(). | |
isInitialized () | |
This method tells if the storage has already been intialized. | |
init () | |
This virtual method initializes the object. | |
write ($pgt, $pgt_iou) | |
This virtual method stores a PGT and its corresponding PGT Iuo. | |
read ($pgt_iou) | |
This virtual method reads a PGT corresponding to a PGT Iou and deletes the corresponding storage entry. | |
PGTStorage ($cas_parent) | |
The constructor of the class, should be called only by inherited classes. | |
setErrorMessage ($error_message) | |
This method sets en error message, which can be read later by PGTStorage::getErrorMessage(). | |
isInitialized () | |
This method tells if the storage has already been intialized. | |
init () | |
This virtual method initializes the object. | |
write ($pgt, $pgt_iou) | |
This virtual method stores a PGT and its corresponding PGT Iuo. | |
read ($pgt_iou) | |
This virtual method reads a PGT corresponding to a PGT Iou and deletes the corresponding storage entry. |
Private Attributes | |
$_error_message | |
string used to store an error message. | |
$_initialized | |
a boolean telling if the storage has already been initialized. |
The PGTStorage class is a generic class for PGT storage.
This class should not be instanciated itself but inherited by specific PGT storage classes.
Definition at line 45 of file pgt-main.php.
PGTStorage::getErrorMessage | ( | ) |
This method returns an error message set by PGTStorage::setErrorMessage().
Definition at line 108 of file pgt-main.php.
References $_error_message.
PGTStorage::getStorageInfo | ( | ) |
This virtual method returns an informational string giving informations on the parameters of the storage.
(used for debugging purposes).
Reimplemented in PGTStorageDB, PGTStorageDB, PGTStorageFile, and PGTStorageFile.
Definition at line 66 of file pgt-main.php.
References phpCAS\error().
PGTStorage::getStorageType | ( | ) |
This virtual method returns an informational string giving the type of storage used by the object (used for debugging purposes).
Reimplemented in PGTStorageDB, PGTStorageDB, PGTStorageFile, and PGTStorageFile.
Definition at line 55 of file pgt-main.php.
References phpCAS\error().
|
protected |
This virtual method initializes the object.
Reimplemented in PGTStorageDB, PGTStorageFile, PGTStorageDB, and PGTStorageFile.
Definition at line 143 of file pgt-main.php.
|
protected |
This method tells if the storage has already been intialized.
Definition at line 133 of file pgt-main.php.
References $_initialized.
|
protected |
The constructor of the class, should be called only by inherited classes.
$cas_parent | the CASclient instance that creates the current object. |
Definition at line 36 of file pgt-main.php.
References phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
protected |
This virtual method reads a PGT corresponding to a PGT Iou and deletes the corresponding storage entry.
$pgt_iou | the PGT iou |
Reimplemented in PGTStorageFile, and PGTStorageFile.
Definition at line 175 of file pgt-main.php.
References phpCAS\error().
|
protected |
This method sets en error message, which can be read later by PGTStorage::getErrorMessage().
$error_message | an error message |
Definition at line 94 of file pgt-main.php.
|
protected |
This virtual method stores a PGT and its corresponding PGT Iuo.
$pgt | the PGT |
$pgt_iou | the PGT iou |
Reimplemented in PGTStorageFile, and PGTStorageFile.
Definition at line 161 of file pgt-main.php.
References phpCAS\error().