Lines Matching refs:tempLocation
112 if (!$tempLocation = $this->isTempFile($request->getPath()))
117 return $this->httpGet($request, $response, $tempLocation);
119 return $this->httpPut($request, $response, $tempLocation);
121 return $this->httpPropfind($request, $response, $tempLocation);
123 return $this->httpDelete($request, $response, $tempLocation);
188 * @param string $tempLocation
191 function httpGet(RequestInterface $request, ResponseInterface $hR, $tempLocation) { argument
193 if (!file_exists($tempLocation)) return;
196 $hR->setHeader('Content-Length', filesize($tempLocation));
199 $hR->setBody(fopen($tempLocation, 'r'));
209 * @param string $tempLocation
212 function httpPut(RequestInterface $request, ResponseInterface $hR, $tempLocation) { argument
216 $newFile = !file_exists($tempLocation);
222 file_put_contents($tempLocation, $this->server->httpRequest->getBody());
236 * @param string $tempLocation
239 function httpDelete(RequestInterface $request, ResponseInterface $hR, $tempLocation) { argument
241 if (!file_exists($tempLocation)) return;
243 unlink($tempLocation);
259 * @param string $tempLocation
262 function httpPropfind(RequestInterface $request, ResponseInterface $hR, $tempLocation) { argument
264 if (!file_exists($tempLocation)) return;
273 …AV:}getlastmodified' => new Xml\Property\GetLastModified(filemtime($tempLocation)),
274 '{DAV:}getcontentlength' => filesize($tempLocation),