Actions

API15

JPathway/setPathway

From Joomla! Documentation

< API15:JPathway
Revision as of 16:53, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Set the JPathway items array.

[Edit Descripton]

Description:JPathway/setPathway

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);
}

[Edit See Also] SeeAlso:JPathway/setPathway

Examples

<CodeExamplesForm />