Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F946911
PhabricatorUnifiedDiffsSetting.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
PhabricatorUnifiedDiffsSetting.php
View Options
<?php
final
class
PhabricatorUnifiedDiffsSetting
extends
PhabricatorSelectSetting
{
const
SETTINGKEY
=
'diff-unified'
;
const
VALUE_ON_SMALL_SCREENS
=
'default'
;
const
VALUE_ALWAYS_UNIFIED
=
'unified'
;
public
function
getSettingName
()
{
return
pht
(
'Show Unified Diffs'
);
}
protected
function
getSettingOrder
()
{
return
100
;
}
public
function
getSettingPanelKey
()
{
return
PhabricatorDiffPreferencesSettingsPanel
::
PANELKEY
;
}
protected
function
getControlInstructions
()
{
return
pht
(
'Diffs are normally shown in a side-by-side layout on large '
.
'screens and automatically switched to a unified view on small '
.
'screens (like mobile phones). If you prefer unified diffs even on '
.
'large screens, you can select them for use on all displays.'
);
}
public
function
getSettingDefaultValue
()
{
return
self
::
VALUE_ON_SMALL_SCREENS
;
}
protected
function
getSelectOptions
()
{
return
array
(
self
::
VALUE_ON_SMALL_SCREENS
=>
pht
(
'On Small Screens'
),
self
::
VALUE_ALWAYS_UNIFIED
=>
pht
(
'Always'
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 11:56 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
223371
Default Alt Text
PhabricatorUnifiedDiffsSetting.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment