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; }