public function getMode() { if (!$this->version) { $this->version = $this->config['version']; } return $this->version; }