|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Functions | |
| CAS_PGTStorage_Db::_getPdo () | |
| This method returns the PDO object to use for database interactions. More... | |
| CAS_PGTStorage_Db::_getTable () | |
| This method returns the table to use when storing/retrieving PGT's. More... | |
| CAS_PGTStorage_Db::getStorageType () | |
| This method returns an informational string giving the type of storage used by the object (used for debugging purposes). More... | |
| CAS_PGTStorage_Db::getStorageInfo () | |
| This method returns an informational string giving informations on the parameters of the storage. More... | |
| CAS_PGTStorage_Db::__construct ( $cas_parent, $dsn_or_pdo, $username='', $password='', $table='', $driver_options=null) | |
| The class constructor. More... | |
| CAS_PGTStorage_Db::init () | |
| This method is used to initialize the storage. More... | |
| CAS_PGTStorage_Db::_setErrorMode () | |
| This method will enable the Exception error mode on the PDO object. More... | |
| CAS_PGTStorage_Db::_resetErrorMode () | |
| this method will reset the error mode on the PDO object More... | |
| CAS_PGTStorage_Db::createTableSql () | |
| This method returns the query used to create a pgt storage table. More... | |
| CAS_PGTStorage_Db::storePgtSql () | |
| This method returns the query used to store a pgt. More... | |
| CAS_PGTStorage_Db::retrievePgtSql () | |
| This method returns the query used to retrieve a pgt. More... | |
| CAS_PGTStorage_Db::deletePgtSql () | |
| This method returns the query used to delete a pgt. More... | |
| CAS_PGTStorage_Db::createTable () | |
| This method creates the database table used to store pgt's and pgtiou's. More... | |
| CAS_PGTStorage_Db::write ($pgt, $pgt_iou) | |
| This method stores a PGT and its corresponding PGT Iou in the database. More... | |
| CAS_PGTStorage_Db::read ($pgt_iou) | |
| This method reads a PGT corresponding to a PGT Iou and deletes the corresponding db entry. More... | |
Variables | |
| CAS_PGTStorage_Db::$_pdo | |
| the PDO object to use for database interactions More... | |
| CAS_PGTStorage_Db::$_dsn | |
| database connection options to use when creating a new PDO object More... | |
| CAS_PGTStorage_Db::$_username | |
| CAS_PGTStorage_Db::$_password | |
| CAS_PGTStorage_Db::$_table_options | |
| CAS_PGTStorage_Db::$_table | |
| the table to use for storing/retrieving pgt's More... | |
| CAS_PGTStorage_Db::$_errMode | |
| attribute that stores the previous error mode for the PDO handle while processing a transaction More... | |
| CAS_PGTStorage_Db::__construct | ( | $cas_parent, | |
| $dsn_or_pdo, | |||
$username = '', |
|||
$password = '', |
|||
$table = '', |
|||
$driver_options = null |
|||
| ) |
The class constructor.
| CAS_Client | $cas_parent | the CAS_Client instance that creates the object. |
| string | $dsn_or_pdo | a dsn string to use for creating a PDO object or a PDO object |
| string | $username | the username to use when connecting to the database |
| string | $password | the password to use when connecting to the database |
| string | $table | the table to use for storing and retrieving PGT's |
| string | $driver_options | any driver options to use when connecting to the database |
Definition at line 138 of file Db.php.
References $password, ILIAS\GlobalScreen\Provider\__construct(), CAS_PGT_STORAGE_DB_DEFAULT_TABLE, phpCAS\traceBegin(), and phpCAS\traceEnd().
Here is the call graph for this function:
|
private |
This method returns the PDO object to use for database interactions.
Definition at line 63 of file Db.php.
References CAS_PGTStorage_Db\$_pdo.
Referenced by CAS_PGTStorage_Db\_resetErrorMode(), CAS_PGTStorage_Db\_setErrorMode(), CAS_PGTStorage_Db\createTable(), CAS_PGTStorage_Db\read(), and CAS_PGTStorage_Db\write().
Here is the caller graph for this function:
|
private |
This method returns the table to use when storing/retrieving PGT's.
Definition at line 86 of file Db.php.
References CAS_PGTStorage_Db\$_table.
Referenced by CAS_PGTStorage_Db\createTableSql(), CAS_PGTStorage_Db\deletePgtSql(), CAS_PGTStorage_Db\getStorageInfo(), CAS_PGTStorage_Db\retrievePgtSql(), and CAS_PGTStorage_Db\storePgtSql().
Here is the caller graph for this function:
|
private |
this method will reset the error mode on the PDO object
Definition at line 239 of file Db.php.
References CAS_PGTStorage_Db\_getPdo().
Referenced by CAS_PGTStorage_Db\createTable(), CAS_PGTStorage_Db\read(), and CAS_PGTStorage_Db\write().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
This method will enable the Exception error mode on the PDO object.
Definition at line 226 of file Db.php.
References CAS_PGTStorage_Db\_getPdo().
Referenced by CAS_PGTStorage_Db\createTable(), CAS_PGTStorage_Db\read(), and CAS_PGTStorage_Db\write().
Here is the call graph for this function:
Here is the caller graph for this function:| CAS_PGTStorage_Db::createTable | ( | ) |
This method creates the database table used to store pgt's and pgtiou's.
Definition at line 308 of file Db.php.
References Vendor\Package\$e, $query, CAS_PGTStorage_Db\_getPdo(), CAS_PGTStorage_Db\_resetErrorMode(), CAS_PGTStorage_Db\_setErrorMode(), phpCAS\error(), CAS_PGTStorage_Db\init(), CAS_PGTStorage_AbstractStorage\isInitialized(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Here is the call graph for this function:
|
protected |
This method returns the query used to create a pgt storage table.
Definition at line 258 of file Db.php.
References CAS_PGTStorage_Db\_getTable().
Here is the call graph for this function:
|
protected |
This method returns the query used to delete a pgt.
Definition at line 294 of file Db.php.
References CAS_PGTStorage_Db\_getTable().
Referenced by CAS_PGTStorage_Db\read().
Here is the call graph for this function:
Here is the caller graph for this function:| CAS_PGTStorage_Db::getStorageInfo | ( | ) |
This method returns an informational string giving informations on the parameters of the storage.
(used for debugging purposes).
Reimplemented from CAS_PGTStorage_AbstractStorage.
Definition at line 113 of file Db.php.
References CAS_PGTStorage_Db\_getTable().
Here is the call graph for this function:| CAS_PGTStorage_Db::getStorageType | ( | ) |
This method returns an informational string giving the type of storage used by the object (used for debugging purposes).
Reimplemented from CAS_PGTStorage_AbstractStorage.
Definition at line 101 of file Db.php.
| CAS_PGTStorage_Db::init | ( | ) |
This method is used to initialize the storage.
Halts on error.
Reimplemented from CAS_PGTStorage_AbstractStorage.
Definition at line 183 of file Db.php.
References Vendor\Package\$e, phpCAS\error(), CAS_PGTStorage_AbstractStorage\isInitialized(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by CAS_PGTStorage_Db\createTable().
Here is the call graph for this function:
Here is the caller graph for this function:| CAS_PGTStorage_Db::read | ( | $pgt_iou | ) |
This method reads a PGT corresponding to a PGT Iou and deletes the corresponding db entry.
| string | $pgt_iou | the PGT iou |
Reimplemented from CAS_PGTStorage_AbstractStorage.
Definition at line 393 of file Db.php.
References Vendor\Package\$e, $query, CAS_PGTStorage_Db\_getPdo(), CAS_PGTStorage_Db\_resetErrorMode(), CAS_PGTStorage_Db\_setErrorMode(), CAS_PGTStorage_Db\deletePgtSql(), CAS_PGTStorage_Db\retrievePgtSql(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Here is the call graph for this function:
|
protected |
This method returns the query used to retrieve a pgt.
the first column of the first row should contain the pgt
Definition at line 283 of file Db.php.
References CAS_PGTStorage_Db\_getTable().
Referenced by CAS_PGTStorage_Db\read().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
This method returns the query used to store a pgt.
Definition at line 270 of file Db.php.
References CAS_PGTStorage_Db\_getTable().
Referenced by CAS_PGTStorage_Db\write().
Here is the call graph for this function:
Here is the caller graph for this function:| CAS_PGTStorage_Db::write | ( | $pgt, | |
| $pgt_iou | |||
| ) |
This method stores a PGT and its corresponding PGT Iou in the database.
Echoes a warning on error.
| string | $pgt | the PGT |
| string | $pgt_iou | the PGT iou |
Reimplemented from CAS_PGTStorage_AbstractStorage.
Definition at line 352 of file Db.php.
References Vendor\Package\$e, $query, CAS_PGTStorage_Db\_getPdo(), CAS_PGTStorage_Db\_resetErrorMode(), CAS_PGTStorage_Db\_setErrorMode(), phpCAS\error(), CAS_PGTStorage_Db\storePgtSql(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Here is the call graph for this function:
|
private |
|
private |
|
private |
the PDO object to use for database interactions
Definition at line 56 of file Db.php.
Referenced by CAS_PGTStorage_Db\_getPdo().
|
private |
the table to use for storing/retrieving pgt's
Definition at line 79 of file Db.php.
Referenced by CAS_PGTStorage_Db\_getTable().