Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryCommit.php
| <?php | <?php | ||||
| final class PhabricatorRepositoryCommit | final class PhabricatorRepositoryCommit | ||||
| extends PhabricatorRepositoryDAO | extends PhabricatorRepositoryDAO | ||||
| implements | implements | ||||
| PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
| PhabricatorFlaggableInterface, | PhabricatorFlaggableInterface, | ||||
| PhabricatorTokenReceiverInterface, | PhabricatorTokenReceiverInterface, | ||||
| PhabricatorSubscribableInterface, | |||||
| HarbormasterBuildableInterface, | HarbormasterBuildableInterface, | ||||
| PhabricatorCustomFieldInterface { | PhabricatorCustomFieldInterface { | ||||
| protected $repositoryID; | protected $repositoryID; | ||||
| protected $phid; | protected $phid; | ||||
| protected $commitIdentifier; | protected $commitIdentifier; | ||||
| protected $epoch; | protected $epoch; | ||||
| protected $mailKey; | protected $mailKey; | ||||
| ▲ Show 20 Lines • Show All 308 Lines • ▼ Show 20 Lines | public function getCustomFields() { | ||||
| return $this->assertAttached($this->customFields); | return $this->assertAttached($this->customFields); | ||||
| } | } | ||||
| public function attachCustomFields(PhabricatorCustomFieldAttachment $fields) { | public function attachCustomFields(PhabricatorCustomFieldAttachment $fields) { | ||||
| $this->customFields = $fields; | $this->customFields = $fields; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| /* -( PhabricatorSubscribableInterface )----------------------------------- */ | |||||
| public function isAutomaticallySubscribed($phid) { | |||||
| // TODO: This should also list auditors, but handling that is a bit messy | |||||
| // right now because we are not guaranteed to have the data. | |||||
btrahan: fixing it is using some query class everywhere this data is loaded or...? | |||||
| return ($phid == $this->getAuthorPHID()); | |||||
| } | |||||
| public function shouldShowSubscribersProperty() { | |||||
| return true; | |||||
| } | |||||
| public function shouldAllowSubscription($phid) { | |||||
| return true; | |||||
| } | |||||
| } | } | ||||
fixing it is using some query class everywhere this data is loaded or...?