Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F539858
PhabricatorDateFormatSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
933 B
Referenced Files
None
Subscribers
None
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'
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 9:20 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
120326
Default Alt Text
PhabricatorDateFormatSetting.php (933 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment