Back to Pathway class

Method setPathway

public array
setPathway
(mixed $pathway)
Set the Pathway items array.
Parameters
  • array $pathway An array of pathway objects.
Returns
  • array The previous pathway data.
Since
  • 1.5
Class: Pathway
Project: Joomla

Method setPathway - Source code

/**
 * Set the Pathway items array.
 *
 * @param   array  $pathway  An array of pathway objects.
 *
 * @return  array  The previous pathway data.
 *
 * @since   1.5
 */
public function setPathway($pathway)
{
    $oldPathway = $this->pathway;
    // Set the new pathway.
    $this->pathway = array_values((array) $pathway);
    return array_values($oldPathway);
}