<?php
namespace wcf\data\page\content;
use wcf\data\DatabaseObject;
+use wcf\data\ILinkableObject;
use wcf\system\html\output\HtmlOutputProcessor;
use wcf\system\html\simple\HtmlSimpleParser;
use wcf\system\message\embedded\object\MessageEmbeddedObjectManager;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
/**
* @property-read string $customURL custom url of the page in the associated language
* @property-read integer $hasEmbeddedObjects is `1` if the page content contains embedded objects, otherwise `0`
*/
-class PageContent extends DatabaseObject {
+class PageContent extends DatabaseObject implements ILinkableObject {
/**
* @inheritDoc
*/
return null;
}
+
+ /**
+ * @inheritDoc
+ */
+ public function getLink() {
+ return LinkHandler::getInstance()->getCmsLink($this->pageID, $this->languageID);
+ }
}