Open Journal Systems  3.3.0
Guzzle\Plugin\Cookie\CookieJar\FileCookieJar Class Reference
Inheritance diagram for Guzzle\Plugin\Cookie\CookieJar\FileCookieJar:
Guzzle\Plugin\Cookie\CookieJar\ArrayCookieJar Guzzle\Plugin\Cookie\CookieJar\CookieJarInterface

Public Member Functions

 __construct ($cookieFile)
 
 __destruct ()
 
- Public Member Functions inherited from Guzzle\Plugin\Cookie\CookieJar\ArrayCookieJar
 add (Cookie $cookie)
 
 addCookiesFromResponse (Response $response, RequestInterface $request=null)
 
 all ($domain=null, $path=null, $name=null, $skipDiscardable=false, $skipExpired=true)
 
 count ()
 
 getIterator ()
 
 getMatchingCookies (RequestInterface $request)
 
 remove ($domain=null, $path=null, $name=null)
 
 removeExpired ()
 
 removeTemporary ()
 
 serialize ()
 
 setStrictMode ($strictMode)
 
 unserialize ($data)
 

Protected Member Functions

 load ()
 
 persist ()
 

Protected Attributes

 $filename
 
- Protected Attributes inherited from Guzzle\Plugin\Cookie\CookieJar\ArrayCookieJar
 $cookies = array()
 
 $strictMode
 

Detailed Description

Persists non-session cookies using a JSON formatted file

Definition at line 10 of file lib/vendor/guzzle/guzzle/src/Guzzle/Plugin/Cookie/CookieJar/FileCookieJar.php.

Constructor & Destructor Documentation

◆ __construct()

Guzzle\Plugin\Cookie\CookieJar\FileCookieJar::__construct (   $cookieFile)

Create a new FileCookieJar object

Parameters
string$cookieFileFile to store the cookie data
Exceptions
RuntimeExceptionif the file cannot be found or created

Reimplemented from Guzzle\Plugin\Cookie\CookieJar\ArrayCookieJar.

Definition at line 25 of file lib/vendor/guzzle/guzzle/src/Guzzle/Plugin/Cookie/CookieJar/FileCookieJar.php.

References Guzzle\Plugin\Cookie\CookieJar\FileCookieJar\load().

◆ __destruct()

Guzzle\Plugin\Cookie\CookieJar\FileCookieJar::__destruct ( )

Member Function Documentation

◆ load()

Guzzle\Plugin\Cookie\CookieJar\FileCookieJar::load ( )
protected

Load the contents of the json formatted file into the data array and discard any unsaved state

Definition at line 56 of file lib/vendor/guzzle/guzzle/src/Guzzle/Plugin/Cookie/CookieJar/FileCookieJar.php.

References Guzzle\Plugin\Cookie\CookieJar\ArrayCookieJar\unserialize().

Referenced by Guzzle\Plugin\Cookie\CookieJar\FileCookieJar\__construct().

◆ persist()

Guzzle\Plugin\Cookie\CookieJar\FileCookieJar::persist ( )
protected

Save the contents of the data array to the file

Exceptions
RuntimeExceptionif the file cannot be found or created

Definition at line 44 of file lib/vendor/guzzle/guzzle/src/Guzzle/Plugin/Cookie/CookieJar/FileCookieJar.php.

References Guzzle\Plugin\Cookie\CookieJar\ArrayCookieJar\serialize().

Referenced by Guzzle\Plugin\Cookie\CookieJar\FileCookieJar\__destruct().

Field Documentation

◆ $filename

string Guzzle\Plugin\Cookie\CookieJar\FileCookieJar::$filename
protected

The documentation for this class was generated from the following file: