[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_tags/src/Service/ -> Router.php (summary)

(no description)

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

Defines 1 class

Router:: (4 methods):
  __construct()
  build()
  parse()
  fixSegment()


Class: Router  - X-Ref

Routing class from com_tags

__construct(SiteApplication $app, AbstractMenu $menu, ?CategoryFactoryInterface $categoryFactory, DatabaseInterface $db)   X-Ref
Tags Component router constructor

param: SiteApplication           $app              The application object
param: AbstractMenu              $menu             The menu object to work with
param: CategoryFactoryInterface  $categoryFactory  The category object
param: DatabaseInterface         $db               The database object

build(&$query)   X-Ref
Build the route for the com_tags component

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 the segments of a URL.

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

fixSegment($segment)   X-Ref
Try to add missing id to segment

param: string  $segment  One piece of segment of the URL to parse
return: string  The segment with founded id



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