Open Journal Systems  3.3.0
Guzzle\Http\Message\Header\CacheControl Class Reference
Inheritance diagram for Guzzle\Http\Message\Header\CacheControl:
Guzzle\Http\Message\Header Guzzle\Http\Message\Header\HeaderInterface Guzzle\Common\ToArrayInterface

Public Member Functions

 add ($value)
 
 addDirective ($param, $value)
 
 getDirective ($param)
 
 getDirectives ()
 
 hasDirective ($param)
 
 removeDirective ($param)
 
 removeValue ($searchValue)
 
- Public Member Functions inherited from Guzzle\Http\Message\Header
 __construct ($header, $values=array(), $glue=',')
 
 __toString ()
 
 count ()
 
 getGlue ()
 
 getIterator ()
 
 getName ()
 
 hasExactHeader ($header)
 
 hasValue ($searchValue)
 
 normalize ()
 
 parseParams ()
 
 raw ()
 
 setGlue ($glue)
 
 setName ($name)
 
 toArray ()
 

Protected Member Functions

 updateFromDirectives (array $directives)
 
- Protected Member Functions inherited from Guzzle\Http\Message\Header
 trimHeader ($str)
 

Protected Attributes

 $directives
 
- Protected Attributes inherited from Guzzle\Http\Message\Header
 $glue
 
 $header
 
 $values = array()
 

Detailed Description

Provides helpful functionality for Cache-Control headers

Definition at line 10 of file CacheControl.php.

Member Function Documentation

◆ add()

Guzzle\Http\Message\Header\CacheControl::add (   $value)

Add a value to the list of header values

Parameters
string$valueValue to add to the header
Returns
self

Reimplemented from Guzzle\Http\Message\Header.

Definition at line 18 of file CacheControl.php.

◆ addDirective()

Guzzle\Http\Message\Header\CacheControl::addDirective (   $param,
  $value 
)

Add a cache control directive

Parameters
string$paramDirective to add
string$valueValue to set
Returns
self

Definition at line 66 of file CacheControl.php.

References Guzzle\Http\Message\Header\CacheControl\$directives, Guzzle\Http\Message\Header\CacheControl\getDirectives(), and Guzzle\Http\Message\Header\CacheControl\updateFromDirectives().

◆ getDirective()

Guzzle\Http\Message\Header\CacheControl::getDirective (   $param)

Get a specific cache control directive

Parameters
string$paramDirective to retrieve
Returns
string|bool|null

Definition at line 51 of file CacheControl.php.

References Guzzle\Http\Message\Header\CacheControl\$directives, and Guzzle\Http\Message\Header\CacheControl\getDirectives().

◆ getDirectives()

◆ hasDirective()

Guzzle\Http\Message\Header\CacheControl::hasDirective (   $param)

Check if a specific cache control directive exists

Parameters
string$paramDirective to retrieve
Returns
bool

Definition at line 37 of file CacheControl.php.

References Guzzle\Http\Message\Header\CacheControl\$directives, and Guzzle\Http\Message\Header\CacheControl\getDirectives().

◆ removeDirective()

Guzzle\Http\Message\Header\CacheControl::removeDirective (   $param)

Remove a cache control directive by name

Parameters
string$paramDirective to remove
Returns
self

Definition at line 82 of file CacheControl.php.

References Guzzle\Http\Message\Header\CacheControl\$directives, Guzzle\Http\Message\Header\CacheControl\getDirectives(), and Guzzle\Http\Message\Header\CacheControl\updateFromDirectives().

◆ removeValue()

Guzzle\Http\Message\Header\CacheControl::removeValue (   $searchValue)

Remove a specific value from the header

Parameters
string$searchValueValue to remove
Returns
self

Reimplemented from Guzzle\Http\Message\Header.

Definition at line 24 of file CacheControl.php.

◆ updateFromDirectives()

Guzzle\Http\Message\Header\CacheControl::updateFromDirectives ( array  $directives)
protected

Updates the header value based on the parsed directives

Parameters
array$directivesArray of cache control directives

Definition at line 115 of file CacheControl.php.

References Guzzle\Http\Message\Header\CacheControl\$directives.

Referenced by Guzzle\Http\Message\Header\CacheControl\addDirective(), and Guzzle\Http\Message\Header\CacheControl\removeDirective().

Field Documentation

◆ $directives


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