26 $this->helper =
new Helper();
30 if ($this->userId && RequestLogger::isEnabled())
32 $this->logger =
new RequestLogger($this->userId, $this->helper::ACCOUNT_TYPE);
46 array $properties =
null,
51 $this->davClient->Connect();
52 $result = $this->davClient->Propfind(
59 $this->davClient->Disconnect();
61 if (!$result || $this->davClient->getError())
66 return $result->GetBodyXml();
75 public function proppatch(
string $url,
string $data)
77 $this->davClient->Connect();
78 $data = $this->davClient->Decode($data);
79 $result = $this->davClient->Proppatch($url, $data, $this->logger);
80 $this->davClient->Disconnect();
87 return $result->GetStatus();
96 public function mkcol(
string $url,
string $data)
98 $this->davClient->Connect();
99 $data = $this->davClient->Decode($data);
100 $result = $this->davClient->Mkcol($url, $data, $this->logger);
101 $this->davClient->Disconnect();
108 return $result->GetStatus();
116 public function delete(
string $url)
118 $this->davClient->Connect();
119 $result = $this->davClient->Delete($url, $this->logger);
120 $this->davClient->Disconnect();
127 return $result->GetStatus();
136 public function put(
string $url,
string $data)
138 $this->davClient->Connect();
139 $data = $this->davClient->Decode($data);
140 $result = $this->davClient->Put($url, $data, $this->logger);
141 $this->davClient->Disconnect();
148 return $result->GetStatus();
__construct(\CDavGroupdavClientCalendar $davClient, int $userId=null)
mkcol(string $url, string $data)
CDavGroupdavClientCalendar $davClient
put(string $url, string $data)
propfind(string $url, array $properties=null, array $filter=null, int $depth=1)
proppatch(string $url, string $data)