Lines Matching refs:page

99     public static function getFromPageObject(MarkupPath $page): DatabasePageRow
103 $row = $databasePage->getDatabaseRowFromPage($page);
116 * Delete from the page to refresh if any
129 throw new ExceptionCompile("You can't replicate the non-existing page ($this->markupPath) on the file system");
179 * @throws ExceptionNotExists - no page id to add
220 * @param MarkupPath $page
225 public static function getOrCreateFromPageObject(MarkupPath $page): DatabasePageRow
230 $row = $databasePage->getDatabaseRowFromPage($page);
234 // page copied on the local system
236 ComboFs::createIfNotExists($page);
237 $row = $databasePage->getDatabaseRowFromPage($page);
295 $page = $databasePage->getMarkupPath();
296 if ($page !== null) {
297 // page may be null in production
300 $page->setBuildAliasPath($alias);
414 LogUtility::error("Something went wrong when deleting the page ({$this->markupPath}) from the database with the rowid $rowId", self::CANONICAL, $e);
463 // no page id
532 throw new ExceptionBadState("You can't replicate the page ($this->markupPath) because it does not exists.");
577 throw new ExceptionBadState("The page database attribute passed should not be empty");
615 throw new ExceptionBadState("There was a problem during the page attribute updates. : {$e->getMessage()}");
630 throw new ExceptionBadState("The page should be defined to create a page database row");
634 * If the user copy a frontmatter with the same page id abbr, we got a problem
640 throw new ExceptionBadState("You can't insert a page in the database without a page id");
650 $message = "The page ($this->markupPath) is already in the database with the uid ($pageIdAbbr).";
652 $message = "The page ($this->markupPath) cannot be replicated to the database because it has the same page id abbreviation ($pageIdAbbr) than the page ($duplicatePage)";
689 * to check if the page exists in the database
726 * Called when a page is moved
733 LogUtility::error("The `database` page ($this) does not exist and cannot be moved to ($targetId)");
757 * With the advent of the page id, it should never occurs anymore
758 * @param MarkupPath $page
762 function deleteIfExistsAndAddRedirectAlias(MarkupPath $page): void
766 $page->getDatabasePage()->deleteIfExist();
767 $this->addRedirectAliasWhileBuildingRow($page);
827 * @return array - an array of the fix page metadata (ie not derived)
875 // no page id for non-existent page ok
925 throw new ExceptionNotFound("No object by page id");
935 $message = "The pages ($existingPages) have all the same page id ($pageIdValue)";
951 function setMarkupPath(MarkupPath $page)
953 $this->markupPath = $page;
974 throw new ExceptionRuntime("An exception has occurred with the page search from CANONICAL. " . $e->getMessage());
1054 $message = "Internal Error: An exception has occurred with the page search from a PATH: " . $e->getMessage();
1064 throw new ExceptionNotFound("No database row found for the page");
1073 LogUtility::error("The page ($this->markupPath) and the page ($attributeValue) have the same $attribute ($attributeValue)");
1095 // page id throw for several id
1099 LogUtility::warning("The duplicate page ($duplicateMarkupPath) does not exists. Delete Row ({$rowId})");
1179 LogUtility::msg("For the alias $alias, there is more than one page defined ($pages), the first one ($id) was used", LogUtility::LVL_MSG_ERROR, Aliases::PROPERTY_NAME);
1194 LogUtility::info("Add alias ($aliasPath) for page ({$this->markupPath})");
1201 LogUtility::msg("Unable to add the alias ($aliasPath) for the page ($this->markupPath)");
1302 LogUtility::info("The non-existing duplicate page ($wikiIdInDatabase) has been added as redirect alias for the page ($this->markupPath)", self::CANONICAL);
1305 // This can happens if two page were created not on the same website
1308 $errorMessage = "The page ($this->markupPath) and the page ($wikiIdInDatabase) have the same $attribute value ($value)";
1311 // The database does not allow two page id with the same value