Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96485379
PhabricatorDateFormatSetting.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
Fri, Dec 27, 04:50
Size
933 B
Mime Type
text/x-php
Expires
Sun, Dec 29, 04:50 (2 d)
Engine
blob
Format
Raw Data
Handle
23190946
Attached To
rPH Phabricator
PhabricatorDateFormatSetting.php
View Options
<?php
final
class
PhabricatorDateFormatSetting
extends
PhabricatorSelectSetting
{
const
SETTINGKEY
=
'date-format'
;
const
VALUE_FORMAT_ISO
=
'Y-m-d'
;
const
VALUE_FORMAT_US
=
'n/j/Y'
;
const
VALUE_FORMAT_EUROPE
=
'd-m-Y'
;
public
function
getSettingName
()
{
return
pht
(
'Date Format'
);
}
public
function
getSettingPanelKey
()
{
return
PhabricatorDateTimeSettingsPanel
::
PANELKEY
;
}
protected
function
getSettingOrder
()
{
return
200
;
}
protected
function
getControlInstructions
()
{
return
pht
(
'Select the format you prefer for editing dates.'
);
}
public
function
getSettingDefaultValue
()
{
return
self
::
VALUE_FORMAT_ISO
;
}
protected
function
getSelectOptions
()
{
return
array
(
self
::
VALUE_FORMAT_ISO
=>
pht
(
'ISO 8601: 2000-02-28'
),
self
::
VALUE_FORMAT_US
=>
pht
(
'US: 2/28/2000'
),
self
::
VALUE_FORMAT_EUROPE
=>
pht
(
'Europe: 28-02-2000'
),
);
}
}
Event Timeline
Log In to Comment