Lines Matching refs:this

42  * But because this is a {@link ResourceCombo}, we see tht this is part of the {@link WikiPath}
119 * @var string the alias used to build this page
195 $this->path = $path;
197 $this->setCorrectPathForDirectoryToIndexPage();
199 $this->buildPropertiesFromFileSystem();
252 * @throws ExceptionBadSyntax - if this is not a
277 $this->canonical
280 return $this;
285 * @return bool true if this is a fragment markup
291 $name = $this->getPathObject()->getLastNameWithoutExtension();
300 * @return bool true if this is the side slot
306 $name = $this->getPathObject()->getLastNameWithoutExtension();
315 * @return bool true if this is the main
322 $name = $this->getPathObject()->getLastNameWithoutExtension();
344 return $this->canonical->getValueFromStoreOrDefault();
352 * @return $this
357 $this->readStore = null;
358 $this->buildPropertiesFromFileSystem();
359 return $this;
369 $store = $this->getReadStoreOrDefault();
400 $path = $this->getPathObject();
410 $fetcher = $this->createHtmlFetcherWithItselfAsContextPath();
417 * @param boolean $value true if this is a low quality page rank false otherwise
423 return $this->setQualityIndicatorAndDeleteCacheIfNeeded($this->canBeOfLowQuality, $value);
440 $ft_backlinks = ft_backlinks($this->getWikiId());
450 * @return bool true if this is a low quality page
456 if (!$this->getCanBeOfLowQuality()) {
464 return $this->getLowQualityIndicatorCalculated();
480 return $this->canBeOfLowQuality->getValueOrDefault();
492 return $this->title->getValueFromStore();
502 return $this->qualityMonitoringIndicator->getValueFromStore();
514 return $this->title->getValueOrDefault();
516 LogUtility::internalError("Internal Error: The page ($this) does not have any default title");
517 return $this->getPathObject()->getLastNameWithoutExtension();
526 return $this->h1->getValueOrDefault();
537 return $this->description->getValue();
547 return $this->description->getValueOrDefault();
560 return FileSystems::getContent($this->getPathObject());
562 LogUtility::msg("The page ($this) was not found");
574 $return = array_search($this->getPathObject()->getWikiId(), $pages, true);
583 * @return $this
590 $path = $this->getPathObject();
592 throw new ExceptionRuntime("The path of this markup is not a wiki path");
595 return $this;
612 $ID = $this->getPathObject()->toWikiPath()->getWikiId();
618 return $this;
628 return $this->type->getValueFromStoreOrDefault();
639 return IFetcherLocalImage::createImageFetchFromPath(FirstRasterImage::createForPage($this)->getValue());
662 $store = $this->getReadStoreOrDefault();
672 * $this->meta['relation']['media'][$src] = $exists;
693 $store = $this->getReadStoreOrDefault();
710 $store = $this->getReadStoreOrDefault();
729 return $this->creationTime->getValue();
740 return $this->modifiedTime->getValueFromStore();
749 return $this->modifiedTime->getValueFromStoreOrDefault();
760 if (!FileSystems::exists($this)) {
762 LogUtility::msg("You can't render the metadata of a markup path that does not exist ($this)");
764 return $this;
768 $wikiPath = $this->getPathObject()->toWikiPath();
780 return $this;
791 return $this->region->getValueFromStore();
798 return $this->region->getValueFromStoreOrDefault();
805 return $this->lang->getValueFromStore();
810 return $this->lang->getValueOrDefault();
823 if ($this->getPathObject()->getLastNameWithoutExtension() === $startPageName) {
835 $objectPath = $this->path;
836 $parentPath = $this->path->getParent();
842 * If the start page does not exists, this is the index page
863 return $this->publishedDate->getValueFromStore();
872 return FileSystems::exists($this);
882 return $this->publishedDate->getValueFromStoreOrDefault();
890 $dateTime = $this->getPublishedElseCreationTime();
911 if ($this->isRootHomePage()) {
917 ->setQueryParameter(DokuwikiId::DOKUWIKI_ID_ATTRIBUTE, $this->getWikiId())
920 LogUtility::error("This markup path ($this) can not be accessed externaly");
938 $value = $this->locale->getValueFromStore();
953 $fetcherMarkup = $this->createHtmlFetcherWithItselfAsContextPath();
963 $id = $this->getPathObject()->getWikiId();
968 . $this->getNameOrDefault()
971 LogUtility::msg("The markup ref returns an error for the creation of the page anchor html link ($this). Error: {$e->getMessage()}");
972 return "<a href=\"{$this->getCanonicalUrl()}\" data-wiki-id=\"$id\">{$this->getNameOrDefault()}</a>";
987 return $this->getParent()->toAbsoluteId();
993 * @return $this
999 MetadataDokuWikiStore::getOrCreateFromResource($this)
1001 return $this;
1011 return $this->pageName->getValue();
1019 return ResourceName::createForResource($this)->getValueOrDefault();
1030 $meta = p_read_metadata($this->getPathObject()->getWikiId());
1034 p_save_metadata($this->getPathObject()->getWikiId(), $meta);
1067 if (FileSystems::exists($this)) {
1098 ->setResource($this)
1106 $array["url"] = $this->getCanonicalUrl()->toAbsoluteUrl()->toString();
1116 return $this->getPublishedTime() !== null ? $this->getPublishedTime()->format(Iso8601Date::getFormat()) : null;
1126 return $this->endDate->getValue();
1137 return $this->startDate->getValue();
1148 return PageId::createForPage($this)->getValue();
1158 return renderer_plugin_combo_analytics::createAnalyticsFetcherForPageFragment($this);
1168 $fetcher = renderer_plugin_combo_analytics::createAnalyticsFetcherForPageFragment($this);
1179 return DatabasePageRow::getFromPageObject($this);
1190 return DatabasePageRow::getOrCreateFromPageObject($this);
1197 return Identity::isWriter($this->getWikiId());
1206 return $this->getPathObject()->toAbsoluteId() === ":$startPageName";
1217 return $this->type->getValueFromStore();
1227 return $this->canonical->getValue();
1239 return $this->canonical->getDefaultValue();
1248 return $this->layout->getValueFromStore();
1257 return $this->pageName->getDefaultValue();
1263 return $this->title->getDefaultValue();
1272 return $this->h1->getValueOrDefault();
1278 return $this->type->getDefaultValue();
1284 return $this->layout->getDefaultValue();
1295 return $this->setQualityIndicatorAndDeleteCacheIfNeeded($this->lowQualityIndicatorCalculated, $bool);
1321 return $this;
1332 return $this->lowQualityIndicatorCalculated->getValueOrDefault();
1343 return $this->pageImages->getValueAsPageImages();
1349 * @return $this
1356 $this->ldJson
1359 return $this;
1368 $this->type
1371 return $this;
1385 return $this->aliases->addAndGetAlias($aliasPath, $aliasType);
1397 return $this->aliases->getValueAsAlias();
1407 return $this->getSlug();
1409 return $this->getDefaultSlug();
1422 return $this->slug->getDefaultValue();
1437 $names = $this->getNames();
1442 if ($this->isIndexPage()) {
1481 $this->description
1484 return $this;
1494 $this->endDate
1497 return $this;
1507 $this->startDate
1510 return $this;
1519 $this->publishedDate
1522 return $this;
1534 $this->pageName
1537 return $this;
1547 $this->title
1550 return $this;
1559 $this->h1
1562 return $this;
1571 $this->region
1574 return $this;
1584 $this->lang
1587 return $this;
1596 $this->layout
1599 return $this;
1616 * The method {@link p_get_metadata()} does it with this logic
1631 $this->cacheExpirationDate = CacheExpirationDate::createForPage($this);
1632 $this->aliases = Aliases::createForPage($this);
1633 $this->pageImages = PageImages::createForPage($this);
1634 $this->pageName = ResourceName::createForResource($this);
1635 $this->cacheExpirationFrequency = CacheExpirationFrequency::createForPage($this);
1636 $this->ldJson = LdJson::createForPage($this);
1637 $this->canonical = Canonical::createForPage($this);
1638 $this->description = PageDescription::createForPage($this);
1639 $this->h1 = PageH1::createForPage($this);
1640 $this->type = PageType::createForPage($this);
1641 $this->creationTime = CreationDate::createForPage($this);
1642 $this->title = PageTitle::createForMarkup($this);
1643 $this->keywords = PageKeywords::createForPage($this);
1644 $this->publishedDate = PagePublicationDate::createFromPage($this);
1645 $this->startDate = StartDate::createFromPage($this);
1646 $this->endDate = EndDate::createFromPage($this);
1647 $this->locale = Locale::createForPage($this);
1648 $this->lang = Lang::createForMarkup($this);
1649 $this->region = Region::createForPage($this);
1650 $this->slug = \ComboStrap\Slug::createForPage($this);
1651 $this->canBeOfLowQuality = LowQualityPageOverwrite::createForPage($this);
1652 $this->lowQualityIndicatorCalculated = LowQualityCalculatedIndicator::createFromPage($this);
1653 $this->qualityMonitoringIndicator = QualityDynamicMonitoringOverwrite::createFromPage($this);
1654 $this->modifiedTime = ModificationDate::createForPage($this);
1655 $this->pageUrlPath = PageUrlPath::createForPage($this);
1656 $this->layout = PageTemplateName::createFromPage($this);
1667 return PageId::getAbbreviated($this->getPageId());
1674 $this->databasePage = $databasePage;
1675 return $this;
1687 return $this->slug->getValue();
1697 $this->slug
1700 return $this;
1709 return $this->pageUrlPath->getValueOrDefaultAsWikiId();
1719 $this->qualityMonitoringIndicator
1722 return $this;
1727 * @param $aliasPath - third information - the alias used to build this page
1732 $this->buildAliasPath = $aliasPath;
1738 if ($this->buildAliasPath === null) return null;
1740 $aliases = $this->getAliases();
1746 if ($alias->getPath() === $this->buildAliasPath) {
1756 if ($this->getQualityMonitoringIndicator() !== null) {
1757 return $this->getQualityMonitoringIndicator();
1759 return $this->getDefaultQualityMonitoring();
1774 * @return $this
1779 $this->readStore = $store;
1780 return $this;
1793 foreach ($this->getPageMetadataImages() as $pageImage) {
1800 LogUtility::error(`The page image $path of the page $this is not an image`);
1821 return $this->keywords->getValue();
1829 return $this->keywords->getValueOrDefaults();
1839 $this->keywords
1842 return $this;
1853 return $this->cacheExpirationDate->getValue();
1864 return $this->cacheExpirationDate->getDefaultValue();
1875 return $this->cacheExpirationFrequency->getValue();
1881 * @return $this
1887 $this->cacheExpirationDate->setValue($cacheExpirationDate);
1888 return $this;
1902 $path = $this->getPathObject();
1921 Index::getOrCreate()->deletePage($this);
1922 saveWikiText($this->getWikiId(), "", "Delete");
1932 return $this->getCanonicalUrl()->toAbsoluteUrl();
1939 if ($this->readStore === null) {
1945 return MetadataDokuWikiStore::getOrCreateFromResource($this);
1947 if (!($this->readStore instanceof MetadataStore)) {
1948 $this->readStore = MetadataStoreAbs::toMetadataStore($this->readStore, $this);
1950 return $this->readStore;
1959 return $this->path;
1971 $path = $this->getPathObject();
1978 return PageId::createForPage($this);
1985 return WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT . $this->getWikiId();
2004 return $this->pageUrlPath;
2015 if ($this->isSlot()) {
2019 $nearestMainFooter = $this->findNearest(SlotSystem::getSidebarName());
2037 $ID = $this->getWikiId();
2054 $sideSlot = $this->getSideSlot();
2064 return isHiddenPage($this->getWikiId());
2079 return FetcherPage::createPageFetcherFromMarkupPath($this);
2084 return HttpRequest::fetchXhtmlPageResponse($this->getWikiId());
2094 return $this->getInstructionsDocument()->getOutline();
2101 $this->getReadStoreOrDefault()->persist();
2102 return $this;
2108 $instructionsDocument = $this->getInstructionsDocument();
2115 FileSystems::setContent($this, $textContent);
2116 return $this;
2125 $executingPath = $this->getPathObject();
2149 if ($this->isIndexPage()) {
2152 $parent = $this->getParent();
2181 if (!($this->path instanceof WikiPath)) {
2187 $path = $this->path;
2197 $this->path = $indexPath;
2203 $parentName = $this->getLastNameWithoutExtension();
2204 $nsInsideNsIndex = $this->path->resolveId($parentName);
2206 $this->path = $nsInsideNsIndex;
2215 $this->path = $indexPath;
2222 if ($this->uidObject === null) {
2224 $this->uidObject = Meta\Api\MetadataSystem::toMetadataObject($this->getUid())
2225 ->setResource($this);
2231 return $this->uidObject;
2236 return $this->path->getExtension();
2241 return $this->path->getLastNameWithoutExtension();
2251 return $this->path->getLastName();
2256 return $this->path->getNames();
2261 return $this->path->toAbsoluteId();
2266 return $this->path->toUriString();
2271 return $this->path->toAbsolutePath();
2277 return $this->path->resolve($name);
2283 return FetcherPage::createPageFetcherFromMarkupPath($this)
2289 return $this->path->getHost();
2295 return $this->path->__toString();