getAvatar()
Returns user's avatar.
Returns:
string
Returns file name NOT url.
Usage:
$avatar = $user->getAvatar();
Call getUserData first!
getDiscordId()
Returns user's discordid.
Returns:
string
User discordid returned. If does not have connected account returns blank.
Usage:
$discordid = $user->getDiscordId();
Call getUserData first!
getLoginMethod()
Returns user's login method.
Returns:
string
User login method returned. Format: google_id
Usage:
$method = $user->getLoginMethod();
Call getUserData first!
getName()
Returns user's name.
Returns:
string
User name returned, in htmlspecialcharacters format.
Usage:
$name = $user->getName();
Call getUserData first!
getPrimePackage()
Gets the Streamline Infinity package the user has.
Returns:
string
Returns the package name defined in manifest.php
Usage:
$p = $user->getPrimePackage();
getServiceSetting($service,$setting)
Gets user's service setting status.
Returns:
array
json_decode to get most use.
Usage:
$r = $user->getServiceSetting('myttt','loadingMusic');
getSteamId()
Returns user's steamid.
Returns:
string
User steamid returned. If does not have connected account returns blank. Format: STEAM:00:00000
Usage:
$steamid = $user->getSteamId();
Call getUserData first!
getTokens()
Returns user's tokens.
More token functions in tokenManager
Returns:
integer
User tokens returned. To get Simoleons divide by 100.
Usage:
$tokens = $user->getTokens();
Call getUserData first!
getUserId()
Returns user's ID
Returns:
string
User ID returned.
Usage:
$userId = $user->getUserId();
Call getUserData first!
hasPrime()
Gets User's prime status.
Returns:
boolean
True if has, false if not.
Usage:
$user->hasPrime();
isInsider()
Gets User's insider status.
Returns:
boolean
True if has, false if not.
Usage:
$user->isInsider();
isSuspended()
Gets user's account status.
Returns:
boolean
True if suspended, false if not.
Usage:
$user->isSuspended();
setUser($authToken)
Sets internal class var $user
$user not same as global $user declaration.
Usage:
$user->setUser($token);
setUserData()
Sets internal class var $data.
This function must be called to acess Get Functions.
Returns:
nothing
Sets data but does not return.
Usage:
$user->setUserData();
Internal $user must be set before use.
setUserWithID($id)
Sets internal class var $user through direct ID.
$user not same as global $user declaration.
Usage:
$id = '27'; $user->setUserWithID($id);
setUserWithSteam($steamid)
Sets internal class var $user through direct SteamID.
$user not same as global $user declaration.
Returns:
boolean
True if account found, false if not.
Usage:
$steamid = 'STEAM:00:00000'; $user->setUserWithSteam($steamid);
updateServiceSetting($service,$setting,$message)
Updates User's service setting in DB.
If does not exists creates new message.
Returns:
nothing
Sets DB message to specified.
Usage:
$user->updateServiceSetting('myttt','loadingMusic','true');