Skip to content
Keramat Jokar edited this page May 13, 2024 · 1 revision

How to access the realms object

$this->realms->method();

[Array] getRealms()

Get the realm objects

[Object] getRealm($id)

Get one specific realm object

$id

[Boolean] realmExists($id)

Check if there's a realm with the specified ID

$id

getTotalCharacters([$account])

Get the total amount of characters owned by one account

(Optional) $account

[Array] getAllianceRaces()

Get the alliance race IDs

[Array] getHordeRaces()

Get the horde race IDs

[String] getRace($id)

Get the name of a race

Int $id

[String] getClass($id)

Get the name of a class

Int $id

[String] getZone($zoneId)

Get the zone name by zone ID

Int $zoneId

getEmulator()

Load the general emulator, from the first realm

getExpansions()

Get enabled expansions

[String] formatAvatarPath($character)

Format an avatar path as in Class-Race-Gender-Level

$character