/** * creates a client object in $this->client * @param string client id * @return boolean */ function newClient($a_client_id = 0) { if (!$this->isInstalled()) { return false; } $this->client = new ilClient($a_client_id, $this->db_connections); if (!$this->client->init()) { //echo "<br>noclientinit"; $this->error = get_class($this) . ": " . $this->client->getError(); $_SESSION["ClientId"] = ""; return false; } $_SESSION["ClientId"] = $a_client_id; return true; }