Lines Matching refs:page

54     const REDIRECT_NOTFOUND_METHOD = "notfound"; // 404 (See other) (when best page name is calculated)
67 * Identifier Permalink (full page id)
71 * Extended Permalink (abbreviated page id at the end)
273 $page = MarkupPath::createMarkupFromId($id);
274 if (!FileSystems::exists($page)) {
347 * If this is not the root home page
349 * and if this is not a historical page (revision)
358 * TODO: When saving for the first time, the page is not stored in the database
365 * unfortunately (ie page is not in index, unable to update, ...)
366 * We test therefore if the database page id exists
400 $page = DatabasePageRow::createFromPageId($pageId)->getMarkupPath();
401 if ($page !== null && $page->exists()) {
403 $page->getCanonicalUrl()->toAbsoluteUrlString(),
414 $page = DatabasePageRow::createFromPageIdAbbr($pageId)->getMarkupPath();
415 if ($page === null) {
421 $page = $canonicalDatabasePage->getMarkupPath();
424 if ($page !== null && $page->exists()) {
429 if ($identifier != $page->getUrlId()) {
433 // If, for example, your home page can be reached in multiple ways
438 $page->getCanonicalUrl()->toAbsoluteUrlString(),
444 $this->executeTransparentRedirect($page->getWikiId(), self::TARGET_ORIGIN_PERMALINK_EXTENDED);
519 // If there is a redirection defined in the page rules
541 * We are still a reader, the redirection does not exist the user is not allowed to edit the page (public of other)
589 // Start page with the conf['start'] parameter
598 // Start page with the same name than the namespace
675 // If the page has an existing namespace start page take it, other search other namespace
736 * Redirect to an internal page ie:
740 * @param string $targetPageId - target page id
756 LogUtility::msg("The parameters targetPageId ($targetPageId) is an object of the class ($class) and it should be a page id");
761 LogUtility::msg("The parameters targetOriginId ($targetOriginId) is an object of the class ($class) and it should be a page id");
764 // If the user does not have the right to see the target page
788 * 'rev' : for the edit button to be sure that the page is still the same
819 * The general HTTP Redirect method to an internal page
861 // Explode the page ID and the anchor (#)
877 * create a new page url on the search engine
880 * http://host/page
883 * http://host/page?whatever
887 * `Alternative page with proper canonical tag`
932 // Empty 404 body to not get the standard 404 page of the browser
933 // but a blank page to avoid a sort of FOUC.
934 // ie the user see a page briefly
963 // Get Score from a page
968 // Search same namespace in the page found than in the Id page asked.
975 // Nb of word found in the target page id
976 // that are in the source page id
1072 $ruleMatcher = null; // Used in a warning message if the target page does not exist
1074 // Get the page from redirection data
1121 // If the page exist
1125 // The page rule may have change that
1136 LogUtility::msg("The calculated target page ($calculatedTarget) (for the non-existing page `$ID` with the matcher `$ruleMatcher`) does not exist", LogUtility::LVL_MSG_ERROR);