示例#1
0
 private function clearRequest()
 {
     OCA_mozilla_sync\OutputData::$outputBuffer = '';
     OCA_mozilla_sync\Utils::$requestMethod = 'GET';
     OCA_mozilla_sync\Utils::$lastStatus = OCA_mozilla_sync\Utils::STATUS_OK;
 }
示例#2
0
 private function deleteUser()
 {
     $this->clearRequest();
     OCA_mozilla_sync\Utils::$requestMethod = 'DELETE';
     $_SERVER['PHP_AUTH_USER'] = $this->userHash;
     $_SERVER['PHP_AUTH_PW'] = $this->password;
     $urlParser = new OCA_mozilla_sync\UrlParser('/1.0/' . $this->userHash);
     $userService = new OCA_mozilla_sync\UserService($urlParser);
     $userService->run();
 }