Stud.IP  5.4
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()

__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()

__get (   $name)

◆ __isset()

__isset (   $name)

◆ count()

count ( )

◆ current()

current ( )

◆ decode()

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()

key ( )

◆ keys()

keys ( )

returns an array containing the names of the identified variables

Returns
array names of identified variables

◆ next()

next ( )

◆ offsetExists()

offsetExists (   $offset)

◆ offsetGet()

offsetGet (   $offset)
Parameters
$offset
Returns
mixed|null

◆ offsetSet()

offsetSet (   $offset,
  $value 
)

◆ offsetUnset()

offsetUnset (   $offset)

◆ rewind()

rewind ( )

◆ valid()

valid ( )

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