DataTables
SessionHelper Class Reference

Public Member Functions

 saveState (string $key, $sessionValue)
 
 getState (string $key, $default=null)
 
 removeState (string $key)
 

Data Fields

const SESSION_STORAGE = 'data-tables.'
 

Member Function Documentation

◆ getState()

getState ( string  $key,
  $default = null 
)

Get the state for the given key.

Parameters
string$key
null$default
Returns
mixed
Exceptions

◆ removeState()

removeState ( string  $key)

Remove the state for the given key.

Parameters
string$key
Exceptions

◆ saveState()

saveState ( string  $key,
  $sessionValue 
)

Save the state for the given key.

Parameters
string$key
mixed$sessionValue
Exceptions

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