[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Component/Router/ -> RouterInterface.php (summary)

Joomla! Content Management System

Copyright: (C) 2014 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 63 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

RouterInterface:: (3 methods):
  preprocess()
  build()
  parse()


Interface: RouterInterface  - X-Ref

Component routing interface

preprocess($query)   X-Ref
Prepare-method for URLs
This method is meant to validate and complete the URL parameters.
For example it can add the Itemid or set a language parameter.
This method is executed on each URL, regardless of SEF mode switched
on or not.

param: array  $query  An associative array of URL arguments
return: array  The URL arguments to use to assemble the subsequent URL.

build(&$query)   X-Ref
Build method for URLs
This method is meant to transform the query parameters into a more human
readable form. It is only executed when SEF mode is switched on.

param: array  &$query  An array of URL arguments
return: array  The URL arguments to use to assemble the subsequent URL.

parse(&$segments)   X-Ref
Parse method for URLs
This method is meant to transform the human readable URL back into
query parameters. It is only executed when SEF mode is switched on.

param: array  &$segments  The segments of the URL to parse.
return: array  The URL attributes to be used by the application.



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer