Sports_Bench_Team
Type
Classes
Section
Teams
Sports Bench core class to implement the Sports Bench Team object.
Attributes
- $team_id, integer, the id of the team
- $team_name, string, the team’s name
- $team_location, string, the location of the team
- $team_nickname, string, the team’s nickname
- $team_abbreviation, string, the team’s abbreviation
- $team_active, string, the team’s active status
- $team_location_line_one, string, the first line of the address for the team
- $team_location_line_two, string, the second line of the address for the team
- $team_city, string, the city the team plays in
- $team_state, string, the state the team plays in
- $team_location_country, string, the country the team plays in
- $team_location_zip_code, string, the zip code the team plays in
- $team_stadium, string, the stadium the team plays in
- $team_stadium_capacity, integer, the capacity of the team’s stadium
- $team_head_coach, string, the current head coach of the team
- $team_logo, string, the url for the team’s logo
- $team_photo, string, the url for the team’s photo
- $team_division, integer, the id of the division or conference the team plays in
- $team_primary_color, string, the hexadecimal color value for the team’s primary color
- $team_secondary_color, string, the hexadecimal color value for the team’s secondary color
- $team_slug, string, the slug for the team for url purposes
Constructor
- Accepts $team_id, integer, parameter
- Creates the Sports Bench Team object
Class Methods
- get_games_played
- get_wins
- get_losses
- get_draws
- get_overtime_losses
- get_record
- get_win_percentage
- get_home_record
- get_road_record
- 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_schedule
- get_recent_results
- get_upcoming_schedule
- get_alltime_wins
- get_alltime_losses
- get_alltime_draws
- get_alltime_record
- get_roster
- get_team_photo
- get_average_attendance
- get_permalink
- get_division_name
- get_years
Since: 1.0
Source: sports-bench-team.php, line 15