Methods summary
public
|
#
__construct( boolean $strictMode = false )
Parameters
- $strictMode
boolean $strictMode Set to true to throw exceptions when invalid cookies are added to
the cookie jar
|
public
Guzzle\Plugin\Cookie\CookieJar\ArrayCookieJar
|
#
setStrictMode( boolean $strictMode )
Enable or disable strict mode on the cookie jar
Enable or disable strict mode on the cookie jar
Parameters
- $strictMode
boolean $strictMode Set to true to throw exceptions when invalid cookies are added.
False to ignore them.
Returns
|
public
Guzzle\Plugin\Cookie\CookieJar\CookieJarInterface
|
#
remove( string $domain = null, string $path = null, string $name = null )
Remove cookies currently held in the Cookie cookieJar.
Remove cookies currently held in the Cookie cookieJar.
Parameters
- $domain
string $domain Set to clear only cookies matching a domain
- $path
string $path Set to clear only cookies matching a domain and path
- $name
string $name Set to clear only cookies matching a domain, path, and name
Returns
Implementation of
|
public
Guzzle\Plugin\Cookie\CookieJar\CookieJarInterface
|
#
removeTemporary( )
Discard all temporary cookies.
Discard all temporary cookies.
Returns
Implementation of
|
public
Guzzle\Plugin\Cookie\CookieJar\CookieJarInterface
|
#
removeExpired( )
Delete any expired cookies
Delete any expired cookies
Returns
Implementation of
|
public
array
|
#
all( string $domain = null, string $path = null, string $name = null, boolean $skipDiscardable = false, boolean $skipExpired = true )
Get all of the matching cookies
Get all of the matching cookies
Parameters
- $domain
string $domain Domain of the cookie
- $path
string $path Path of the cookie
- $name
string $name Name of the cookie
- $skipDiscardable
boolean $skipDiscardable Set to TRUE to skip cookies with the Discard attribute.
- $skipExpired
boolean $skipExpired Set to FALSE to include expired
Returns
array Returns an array of Cookie objects
Implementation of
|
public
boolean
|
#
add( Guzzle\Plugin\Cookie\Cookie $cookie )
Add a cookie to the cookie cookieJar
Add a cookie to the cookie cookieJar
Parameters
Returns
boolean Returns true on success or false on failure
Implementation of
|
public
string
|
#
serialize( )
Serializes the cookie cookieJar
Serializes the cookie cookieJar
Returns
string
Implementation of
|
public
|
#
unserialize( mixed $data )
Unserializes the cookie cookieJar
Unserializes the cookie cookieJar
Implementation of
|
public
integer
|
#
count( )
Returns the total number of stored cookies
Returns the total number of stored cookies
Returns
integer
Implementation of
|
public
ArrayIterator
|
#
getIterator( )
Returns an iterator
Returns
Implementation of
|
public
|
|
public
array
|
|