static function fetchPartByIdentifier($identifier) { $parts = eZNavigationPart::fetchList(); if (isset($parts[$identifier])) { return $parts[$identifier]; } // Return the first part which is the default if (isset($parts[0])) { return $parts[0]; } return false; }
public static function fetchNavigationParts() { return array('result' => eZNavigationPart::fetchList()); }