Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phriction/storage/PhrictionContent.php
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | final class PhrictionContent | ||||
} | } | ||||
public function getPHIDType() { | public function getPHIDType() { | ||||
return PhrictionContentPHIDType::TYPECONST; | return PhrictionContentPHIDType::TYPECONST; | ||||
} | } | ||||
public function newRemarkupView(PhabricatorUser $viewer) { | public function newRemarkupView(PhabricatorUser $viewer) { | ||||
return id(new PHUIRemarkupView($viewer, $this->getContent())) | return id(new PHUIRemarkupView($viewer, $this->getContent())) | ||||
->setContextObject($this) | |||||
->setRemarkupOption(PHUIRemarkupView::OPTION_GENERATE_TOC, true) | ->setRemarkupOption(PHUIRemarkupView::OPTION_GENERATE_TOC, true) | ||||
->setGenerateTableOfContents(true); | ->setGenerateTableOfContents(true); | ||||
} | } | ||||
public function attachDocument(PhrictionDocument $document) { | public function attachDocument(PhrictionDocument $document) { | ||||
$this->document = $document; | $this->document = $document; | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |