Lines Matching defs:page

20  * url path: name for ns + slug (title) + page id
22 * url path: canonical path + page id
24 * url path: page path + page id
29 * - permanent canonical path (page id)
31 * - permanent page path (page id)
32 * - page path
34 * This is not the URL of the page but of the generated HTML web page (Ie {@link MarkupPath}) with all pages (slots)
41 * The page id is separated in the URL with a "-"
46 * The name would be the short page id `22h2s2j4`
50 * we can see then a page description, even order on it
54 * The canonical page for the page url
56 public const CANONICAL = "page:url";
57 const PROPERTY_NAME = "page-url-path";
59 public static function createForPage(MarkupPath $page): PageUrlPath
62 ->setResource($page);
82 $page = $this->getResource();
83 if (!($page instanceof MarkupPath)) {
84 throw new ExceptionNotFound("The Url Path is not implemented for the resource type (" . $page->getType() . ")");
90 $pageUrlType = PageUrlType::createFromPage($page);
118 return "The path used in the page url";
166 * to verify that this is a page id abbr
173 $page = $this->getPage();
174 if ($page->getPageIdAbbr() == null) return null;
175 $abbr = $page->getPageIdAbbr();
180 * Add a checksum character to the page id
181 * to check if it's a page id that we get in the url
192 * @return string|null return the decoded page id or null if it's not an encoded page id
207 * @return string|null - the checksum letter or null if this is not a page id
243 $page = $this->getResource();
244 $pagePath = $page->getPathObject()->toAbsoluteId();
245 if ((!$page instanceof MarkupPath)) {
246 $message = "The url path is only for page resources";
260 return Canonical::createForPage($page)->getValueOrDefault()->toAbsoluteId();
266 return $this->toPermanentUrlPath($page->getCanonicalOrDefault());
268 return $this->toPermanentUrlPath($page->getSlugOrDefault());
270 $urlPath = $page->getSlugOrDefault();
271 $parentPage = $page;
282 throw new \RuntimeException("The default name of the page (" . $parentPage . ") should not be empty.");
288 $urlPath = $page->getSlugOrDefault();
290 $parentPage = $page->getParent();
295 throw new \RuntimeException("The default name of the page (" . $parentPage . ") should not be empty.");
299 // no parent page