Open Journal Systems
3.3.0
|
Public Member Functions | |
add ($value) | |
addDirective ($param, $value) | |
getDirective ($param) | |
getDirectives () | |
hasDirective ($param) | |
removeDirective ($param) | |
removeValue ($searchValue) | |
![]() | |
__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) | |
![]() | |
trimHeader ($str) | |
Protected Attributes | |
$directives | |
![]() | |
$glue | |
$header | |
$values = array() | |
Provides helpful functionality for Cache-Control headers
Definition at line 10 of file CacheControl.php.
Guzzle\Http\Message\Header\CacheControl::add | ( | $value | ) |
Add a value to the list of header values
string | $value | Value to add to the header |
Reimplemented from Guzzle\Http\Message\Header.
Definition at line 18 of file CacheControl.php.
Guzzle\Http\Message\Header\CacheControl::addDirective | ( | $param, | |
$value | |||
) |
Add a cache control directive
string | $param | Directive to add |
string | $value | Value to set |
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().
Guzzle\Http\Message\Header\CacheControl::getDirective | ( | $param | ) |
Get a specific cache control directive
string | $param | Directive to retrieve |
Definition at line 51 of file CacheControl.php.
References Guzzle\Http\Message\Header\CacheControl\$directives, and Guzzle\Http\Message\Header\CacheControl\getDirectives().
Guzzle\Http\Message\Header\CacheControl::getDirectives | ( | ) |
Get an associative array of cache control directives
Definition at line 96 of file CacheControl.php.
References Guzzle\Http\Message\Header\CacheControl\$directives, and Guzzle\Http\Message\Header\parseParams().
Referenced by Guzzle\Http\Message\Header\CacheControl\addDirective(), Guzzle\Http\Message\Header\CacheControl\getDirective(), Guzzle\Http\Message\Header\CacheControl\hasDirective(), and Guzzle\Http\Message\Header\CacheControl\removeDirective().
Guzzle\Http\Message\Header\CacheControl::hasDirective | ( | $param | ) |
Check if a specific cache control directive exists
string | $param | Directive to retrieve |
Definition at line 37 of file CacheControl.php.
References Guzzle\Http\Message\Header\CacheControl\$directives, and Guzzle\Http\Message\Header\CacheControl\getDirectives().
Guzzle\Http\Message\Header\CacheControl::removeDirective | ( | $param | ) |
Remove a cache control directive by name
string | $param | Directive to remove |
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().
Guzzle\Http\Message\Header\CacheControl::removeValue | ( | $searchValue | ) |
Remove a specific value from the header
string | $searchValue | Value to remove |
Reimplemented from Guzzle\Http\Message\Header.
Definition at line 24 of file CacheControl.php.
|
protected |
Updates the header value based on the parsed directives
array | $directives | Array 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().
|
protected |
Definition at line 16 of file CacheControl.php.
Referenced by Guzzle\Http\Message\Header\CacheControl\addDirective(), Guzzle\Http\Message\Header\CacheControl\getDirective(), Guzzle\Http\Message\Header\CacheControl\getDirectives(), Guzzle\Http\Message\Header\CacheControl\hasDirective(), Guzzle\Http\Message\Header\CacheControl\removeDirective(), and Guzzle\Http\Message\Header\CacheControl\updateFromDirectives().