/** * Getter/setter for activeMenu */ public static function activeMenu($menu = null) { if ($menu === null) { $activeMenu = self::$_activeMenu; } else { $activeMenu = $menu; } if (!array_key_exists($activeMenu, self::$_items)) { self::$_items[$activeMenu] = array(); } self::$_activeMenu = $activeMenu; return $activeMenu; }