Back to Joomla project (class list)

Class RouteHelper - list of methods

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.
Package: Joomla\CMS\Helper
Copyright: (C) 2013 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Helper/RouteHelper.php
Project: Joomla

Method Summary

public string
(mixed $id, mixed $typealias, mixed $link = '', mixed $language = null, mixed $catid = null)

A method to get the route for a specific item
Parameters
  • int $id Value of the primary key for the item in its content table
  • string $typealias The type_alias for the item being routed. Of the form extension.view.
  • string $link The link to be routed
  • string $language The language of the content for multilingual sites
  • int $catid Optional category id
Returns
  • string The route of the item
Since
  • 3.1
Show source code of this method: getRoute Source Code

protected mixed
(mixed $needles = array())

Method to find the item in the menu structure
Parameters
  • array $needles Array of lookup values
Returns
  • mixed
Since
  • 3.1
Show source code of this method: findItem Source Code

public static string
(mixed $catid, mixed $language = 0, mixed $extension = '')

Fetches the category route
Parameters
  • mixed $catid Category ID or CategoryNode instance
  • mixed $language Language code
  • string $extension Extension to lookup
Returns
  • string
Since
  • 3.2
-
  • \InvalidArgumentException
Show source code of this method: getCategoryRoute Source Code

protected static mixed
(mixed $needles = array())

Static alias to findItem() used to find the item in the menu structure
Parameters
  • array $needles Array of lookup values
Returns
  • mixed
Since
  • 3.2
Show source code of this method: lookupItem Source Code

Properties Summary

protected static array
$lookup
Since
  • 3.1
protected string
$extension
Since
  • 3.1
protected string
$id
Since
  • 3.1
protected string
$view
Since
  • 3.1

Tags Summary

Since
3.1