Stud.IP  5.4
 All Data Structures Namespaces Files Functions Variables Groups
SessionDecoder Class Reference
Inheritance diagram for SessionDecoder:

Public Member Functions

 __construct ($encoded_session_string)
 
 decode ($encoded_session_string)
 
 keys ()
 
 rewind ()
 
 current ()
 
 key ()
 
 next ()
 
 valid ()
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 
 count ()
 
 __get ($name)
 
 __isset ($name)
 

Constructor & Destructor Documentation

__construct (   $encoded_session_string)

Usage: Pass the string containing encoded session data to the constructor, the identified session variables become public members of the object

$session = new SessionDecoder($encoded_session_string); print_r($session->my_var); or print_r($session['my_var']); get the names of identified variables print_r($session->keys());

Parameters
string$encoded_session_string

Member Function Documentation

__get (   $name)
__isset (   $name)
count ( )
current ( )
decode (   $encoded_session_string)

pass an encoded session string to fill the object

Parameters
string$encoded_session_string
Returns
int number of identified variables
key ( )
keys ( )

returns an array containing the names of the identified variables

Returns
array names of identified variables
next ( )
offsetExists (   $offset)
offsetGet (   $offset)
Parameters
$offset
Returns
mixed|null
offsetSet (   $offset,
  $value 
)
offsetUnset (   $offset)
rewind ( )
valid ( )

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