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);
185 * @param string $tempLocation
188 function httpGet(RequestInterface $request, ResponseInterface $hR, $tempLocation) { argument
190 if (!file_exists($tempLocation)) return;
193 $hR->setHeader('Content-Length', filesize($tempLocation));
196 $hR->setBody(fopen($tempLocation, 'r'));
206 * @param string $tempLocation
209 function httpPut(RequestInterface $request, ResponseInterface $hR, $tempLocation) { argument
213 $newFile = !file_exists($tempLocation);
219 file_put_contents($tempLocation, $this->server->httpRequest->getBody());
233 * @param string $tempLocation
236 function httpDelete(RequestInterface $request, ResponseInterface $hR, $tempLocation) { argument
238 if (!file_exists($tempLocation)) return;
240 unlink($tempLocation);
256 * @param string $tempLocation
259 function httpPropfind(RequestInterface $request, ResponseInterface $hR, $tempLocation) { argument
261 if (!file_exists($tempLocation)) return;
270 …AV:}getlastmodified' => new Xml\Property\GetLastModified(filemtime($tempLocation)),
271 '{DAV:}getcontentlength' => filesize($tempLocation),