$navItem) { if ($navItem['navStart'] == $navStart && $navItem['navLink'] == $navLink) { $navStart = $navItem['navID']; self::$navigationPath[] = self::$activeNavID = $navItem['navID']; self::$header = $navItem['navHeader']; self::$headline = $navItem['navHeadline']; self::initContent($navItem['navContent']); } } } } /** * @param string $navContents */ protected static function initContent($navContents) { if (is_null($navContents)) { return; } if (is_array(json_decode($navContents, true))) { self::$contents = json_decode($navContents, true); } } /** * @return array */ public static function getNavigationPath() { return self::$navigationPath; } /** * @return int */ public static function getActiveNavID() { return self::$activeNavID; } /** * @return string */ public static function getHeader() { return self::$header; } /** * @return string */ public static function getHeadline() { return self::$headline; } /** * @return array */ public static function getContents() { return self::$contents; } /** * @return array */ public static function getData() { return self::$data; } }