|
| $JSON =NULL |
| The JSON assoc array containing the game's info. More...
|
|
| $XML =NULL |
| The XML Object containing the game's info. More...
|
|
- Todo:
- docs
- Author
- Daniel Silva mail@.nosp@m.dann.nosp@m.yps.n.nosp@m.et
- Warning
- Instantiating this class may result in additional loading time for the user as some content may need to be fetched from the steam servers.
App IDs are positive integers associated with the respective game. Here's an example table.
ID | Name |
10 | Counter-Strike (1.6) |
220 | Half-Life 2 |
240 | Counter-Strike: Source |
400 | Portal |
306490 | Railroad Pioneer |
Reference: https://developer.valvesoftware.com/wiki/Steam_Application_IDs
Internal Representation
Games are a though one. Steam gives us information in both the XML and JSON formats, and different information in each one of these. We
◆ __construct()
Dannyps\Steam\SteamGame::__construct |
( |
|
$id | ) |
|
- Parameters
-
$id | a Steam Appplication ID, the XML resultant of a previous query, or a game name. |
- Exceptions
-
◆ __constructFromAppID()
Dannyps\Steam\SteamGame::__constructFromAppID |
( |
|
$id | ) |
|
|
private |
◆ __constructFromAppName()
Dannyps\Steam\SteamGame::__constructFromAppName |
( |
|
$name | ) |
|
|
private |
- Todo:
- docs
- Exceptions
-
Exception | AppName not yet supported. |
◆ __constructFromXML()
Dannyps\Steam\SteamGame::__constructFromXML |
( |
|
$xml | ) |
|
|
private |
◆ getGameName()
Dannyps\Steam\SteamGame::getGameName |
( |
| ) |
|
◆ getJSON()
Dannyps\Steam\SteamGame::getJSON |
( |
| ) |
|
|
private |
get the JSON content from the steam API, if we don't have it already.
◆ $JSON
Dannyps\Steam\SteamGame::$JSON =NULL |
|
private |
The JSON assoc array containing the game's info.
◆ $XML
Dannyps\Steam\SteamGame::$XML =NULL |
|
private |
The XML Object containing the game's info.
The documentation for this class was generated from the following file: