ICanBoogie/HTTP master
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Exception
    • HTTP
      • Headers
      • Request
      • RequestDispatcher

Classes

  • Context

Class Context

The context of a request.

This is a general purpose container used to store the objects and variables related to a request.

ICanBoogie\HTTP\Request\Context implements ArrayAccess uses ICanBoogie\PrototypeTrait (not available)
Namespace: ICanBoogie\HTTP\Request
Located at Request/Context.php

Methods summary

protected ICanBoogie\HTTP\Request
# get_request( )

Returns

ICanBoogie\HTTP\Request
protected
# set_dispatcher( ICanBoogie\HTTP\Dispatcher|null $dispatcher )

Sets the dispatcher currently dispatching the request.

Sets the dispatcher currently dispatching the request.

Parameters

$dispatcher

Throws

InvalidArgumentException
if the value is not null and does not implements ICanBoogie\HTTP\Dispatcher.
protected ICanBoogie\HTTP\Dispatcher|null
# get_dispatcher( )

Returns

ICanBoogie\HTTP\Dispatcher|null
public
# __construct( ICanBoogie\HTTP\Request $request )

Parameters

$request
The request the context belongs to.
public
# offsetExists( $property )

Inheritdoc

Implementation of

ArrayAccess::offsetExists()
public
# offsetGet( $property )

Inheritdoc

Implementation of

ArrayAccess::offsetGet()
public
# offsetSet( $property, $value )

Inheritdoc

Implementation of

ArrayAccess::offsetSet()
public
# offsetUnset( $property )

Inheritdoc

Implementation of

ArrayAccess::offsetUnset()

Properties summary

Magic properties

public ICanBoogie\HTTP\Dispatcher $dispatcher

The dispatcher currently dispatching the request.

public read-only ICanBoogie\HTTP\Request $request

The request associated with the context.

ICanBoogie/HTTP master API documentation generated by ApiGen