Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/panel/PhabricatorSettingsPanel.php
| Show First 20 Lines • Show All 211 Lines • ▼ Show 20 Lines | /* -( Internals )---------------------------------------------------------- */ | ||||
| * @return string Sortable key. | * @return string Sortable key. | ||||
| * @task internal | * @task internal | ||||
| */ | */ | ||||
| final public function getPanelOrderVector() { | final public function getPanelOrderVector() { | ||||
| return id(new PhutilSortVector()) | return id(new PhutilSortVector()) | ||||
| ->addString($this->getPanelName()); | ->addString($this->getPanelName()); | ||||
| } | } | ||||
| protected function loadTargetPreferences() { | |||||
| $viewer = $this->getViewer(); | |||||
| $user = $this->getUser(); | |||||
| $preferences = PhabricatorUserPreferences::loadUserPreferences($user); | |||||
| PhabricatorPolicyFilter::requireCapability( | |||||
| $viewer, | |||||
| $preferences, | |||||
| PhabricatorPolicyCapability::CAN_EDIT); | |||||
| return $preferences; | |||||
| } | |||||
| protected function newDialog() { | |||||
| return $this->getController()->newDialog(); | |||||
| } | |||||
| } | } | ||||