[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Helper/ -> RouteHelper.php (summary)

Joomla! Content Management System

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

Defines 1 class

RouteHelper:: (4 methods):
  getRoute()
  findItem()
  getCategoryRoute()
  lookupItem()


Class: RouteHelper  - X-Ref

Route Helper

A class providing basic routing for urls that are for content types found in
the #__content_types table and rows found in the #__ucm_content table.

getRoute($id, $typealias, $link = '', $language = null, $catid = null)   X-Ref
A method to get the route for a specific item

param: integer  $id         Value of the primary key for the item in its content table
param: string   $typealias  The type_alias for the item being routed. Of the form extension.view.
param: string   $link       The link to be routed
param: string   $language   The language of the content for multilingual sites
param: integer  $catid      Optional category id
return: string  The route of the item

findItem($needles = array()   X-Ref
Method to find the item in the menu structure

param: array  $needles  Array of lookup values
return: mixed

getCategoryRoute($catid, $language = 0, $extension = '')   X-Ref
Fetches the category route

param: mixed   $catid      Category ID or CategoryNode instance
param: mixed   $language   Language code
param: string  $extension  Extension to lookup
return: string

lookupItem($needles = array()   X-Ref
Static alias to findItem() used to find the item in the menu structure

param: array  $needles  Array of lookup values
return: mixed



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