ILIAS
eassessment Revision 61809
|
Data Structures | |
class | PGTStorageFile |
The PGTStorageFile class is a class for PGT file storage. More... |
Functions | |
PGTStorageFile::getPath () | |
This method returns the name of the directory where PGT's should be stored on the filesystem. | |
PGTStorageFile::getFormat () | |
This method returns the format to use when storing PGT's on the filesystem. | |
PGTStorageFile::getStorageType () | |
This method returns an informational string giving the type of storage used by the object (used for debugging purposes). | |
PGTStorageFile::getStorageInfo () | |
This method returns an informational string giving informations on the parameters of the storage. | |
PGTStorageFile::PGTStorageFile ($cas_parent, $format, $path) | |
The class constructor, called by CASClient::SetPGTStorageFile(). | |
PGTStorageFile::init () | |
This method is used to initialize the storage. | |
PGTStorageFile::getPGTIouFilename ($pgt_iou) | |
This method returns the filename corresponding to a PGT Iou. | |
PGTStorageFile::write ($pgt, $pgt_iou) | |
This method stores a PGT and its corresponding PGT Iou into a file. | |
PGTStorageFile::read ($pgt_iou) | |
This method reads a PGT corresponding to a PGT Iou and deletes the corresponding file. |
Variables | |
PGTStorageFile::$_path | |
a string telling where PGT's should be stored on the filesystem. | |
PGTStorageFile::$_format | |
a string telling the format to use to store PGT's (plain or xml). |
|
private |
This method returns the format to use when storing PGT's on the filesystem.
Definition at line 88 of file pgt-file.php.
References PGTStorageFile\$_format.
Referenced by PGTStorageFile\getPGTIouFilename().
|
private |
This method returns the name of the directory where PGT's should be stored on the filesystem.
Definition at line 68 of file pgt-file.php.
References PGTStorageFile\$_path.
Referenced by PGTStorageFile\getPGTIouFilename().
|
private |
This method returns the filename corresponding to a PGT Iou.
$pgt_iou | the PGT iou. |
Definition at line 208 of file pgt-file.php.
References $filename, PGTStorageFile\getFormat(), PGTStorageFile\getPath(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by PGTStorageFile\read(), and PGTStorageFile\write().
PGTStorageFile::getStorageInfo | ( | ) |
This method returns an informational string giving informations on the parameters of the storage.
(used for debugging purposes).
Reimplemented from PGTStorage.
Definition at line 116 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).
Reimplemented from PGTStorage.
Definition at line 104 of file pgt-file.php.
PGTStorageFile::init | ( | ) |
This method is used to initialize the storage.
Halts on error.
Reimplemented from PGTStorage.
Definition at line 185 of file pgt-file.php.
References PGTStorage\isInitialized(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by PGTStorageFile\init().
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 134 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 |
Reimplemented from PGTStorage.
Definition at line 250 of file pgt-file.php.
References $f, PGTStorageFile\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 |
Reimplemented from PGTStorage.
Definition at line 225 of file pgt-file.php.
References $f, phpCAS\error(), PGTStorageFile\getPGTIouFilename(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
private |
a string telling the format to use to store PGT's (plain or xml).
Written by PGTStorageFile::PGTStorageFile(), read by getFormat().
Definition at line 79 of file pgt-file.php.
Referenced by PGTStorageFile\getFormat().
|
private |
a string telling where PGT's should be stored on the filesystem.
Written by PGTStorageFile::PGTStorageFile(), read by getPath().
Definition at line 58 of file pgt-file.php.
Referenced by PGTStorageFile\getPath().