Sports_Bench_Game

Type

Classes

Section

Games

Sports Bench core class to implement the Sports Bench Game object.

Attributes

  • $game_id, integer, the id of the game
  • $game_week, integer, the week of the game
  • $game_season, string, the season the game is in
  • $game_day, string, the date of the game
  • $game_home_id, integer, the id of home team
  • $game_home_final, integer, the final score for the home team
  • $game_away_id, integer, the id of the away team
  • $game_away_final, integer, the final score for the away team
  • $game_attendance, integer, the attendance of the game
  • $game_status, string, the link to the preview of the game
  • $game_current_time, string, the current time in the game
  • $game_current_period, string, the current period/quarter/inning the game is currently in
  • $game_current_home_score, integer, the current score for the home team
  • $game_current_away_score, integer, the current score for the away team
  • $preview_link, string, the link to the preview of the game
  • $recap_link, string, the link to the recap of the game
  • $game_neutral_site, integer, whether the game is at a neutral site or not
  • $game_location_stadium, string, the stadium for the game
  • $game_location_line_one, string, the first line of the address for the stadium for the game
  • $game_location_line_two, string, the second line of the address for the stadium for the game
  • $game_location_city, string, the city that the stadium for the game is in
  • $game_location_state, string, the state that the stadium for the game is in
  • $game_location_country, string, the country that the stadium for the game is in
  • $game_location_zip_code, string, the zip code that the stadium for the game is in

Constructor

  • Accepts $game_id, integer, parameter
  • Creates the Sports Bench Game object

Class Methods

Since: 1.0

Source: sports-bench-game.php, line 17