class vB5_Cookie

Constants

TYPE_UINT

TYPE_STRING

Properties

static protected $enabled
static protected $cookiePrefix
static protected $path
static protected $domain
static protected $secure

Methods

static 
set($name, $value, $expireDays = 0, $httpOnly = true)

No description

static 
get($name, $type)

No description

static 
delete($name)

No description

static 
deleteAll()

Deletes all cookies starting with cookiePrefix

static 
isEnabled()

No description

static 
loadConfig($options)

No description

static mixed
fetchBbarrayCookie(string $cookiename, mixed $id)

Returns the value for an array stored in a cookie Ported from functions.php fetch_bbarray_cookie

static array
convertBbarrayCookie(string $cookie, string $dir = 'get')

Replaces all those none safe characters so we dont waste space in array cookie values with URL entities Ported from functions.php convert_bbarray_cookie

Details

at line 24
static set($name, $value, $expireDays = 0, $httpOnly = true)

Parameters

$name
$value
$expireDays
$httpOnly

at line 48
static get($name, $type)

Parameters

$name
$type

at line 74
static delete($name)

Parameters

$name

at line 82
static deleteAll()

Deletes all cookies starting with cookiePrefix

at line 108
static isEnabled()

at line 113
static loadConfig($options)

Parameters

$options

at line 142
static mixed fetchBbarrayCookie(string $cookiename, mixed $id)

Returns the value for an array stored in a cookie Ported from functions.php fetch_bbarray_cookie

Parameters

string $cookiename Name of the cookie
mixed $id ID of the data within the cookie

Return Value

mixed

at line 165
static protected array convertBbarrayCookie(string $cookie, string $dir = 'get')

Replaces all those none safe characters so we dont waste space in array cookie values with URL entities Ported from functions.php convert_bbarray_cookie

Parameters

string $cookie Cookie array
string $dir Direction ('get' or 'set')

Return Value

array