ILIAS
release_4-4 Revision
|
The PGTStorageFile class is a class for PGT file storage. More...
Public Member Functions | |
getStorageType () | |
This method returns an informational string giving the type of storage used by the object (used for debugging purposes). More... | |
getStorageInfo () | |
This method returns an informational string giving informations on the parameters of the storage. More... | |
PGTStorageFile ($cas_parent, $format, $path) | |
The class constructor, called by CASClient::SetPGTStorageFile(). More... | |
init () | |
This method is used to initialize the storage. More... | |
write ($pgt, $pgt_iou) | |
This method stores a PGT and its corresponding PGT Iou into a file. More... | |
read ($pgt_iou) | |
This method reads a PGT corresponding to a PGT Iou and deletes the corresponding file. More... | |
getStorageType () | |
This method returns an informational string giving the type of storage used by the object (used for debugging purposes). More... | |
getStorageInfo () | |
This method returns an informational string giving informations on the parameters of the storage. More... | |
PGTStorageFile ($cas_parent, $format, $path) | |
The class constructor, called by CASClient::SetPGTStorageFile(). More... | |
init () | |
This method is used to initialize the storage. More... | |
write ($pgt, $pgt_iou) | |
This method stores a PGT and its corresponding PGT Iou into a file. More... | |
read ($pgt_iou) | |
This method reads a PGT corresponding to a PGT Iou and deletes the corresponding file. More... | |
![]() | |
getStorageType () | |
This virtual method returns an informational string giving the type of storage used by the object (used for debugging purposes). More... | |
getStorageInfo () | |
This virtual method returns an informational string giving informations on the parameters of the storage. More... | |
getErrorMessage () | |
This method returns an error message set by PGTStorage::setErrorMessage(). More... | |
getStorageType () | |
This virtual method returns an informational string giving the type of storage used by the object (used for debugging purposes). More... | |
getStorageInfo () | |
This virtual method returns an informational string giving informations on the parameters of the storage. More... | |
getErrorMessage () | |
This method returns an error message set by PGTStorage::setErrorMessage(). More... | |
Private Member Functions | |
getPath () | |
This method returns the name of the directory where PGT's should be stored on the filesystem. More... | |
getFormat () | |
This method returns the format to use when storing PGT's on the filesystem. More... | |
getPGTIouFilename ($pgt_iou) | |
This method returns the filename corresponding to a PGT Iou. More... | |
getPath () | |
This method returns the name of the directory where PGT's should be stored on the filesystem. More... | |
getFormat () | |
This method returns the format to use when storing PGT's on the filesystem. More... | |
getPGTIouFilename ($pgt_iou) | |
This method returns the filename corresponding to a PGT Iou. More... | |
Private Attributes | |
$_path | |
a string telling where PGT's should be stored on the filesystem. More... | |
$_format | |
a string telling the format to use to store PGT's (plain or xml). More... | |
Additional Inherited Members | |
![]() | |
PGTStorage ($cas_parent) | |
The constructor of the class, should be called only by inherited classes. More... | |
setErrorMessage ($error_message) | |
This method sets en error message, which can be read later by PGTStorage::getErrorMessage(). More... | |
isInitialized () | |
This method tells if the storage has already been intialized. More... | |
init () | |
This virtual method initializes the object. More... | |
write ($pgt, $pgt_iou) | |
This virtual method stores a PGT and its corresponding PGT Iuo. More... | |
read ($pgt_iou) | |
This virtual method reads a PGT corresponding to a PGT Iou and deletes the corresponding storage entry. More... | |
PGTStorage ($cas_parent) | |
The constructor of the class, should be called only by inherited classes. More... | |
setErrorMessage ($error_message) | |
This method sets en error message, which can be read later by PGTStorage::getErrorMessage(). More... | |
isInitialized () | |
This method tells if the storage has already been intialized. More... | |
init () | |
This virtual method initializes the object. More... | |
write ($pgt, $pgt_iou) | |
This virtual method stores a PGT and its corresponding PGT Iuo. More... | |
read ($pgt_iou) | |
This virtual method reads a PGT corresponding to a PGT Iou and deletes the corresponding storage entry. More... | |
The PGTStorageFile class is a class for PGT file storage.
An instance of this class is returned by CASClient::SetPGTStorageFile().
Definition at line 45 of file pgt-file.php.
|
private |
This method returns the format to use when storing PGT's on the filesystem.
Definition at line 61 of file pgt-file.php.
References $_format.
|
private |
This method returns the name of the directory where PGT's should be stored on the filesystem.
Definition at line 41 of file pgt-file.php.
References $_format, and $_path.
|
private |
This method returns the filename corresponding to a PGT Iou.
$pgt_iou | the PGT iou. |
Definition at line 170 of file pgt-file.php.
References getFormat(), getPath(), phpCAS\traceBegin(), and phpCAS\traceEnd().
PGTStorageFile::getStorageInfo | ( | ) |
This method returns an informational string giving informations on the parameters of the storage.
(used for debugging purposes).
Definition at line 89 of file pgt-file.php.
PGTStorageFile::getStorageType | ( | ) |
This method returns an informational string giving the type of storage used by the object (used for debugging purposes).
Definition at line 77 of file pgt-file.php.
PGTStorageFile::init | ( | ) |
This method is used to initialize the storage.
Halts on error.
Definition at line 147 of file pgt-file.php.
References PGTStorage\isInitialized(), phpCAS\traceBegin(), and phpCAS\traceEnd().
PGTStorageFile::PGTStorageFile | ( | $cas_parent, | |
$format, | |||
$path | |||
) |
The class constructor, called by CASClient::SetPGTStorageFile().
$cas_parent | the CASClient instance that creates the object. |
$format | the format used to store the PGT's (`plain' and `xml' allowed). |
$path | the path where the PGT's should be stored |
Definition at line 107 of file pgt-file.php.
References $path, CAS_PGT_STORAGE_FILE_DEFAULT_FORMAT, CAS_PGT_STORAGE_FILE_DEFAULT_PATH, CAS_PGT_STORAGE_FILE_FORMAT_PLAIN, CAS_PGT_STORAGE_FILE_FORMAT_XML, phpCAS\error(), PGTStorage\PGTStorage(), phpCAS\traceBegin(), and phpCAS\traceEnd().
PGTStorageFile::read | ( | $pgt_iou | ) |
This method reads a PGT corresponding to a PGT Iou and deletes the corresponding file.
$pgt_iou | the PGT iou |
Definition at line 211 of file pgt-file.php.
References getPGTIouFilename(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
PGTStorageFile::write | ( | $pgt, | |
$pgt_iou | |||
) |
This method stores a PGT and its corresponding PGT Iou into a file.
Echoes a warning on error.
$pgt | the PGT |
$pgt_iou | the PGT iou |
Definition at line 186 of file pgt-file.php.
References phpCAS\error(), getPGTIouFilename(), phpCAS\traceBegin(), and phpCAS\traceEnd().