Pluf_Session Class Reference

Inheritance diagram for Pluf_Session:

Pluf_Model

List of all members.

Public Member Functions

 _init ()
 init ()
 setData ($key, $value=null)
 getData ($key=null, $default='')
 clear ()
 getNewSessionKey ()
 preSave ($create=false)
 restore ()
 createTestCookie ()
 getTestCookie ()
 deleteTestCookie ()

Public Attributes

 $_model = 'Pluf_Session'
 $data = array()
 $cookie_name = 'sessionid'
 $touched = false
 $test_cookie_name = 'testcookie'
 $test_cookie_value = 'worked'
 $set_test_cookie = false
 $test_cookie = null


Member Function Documentation

Pluf_Session::_init (  ) 

Define the list of methods for the model from the available model relationship.

Reimplemented from Pluf_Model.

Pluf_Session::init (  ) 

Reimplemented from Pluf_Model.

Pluf_Session::setData ( key,
value = null 
)

Set some data in the session object.

Parameters:
string Key
mixed Value (null), if null, it is removing the value from the session

Pluf_Session::getData ( key = null,
default = '' 
)

Pluf_Session::clear (  ) 

Pluf_Session::getNewSessionKey (  ) 

Generate a new session key.

Pluf_Session::preSave ( create = false  ) 

Presave/create function to encode data into session_data.

Reimplemented from Pluf_Model.

Pluf_Session::restore (  ) 

Restore function to decode the session_data into $this->data.

Reimplemented from Pluf_Model.

Pluf_Session::createTestCookie (  ) 

Create a test cookie.

Pluf_Session::getTestCookie (  ) 

Pluf_Session::deleteTestCookie (  ) 


Member Data Documentation

Pluf_Session::$_model = 'Pluf_Session'

Reimplemented from Pluf_Model.

Pluf_Session::$data = array()

Pluf_Session::$cookie_name = 'sessionid'

Pluf_Session::$touched = false

Pluf_Session::$test_cookie_name = 'testcookie'

Pluf_Session::$test_cookie_value = 'worked'

Pluf_Session::$set_test_cookie = false

Pluf_Session::$test_cookie = null


The documentation for this class was generated from the following file:

Generated on Wed Feb 3 15:44:52 2010 for Pluf by  doxygen