Lines Matching defs:page
11 * http://host/lib/exe/fetch.php?media=id:of:page.png&drive=page-vignette
13 * * 'id:of:page' is the page wiki id
17 * http://combo.nico.lan/lib/exe/fetch.php?media=howto:getting_started:getting_started.png&drive=page-vignette
18 * http://combo.nico.lan/lib/exe/fetch.php?media=howto:howto.webp&drive=page-vignette
44 private ?MarkupPath $page = null;
55 * @throws ExceptionNotFound - if the page does not exists
56 * @throws ExceptionBadArgument - if the mime is not supported or the path of the page is not a wiki path
58 public static function createForPage(MarkupPath $page, Mime $mime = null): FetcherVignette
61 $fetcherVignette->setPage($page);
84 $cache->addFileDependency($this->page->getPathObject())
135 $parentPage = $this->page->getParent();
148 $title = trim($this->page->getTitleOrDefault());
194 $locale = Locale::createForPage($this->page)->getValueOrDefault();
196 $modifiedTimeOrDefault = $this->page->getModifiedTimeOrDefault();
330 if ($vignette === null && $this->page === null) {
331 throw new ExceptionBadArgument("The vignette query property is mandatory when the vignette was created without page.");
339 if (!FileSystems::exists($this->page->getPathObject())) {
340 throw new ExceptionNotFound("The page does not exists");
364 public function setPage(MarkupPath $page): FetcherVignette
366 $this->page = $page;
367 $path = $this->page->getPathObject();