示例#1
0
 function connect($url, $username, $password, $options)
 {
     // TODO: Make this work with cookies
     $this->url = $url;
     $this->username = $username;
     $this->password = $password;
     $this->auth_options = $options;
     $this->authenticated = false;
     $retval = $this->doGet($this->url);
     if ($retval->code == 200 || $retval->code == 201) {
         $this->authenticated = true;
         $this->workspace = CMISRepositoryWrapper::extractWorkspace($retval->body);
     }
 }