Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2892959
AphrontEpochHTTPParameterType.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
926 B
Referenced Files
None
Subscribers
None
AphrontEpochHTTPParameterType.php
View Options
<?php
final
class
AphrontEpochHTTPParameterType
extends
AphrontHTTPParameterType
{
protected
function
getParameterExists
(
AphrontRequest
$request
,
$key
)
{
return
$request
->
getExists
(
$key
)
||
$request
->
getExists
(
$key
.
'_d'
)
;
}
protected
function
getParameterValue
(
AphrontRequest
$request
,
$key
)
{
return
AphrontFormDateControlValue
::
newFromRequest
(
$request
,
$key
)
;
}
protected
function
getParameterTypeName
(
)
{
return
'epoch'
;
}
protected
function
getParameterFormatDescriptions
(
)
{
return
array
(
pht
(
'An epoch timestamp, as an integer.'
)
,
pht
(
'An absolute date, as a string.'
)
,
pht
(
'A relative date, as a string.'
)
,
pht
(
'Separate date and time inputs, as strings.'
)
,
)
;
}
protected
function
getParameterExamples
(
)
{
return
array
(
'v=1460050737'
,
'v=2022-01-01'
,
'v=yesterday'
,
'v_d=2022-01-01&v_t=12:34'
,
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 17:38 (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127039
Default Alt Text
AphrontEpochHTTPParameterType.php (926 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment