class MenuRules implements RulesInterface

Rule to identify the right Itemid for a view in a component

Methods

__construct( RouterView $router)

Class constructor.

void
preprocess( array $query)

Finds the right Itemid for this query

void
parse( array $segments, array $vars)

Dummymethod to fullfill the interface requirements

void
build( array $query, array $segments)

Dummymethod to fullfill the interface requirements

Details

__construct( RouterView $router)

Class constructor.

Parameters

RouterView $router Router this rule belongs to

void preprocess( array $query)

Finds the right Itemid for this query

Parameters

array $query &$query The query array to process

Return Value

void

void parse( array $segments, array $vars)

Dummymethod to fullfill the interface requirements

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)

Dummymethod to fullfill the interface requirements

Parameters

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

Return Value

void