class-CAS_PGTStorage_Db

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.
Overview

Classes

Interfaces

Exceptions

Functions

Class CAS_PGTStorage_Db

Basic class for PGT database storage The CAS_PGTStorage_Db class is a class for PGT database storage.

CAS_PGTStorage_AbstractStorage
Extended by CAS_PGTStorage_Db
Package: PhpCAS
Category: Authentication
License: Apache License 2.0
Author: Daniel Frett daniel.frett@gmail.com
Link: https://wiki.jasig.org/display/CASC/phpCAS
Class: CAS_PGTStorage_Db
Ingroup: internalPGTStorageDb
Located at shared/cas/source/CAS/PGTStorage/Db.php
Methods summary
private the
# _getPdo( )

This method returns the PDO object to use for database interactions.

private the
# _getTable( )

This method returns the table to use when storing/retrieving PGT's

public an
# getStorageType( )

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

public an
# getStorageInfo( )

This method returns an informational string giving informations on the parameters of the storage.(used for debugging purposes).

public
# __construct( CAS_Client $cas_parent, string $dsn_or_pdo, string $username = '', string $password = '', string $table = '', string $driver_options = null )

The class constructor.

public
# init( )

This method is used to initialize the storage. Halts on error.

private
# _setErrorMode( )

This method will enable the Exception error mode on the PDO object

private
# _resetErrorMode( )

this method will reset the error mode on the PDO object

protected the
# createTableSql( )

This method returns the query used to create a pgt storage table

protected the
# storePgtSql( )

This method returns the query used to store a pgt

protected the
# retrievePgtSql( )

This method returns the query used to retrieve a pgt. the first column of the first row should contain the pgt

protected the
# deletePgtSql( )

This method returns the query used to delete a pgt.

public
# createTable( )

This method creates the database table used to store pgt's and pgtiou's

public
# write( string $pgt, string $pgt_iou )

This method stores a PGT and its corresponding PGT Iou in the database. Echoes a warning on error.

public the
# read( string $pgt_iou )

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

Methods inherited from CAS_PGTStorage_AbstractStorage
getErrorMessage(), isInitialized(), setErrorMessage()
Properties summary
private $_pdo

the PDO object to use for database interactions

private $_dsn

database connection options to use when creating a new PDO object

private $_username
private $_password
private $_table_options
private $_table

the table to use for storing/retrieving pgt's

private $_errMode

attribute that stores the previous error mode for the PDO handle while processing a transaction

Properties inherited from CAS_PGTStorage_AbstractStorage
$_error_message, $_initialized
 

© 2004-2018 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy