function __construct($region, $realm) { $this->region = strtolower($region); $this->realm = $realm; $jsonConnect = new jsonConnect(); $this->auctionHouseData = $jsonConnect->getAuctionHouse($this->realm, $this->region); }
function __construct($region, $itemID) { $this->region = $region; $jsonConnect = new jsonConnect(); $this->itemData = $jsonConnect->getItem($itemID, $region); $this->name = $this->itemData['name']; $this->icon = $this->itemData['icon'] . $this->icon_extension; }
function __construct($region, $realm, $teamsize, $teamname) { $this->region = $region; $this->realm = $realm; $this->size = $teamsize; $this->teamname = $teamname; $jsonConnect = new jsonConnect(); $this->data = $jsonConnect->getArenaTeam($region, $realm, $teamsize, $teamname, $this->fields); $this->teamname = $this->data['name']; }
function __construct($id_list, $type, $region) { $jsonConnect = new jsonConnect(); $this->data = $jsonConnect->getAchievements($region, $id_list, $type); $count = count($this->data); for ($i = 0; $i < $count; $i++) { $this->datas[$this->data[$i]['id']] = $this->data[$i]; } #print_r($this->datas); }
function __construct($region) { $jsonConnect = new jsonConnect(); $data = $jsonConnect->getRaces($region); $count = count($data['races']); for ($i = 0; $i < $count; $i++) { $this->datas[$data['races'][$i]['id']] = $data['races'][$i]; } $data = null; }
function __construct($region, $realm, $name) { $this->region = strtolower($region); $this->realm = $realm; $this->name = $name; $jsonConnect = new jsonConnect(); $this->guildData = $jsonConnect->getGuild($name, $realm, $region, implode(",", $this->fields)); if ($this->isValid()) { $this->perks = new Perks($region, $this->guildData['level']); $this->setThumbnails(); } #print_r($this->guildData); }
function __construct($region, $guildlevel) { $jsonConnect = new jsonConnect(); $data = $jsonConnect->getPerks($region); $count = count($data['perks']); for ($i = 0; $i < $count; $i++) { $this->datas[$data['perks'][$i]['guildLevel']] = $data['perks'][$i]; $this->datas[$data['perks'][$i]['guildLevel']]['wowhead'] = $GLOBALS['wowarmory']['urls']['perk'] . '=' . $data['perks'][$i]['spell']['id']; } $this->guildlevel = $guildlevel; $data = null; $jsonConnect = null; }
/** * Enter description here ... * @param String $region * @param String $realm * @param String $character * @param Array $ignoreFields An array with all the fields that should not be loaded. Main consumers are quests and achievements - array('quests','achievements') * @return Returns FALSE if the character is not valid. */ function __construct($region, $realm, $character, $ignoreFields = FALSE) { if ($ignoreFields != FALSE) { $this->excludeFields($ignoreFields); } $this->region = strtolower($region); $this->realm = $realm; $this->name = $character; $jsonConnect = new jsonConnect(); $this->characterData = $jsonConnect->getCharacter($character, $realm, $region, implode(",", $this->fields)); if ($this->characterData != FALSE) { $this->name = $this->characterData['name']; $this->setTalentTreeSelected(); $this->race = new Races($region); $this->class = new Classes($region); } else { return FALSE; } return TRUE; }
function __construct($region) { $this->region = strtolower($region); $jsonConnect = new jsonConnect(); $this->realmData = $jsonConnect->getRealms($this->region); }
function __construct($region, $id) { $jsonConnect = new jsonConnect(); $this->datas = $jsonConnect->getQuest($region, $id); $jsonConnect = null; }