RouterView
Extends RouterBaseView-based component routing class
since |
3.5 |
---|---|
package |
Joomla CMS |
Methods
__construct
Class constructor.
__construct(\Joomla\CMS\Application\CMSApplication app = null, \Joomla\CMS\Menu\AbstractMenu menu = null) : mixed
since |
3.4 |
---|
Arguments
- app
\Joomla\CMS\Application\CMSApplication
Application-object that the router should use- menu
\Joomla\CMS\Menu\AbstractMenu
Menu-object that the router should use
Response
mixed
attachRule
Attach a build rule
attachRule(\Joomla\CMS\Component\Router\Rules\RulesInterface rule) : void
since |
3.5 |
---|
Arguments
- rule
\Joomla\CMS\Component\Router\Rules\RulesInterface
The function to be called.
attachRules
Add a number of router rules to the object
attachRules(\Joomla\CMS\Component\Router\Rules\RulesInterface[] rules) : void
since |
3.5 |
---|
Arguments
- rules
\Joomla\CMS\Component\Router\Rules\RulesInterface[]
Array of JComponentRouterRulesInterface objects
build
Build method for URLs
build(array &query) : array
since |
3.5 |
---|
Arguments
- query
array
Array of query elements
Response
array
Array of URL segments
detachRule
Remove a build rule
detachRule(\Joomla\CMS\Component\Router\Rules\RulesInterface rule) : bool
since |
3.5 |
---|
Arguments
- rule
\Joomla\CMS\Component\Router\Rules\RulesInterface
The rule to be removed.
Response
bool
Was a rule removed?
getName
Method to return the name of the router
getName() : string
since |
3.5 |
---|
Response
string
Name of the router
getPath
Get the path of views from target view to root view including content items of a nestable view
getPath(array query) : array
since |
3.5 |
---|
Arguments
- query
array
Array of query elements
Response
array
List of views including IDs of content items
getRules
Get all currently attached rules
getRules() : \Joomla\CMS\Component\Router\Rules\RulesInterface[]
since |
3.5 |
---|
Response
\Joomla\CMS\Component\Router\Rules\RulesInterface[]
All currently attached rules in an array
getViews
Return an array of registered view objects
getViews() : \Joomla\CMS\Component\Router\RouterViewConfiguration[]
since |
3.5 |
---|
Response
\Joomla\CMS\Component\Router\RouterViewConfiguration[]
Array of registered view objects
parse
Parse method for URLs
parse(array &segments) : array
since |
3.5 |
---|
Arguments
- segments
array
Array of URL string-segments
Response
array
Associative array of query values
preprocess
Generic method to preprocess a URL
preprocess(array query) : array
since |
3.3 |
---|
Arguments
- query
array
An associative array of URL arguments
Response
array
The URL arguments to use to assemble the subsequent URL.
registerView
Register the views of a component
registerView(\Joomla\CMS\Component\Router\RouterViewConfiguration view) : void
since |
3.5 |
---|
Arguments
- view
\Joomla\CMS\Component\Router\RouterViewConfiguration
View configuration object