Lines Matching defs:path

87      * if any in wiki path syntax
150 private Path $path;
166 * @param Path $path - path mandatory because it's the path of fetch and it's the storage format
169 private function __construct(Path $path)
171 $this->path = $path;
188 $path = self::getInternalPathFromNameAndExtension($componentId, $type);
189 return Snippet::createSnippetFromPath($path)
234 * @param WikiPath $path - a local path of the snippet (if the path does not exist, a remote url should be given)
237 public static function createSnippet(Path $path): Snippet
239 return new Snippet($path);
256 public static function createSnippetFromPath(WikiPath $path): Snippet
258 return new Snippet($path);
263 * @param Path $localSnippetPath - the path is the snippet identifier (it's not mandatory that the snippet is locally available
309 // not a wiki path
320 // not a wiki path
354 * @param string $wikiPath - the wiki path should be absolute relative to the library namespace
369 * should create the snippet via the {@link Snippet::getOrCreateFromLibraryNamespace() local path}
380 $messageFormat = "The following url ($url) does not have a file name. To create a snippet from a remote url, the url should have a path where the last is the name of the library file.";
390 $messageFormat = "The url has a file name ($libraryName) that does not have any extension. To create a snippet from a remote url, the url should have a path where the last is the name of the library file. ";
472 $path = $this->getPath();
473 return FileSystems::getContent($path);
478 return $this->path;
512 return $this->path->toUriString();
522 if ($this->path->getExtension() === self::EXTENSION_CSS) {
528 // no path extension
638 return $this->path->getExtension();
676 $fileExists = FileSystems::exists($this->path);
696 LogUtility::internalError("The snippet ($this) is not a inline script, it has a path ($this->path) that does not exists and does not have any external url.");
708 $path = WikiPath::createFromPathObject($this->path);
709 return FetcherRawLocalPath::createFromPath($path)->getFetchUrl();
852 LogUtility::internalError("The snippet ($this) does not have content defined (the path does not exist, no inline content and no remote url)", self::CANONICAL);
1149 * If is not a wiki path