\CheddarGetter_Http_AdapterInterface

Adapter interface for getting and setting http related data

Summary

Methods
Constants
hasCookie()
getCookie()
setCookie()
getRequestValue()
hasReferrer()
getReferrer()
hasIp()
getIp()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

hasCookie()

hasCookie(string $name) : boolean

Checks whether a cookie exists.

Parameters

string $name

Cookie name

Returns

boolean

getCookie()

getCookie(string $name) : mixed

Gets the value of a cookie.

Parameters

string $name

Cookie name

Returns

mixed

setCookie()

setCookie(string $name, string $data, int $expire, string $path, string $domain, boolean $secure, boolean $httpOnly)

Sets the value of a cookie.

Parameters

string $name

Cookie name

string $data

Value of the cookie

int $expire
string $path
string $domain
boolean $secure
boolean $httpOnly

getRequestValue()

getRequestValue(string $key) : mixed

Gets a request parameter.

null is returned if the key is not set.

Parameters

string $key

Returns

mixed

hasReferrer()

hasReferrer() : boolean

Checks whether the referrer exists

Returns

boolean

getReferrer()

getReferrer() : string

Gets the referrer

Returns

string

hasIp()

hasIp() : boolean

Checks if the IP is set

Returns

boolean

getIp()

getIp() : string

Gets the IP

Returns

string