/** * Get all the teams in the database that are not disabled or deleted * * @return Team[] An array of Team IDs */ public static function getTeams() { return self::arrayIdToModel(parent::fetchIdsFrom("status", array("disabled", "deleted"), "s", true, "ORDER BY elo DESC")); }
/** * Get all the players in the database that have an active status * @return Player[] An array of player BZIDs */ public static function getPlayers() { return self::arrayIdToModel(parent::fetchIdsFrom("status", array("active", "test"), "s", false)); }