Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/storage/PhamePost.php
Show All 9 Lines | implements | ||||
PhabricatorSubscribableInterface, | PhabricatorSubscribableInterface, | ||||
PhabricatorDestructibleInterface, | PhabricatorDestructibleInterface, | ||||
PhabricatorTokenReceiverInterface, | PhabricatorTokenReceiverInterface, | ||||
PhabricatorConduitResultInterface, | PhabricatorConduitResultInterface, | ||||
PhabricatorFulltextInterface, | PhabricatorFulltextInterface, | ||||
PhabricatorFerretInterface { | PhabricatorFerretInterface { | ||||
const MARKUP_FIELD_BODY = 'markup:body'; | const MARKUP_FIELD_BODY = 'markup:body'; | ||||
const MARKUP_FIELD_SUMMARY = 'markup:summary'; | |||||
protected $bloggerPHID; | protected $bloggerPHID; | ||||
protected $title; | protected $title; | ||||
protected $subtitle; | protected $subtitle; | ||||
protected $phameTitle; | protected $phameTitle; | ||||
protected $body; | protected $body; | ||||
protected $visibility; | protected $visibility; | ||||
protected $configData; | protected $configData; | ||||
▲ Show 20 Lines • Show All 223 Lines • ▼ Show 20 Lines | /* -( PhabricatorMarkupInterface Implementation )-------------------------- */ | ||||
public function newMarkupEngine($field) { | public function newMarkupEngine($field) { | ||||
return PhabricatorMarkupEngine::newPhameMarkupEngine(); | return PhabricatorMarkupEngine::newPhameMarkupEngine(); | ||||
} | } | ||||
public function getMarkupText($field) { | public function getMarkupText($field) { | ||||
switch ($field) { | switch ($field) { | ||||
case self::MARKUP_FIELD_BODY: | case self::MARKUP_FIELD_BODY: | ||||
return $this->getBody(); | return $this->getBody(); | ||||
case self::MARKUP_FIELD_SUMMARY: | |||||
return PhabricatorMarkupEngine::summarize($this->getBody()); | |||||
} | } | ||||
} | } | ||||
public function didMarkupText( | public function didMarkupText( | ||||
$field, | $field, | ||||
$output, | $output, | ||||
PhutilMarkupEngine $engine) { | PhutilMarkupEngine $engine) { | ||||
return $output; | return $output; | ||||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |