Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialRevision.php
| Show First 20 Lines • Show All 463 Lines • ▼ Show 20 Lines | foreach ($reviewers as $reviewer) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| public function shouldShowSubscribersProperty() { | public function shouldShowSubscribersProperty() { | ||||
| // TODO: Differential does its own thing for now. | return true; | ||||
| return false; | |||||
| } | } | ||||
| public function shouldAllowSubscription($phid) { | public function shouldAllowSubscription($phid) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| /* -( PhabricatorCustomFieldInterface )------------------------------------ */ | /* -( PhabricatorCustomFieldInterface )------------------------------------ */ | ||||
| public function getCustomFieldSpecificationForRole($role) { | public function getCustomFieldSpecificationForRole($role) { | ||||
| $fields = array( | $fields = array( | ||||
| new DifferentialAuthorField(), | |||||
| new DifferentialTitleField(), | new DifferentialTitleField(), | ||||
| new DifferentialSummaryField(), | new DifferentialSummaryField(), | ||||
| new DifferentialTestPlanField(), | new DifferentialTestPlanField(), | ||||
| new DifferentialReviewersField(), | new DifferentialReviewersField(), | ||||
| new DifferentialProjectReviewersField(), | |||||
| new DifferentialSubscribersField(), | new DifferentialSubscribersField(), | ||||
| new DifferentialRepositoryField(), | new DifferentialRepositoryField(), | ||||
| new DifferentialViewPolicyField(), | new DifferentialViewPolicyField(), | ||||
| new DifferentialEditPolicyField(), | new DifferentialEditPolicyField(), | ||||
| new DifferentialDependsOnField(), | |||||
| new DifferentialDependenciesField(), | |||||
| new DifferentialManiphestTasksField(), | |||||
| new DifferentialCommitsField(), | |||||
| new DifferentialJIRAIssuesField(), | |||||
| new DifferentialAsanaRepresentationField(), | |||||
| new DifferentialBlameRevisionField(), | |||||
| new DifferentialPathField(), | |||||
| new DifferentialHostField(), | |||||
| new DifferentialRevertPlanField(), | |||||
| new DifferentialApplyPatchField(), | |||||
| ); | ); | ||||
| return array_fill_keys( | $result = array(); | ||||
| mpull($fields, 'getFieldKey'), | foreach ($fields as $field) { | ||||
| array('disabled' => false)); | $result[$field->getFieldKey()] = array( | ||||
| 'disabled' => $field->shouldDisableByDefault(), | |||||
| ); | |||||
| } | |||||
| return $result; | |||||
| } | } | ||||
| public function getCustomFieldBaseClass() { | public function getCustomFieldBaseClass() { | ||||
| return 'DifferentialCustomField'; | return 'DifferentialCustomField'; | ||||
| } | } | ||||
| public function getCustomFields() { | 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; | ||||
| } | } | ||||
| } | } | ||||