public function __construct($id = NULL, $name = NULL, $alliance_id = NULL, $race = NULL) { $this->id = $id; $this->name = $name; $this->alliance = Alliance::dbGet($alliance_id); $this->race = $race; $this->artefacts = Artefact::dbGet($this->{$id}); }