MenuRules
Implements \Joomla\CMS\Component\Router\Rules\RulesInterfaceRule to identify the right Itemid for a view in a component
since |
3.4 |
---|
Methods
__construct
Class constructor.
__construct(\Joomla\CMS\Component\Router\RouterView $router)
build
Dummymethod to fullfill the interface requirements
build( &$query, &$segments) : void
This method should retrieve all its input from its method arguments.
since |
3.4 |
---|
Arguments
- $query
- $segments
buildLookup
Method to build the lookup array
buildLookup(string $language = '*') : void
since |
3.4 |
---|
Arguments
- $language
string
The language that the lookup should be built up for
parse
Dummymethod to fullfill the interface requirements
parse( &$segments, &$vars) : void
This method should retrieve all its input from its method arguments.
since |
3.4 |
---|
Arguments
- $segments
- $vars
preprocess
Finds the right Itemid for this query
preprocess( &$query) : void
This should complete a partial query set to work as a complete non-SEFed URL and in general make sure that all information is present and properly formatted. For example, the Itemid should be retrieved and set here.
since |
3.4 |
---|
Arguments
- $query
Properties
lookup
Lookup array of the menu items
since |
3.4 |
---|
Type(s)
array