QueueingFactory
extends
Factory
in
Table of Contents
- forever() : Cookie
- Create a cookie that lasts "forever" (five years).
- forget() : Cookie
- Expire the given cookie.
- getQueuedCookies() : array<string|int, mixed>
- Get the cookies which have been queued for the next request.
- make() : Cookie
- Create a new cookie instance.
- queue() : void
- Queue a cookie to send with the next response.
- unqueue() : mixed
- Remove a cookie from the queue.
Methods
forever()
Create a cookie that lasts "forever" (five years).
public
forever(string $name, string $value[, string $path = null ][, string $domain = null ][, bool $secure = false ][, bool $httpOnly = true ]) : Cookie
Parameters
- $name : string
- $value : string
- $path : string = null
- $domain : string = null
- $secure : bool = false
- $httpOnly : bool = true
Return values
Cookie —forget()
Expire the given cookie.
public
forget(string $name[, string $path = null ][, string $domain = null ]) : Cookie
Parameters
- $name : string
- $path : string = null
- $domain : string = null
Return values
Cookie —getQueuedCookies()
Get the cookies which have been queued for the next request.
public
getQueuedCookies() : array<string|int, mixed>
Return values
array<string|int, mixed> —make()
Create a new cookie instance.
public
make(string $name, string $value, int $minutes[, string $path = null ][, string $domain = null ][, bool $secure = false ][, bool $httpOnly = true ]) : Cookie
Parameters
- $name : string
- $value : string
- $minutes : int
- $path : string = null
- $domain : string = null
- $secure : bool = false
- $httpOnly : bool = true
Return values
Cookie —queue()
Queue a cookie to send with the next response.
public
queue(array<string|int, mixed> ...$parameters) : void
Parameters
- $parameters : array<string|int, mixed>
Return values
void —unqueue()
Remove a cookie from the queue.
public
unqueue(string $name) : mixed
Parameters
- $name : string