Lines Matching refs:path
40 list($host, $path) = explode('/', $url, 2);
43 $path = false === strpos($path, '/') ? '' : dirname($path);
44 $path .= '/';
51 $path = str_repeat('../', substr_count($targetPath, '/'));
53 $path = dirname($sourcePath).'/';
55 $path = '';
59 $path .= '../';
62 $path .= '../';
66 $path .= ltrim(substr(dirname($sourcePath).'/', strlen($targetDir)), '/');
70 … $content = $this->filterReferences($asset->getContent(), function ($matches) use ($host, $path) {
83 while (0 === strpos($url, '../') && 2 <= substr_count($path, '/')) {
84 $path = substr($path, 0, strrpos(rtrim($path, '/'), '/') + 1);
89 foreach (explode('/', $host.$path.$url) as $part) {