Useful functions to convert SteamIDs and extract information from Steam about Users.
There are several representations for steam IDs. Check them out at steamIDFormats.
You can also use the customURL nick defined by the user. (e.g. http://steamcommunity.com/id/nick
)
More...
|
| getXML () |
| get the XML content from the steam Servers, if we don't have it already. More...
|
|
| getXMLbyURLnick ($nick) |
| get the XML content from the steam Servers, if we don't have it already, but do it using the user's customURL. More...
|
|
|
| $XML =NULL |
| The XML content corresponding to the user's page. More...
|
|
Useful functions to convert SteamIDs and extract information from Steam about Users.
There are several representations for steam IDs. Check them out at steamIDFormats.
You can also use the customURL nick defined by the user. (e.g. http://steamcommunity.com/id/nick
)
- Author
- Daniel Silva mail@.nosp@m.dann.nosp@m.yps.n.nosp@m.et
- Warning
- Instantiating this class will result in additional loading time for the user as an XML will be fetched from the steam servers.
◆ __construct()
Dannyps\Steam\SteamUser::__construct |
( |
|
$id | ) |
|
- Parameters
-
$id | a steamID in any of the three formats supported, or the customURL nick. |
- Exceptions
-
◆ getCustomURL()
Dannyps\Steam\SteamUser::getCustomURL |
( |
|
$full = TRUE | ) |
|
- Returns
- the customURL for this user.
- Parameters
-
bool | $full | whether the returned URL should contain the text "https://steamcommunity.com/id/" or not (thus not being an URL). |
◆ getGroups()
Dannyps\Steam\SteamUser::getGroups |
( |
| ) |
|
◆ getHeadline()
Dannyps\Steam\SteamUser::getHeadline |
( |
| ) |
|
- Returns
- the user's Headline
◆ getHoursPlayedInLast2Weeks()
Dannyps\Steam\SteamUser::getHoursPlayedInLast2Weeks |
( |
|
$original = true | ) |
|
◆ getLocation()
Dannyps\Steam\SteamUser::getLocation |
( |
| ) |
|
- Returns
- the user's Location
◆ getMemberSince()
Dannyps\Steam\SteamUser::getMemberSince |
( |
|
$timestamp = FALSE | ) |
|
- Returns
- the date when the account was created.
- Parameters
-
bool | $timestamp | whether the output should be a timestamp, or the steam representation of the date. |
◆ getMostPlayedGames()
Dannyps\Steam\SteamUser::getMostPlayedGames |
( |
| ) |
|
- Todo:
- docs
- Returns
- false if unknown, steamGame array otherwise.
◆ getPrimaryGroupId()
Dannyps\Steam\SteamUser::getPrimaryGroupId |
( |
| ) |
|
◆ getPrimaryGroupName()
Dannyps\Steam\SteamUser::getPrimaryGroupName |
( |
| ) |
|
◆ getPrivacyState()
Dannyps\Steam\SteamUser::getPrivacyState |
( |
| ) |
|
- Returns
- the privacy state of the profile. Either
public
or private
.
◆ getRealName()
Dannyps\Steam\SteamUser::getRealName |
( |
| ) |
|
- Returns
- the user's Real Name
◆ getStateMessage()
Dannyps\Steam\SteamUser::getStateMessage |
( |
| ) |
|
- Returns
- the state message.
◆ getSteamName()
Dannyps\Steam\SteamUser::getSteamName |
( |
| ) |
|
- Returns
- the name of the user.
◆ getSummary()
Dannyps\Steam\SteamUser::getSummary |
( |
| ) |
|
- Returns
- the user's Summary
◆ getVisibilityState()
Dannyps\Steam\SteamUser::getVisibilityState |
( |
| ) |
|
◆ getXML()
Dannyps\Steam\SteamUser::getXML |
( |
| ) |
|
|
private |
get the XML content from the steam Servers, if we don't have it already.
◆ getXMLbyURLnick()
Dannyps\Steam\SteamUser::getXMLbyURLnick |
( |
|
$nick | ) |
|
|
private |
get the XML content from the steam Servers, if we don't have it already, but do it using the user's customURL.
◆ isOnline()
Dannyps\Steam\SteamUser::isOnline |
( |
| ) |
|
bool
- Returns
- whether the user is online.
◆ refresh()
Dannyps\Steam\SteamUser::refresh |
( |
| ) |
|
Forces an update of the XML information currently cached.
◆ $XML
Dannyps\Steam\SteamUser::$XML =NULL |
|
private |
The XML content corresponding to the user's page.
The documentation for this class was generated from the following file: