class StandardRules implements RulesInterface

Rule for the standard handling of component routing

Methods

__construct( RouterView $router)

Class constructor.

void
preprocess( array $query)

Dummymethod to fullfill the interface requirements

void
parse( array $segments, array $vars)

Parse the URL

void
build( array $query, array $segments)

Build a standard URL

Details

__construct( RouterView $router)

Class constructor.

Parameters

RouterView $router Router this rule belongs to

void preprocess( array $query)

Dummymethod to fullfill the interface requirements

Parameters

array $query &$query The query array to process

Return Value

void

void parse( array $segments, array $vars)

Parse the URL

Parameters

array $segments &$segments The URL segments to parse
array $vars &$vars The vars that result from the segments

Return Value

void

void build( array $query, array $segments)

Build a standard URL

Parameters

array $query &$query The vars that should be converted
array $segments &$segments The URL segments to create

Return Value

void