Class

eZHTTPTool

class eZHTTPTool

Methods

__construct()

setPostVariable($var, $value)

postVariable($var, $fallbackValue = null)

hasPostVariable($var)

setGetVariable($var, $value)

getVariable($var, $fallbackValue = null)

hasGetVariable($var)

hasVariable($var)

variable($var, $fallbackValue = null)

attributes()

hasAttribute($attr)

attribute($attr)

createPostVarsFromImageButtons()

setSessionVariable(string $name, mixed $value)

Sets the session variable $name to value $value.

bool removeSessionVariable(string $name)

Unset the session variable $name

bool|null hasSessionVariable(string $name, bool $forceStart = true)

Check if session variable $name exists

mixed sessionVariable(string $name, mixed $fallbackValue = null)

Get session variable $name

string sessionID()

Return the session id

string setSessionID(string $sessionKey)

Sets a new session id

Details

at line 28
public __construct()

at line 37
public setPostVariable($var, $value)

Parameters

$var
$value

at line 46
public postVariable($var, $fallbackValue = null)

Parameters

$var
$fallbackValue

at line 65
public hasPostVariable($var)

Parameters

$var

at line 74
public setGetVariable($var, $value)

Parameters

$var
$value

at line 83
public getVariable($var, $fallbackValue = null)

Parameters

$var
$fallbackValue

at line 102
public hasGetVariable($var)

Parameters

$var

at line 111
public hasVariable($var)

Parameters

$var

at line 128
public variable($var, $fallbackValue = null)

Parameters

$var
$fallbackValue

at line 150
public attributes()

at line 158
public hasAttribute($attr)

Parameters

$attr

at line 166
public attribute($attr)

Parameters

$attr

at line 631
public createPostVarsFromImageButtons()

at line 665
public setSessionVariable(string $name, mixed $value)

Sets the session variable $name to value $value.

Parameters

string $name
mixed $value

at line 676
public bool removeSessionVariable(string $name)

Unset the session variable $name

Parameters

string $name

Return Value

bool

at line 688
public bool|null hasSessionVariable(string $name, bool $forceStart = true)

Check if session variable $name exists

Parameters

string $name
bool $forceStart Force session start if true (default)

Return Value

bool|null Null if session has not started and $forceStart is false

at line 701
public mixed sessionVariable(string $name, mixed $fallbackValue = null)

Get session variable $name

Parameters

string $name
mixed $fallbackValue Return this if session has not started OR name is undefined if null(default), then force start session and return null if undefined.

Return Value

mixed ByRef

at line 711
public string sessionID()

Return the session id

Return Value

string

at line 722
public string setSessionID(string $sessionKey)

Sets a new session id

Parameters

string $sessionKey Allowed characters in the range a-z A-Z 0-9 , (comma) and - (minus)

Return Value

string Current(old) session id