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