ICanBoogie
  • Documentation
  • API Reference
  • HTTP master
Namespaces
  • ICanBoogie
    • Exception
    • HTTP
      • Headers
      • Request
      • RequestDispatcher
Classes
  • CallableDispatcher
  • DispatcherProvider
  • File
  • FileInfo
  • FileList
  • FileResponse
  • Headers
  • ProvideDispatcher
  • RedirectResponse
  • Request
  • RequestDispatcher
  • RequestOptionsMapper
  • RequestRange
  • Response
  • Status
  • WeightedDispatcher
Interfaces
  • Dispatcher
  • Exception
  • FileOptions
  • RequestMethods
  • RequestOptions
  • ResponseStatus
  • SecurityError
Exceptions
  • AuthenticationRequired
  • ClientError
  • DispatcherNotDefined
  • DispatcherProviderNotDefined
  • ForceRedirect
  • MethodNotSupported
  • NotFound
  • PermissionRequired
  • ServerError
  • ServiceUnavailable
  • StatusCodeNotValid

Class WeightedDispatcher

Used to define a dispatcher and its weight.

<?php

$dispatcher['my'] = new WeightedDispatcher('callback', 'before:that_other_dispatcher');
ICanBoogie\HTTP\WeightedDispatcher uses ICanBoogie\Accessor\AccessorTrait (not available)
Namespace: ICanBoogie\HTTP
Located at WeightedDispatcher.php

Methods summary

protected get_dispatcher( void ) : ICanBoogie\HTTP\Dispatcher|string

Returns

ICanBoogie\HTTP\Dispatcher|string
protected get_weight( void ) : integer|string

Returns

integer|string
public __construct( ICanBoogie\HTTP\Dispatcher|string $dispatcher, integer|string $weight = self::WEIGHT_DEFAULT )

Initializes the $dispatcher and $weight properties.

Initializes the $dispatcher and $weight properties.

Parameters

$dispatcher
$weight

Constants summary

WEIGHT_TOP : string
'top'
WEIGHT_BOTTOM : string
'bottom'
WEIGHT_BEFORE_PREFIX : string
'before:'
WEIGHT_AFTER_PREFIX : string
'after:'
WEIGHT_DEFAULT : integer
0

Properties summary

Magic properties

public read-only $dispatcher : string|ICanBoogie\HTTP\Dispatcher
public read-only $weight : integer|string
HTTP master – Check on GitHub – API documentation generated by ApiGen