public function getConf($id = null) { if ($id === null) { return $this->conf; } else { if (isset($this->conf[$id]) && isset($this->conf[$id]['properties'])) { return $this->conf[$id]['properties']; } return null; } }