Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/storage/ManiphestTask.php
<?php | <?php | ||||
final class ManiphestTask extends ManiphestDAO | final class ManiphestTask extends ManiphestDAO | ||||
implements | implements | ||||
PhabricatorSubscribableInterface, | PhabricatorSubscribableInterface, | ||||
PhabricatorMarkupInterface, | PhabricatorMarkupInterface, | ||||
PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
PhabricatorTokenReceiverInterface, | PhabricatorTokenReceiverInterface, | ||||
PhabricatorFlaggableInterface, | PhabricatorFlaggableInterface, | ||||
PhabricatorMentionableInterface, | PhabricatorMentionableInterface, | ||||
PhrequentTrackableInterface, | PhrequentTrackableInterface, | ||||
PhabricatorCustomFieldInterface, | PhabricatorCustomFieldInterface, | ||||
PhabricatorDestructibleInterface, | PhabricatorDestructibleInterface, | ||||
PhabricatorApplicationTransactionInterface, | PhabricatorApplicationTransactionInterface, | ||||
PhabricatorProjectInterface, | PhabricatorProjectInterface, | ||||
PhabricatorSpacesInterface, | PhabricatorSpacesInterface { | ||||
PhabricatorSearchSnippetInterface { | |||||
const MARKUP_FIELD_DESCRIPTION = 'markup:desc'; | const MARKUP_FIELD_DESCRIPTION = 'markup:desc'; | ||||
protected $authorPHID; | protected $authorPHID; | ||||
protected $ownerPHID; | protected $ownerPHID; | ||||
protected $status; | protected $status; | ||||
protected $priority; | protected $priority; | ||||
▲ Show 20 Lines • Show All 360 Lines • ▼ Show 20 Lines | |||||
/* -( PhabricatorSpacesInterface )----------------------------------------- */ | /* -( PhabricatorSpacesInterface )----------------------------------------- */ | ||||
public function getSpacePHID() { | public function getSpacePHID() { | ||||
return $this->spacePHID; | return $this->spacePHID; | ||||
} | } | ||||
/* -( PhabricatorSearchSnippetInterface )---------------------------------- */ | |||||
public function renderSearchResultSnippet(PhabricatorUser $viewer) { | |||||
$content = $this->getDescription(); | |||||
$content = PhabricatorMarkupEngine::summarize($content); | |||||
$content = PhabricatorMarkupEngine::renderOneObject( | |||||
id(new PhabricatorMarkupOneOff())->setContent($content), | |||||
'default', | |||||
$viewer); | |||||
return $content; | |||||
} | |||||
} | } |