API16

JPathway/setPathway: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 4: Line 4:




{{subst:Description:JPathway/setPathway}}
 


===Syntax===
===Syntax===
Line 43: Line 43:




{{subst:SeeAlso:JPathway/setPathway}}
 


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=setPathway
  category=setPathway
  category=JPathway
  category=JPathway
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 01:58, 25 March 2017

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