Back to Pathway class

Method getPathwayNames

public array
getPathwayNames
()
Create and return an array of the pathway names.
Returns
  • array Array of names of pathway items
Since
  • 1.5
Class: Pathway
Project: Joomla

Method getPathwayNames - Source code

/**
 * Create and return an array of the pathway names.
 *
 * @return  array  Array of names of pathway items
 *
 * @since   1.5
 */
public function getPathwayNames()
{
    $names = array();
    // Build the names array using just the names of each pathway item
    foreach ($this->pathway as $item) {
        $names[] = $item->name;
    }
    // Use array_values to reset the array keys numerically
    return array_values($names);
}