function __construct($id) { //only BoardManager should be accessing addon_boards $indexData = BoardManager::getBoardIndexFromId($id); $this->id = $id; $this->name = $indexData["name"]; $this->icon = $indexData["icon"]; $this->subCategory = $indexData["subCategory"]; $this->numberOfAddons = $this->getCount(); }