Autodoc
  • Namespace
  • Class
  • Tree

Namespaces

  • BlueTihi
    • Context
  • Brickrouge
    • Element
      • Nodes
    • Renderer
    • Widget
  • ICanBoogie
    • ActiveRecord
    • AutoConfig
    • CLDR
    • Composer
    • Core
    • Event
    • Exception
    • HTTP
      • Dispatcher
      • Request
    • I18n
      • Translator
    • Mailer
    • Modules
      • Taxonomy
        • Support
      • Thumbnailer
        • Versions
    • Object
    • Operation
      • Dispatcher
    • Prototype
    • Routes
    • Routing
      • Dispatcher
    • Session
  • Icybee
    • ActiveRecord
      • Model
    • ConfigOperation
    • Document
    • EditBlock
    • Element
      • ActionbarContextual
      • ActionbarSearch
      • ActionbarToolbar
    • FormBlock
    • Installer
    • ManageBlock
    • Modules
      • Articles
      • Cache
        • Collection
        • ManageBlock
      • Comments
        • ManageBlock
      • Contents
        • ManageBlock
      • Dashboard
      • Editor
        • Collection
      • Files
        • File
        • ManageBlock
      • Forms
        • Form
        • ManageBlock
      • I18n
      • Images
        • ManageBlock
      • Members
      • Modules
        • ManageBlock
      • Nodes
        • ManageBlock
        • Module
      • Pages
        • BreadcrumbElement
        • LanguagesElement
        • ManageBlock
        • NavigationBranchElement
        • NavigationElement
        • Page
        • PageController
      • Registry
      • Search
      • Seo
      • Sites
        • ManageBlock
      • Taxonomy
        • Terms
          • ManageBlock
        • Vocabulary
          • ManageBlock
      • Users
        • ManageBlock
        • NonceLogin
        • Roles
      • Views
        • ActiveRecordProvider
        • Collection
        • View
    • Operation
      • ActiveRecord
      • Constructor
      • Module
      • Widget
    • Rendering
  • None
  • Patron
  • PHP

Classes

  • CacheControlHeader
  • CallableDispatcher
  • ContentDispositionHeader
  • ContentTypeHeader
  • DateHeader
  • Dispatcher
  • File
  • FileList
  • Header
  • HeaderParameter
  • Headers
  • Helpers
  • RedirectResponse
  • Request
  • Response
  • WeightedDispatcher

Interfaces

  • IDispatcher

Exceptions

  • ForceRedirect
  • HTTPError
  • MethodNotSupported
  • NotFound
  • ServiceUnavailable
  • StatusCodeNotValid

Functions

  • dispatch
  • get_dispatcher
  • get_initial_request

Class Headers

HTTP Header field definitions.

Instances of this class are used to collect and manipulate HTTP header field definitions. Header field instances are used to handle the definition of complex header fields such as Content-Type and Cache-Control. For instance a Headers\CacheControl instance is used to handle the directives of the Cache-Control header field.

ICanBoogie\HTTP\Headers implements ArrayAccess, IteratorAggregate
Namespace: ICanBoogie\HTTP
See: http://tools.ietf.org/html/rfc2616#section-14
Located at vendor/icanboogie/http/lib/headers.php

Methods summary

public
# __construct( array $fields = array() )

If the REQUEST_URI key is found in the header fields they are considered coming from the super global $_SERVER array in which case they are filtered to keep only keys starting with the HTTP_ prefix. Also, header field names are normalized. For instance, HTTP_CONTENT_TYPE becomes Content-Type.

If the REQUEST_URI key is found in the header fields they are considered coming from the super global $_SERVER array in which case they are filtered to keep only keys starting with the HTTP_ prefix. Also, header field names are normalized. For instance, HTTP_CONTENT_TYPE becomes Content-Type.

Parameters

$fields
array
$headers The initial headers.
public string
# __toString( )

Returns the header as a string.

Returns the header as a string.

Header fields with empty string values are discarted.

Returns

string
public
# __invoke( )

Sends header fields using the header() function.

Sends header fields using the header() function.

Header fields with empty string values are discarted.

public boolean
# offsetExists( mixed $field )

Checks if a header field exists.

Checks if a header field exists.

Parameters

$field
mixed
$field

Returns

boolean

Implementation of

ArrayAccess::offsetExists()
public string|null
# offsetGet( mixed $field )

Returns a header.

Returns a header.

Parameters

$field
mixed
$field

Returns

string|null
The header field value or null if it is not defined.

Implementation of

ArrayAccess::offsetGet()
public
# offsetSet( string $field, mixed $value )

Sets a header field.

Sets a header field.

Note: Setting a header field to null removes it, just like unset() would.

Date, Expires, Last-Modified

The Date, Expires and Last-Modified header fields can be provided as a Unix timestamp, a string or a DateTime object.

Cache-Control, Content-Disposition and Content-Type

Instances of the Headers\CacheControl, Headers\ContentDisposition and Headers\ContentType are used to handle the values of the Cache-Control, Content-Disposition and Content-Type header fields.

Parameters

$field
string
$field The header field to set.
$value
mixed
$value The value of the header field.

Implementation of

ArrayAccess::offsetSet()
public
# offsetUnset( mixed $field )

Removes a header field.

Removes a header field.

Implementation of

ArrayAccess::offsetUnset()
public
# getIterator( )

Returns an iterator for the header fields.

Returns an iterator for the header fields.

Implementation of

IteratorAggregate::getIterator()

Magic methods summary

Properties summary

protected array[string]mixed $fields
#

Header fields.

Header fields.

Autodoc API documentation generated by ApiGen 2.8.0