phpPoA2
[ class tree: phpPoA2 ] [ index: phpPoA2 ] [ all elements ]

Class: SessionDB

Source Location: /lib/db/SessionDB.php

Class Overview

GenericDB
   |
   --SessionDB

Session database backend.


Variables

Methods


Child classes:

PAPISessionDB
PAPI binding to a PHP Session DB backend.

Inherited Variables

Inherited Methods

Class: GenericDB

GenericDB::__construct()
Main constructor.
GenericDB::check()
Checks if the specified key exists in the database.
GenericDB::close()
Closes the database.
GenericDB::configure()
Configure the database handler.
GenericDB::delete()
Removes the specified key from the database.
GenericDB::fetch()
Gets the value of the specified key.
GenericDB::fetch_all()
Gets all the contents stored in the database.
GenericDB::open()
Opens the database.
GenericDB::replace()
Replaces the specified key with a new value. If the key does not exist previously, it will be created.

Class Details

[line 33]
Session database backend.

WARNING: please note that PHP only allows one session at a time, so using this backend will break any applications that make use of sessions beneath.




[ Top ]


Class Variables

$session_name =  "session_db"

[line 35]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


method check [line 41]

void check( $key)



Tags:

access:  public


Overrides GenericDB::check() (Checks if the specified key exists in the database.)

Parameters:

   $key  

[ Top ]

method close [line 99]

void close( )



Tags:

access:  public


Overrides GenericDB::close() (Closes the database.)

[ Top ]

method delete [line 83]

void delete( $key)



Tags:

access:  public


Overrides GenericDB::delete() (Removes the specified key from the database.)

Parameters:

   $key  

[ Top ]

method fetch [line 63]

void fetch( $key)



Tags:

access:  public


Overridden in child classes as:

PAPISessionDB::fetch()

Overrides GenericDB::fetch() (Gets the value of the specified key.)

Parameters:

   $key  

[ Top ]

method fetch_all [line 73]

void fetch_all( )



Tags:

access:  public


Overrides GenericDB::fetch_all() (Gets all the contents stored in the database.)

[ Top ]

method open [line 37]

void open( )



Tags:

access:  public


Overrides GenericDB::open() (Opens the database.)

[ Top ]

method replace [line 52]

void replace( $key, $value)



Tags:

access:  public


Overrides GenericDB::replace() (Replaces the specified key with a new value. If the key does not exist previously, it will be created.)

Parameters:

   $key  
   $value  

[ Top ]


Documentation generated on Thu, 26 Aug 2010 13:38:57 +0200 by phpDocumentor 1.4.3