/** * Gets the type of a category (either "hidden" or "normal"). * * @param String $category * * @return String */ public static function getCategoryType($category) { if (!isset(self::$categoriesService)) { self::$categoriesService = new CategoriesService(); } $title = self::getCategoryTitle($category); $type = 'normal'; if (!empty($title)) { $text = $title->getDBKey(); if (self::$categoriesService->isCategoryHidden($text)) { $type = 'hidden'; } } return $type; }