Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialRevision.php
| Show All 9 Lines | implements | ||||
| HarbormasterBuildableInterface, | HarbormasterBuildableInterface, | ||||
| PhabricatorSubscribableInterface, | PhabricatorSubscribableInterface, | ||||
| PhabricatorCustomFieldInterface, | PhabricatorCustomFieldInterface, | ||||
| PhabricatorApplicationTransactionInterface, | PhabricatorApplicationTransactionInterface, | ||||
| PhabricatorMentionableInterface, | PhabricatorMentionableInterface, | ||||
| PhabricatorDestructibleInterface, | PhabricatorDestructibleInterface, | ||||
| PhabricatorProjectInterface, | PhabricatorProjectInterface, | ||||
| PhabricatorFulltextInterface, | PhabricatorFulltextInterface, | ||||
| PhabricatorConduitResultInterface { | PhabricatorConduitResultInterface, | ||||
| PhabricatorDraftInterface { | |||||
| protected $title = ''; | protected $title = ''; | ||||
| protected $originalTitle; | protected $originalTitle; | ||||
| protected $status; | protected $status; | ||||
| protected $summary = ''; | protected $summary = ''; | ||||
| protected $testPlan = ''; | protected $testPlan = ''; | ||||
| ▲ Show 20 Lines • Show All 456 Lines • ▼ Show 20 Lines | /* -( PhabricatorTokenReceiverInterface )---------------------------------- */ | ||||
| public function attachFlag( | public function attachFlag( | ||||
| PhabricatorUser $viewer, | PhabricatorUser $viewer, | ||||
| PhabricatorFlag $flag = null) { | PhabricatorFlag $flag = null) { | ||||
| $this->flags[$viewer->getPHID()] = $flag; | $this->flags[$viewer->getPHID()] = $flag; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getDrafts(PhabricatorUser $viewer) { | public function getHasDraft(PhabricatorUser $viewer) { | ||||
| return $this->assertAttachedKey($this->drafts, $viewer->getPHID()); | return $this->assertAttachedKey($this->drafts, $viewer->getCacheFragment()); | ||||
| } | } | ||||
| public function attachDrafts(PhabricatorUser $viewer, array $drafts) { | public function attachHasDraft(PhabricatorUser $viewer, $has_draft) { | ||||
| $this->drafts[$viewer->getPHID()] = $drafts; | $this->drafts[$viewer->getCacheFragment()] = $has_draft; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| /* -( HarbormasterBuildableInterface )------------------------------------- */ | /* -( HarbormasterBuildableInterface )------------------------------------- */ | ||||
| public function getHarbormasterBuildableDisplayPHID() { | public function getHarbormasterBuildableDisplayPHID() { | ||||
| ▲ Show 20 Lines • Show All 225 Lines • ▼ Show 20 Lines | return array( | ||||
| 'authorPHID' => $this->getAuthorPHID(), | 'authorPHID' => $this->getAuthorPHID(), | ||||
| ); | ); | ||||
| } | } | ||||
| public function getConduitSearchAttachments() { | public function getConduitSearchAttachments() { | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| /* -( PhabricatorDraftInterface )------------------------------------------ */ | |||||
| public function newDraftEngine() { | |||||
| return new DifferentialRevisionDraftEngine(); | |||||
| } | |||||
| } | } | ||||