interface QueueingFactory implements Factory (View source)

Methods

Cookie
make( string $name, string $value, int $minutes, string $path = null, string $domain = null, bool $secure = false, bool $httpOnly = true)

Create a new cookie instance.

from Factory
Cookie
forever( string $name, string $value, string $path = null, string $domain = null, bool $secure = false, bool $httpOnly = true)

Create a cookie that lasts "forever" (five years).

from Factory
Cookie
forget( string $name, string $path = null, string $domain = null)

Expire the given cookie.

from Factory
void
queue()

Queue a cookie to send with the next response.

unqueue( string $name)

Remove a cookie from the queue.

array
getQueuedCookies()

Get the cookies which have been queued for the next request.

Details

in Factory at line line 19
Cookie make( string $name, string $value, int $minutes, string $path = null, string $domain = null, bool $secure = false, bool $httpOnly = true)

Create a new cookie instance.

Parameters

string $name
string $value
int $minutes
string $path
string $domain
bool $secure
bool $httpOnly

Return Value

Cookie

in Factory at line line 32
Cookie forever( string $name, string $value, string $path = null, string $domain = null, bool $secure = false, bool $httpOnly = true)

Create a cookie that lasts "forever" (five years).

Parameters

string $name
string $value
string $path
string $domain
bool $secure
bool $httpOnly

Return Value

Cookie

in Factory at line line 42
Cookie forget( string $name, string $path = null, string $domain = null)

Expire the given cookie.

Parameters

string $name
string $path
string $domain

Return Value

Cookie

at line line 13
void queue()

Queue a cookie to send with the next response.

Return Value

void

at line line 20
unqueue( string $name)

Remove a cookie from the queue.

Parameters

string $name

at line line 27
array getQueuedCookies()

Get the cookies which have been queued for the next request.

Return Value

array