game = "TM2"; $this->login = $serverLogin; $this->code = $dedimaniaCode; $this->version = ManiaControl::VERSION; $this->tool = "ManiaControl"; $this->path = $path; $this->packmask = $packmask; $this->serverVersion = $serverVersion->version; $this->serverBuild = $serverVersion->build; } public function toArray() { $array = array(); foreach(get_object_vars($this) as $key => $value) { if ($key == 'records' || $key == 'sessionId' || $key == 'directoryAccessChecked') { continue; } $array[ucfirst($key)] = $value; } return $array; } }