Silla.IO API
  • Namespace
  • Class
  • Tree
  • Todo
  • Download

Namespaces

  • App
    • Controllers
  • CMS
    • Controllers
    • Helpers
    • Models
  • Configurations
    • CI
    • Development
    • Production
    • Staging
  • Core
    • Base
    • CLI
      • Cache
      • DB
    • Helpers
    • Modules
      • Cache
        • Adapters
        • Interfaces
      • Crypt
      • DB
        • Adapters
        • Decorators
          • Interfaces
        • Features
          • Paginator
        • Interfaces
      • Registry
      • Render
        • Adapters
        • Interfaces
      • Router
      • Session
        • Adapters
        • Interfaces
  • None
  • Tasks
    • DB

Classes

  • Request
  • Response
  • Router
  • Routes

Class Router

Router Class definition.

Final
Namespace: Core\Modules\Router
Located at modules/router/router.php

Methods summary

private
# __construct( )

Filters all input.

Filters all input.

public
# dispatch( Core\Modules\Router\Request $request, Core\Modules\Router\Routes $routes )

Dispatches the processed request.

Dispatches the processed request.

Parameters

$request
Router Request object.
$routes
Router Routes object.

Throws

InvalidArgumentException
Request token does not match.
public string
# toUrl( array $options )

Generates an application url.

Generates an application url.

Parameters

$options
Array of options.

Returns

string

Uses

Core\Registry();
Core\Config();

Used by

Core\Modules\Router\Router::toFullUrl()
public string
# toFullUrl( array $options )

Generates an application full url.

Generates an application full url.

Parameters

$options
Array of options.

Returns

string

Uses

Core\Modules\Router\Router::toUrl()
Core\Config();
final public static Core\Modules\Router\Router
# getInstance( )

Returns an instance of the router object.

Returns an instance of the router object.

Returns

Core\Modules\Router\Router
public
# __clone( )

Cloning of Router is disallowed.

Cloning of Router is disallowed.

public boolean
# setCookie( string $name, mixed $data, integer $duration = 0, boolean $raw = false )

Cookie wrapper for storing a cookie.

Cookie wrapper for storing a cookie.

Parameters

$name
Name of the cookie.
$data
Data to store in the cookie (must be less than 4KB).
$duration
Time before expiration in milliseconds.
$raw
Whether to use raw cookie storage.

Returns

boolean

Uses

Core\Config()
public boolean
# deleteCookie( string $name )

Cookie wrapper for removal of a cookie.

Cookie wrapper for removal of a cookie.

Parameters

$name
Name of the cookie to remove.

Returns

boolean

Uses

Core\Config()
public static array
# getMode( string $httpRequestString )

Extract current mode.

Extract current mode.

Parameters

$httpRequestString
HTTP qeuery request string.

Returns

array
public static array
# parseRequestQueryString( string $httpRequestString, Core\Modules\Router\Routes $routes )

Parses a request query string.

Parses a request query string.

Parameters

$httpRequestString
Request string.
$routes
Request routing routes.

Returns

array

Uses

Core\Utils::parseHttpRequestString()
public static
# disableMagicQuotes( )

Disabling magic quotes at runtime.

Disabling magic quotes at runtime.

public static string
# normalizePath( string $path )

Retrieve the relative request query string.

Retrieve the relative request query string.

Parameters

$path
Request query string.

Returns

string

Properties summary

public Core\Modules\Router\Request $request

Request object.

Request object.

#
public Core\Modules\Router\Response $response

Response object.

Response object.

#
private static Core\Modules\Router\Router $instance

Reference to the current instance of the Routes object.

Reference to the current instance of the Routes object.

# null
public Core\Modules\Router\Routes $routes

All routing routes container.

All routing routes container.

#
Silla.IO API API documentation generated by ApiGen