[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

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

(no description)

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

Defines 1 class

Router:: (9 methods):
  __construct()
  getCategorySegment()
  getCategoriesSegment()
  getArticleSegment()
  getFormSegment()
  getCategoryId()
  getCategoriesId()
  getArticleId()
  getCategories()


Class: Router  - X-Ref

Routing class of com_content

__construct(SiteApplication $app, AbstractMenu $menu, CategoryFactoryInterface $categoryFactory, DatabaseInterface $db)   X-Ref
Content 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

getCategorySegment($id, $query)   X-Ref
Method to get the segment(s) for a category

param: string  $id     ID of the category to retrieve the segments for
param: array   $query  The request that is built right now
return: array|string  The segments of this item

getCategoriesSegment($id, $query)   X-Ref
Method to get the segment(s) for a category

param: string  $id     ID of the category to retrieve the segments for
param: array   $query  The request that is built right now
return: array|string  The segments of this item

getArticleSegment($id, $query)   X-Ref
Method to get the segment(s) for an article

param: string  $id     ID of the article to retrieve the segments for
param: array   $query  The request that is built right now
return: array|string  The segments of this item

getFormSegment($id, $query)   X-Ref
Method to get the segment(s) for a form

param: string  $id     ID of the article form to retrieve the segments for
param: array   $query  The request that is built right now
return: array|string  The segments of this item

getCategoryId($segment, $query)   X-Ref
Method to get the id for a category

param: string  $segment  Segment to retrieve the ID for
param: array   $query    The request that is parsed right now
return: mixed   The id of this item or false

getCategoriesId($segment, $query)   X-Ref
Method to get the segment(s) for a category

param: string  $segment  Segment to retrieve the ID for
param: array   $query    The request that is parsed right now
return: mixed   The id of this item or false

getArticleId($segment, $query)   X-Ref
Method to get the segment(s) for an article

param: string  $segment  Segment of the article to retrieve the ID for
param: array   $query    The request that is parsed right now
return: mixed   The id of this item or false

getCategories(array $options = [])   X-Ref
Method to get categories from cache

param: array  $options   The options for retrieving categories
return: CategoryInterface  The object containing categories



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