39 if ( !$cas_parent->isProxy() ) {
40 phpCAS::error(
'defining PGT storage makes no sense when not using a CAS proxy');
57 phpCAS::error(__CLASS__.
'::'.__FUNCTION__.
'() should never be called');
68 phpCAS::error(__CLASS__.
'::'.__FUNCTION__.
'() should never be called');
96 $this->_error_message = $error_message;
145 $this->_initialized = TRUE;
163 phpCAS::error(__CLASS__.
'::'.__FUNCTION__.
'() should never be called');
177 phpCAS::error(__CLASS__.
'::'.__FUNCTION__.
'() should never be called');
185 include_once(dirname(__FILE__).
'/pgt-file.php');
186 include_once(dirname(__FILE__).
'/pgt-db.php');
getStorageInfo()
This virtual method returns an informational string giving informations on the parameters of the stor...
traceEnd($res='')
This method is used to indicate the end of the execution of a function in debug mode.
$_initialized
a boolean telling if the storage has already been initialized.
getStorageType()
This virtual method returns an informational string giving the type of storage used by the object (us...
traceBegin()
This method is used to indicate the start of the execution of a function in debug mode...
$_error_message
string used to store an error message.
error($msg)
This method is used by interface methods to print an error and where the function was originally call...
init()
This virtual method initializes the object.
isInitialized()
This method tells if the storage has already been intialized.
write($pgt, $pgt_iou)
This virtual method stores a PGT and its corresponding PGT Iuo.
setErrorMessage($error_message)
This method sets en error message, which can be read later by PGTStorage::getErrorMessage().
read($pgt_iou)
This virtual method reads a PGT corresponding to a PGT Iou and deletes the corresponding storage entr...
PGTStorage($cas_parent)
The constructor of the class, should be called only by inherited classes.
getErrorMessage()
This method returns an error message set by PGTStorage::setErrorMessage().
The PGTStorage class is a generic class for PGT storage.