Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2895047
PhabricatorDateFormatSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
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
Jan 19 2025, 20:53 (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128627
Default Alt Text
PhabricatorDateFormatSetting.php (933 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment