public static function getTeamsBy($type = null, $value = null) { // Returns User objects whose $type field has value $value $teamRows = TeamDB::getTeamRowSetsBy($type, $value); return TeamDB::getTeamsArray($teamRows); }