@throws ExceptionInvalidArgumentException
Creates a CacheControl object from a headerLine
Parameters: | string – |
---|---|
Throws ExceptionInvalidArgumentException: | |
Return type: | CacheControl |
Required from HeaderDescription interface
Return type: | string |
---|
Add a directive For directives like ‘max-age=60’, $value = ‘60’ For directives like ‘private’, use the default $value = true
Parameters: |
|
---|---|
Return type: | CacheControl - provides the fluent interface |
Check the internal directives array for a directive
Parameters: | string – |
---|---|
Return type: | bool |
Fetch the value of a directive from the internal directive array
Parameters: | string – |
---|---|
Return type: | string|null |
Remove a directive
Parameters: | string – |
---|---|
Return type: | CacheControl - provides the fluent interface |
Assembles the directives into a comma-delimited string
Return type: | string |
---|
Returns a string representation of the HTTP Cache-Control header
Return type: | string |
---|
Internal function for parsing the value part of a HTTP Cache-Control header
Parameters: | string – |
---|---|
Throws ExceptionInvalidArgumentException: | |
Return type: | array |
Internal function used by parseValue to match tokens
Parameters: |
|
---|---|
Return type: | int |