70 if ( !$cas_parent->isProxy() ) {
72 'defining PGT storage makes no sense when not using a CAS proxy'
92 phpCAS::error(__CLASS__.
'::'.__FUNCTION__.
'() should never be called');
105 phpCAS::error(__CLASS__.
'::'.__FUNCTION__.
'() should never be called');
133 $this->_error_message = $error_message;
180 $this->_initialized =
true;
200 phpCAS::error(__CLASS__.
'::'.__FUNCTION__.
'() should never be called');
215 phpCAS::error(__CLASS__.
'::'.__FUNCTION__.
'() should never be called');
An exception for terminatinating execution or to throw for unit testing.
Basic class for PGT storage The CAS_PGTStorage_AbstractStorage class is a generic class for PGT stora...
setErrorMessage($error_message)
This method sets en error message, which can be read later by PGTStorage::getErrorMessage().
write($pgt, $pgt_iou)
This virtual method stores a PGT and its corresponding PGT Iuo.
$_initialized
a boolean telling if the storage has already been initialized.
read($pgt_iou)
This virtual method reads a PGT corresponding to a PGT Iou and deletes the corresponding storage entr...
getErrorMessage()
This method returns an error message set by PGTStorage::setErrorMessage().
$_error_message
string used to store an error message.
getStorageInfo()
This virtual method returns an informational string giving informations on the parameters of the stor...
__construct($cas_parent)
The constructor of the class, should be called only by inherited classes.
init()
This virtual method initializes the object.
isInitialized()
This method tells if the storage has already been intialized.
getStorageType()
This virtual method returns an informational string giving the type of storage used by the object (us...
static traceEnd($res='')
This method is used to indicate the end of the execution of a function in debug mode.
static traceBegin()
This method is used to indicate the start of the execution of a function in debug mode.
static error($msg)
This method is used by interface methods to print an error and where the function was originally call...