ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
PGTStorage Class Reference

The PGTStorage class is a generic class for PGT storage. More...

+ Inheritance diagram for PGTStorage:
+ Collaboration diagram for PGTStorage:

Public Member Functions

 getStorageType ()
 This virtual method returns an informational string giving the type of storage used by the object (used for debugging purposes).
 getStorageInfo ()
 This virtual method returns an informational string giving informations on the parameters of the storage.
 getErrorMessage ()
 This method returns an error message set by PGTStorage::setErrorMessage().
 getStorageType ()
 This virtual method returns an informational string giving the type of storage used by the object (used for debugging purposes).
 getStorageInfo ()
 This virtual method returns an informational string giving informations on the parameters of the storage.
 getErrorMessage ()
 This method returns an error message set by PGTStorage::setErrorMessage().

Protected Member Functions

 PGTStorage ($cas_parent)
 The constructor of the class, should be called only by inherited classes.
 setErrorMessage ($error_message)
 This method sets en error message, which can be read later by PGTStorage::getErrorMessage().
 isInitialized ()
 This method tells if the storage has already been intialized.
 init ()
 This virtual method initializes the object.
 write ($pgt, $pgt_iou)
 This virtual method stores a PGT and its corresponding PGT Iuo.
 read ($pgt_iou)
 This virtual method reads a PGT corresponding to a PGT Iou and deletes the corresponding storage entry.
 PGTStorage ($cas_parent)
 The constructor of the class, should be called only by inherited classes.
 setErrorMessage ($error_message)
 This method sets en error message, which can be read later by PGTStorage::getErrorMessage().
 isInitialized ()
 This method tells if the storage has already been intialized.
 init ()
 This virtual method initializes the object.
 write ($pgt, $pgt_iou)
 This virtual method stores a PGT and its corresponding PGT Iuo.
 read ($pgt_iou)
 This virtual method reads a PGT corresponding to a PGT Iou and deletes the corresponding storage entry.

Private Attributes

 $_error_message
 string used to store an error message.
 $_initialized
 a boolean telling if the storage has already been initialized.

Detailed Description

The PGTStorage class is a generic class for PGT storage.

This class should not be instanciated itself but inherited by specific PGT storage classes.

Author
Pascal Aubry <pascal.aubry at univ-rennes1.fr>

Definition at line 45 of file pgt-main.php.

Member Function Documentation

PGTStorage::getErrorMessage ( )

This method returns an error message set by PGTStorage::setErrorMessage().

Returns
an error message when set by PGTStorage::setErrorMessage(), FALSE otherwise.
Deprecated:
not used.

Definition at line 108 of file pgt-main.php.

References $_error_message.

{
}
PGTStorage::getStorageInfo ( )

This virtual method returns an informational string giving informations on the parameters of the storage.

(used for debugging purposes).

Reimplemented in PGTStorageDB, PGTStorageDB, PGTStorageFile, and PGTStorageFile.

Definition at line 66 of file pgt-main.php.

References phpCAS\error().

{
phpCAS::error(__CLASS__.'::'.__FUNCTION__.'() should never be called');
}

+ Here is the call graph for this function:

PGTStorage::getStorageType ( )

This virtual method returns an informational string giving the type of storage used by the object (used for debugging purposes).

Reimplemented in PGTStorageDB, PGTStorageDB, PGTStorageFile, and PGTStorageFile.

Definition at line 55 of file pgt-main.php.

References phpCAS\error().

{
phpCAS::error(__CLASS__.'::'.__FUNCTION__.'() should never be called');
}

+ Here is the call graph for this function:

PGTStorage::init ( )
protected

This virtual method initializes the object.

Reimplemented in PGTStorageDB, PGTStorageFile, PGTStorageDB, and PGTStorageFile.

Definition at line 143 of file pgt-main.php.

{
$this->_initialized = TRUE;
}
PGTStorage::isInitialized ( )
protected

This method tells if the storage has already been intialized.

Returns
a boolean

Definition at line 133 of file pgt-main.php.

References $_initialized.

{
}
PGTStorage::PGTStorage (   $cas_parent)
protected

The constructor of the class, should be called only by inherited classes.

Parameters
$cas_parentthe CASclient instance that creates the current object.

Definition at line 36 of file pgt-main.php.

References phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().

{
if ( !$cas_parent->isProxy() ) {
phpCAS::error('defining PGT storage makes no sense when not using a CAS proxy');
}
}

+ Here is the call graph for this function:

PGTStorage::read (   $pgt_iou)
protected

This virtual method reads a PGT corresponding to a PGT Iou and deletes the corresponding storage entry.

Note
Should never be called.
Parameters
$pgt_iouthe PGT iou

Reimplemented in PGTStorageFile, and PGTStorageFile.

Definition at line 175 of file pgt-main.php.

References phpCAS\error().

{
phpCAS::error(__CLASS__.'::'.__FUNCTION__.'() should never be called');
}

+ Here is the call graph for this function:

PGTStorage::setErrorMessage (   $error_message)
protected

This method sets en error message, which can be read later by PGTStorage::getErrorMessage().

Parameters
$error_messagean error message
Deprecated:
not used.

Definition at line 94 of file pgt-main.php.

{
$this->_error_message = $error_message;
}
PGTStorage::write (   $pgt,
  $pgt_iou 
)
protected

This virtual method stores a PGT and its corresponding PGT Iuo.

Note
Should never be called.
Parameters
$pgtthe PGT
$pgt_iouthe PGT iou

Reimplemented in PGTStorageFile, and PGTStorageFile.

Definition at line 161 of file pgt-main.php.

References phpCAS\error().

{
phpCAS::error(__CLASS__.'::'.__FUNCTION__.'() should never be called');
}

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: