Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93937473
PhabricatorMonospacedTextareasSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Dec 2, 16:08
Size
896 B
Mime Type
text/x-php
Expires
Wed, Dec 4, 16:08 (2 d)
Engine
blob
Format
Raw Data
Handle
22727684
Attached To
rPH Phabricator
PhabricatorMonospacedTextareasSetting.php
View Options
<?php
final
class
PhabricatorMonospacedTextareasSetting
extends
PhabricatorSelectSetting
{
const
SETTINGKEY
=
'monospaced-textareas'
;
const
VALUE_TEXT_VARIABLE_WIDTH
=
'disabled'
;
const
VALUE_TEXT_MONOSPACED
=
'enabled'
;
public
function
getSettingName
()
{
return
pht
(
'Monospaced Textareas'
);
}
protected
function
getControlInstructions
()
{
return
pht
(
'You can choose to use either a monospaced or variable-width font '
.
'in textareas in the UI. Textareas are used for editing descriptions '
.
'and writing comments, among other things.'
);
}
public
function
getSettingDefaultValue
()
{
return
self
::
VALUE_TEXT_VARIABLE_WIDTH
;
}
protected
function
getSelectOptions
()
{
return
array
(
self
::
VALUE_TEXT_VARIABLE_WIDTH
=>
pht
(
'Use Variable-Width Font'
),
self
::
VALUE_TEXT_MONOSPACED
=>
pht
(
'Use Monospaced Font'
),
);
}
}
Event Timeline
Log In to Comment