Arbit - project tracking

Arbit - project tracking

API documentation :: Docs For Class arbitRoute

Core::arbitRoute

Class arbitRoute

Arbit HTTP base router

Arbit HTTP base router

Author(s):
Version:   $Revision: 1236 $
License:   GPL

Member Variables

protected string $controller
Name of controller class used for this module

Name of controller class used for this module

protected string $module
Name of module, as occuring in the request.

Name of module, as occuring in the request.

Method Summary

public void __construct( $module , $controller )
Construct route from name of the module and the controller class name.
public null|ezcMvcRoutingInformation matches( $request )
Returns routing information if the route matched, or null in case the route did not match.
public void prefix( $prefix )
Adds a prefix to the route.

Methods

__construct

void __construct( string $module , string $controller )

Construct route from name of the module and the controller class name.

Construct route from name of the module and the controller class name.

Parameters:
Name Type Description
$module string
$controller string

matches

null|ezcMvcRoutingInformation matches( $request )

Returns routing information if the route matched, or null in case the route did not match.

Returns routing information if the route matched, or null in case the route did not match.

Parameters:
Name Type Description
$request ezcMvcRequest Request to test.

prefix

void prefix( mixed $prefix )

Adds a prefix to the route.

Adds a prefix to the route.

Parameters:
Name Type Description
$prefix mixed Prefix to add, for example: '/blog'
Documentation generated on Mon, 05 Apr 2010 14:01:35 +0200 by phpDocumentor 1.4.3