ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages

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). More...
 
 getStorageInfo ()
 This virtual method returns an informational string giving informations on the parameters of the storage. More...
 
 getErrorMessage ()
 This method returns an error message set by PGTStorage::setErrorMessage(). More...
 
 getStorageType ()
 This virtual method returns an informational string giving the type of storage used by the object (used for debugging purposes). More...
 
 getStorageInfo ()
 This virtual method returns an informational string giving informations on the parameters of the storage. More...
 
 getErrorMessage ()
 This method returns an error message set by PGTStorage::setErrorMessage(). More...
 

Protected Member Functions

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

Private Attributes

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

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

◆ getErrorMessage()

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, and $_initialized.

109  {
110  return $this->_error_message;
111  }
$_error_message
string used to store an error message.
Definition: pgt-main.php:110

◆ getStorageInfo()

PGTStorage::getStorageInfo ( )

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

(used for debugging purposes).

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

References $_error_message, and phpCAS\error().

67  {
68  phpCAS::error(__CLASS__.'::'.__FUNCTION__.'() should never be called');
69  }
error($msg)
This method is used by interface methods to print an error and where the function was originally call...
Definition: CAS.php:544
+ Here is the call graph for this function:

◆ getStorageType()

PGTStorage::getStorageType ( )

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

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

References phpCAS\error().

56  {
57  phpCAS::error(__CLASS__.'::'.__FUNCTION__.'() should never be called');
58  }
error($msg)
This method is used by interface methods to print an error and where the function was originally call...
Definition: CAS.php:544
+ Here is the call graph for this function:

◆ init()

PGTStorage::init ( )
protected

This virtual method initializes the object.

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

144  {
145  $this->_initialized = TRUE;
146  }

◆ isInitialized()

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.

134  {
135  return $this->_initialized;
136  }
$_initialized
a boolean telling if the storage has already been initialized.
Definition: pgt-main.php:151

◆ PGTStorage()

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

37  {
39  if ( !$cas_parent->isProxy() ) {
40  phpCAS::error('defining PGT storage makes no sense when not using a CAS proxy');
41  }
43  }
traceEnd($res='')
This method is used to indicate the end of the execution of a function in debug mode.
Definition: CAS.php:604
traceBegin()
This method is used to indicate the start of the execution of a function in debug mode...
Definition: CAS.php:577
error($msg)
This method is used by interface methods to print an error and where the function was originally call...
Definition: CAS.php:544
+ Here is the call graph for this function:

◆ read()

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

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

References phpCAS\error().

176  {
177  phpCAS::error(__CLASS__.'::'.__FUNCTION__.'() should never be called');
178  }
error($msg)
This method is used by interface methods to print an error and where the function was originally call...
Definition: CAS.php:544
+ Here is the call graph for this function:

◆ setErrorMessage()

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.

95  {
96  $this->_error_message = $error_message;
97  }

◆ write()

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

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

References phpCAS\error().

162  {
163  phpCAS::error(__CLASS__.'::'.__FUNCTION__.'() should never be called');
164  }
error($msg)
This method is used by interface methods to print an error and where the function was originally call...
Definition: CAS.php:544
+ Here is the call graph for this function:

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