|
Moodle
2.2.1
http://www.collinsharper.com
|
|
Data Structures | |
| class | PGTStorageFile |
Functions | |
| getStorageType () | |
| getStorageInfo () | |
| PGTStorageFile ($cas_parent, $format, $path) | |
| init () | |
| write ($pgt, $pgt_iou) | |
| read ($pgt_iou) | |
| 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.
| 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.
| init | ( | ) |
This method is used to initialize the storage. Halts on error.
Reimplemented from PGTStorage.
Definition at line 185 of file pgt-file.php.

| 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.

| 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 254 of file pgt-file.php.

| 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.
