Overview

Namespaces

  • Deimos
    • Request
      • Adapter
  • PHP

Traits

  • Data
  • Other
  • Query
  • Request
  • Router
  • Server
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Trait Router

Class Router

Direct Known Users

Deimos\Request\RequestExtension
Namespace: Deimos\Request\Adapter
Package: Deimos\Request\Adapter
Located at Request/Adapter/Router.php
Methods summary
public
# setRouter( Deimos\Router\Router $router )

Parameters

$router
public mixed
# attribute( string $path = null, mixed $default = null )

Parameters

$path
$default

Returns

mixed

Throws

InvalidArgumentException
public array
# attributes( )

Returns

array

Throws

InvalidArgumentException
public mixed
# attributeRequired( string $path = null, boolean $strip = true )

Parameters

$path
$strip

Returns

mixed

Throws

Deimos\Helper\Exceptions\ExceptionEmpty
InvalidArgumentException
Magic methods summary
public integer
# attributeInt( string $path = null, mixed $default )

Parameters

$path
$default

Returns

integer
public float
# attributeFloat( string $path = null, mixed $default = 0.0 )

Parameters

$path
$default

Returns

float
public boolean
# attributeBool( string $path = null, mixed $default = false )

Parameters

$path
$default

Returns

boolean
public string
# attributeEmail( string $path = null, mixed $default = '' )

Parameters

$path
$default

Returns

string
public string
# attributeIP( string $path = null, mixed $default = '' )

Parameters

$path
$default

Returns

string
public string
# attributeURL( string $path = null, mixed $default = '' )

Parameters

$path
$default

Returns

string
public mixed
# attributeUnsafe( string $path = null, mixed $default = '' )

Parameters

$path
$default

Returns

mixed
API documentation generated by ApiGen