Pathway
Class to maintain a pathway.
The user's navigated path within the application.
since |
1.5 |
---|
Methods
__construct
Class constructor
__construct(array $options = array())
since |
1.5 |
---|
Arguments
- $options
array
The class options.
_makeItem
Create and return a new pathway object.
_makeItem(string $name, string $link) : \Joomla\CMS\Pathway\Pathway
since |
1.5 |
---|---|
deprecated |
4.0 Use makeItem() instead |
Arguments
- $name
string
Name of the item- $link
string
Link to the item
Response
\Joomla\CMS\Pathway\Pathway
Pathway item object
addItem
Create and add an item to the pathway.
addItem(string $name, string $link = '') : boolean
since |
1.5 |
---|
Arguments
- $name
string
The name of the item.- $link
string
The link to the item.
Response
boolean
True on success
getInstance
Returns a Pathway object
getInstance(string $client, array $options = array()) : \Joomla\CMS\Pathway\Pathway
since |
1.5 |
---|---|
throws |
|
Arguments
- $client
string
The name of the client- $options
array
An associative array of options
Response
\Joomla\CMS\Pathway\Pathway
A Pathway object.
getPathway
Return the Pathway items array
getPathway() : array
since |
1.5 |
---|
Response
array
Array of pathway items
getPathwayNames
Create and return an array of the pathway names.
getPathwayNames() : array
since |
1.5 |
---|
Response
array
Array of names of pathway items
makeItem
Create and return a new pathway object.
makeItem(string $name, string $link) : \Joomla\CMS\Pathway\Pathway
since |
3.1 |
---|
Arguments
- $name
string
Name of the item- $link
string
Link to the item
Response
\Joomla\CMS\Pathway\Pathway
Pathway item object
setItemName
Set item name.
setItemName(integer $id, string $name) : boolean
since |
1.5 |
---|
Arguments
- $id
integer
The id of the item on which to set the name.- $name
string
The name to set.
Response
boolean
True on success
setPathway
Set the Pathway items array.
setPathway(array $pathway) : array
since |
1.5 |
---|
Arguments
- $pathway
array
An array of pathway objects.
Response
array
The previous pathway data.
Properties
_pathway
Array to hold the pathway item objects
since |
1.5 |
---|---|
deprecated |
4.0 Will convert to $pathway |
Type(s)
array
_count
Integer number of items in the pathway
since |
1.5 |
---|---|
deprecated |
4.0 Will convert to $count |
Type(s)
integer
instances
JPathway instances container.