PHP Class PHPRouter\Route

Mostrar archivo Open project: dannyvankooten/php-router Class Usage Examples

Public Methods

Method Description
__construct ( $resource, array $config )
dispatch ( )
getAction ( )
getMethods ( )
getName ( )
getParameters ( )
getRegex ( )
getTarget ( )
getUrl ( )
setFilters ( array $filters, $parametersByName = false )
setMethods ( array $methods )
setName ( $name )
setParameters ( array $parameters )
setTarget ( $target )
setUrl ( $url )

Private Methods

Method Description
substituteFilter ( $matches )

Method Details

__construct() public method

public __construct ( $resource, array $config )
$resource
$config array

dispatch() public method

public dispatch ( )

getAction() public method

public getAction ( )

getMethods() public method

public getMethods ( )

getName() public method

public getName ( )

getParameters() public method

public getParameters ( )

getRegex() public method

public getRegex ( )

getTarget() public method

public getTarget ( )

getUrl() public method

public getUrl ( )

setFilters() public method

public setFilters ( array $filters, $parametersByName = false )
$filters array

setMethods() public method

public setMethods ( array $methods )
$methods array

setName() public method

public setName ( $name )

setParameters() public method

public setParameters ( array $parameters )
$parameters array

setTarget() public method

public setTarget ( $target )

setUrl() public method

public setUrl ( $url )