/**
  * Get the player types available for filtering, and if a player type parameter is in the query string apply player type filter
  * @param StatisticsManager $statistics_manager
  * @return Array containing player types, current player type id, and text for filter description
  */
 public static function SupportPlayerTypeFilter(StatisticsManager $statistics_manager)
 {
     require_once "stoolball/player-type.enum.php";
     $player_types = array(PlayerType::LADIES, PlayerType::MIXED, PlayerType::GIRLS, PlayerType::JUNIOR_MIXED);
     $filter_data = array($player_types, null, "");
     if (isset($_GET['player-type']) and is_numeric($_GET['player-type'])) {
         if (in_array($_GET['player-type'], $player_types)) {
             $statistics_manager->FilterByPlayerType(array((int) $_GET['player-type']));
             $filter_data[1] = (int) $_GET['player-type'];
             $filter_data[2] .= "in " . strtolower(PlayerType::Text((int) $_GET['player-type'])) . " matches ";
         }
     }
     return $filter_data;
 }