Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/storage/PhameBlog.php
| <?php | <?php | ||||
| final class PhameBlog extends PhameDAO | final class PhameBlog extends PhameDAO | ||||
| implements PhabricatorPolicyInterface, PhabricatorMarkupInterface { | implements | ||||
| PhabricatorPolicyInterface, | |||||
| PhabricatorMarkupInterface, | |||||
| PhabricatorApplicationTransactionInterface { | |||||
| const MARKUP_FIELD_DESCRIPTION = 'markup:description'; | const MARKUP_FIELD_DESCRIPTION = 'markup:description'; | ||||
| const SKIN_DEFAULT = 'oblivious'; | const SKIN_DEFAULT = 'oblivious'; | ||||
| protected $name; | protected $name; | ||||
| protected $description; | protected $description; | ||||
| protected $domain; | protected $domain; | ||||
| ▲ Show 20 Lines • Show All 284 Lines • ▼ Show 20 Lines | public function didMarkupText( | ||||
| PhutilMarkupEngine $engine) { | PhutilMarkupEngine $engine) { | ||||
| return $output; | return $output; | ||||
| } | } | ||||
| public function shouldUseMarkupCache($field) { | public function shouldUseMarkupCache($field) { | ||||
| return (bool)$this->getPHID(); | return (bool)$this->getPHID(); | ||||
| } | } | ||||
| /* -( PhabricatorApplicationTransactionInterface )------------------------- */ | |||||
| public function getApplicationTransactionEditor() { | |||||
| return new PhameBlogEditor(); | |||||
| } | |||||
| public function getApplicationTransactionObject() { | |||||
| return $this; | |||||
| } | |||||
| public function getApplicationTransactionTemplate() { | |||||
| return new PhameBlogTransaction(); | |||||
| } | |||||
| public function willRenderTimeline( | |||||
| PhabricatorApplicationTransactionView $timeline, | |||||
| AphrontRequest $request) { | |||||
| return $timeline; | |||||
| } | |||||
| } | } | ||||