API15

JPathway/setPathway

From Joomla! Documentation

< API15:JPathway

The "API15" 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[edit]

Set the JPathway items array.

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax[edit]

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

Returns[edit]

array The previous pathway data.

Defined in[edit]

libraries/joomla/application/pathway.php

Importing[edit]

jimport( 'joomla.application.pathway' );

Source Body[edit]

function setPathway($pathway)
{
        $oldPathway     = $this->_pathway;
        $pathway        = (array) $pathway;

        // Set the new pathway.
        $this->_pathway = array_values($pathway);

        return array_values($oldPathway);
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples[edit]

Code Examples[edit]