Ubiquity  2.0.0
php rapid development framework
SessionUtils Class Reference

Session utilities. More...

Static Public Member Functions

static getArray ($arrayKey)
 Retourne un tableau stocké en variable de session sous le nom $arrayKey. More...
 
static addOrRemoveValueFromArray ($arrayKey, $value, $add=true)
 
static removeValueFromArray ($arrayKey, $value)
 
static checkBoolean ($key)
 
static getBoolean ($key)
 
static session ($key, $default=NULL)
 
static get ($key, $default=NULL)
 
static set ($key, $value)
 Adds or sets a value to the Session at position $key. More...
 
static delete ($key)
 Deletes the key in Session. More...
 
static start ($name=null)
 
static isStarted ()
 
static exists ($key)
 Returns true if the key exists in Session. More...
 
static terminate ()
 

Detailed Description

Session utilities.

Author
jc
Version
1.0.0.2

Definition at line 10 of file SessionUtils.php.

Member Function Documentation

◆ addOrRemoveValueFromArray()

static addOrRemoveValueFromArray (   $arrayKey,
  $value,
  $add = true 
)
static

Definition at line 27 of file SessionUtils.php.

◆ checkBoolean()

static checkBoolean (   $key)
static

Definition at line 45 of file SessionUtils.php.

◆ delete()

static delete (   $key)
static

Deletes the key in Session.

Parameters
string$key

Definition at line 79 of file SessionUtils.php.

◆ exists()

static exists (   $key)
static

Returns true if the key exists in Session.

Parameters
string$key
Returns
boolean

Definition at line 97 of file SessionUtils.php.

◆ get()

static get (   $key,
  $default = NULL 
)
static

Definition at line 62 of file SessionUtils.php.

◆ getArray()

static getArray (   $arrayKey)
static

Retourne un tableau stocké en variable de session sous le nom $arrayKey.

Parameters
string$arrayKey
Returns
array

Definition at line 17 of file SessionUtils.php.

◆ getBoolean()

static getBoolean (   $key)
static

Definition at line 50 of file SessionUtils.php.

◆ isStarted()

static isStarted ( )
static

Definition at line 88 of file SessionUtils.php.

◆ removeValueFromArray()

static removeValueFromArray (   $arrayKey,
  $value 
)
static

Definition at line 41 of file SessionUtils.php.

◆ session()

static session (   $key,
  $default = NULL 
)
static

Definition at line 58 of file SessionUtils.php.

◆ set()

static set (   $key,
  $value 
)
static

Adds or sets a value to the Session at position $key.

Parameters
string$key
mixed$value

Definition at line 71 of file SessionUtils.php.

◆ start()

static start (   $name = null)
static

Definition at line 83 of file SessionUtils.php.

◆ terminate()

static terminate ( )
static

Definition at line 101 of file SessionUtils.php.


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