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

Since: 1.0

Source: sports-bench-team.php, line 15