Actions

API16

JPathway/setPathway

< API16:JPathway

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description

Set the JPathway items array.



Syntax

setPathway($pathway)
Parameter Name Default Value Description
$pathway $pathway An array of pathway objects.

Returns

array The previous pathway data.

Defined in

libraries/joomla/application/pathway.php

Importing

jimport( 'joomla.application.pathway' );

Source Body

function setPathway($pathway)
{
        $oldPathway     = $this->_pathway;
        $pathway        = (array) $pathway;
 
        // Set the new pathway.
        $this->_pathway = array_values($pathway);
 
        return array_values($oldPathway);
}



Examples

Code Examples


Advertisement