ILIAS
eassessment Revision 61809
|
The PGTStorageDB class is a class for PGT database storage. More...
Public Member Functions | |
getStorageType () | |
This method returns an informational string giving the type of storage used by the object (used for debugging purposes). | |
getStorageInfo () | |
This method returns an informational string giving informations on the parameters of the storage. | |
PGTStorageDB ($cas_parent, $user, $password, $database_type, $hostname, $port, $database, $table) | |
The class constructor, called by CASClient::SetPGTStorageDB(). | |
init () | |
This method is used to initialize the storage. | |
getStorageType () | |
This method returns an informational string giving the type of storage used by the object (used for debugging purposes). | |
getStorageInfo () | |
This method returns an informational string giving informations on the parameters of the storage. | |
PGTStorageDB ($cas_parent, $user, $password, $database_type, $hostname, $port, $database, $table) | |
The class constructor, called by CASClient::SetPGTStorageDB(). | |
init () | |
This method is used to initialize the storage. | |
Public Member Functions inherited from PGTStorage | |
getErrorMessage () | |
This method returns an error message set by PGTStorage::setErrorMessage(). | |
getErrorMessage () | |
This method returns an error message set by PGTStorage::setErrorMessage(). |
Private Member Functions | |
getURL () | |
This method returns the PEAR DB URL to use to connect to the database. | |
getLink () | |
This method returns the handle of the connection to the database where PGT's are stored. | |
getTable () | |
This method returns the name of the table where PGT's are stored. | |
getURL () | |
This method returns the PEAR DB URL to use to connect to the database. | |
getLink () | |
This method returns the handle of the connection to the database where PGT's are stored. | |
getTable () | |
This method returns the name of the table where PGT's are stored. |
Private Attributes | |
$_url | |
a string representing a PEAR DB URL to connect to the database. | |
$_link | |
The handle of the connection to the database where PGT's are stored. | |
$_table | |
The name of the table where PGT's are stored. |
Additional Inherited Members | |
Protected Member Functions inherited from PGTStorage | |
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. | |
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. | |
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. |
The PGTStorageDB class is a class for PGT database storage.
An instance of this class is returned by CASClient::SetPGTStorageDB().
Definition at line 46 of file pgt-db.php.
|
private |
This method returns the handle of the connection to the database where PGT's are stored.
Definition at line 69 of file pgt-db.php.
References $_link.
PGTStorageDB::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 117 of file pgt-db.php.
PGTStorageDB::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 106 of file pgt-db.php.
|
private |
This method returns the name of the table where PGT's are stored.
Definition at line 90 of file pgt-db.php.
References $_table.
|
private |
This method returns the PEAR DB URL to use to connect to the database.
Definition at line 47 of file pgt-db.php.
References $_url.
PGTStorageDB::init | ( | ) |
This method is used to initialize the storage.
Halts on error.
Reimplemented from PGTStorage.
Definition at line 169 of file pgt-db.php.
References phpCAS\error(), getURL(), init(), PGTStorage\isInitialized(), and phpCAS\traceBegin().
PGTStorageDB::PGTStorageDB | ( | $cas_parent, | |
$user, | |||
$password, | |||
$database_type, | |||
$hostname, | |||
$port, | |||
$database, | |||
$table | |||
) |
The class constructor, called by CASClient::SetPGTStorageDB().
$cas_parent | the CASClient instance that creates the object. |
$user | the user to access the data with |
$password | the user's password |
$database_type | the type of the database hosting the data |
$hostname | the server hosting the database |
$port | the port the server is listening on |
$database | the name of the database |
$table | the name of the table storing the data |
Definition at line 140 of file pgt-db.php.
References $server, CAS_PGT_STORAGE_DB_DEFAULT_DATABASE, CAS_PGT_STORAGE_DB_DEFAULT_DATABASE_TYPE, CAS_PGT_STORAGE_DB_DEFAULT_HOSTNAME, CAS_PGT_STORAGE_DB_DEFAULT_PORT, CAS_PGT_STORAGE_DB_DEFAULT_TABLE, PGTStorage\PGTStorage(), phpCAS\traceBegin(), and phpCAS\traceEnd().