Lines Matching refs:path

86         foreach ($paths as $path) {
87 $this->addPath($path, $namespace);
94 * @param string $path A path where to look for templates
99 public function addPath($path, $namespace = self::MAIN_NAMESPACE) argument
104 $checkPath = $this->isAbsolutePath($path) ? $path : $this->rootPath.$path;
106 … throw new LoaderError(sprintf('The "%s" directory does not exist ("%s").', $path, $checkPath));
109 $this->paths[$namespace][] = rtrim($path, '/\\');
115 * @param string $path A path where to look for templates
120 public function prependPath($path, $namespace = self::MAIN_NAMESPACE) argument
125 $checkPath = $this->isAbsolutePath($path) ? $path : $this->rootPath.$path;
127 … throw new LoaderError(sprintf('The "%s" directory does not exist ("%s").', $path, $checkPath));
130 $path = rtrim($path, '/\\');
133 $this->paths[$namespace][] = $path;
135 array_unshift($this->paths[$namespace], $path);
141 if (null === ($path = $this->findTemplate($name)) || false === $path) {
145 return new Source(file_get_contents($path), $name, $path);
150 if (null === ($path = $this->findTemplate($name)) || false === $path) {
154 if (0 === strncmp($this->rootPath, $path, $len)) {
155 return substr($path, $len);
158 return $path;
169 return null !== ($path = $this->findTemplate($name, false)) && false !== $path;
175 if (null === ($path = $this->findTemplate($name)) || false === $path) {
179 return filemtime($path) < $time;
230 foreach ($this->paths[$namespace] as $path) {
231 if (!$this->isAbsolutePath($path)) {
232 $path = $this->rootPath.$path;
235 if (is_file($path.'/'.$shortname)) {
236 if (false !== $realpath = realpath($path.'/'.$shortname)) {
240 return $this->cache[$name] = $path.'/'.$shortname;