Team
Used to create a Team object in the Sports Bench Plugin.
To create a new series object, you’ll need to use the Sports_Bench\Classes\Base\
namespace and then use Team
new Team( $team_selector )
. If you’re using the team_id to create the team object, you must place (int) before the id number.
Properties
- $team_id
- $team_name
- $team_location
- $team_nickname
- $team_abbreviation
- $team_active
- $team_location_line_one
- $team_location_line_two
- $team_city
- $team_state
- $team_location_country
- $team_location_zip_code
- $team_stadium
- $team_stadium_capacity
- $team_head_coach
- $team_logo
- $team_photo
- $team_division
- $team_primary_color
- $team_secondary_color
- $team_slug
Class Methods
- Team::get_team_id
- get_team_name
- get_team_location
- get_team_nickname
- get_team_abbreviation
- get_team_status
- get_team_location_line_one
- get_team_location_line_two
- get_team_city
- get_team_state
- get_team_location_country
- get_team_location_zip_code
- get_team_stadium
- get_team_stadium_capacity
- get_team_head_coach
- get_team_logo_url
- get_team_photo_url
- get_team_division
- get_team_primary_color
- get_team_secondary_color
- get_team_slug
- Team::update
- get_games_played
- get_division_name
- get_team_photo
- get_permalink
- get_schedule
- get_wins
- get_losses
- get_draws
- get_overtime_losses
- get_record
- get_win_percentage
- get_roster
- get_recent_results
- get_upcoming_schedule
- get_points_for
- get_points_against
- get_point_differential
- get_division_wins
- get_division_losses
- get_division_draws
- get_division_record
- get_conference_wins
- get_conference_losses
- get_conference_draws
- get_conference_record
- get_home_record
- get_road_record
- get_alltime_wins
- get_alltime_losses
- get_alltime_draws
- get_alltime_record
- get_average_attendance
- get_years
- get_team_season_stats
Parameters
- string|int $team_selector — The team slug or id needed to create the team object.
Since: 2.0
Source
- /includes/classes/base/class-team.php — 37