Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F543324
PhabricatorAccessibilitySetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorAccessibilitySetting.php
View Options
<?php
final
class
PhabricatorAccessibilitySetting
extends
PhabricatorSelectSetting
{
const
SETTINGKEY
=
'resource-postprocessor'
;
public
function
getSettingName
()
{
return
pht
(
'Accessibility'
);
}
public
function
getSettingPanelKey
()
{
return
PhabricatorDisplayPreferencesSettingsPanel
::
PANELKEY
;
}
protected
function
getSettingOrder
()
{
return
100
;
}
protected
function
getControlInstructions
()
{
return
pht
(
'If you have difficulty reading the UI, this setting '
.
'may help.'
);
}
public
function
getSettingDefaultValue
()
{
return
CelerityDefaultPostprocessor
::
POSTPROCESSOR_KEY
;
}
protected
function
getSelectOptions
()
{
$postprocessor_map
=
CelerityPostprocessor
::
getAllPostprocessors
();
$postprocessor_map
=
mpull
(
$postprocessor_map
,
'getPostprocessorName'
);
asort
(
$postprocessor_map
);
$postprocessor_order
=
array
(
CelerityDefaultPostprocessor
::
POSTPROCESSOR_KEY
,
);
$postprocessor_map
=
array_select_keys
(
$postprocessor_map
,
$postprocessor_order
)
+
$postprocessor_map
;
return
$postprocessor_map
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 11:12 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
110743
Default Alt Text
PhabricatorAccessibilitySetting.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment