Moodle  2.2.1
http://www.collinsharper.com
database_session Class Reference
Inheritance diagram for database_session:
Collaboration diagram for database_session:

Public Member Functions

 __construct ()
 session_exists ($sid)
 handler_open ($save_path, $session_name)
 handler_close ()
 handler_read ($sid)
 handler_write ($sid, $session_data)
 handler_destroy ($sid)
 handler_gc ($ignored_maxlifetime)

Protected Member Functions

 init_session_storage ()

Protected Attributes

 $record = null
 $database = null
 $failed = false

Detailed Description

Definition at line 460 of file sessionlib.php.


Constructor & Destructor Documentation

Reimplemented from session_stub.

Definition at line 470 of file sessionlib.php.

Here is the call graph for this function:


Member Function Documentation

Close session handler

{

See also:
http://php.net/manual/en/function.session-set-save-handler.php}
Returns:
bool success

Definition at line 545 of file sessionlib.php.

handler_destroy ( sid)

Destroy session handler

{

See also:
http://php.net/manual/en/function.session-set-save-handler.php}
Parameters:
string$sid
Returns:
bool success

Definition at line 749 of file sessionlib.php.

Here is the call graph for this function:

handler_gc ( ignored_maxlifetime)

GC session handler

{

See also:
http://php.net/manual/en/function.session-set-save-handler.php}
Parameters:
int$ignored_maxlifetimemoodle uses special timeout rules
Returns:
bool success

Definition at line 772 of file sessionlib.php.

Here is the call graph for this function:

handler_open ( save_path,
session_name 
)

Open session handler

{

See also:
http://php.net/manual/en/function.session-set-save-handler.php}
Parameters:
string$save_path
string$session_name
Returns:
bool success

Definition at line 534 of file sessionlib.php.

handler_read ( sid)

Read session handler

{

See also:
http://php.net/manual/en/function.session-set-save-handler.php}
Parameters:
string$sid
Returns:
string

Definition at line 565 of file sessionlib.php.

Here is the call graph for this function:

handler_write ( sid,
session_data 
)

Write session handler.

{

See also:
http://php.net/manual/en/function.session-set-save-handler.php}

NOTE: Do not write to output or throw any exceptions! Hopefully the next page is going to display nice error or it recovers...

Parameters:
string$sid
string$session_data
Returns:
bool success

Definition at line 669 of file sessionlib.php.

Here is the call graph for this function:

init_session_storage ( ) [protected]

Init session storage.

Reimplemented from session_stub.

Definition at line 506 of file sessionlib.php.

Here is the call graph for this function:

session_exists ( sid)

Check for existing session with id $sid

Parameters:
unknown_type$sid
Returns:
boolean true if session found.

Implements moodle_session.

Definition at line 490 of file sessionlib.php.


Field Documentation

$database = null [protected]

Definition at line 465 of file sessionlib.php.

$failed = false [protected]

Definition at line 468 of file sessionlib.php.

$record = null [protected]

Definition at line 462 of file sessionlib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations