Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialRevision.php
| Show First 20 Lines • Show All 688 Lines • ▼ Show 20 Lines | public function getHasDraft(PhabricatorUser $viewer) { | ||||
| return $this->assertAttachedKey($this->drafts, $viewer->getCacheFragment()); | return $this->assertAttachedKey($this->drafts, $viewer->getCacheFragment()); | ||||
| } | } | ||||
| public function attachHasDraft(PhabricatorUser $viewer, $has_draft) { | public function attachHasDraft(PhabricatorUser $viewer, $has_draft) { | ||||
| $this->drafts[$viewer->getCacheFragment()] = $has_draft; | $this->drafts[$viewer->getCacheFragment()] = $has_draft; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function shouldBroadcast() { | |||||
| if (!$this->isDraft()) { | |||||
| return true; | |||||
| } | |||||
| return false; | |||||
| } | |||||
| /* -( HarbormasterBuildableInterface )------------------------------------- */ | /* -( HarbormasterBuildableInterface )------------------------------------- */ | ||||
| public function getHarbormasterBuildableDisplayPHID() { | public function getHarbormasterBuildableDisplayPHID() { | ||||
| return $this->getHarbormasterContainerPHID(); | return $this->getHarbormasterContainerPHID(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 263 Lines • Show Last 20 Lines | |||||