Lines Matching defs:markupPath
74 private $markupPath;
128 if (!FileSystems::exists($this->markupPath)) {
129 throw new ExceptionCompile("You can't replicate the non-existing page ($this->markupPath) on the file system");
145 $fsStore = MetadataDokuWikiStore::getOrCreateFromResource($this->markupPath);
146 $dbStore = MetadataDbStore::getOrCreateFromResource($this->markupPath);
149 ->setResource($this->markupPath)
184 $pageId = $this->markupPath->getPageId();
186 $pageId = PageId::generateAndStorePageId($this->markupPath);
314 $databasePage->markupPath = MarkupPath::createMarkupFromId($id);
341 $modifiedTime = FileSystems::getModifiedTime($this->markupPath->getPathObject());
350 $path = $this->markupPath->fetchAnalyticsPath();
414 LogUtility::error("Something went wrong when deleting the page ({$this->markupPath}) from the database with the rowid $rowId", self::CANONICAL, $e);
451 function getDatabaseRowFromPage(MarkupPath $markupPath): array
454 $this->setMarkupPath($markupPath);
460 $pageId = $markupPath->getPageId();
470 $path = $markupPath->getPathObject();
480 $id = $markupPath->getPathObject()->toWikiPath()->getWikiId();
490 $canonical = Canonical::createForPage($markupPath)->getValue();
531 if (!FileSystems::exists($this->markupPath)) {
532 throw new ExceptionBadState("You can't replicate the page ($this->markupPath) because it does not exists.");
538 $replicationDate = ReplicationDate::createFromPage($this->markupPath)
629 if ($this->markupPath === null) {
649 if ($duplicatePage->getPathObject()->toUriString() === $this->markupPath->toUriString()) {
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)";
657 $values[DokuwikiId::DOKUWIKI_ID_ATTRIBUTE] = $this->markupPath->getPathObject()->getWikiId();
658 $values[PagePath::PROPERTY_NAME] = $this->markupPath->getPathObject()->toAbsolutePath()->toAbsoluteId();
663 $values[Canonical::PROPERTY_NAME] = $this->markupPath->getCanonicalOrDefault();
750 return $this->markupPath->__toString();
765 if ($this->markupPath != null) {
813 if ($this->markupPath != null) {
814 $this->markupPath->rebuild();
816 $row = $this->getDatabaseRowFromPage($this->markupPath);
834 $sourceStore = MetadataDokuWikiStore::getOrCreateFromResource($this->markupPath);
835 $targetStore = MetadataDbStore::getOrCreateFromResource($this->markupPath);
864 ->setResource($this->markupPath)
879 $metaRecord[self::IS_INDEX_COLUMN] = ($this->markupPath->isIndexPage() === true ? 1 : 0);
953 $this->markupPath = $page;
1003 $this->markupPath->unsetMetadata($canoncialName);
1068 if ($this->markupPath != null && $attributeValue !== $this->markupPath->getWikiId()) {
1073 LogUtility::error("The page ($this->markupPath) and the page ($attributeValue) have the same $attribute ($attributeValue)");
1127 $this->markupPath === null
1130 $this->markupPath = MarkupPath::createMarkupFromId($this->row[DokuwikiId::DOKUWIKI_ID_ATTRIBUTE]);
1132 return $this->markupPath;
1194 LogUtility::info("Add alias ($aliasPath) for page ({$this->markupPath})");
1196 Aliases::createForPage($this->markupPath)
1201 LogUtility::msg("Unable to add the alias ($aliasPath) for the page ($this->markupPath)");
1210 $values[PageId::getPersistentName()] = $this->markupPath->getPageId();
1213 $values[PageId::PAGE_ID_ABBR_ATTRIBUTE] = $this->markupPath->getPageIdAbbr();
1254 $fetchPath = $this->markupPath->fetchAnalyticsPath();
1266 $replicationDateMeta = ReplicationDate::createFromPage($this->markupPath)
1280 $record['IS_LOW_QUALITY'] = ($this->markupPath->isLowQualityPage() === true ? 1 : 0);
1290 if ($this->markupPath === null) {
1294 $markupWikiId = $this->markupPath->toWikiPath()->getWikiId();
1302 LogUtility::info("The non-existing duplicate page ($wikiIdInDatabase) has been added as redirect alias for the page ($this->markupPath)", self::CANONICAL);
1308 $errorMessage = "The page ($this->markupPath) and the page ($wikiIdInDatabase) have the same $attribute value ($value)";