RouteHelper
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.
since |
3.1 |
---|---|
package |
Joomla CMS |
Methods
findItem
Method to find the item in the menu structure
findItem(array needles = array()) : mixed
since |
3.1 |
---|
Arguments
- needles
array
Array of lookup values
Response
mixed
getCategoryRoute
Fetches the category route
getCategoryRoute(mixed catid, mixed language, string extension = '') : string
since |
3.2 |
---|---|
throws |
|
Arguments
- catid
mixed
Category ID or CategoryNode instance- language
mixed
Language code- extension
string
Extension to lookup
Response
string
getRoute
A method to get the route for a specific item
getRoute(int id, string typealias, string link = '', string language = null, int catid = null) : string
since |
3.1 |
---|
Arguments
- id
int
Value of the primary key for the item in its content table- typealias
string
The type_alias for the item being routed. Of the form extension.view.- link
string
The link to be routed- language
string
The language of the content for multilingual sites- catid
int
Optional category id
Response
string
The route of the item
lookupItem
Static alias to findItem() used to find the item in the menu structure
lookupItem(array needles = array()) : mixed
since |
3.2 |
---|
Arguments
- needles
array
Array of lookup values
Response
mixed