3 final class PhabricatorSearchScopeSetting
4 extends PhabricatorSelectSetting
{
6 const SETTINGKEY
= 'search-scope';
8 public function getSettingName() {
9 return pht('Search Scope');
12 public function getSettingPanelKey() {
13 return PhabricatorSearchSettingsPanel
::PANELKEY
;
16 public function getSettingDefaultValue() {
20 protected function getControlInstructions() {
22 'Choose the default behavior of the global search in the main menu.');
25 protected function getSelectOptions() {
26 $scopes = PhabricatorMainMenuSearchView
::getGlobalSearchScopeItems(
28 new PhabricatorSettingsApplication(),
32 foreach ($scopes as $scope) {
33 if (!isset($scope['value'])) {
36 $scope_map[$scope['value']] = $scope['name'];