\CheddarGetter_Http_ZendAdapter

Adapter implementation using the ZF1 abstraction for getting and setting http related data

Summary

Methods
Properties
Constants
hasCookie()
getCookie()
setCookie()
getRequestValue()
hasReferrer()
getReferrer()
hasIp()
getIp()
__construct()
No public properties found
No constants found
_getIp()
No protected properties found
N/A
_request()
$_request
N/A

Properties

$_request

$_request : \Zend_Controller_Request_Abstract|null

The request object

Type

\Zend_Controller_Request_Abstract|null

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

Get a request param

null is returned if the key is not set.

Parameters

string $key

Returns

mixed

hasReferrer()

hasReferrer() : boolean

Check if the http referrer is set

Returns

boolean

getReferrer()

getReferrer() : string

Get the http referrer

Returns

string

hasIp()

hasIp() : boolean

Check if the remote ip is known

Returns

boolean

getIp()

getIp() : string

Get the remote ip

Returns

string

__construct()

__construct()

Constructor

Throws

\CheddarGetter_Client_Exception

Throws an exception if Zend_Controller_Front is not available.

_getIp()

_getIp()

Really get the IP

_request()

_request() : \Zend_Controller_Request_Abstract

Get the reqeust object

Returns

\Zend_Controller_Request_Abstract