Lines Matching refs:uri

329      * @param string $uri
332 function setBaseUri($uri) { argument
335 if ($uri[strlen($uri) - 1] !== '/')
336 $uri .= '/';
338 $this->baseUri = $uri;
365 $uri = $this->httpRequest->getRawServerValue('REQUEST_URI');
371 if ($pos = strpos($uri, '?'))
372 $uri = substr($uri, 0, $pos);
379 $decodedUri = URLUtil::decodePath($uri);
387 …throw new Exception('The REQUEST_URI (' . $uri . ') did not end with the contents of PATH_INFO (' …
561 * @param string $uri
565 function calculateUri($uri) { argument
567 if ($uri[0] != '/' && strpos($uri, '://')) {
569 $uri = parse_url($uri, PHP_URL_PATH);
573 $uri = Uri\normalize(str_replace('//', '/', $uri));
576 if (strpos($uri, $baseUri) === 0) {
578 return trim(URLUtil::decodePath(substr($uri, strlen($baseUri))), '/');
582 } elseif ($uri . '/' === $baseUri) {
588 …throw new Exception\Forbidden('Requested uri (' . $uri . ') is out of base uri (' . $this->getBase…
1072 * @param string $uri
1077 function createFile($uri, $data, &$etag = null) { argument
1079 list($dir, $name) = URLUtil::splitPath($uri);
1081 if (!$this->emit('beforeBind', [$uri])) return false;
1094 if (!$this->emit('beforeCreateFile', [$uri, &$data, $parent, &$modified])) return false;
1102 $this->emit('afterBind', [$uri]);
1103 $this->emit('afterCreateFile', [$uri, $parent]);
1113 * @param string $uri
1118 function updateFile($uri, $data, &$etag = null) { argument
1120 $node = $this->tree->getNodeForPath($uri);
1128 if (!$this->emit('beforeWriteContent', [$uri, $node, &$data, &$modified])) return false;
1132 $this->emit('afterWriteContent', [$uri, $node]);
1142 * @param string $uri
1145 function createDirectory($uri) { argument
1147 $this->createCollection($uri, new MkCol(['{DAV:}collection'], []));
1154 * @param string $uri The new uri
1158 function createCollection($uri, MkCol $mkCol) { argument
1160 list($parentUri, $newName) = URLUtil::splitPath($uri);
1188 if (!$this->emit('beforeBind', [$uri])) return;
1218 $this->emit('propPatch', [$uri, $mkCol]);
1226 'href' => $uri,
1241 $this->emit('afterBind', [$uri]);
1465 $uri = $ifCondition['uri'];
1483 $node = $this->tree->getNodeForPath($uri);
1499 …ew Exception\PreconditionFailed('Failed to find a valid token/etag combination for ' . $uri, 'If');