Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91265864
PhabricatorEpochEditField.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
Sat, Nov 9, 12:13
Size
928 B
Mime Type
text/x-php
Expires
Mon, Nov 11, 12:13 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22232763
Attached To
rPH Phabricator
PhabricatorEpochEditField.php
View Options
<?php
final
class
PhabricatorEpochEditField
extends
PhabricatorEditField
{
private
$allowNull
;
private
$hideTime
;
public
function
setAllowNull
(
$allow_null
)
{
$this
->
allowNull
=
$allow_null
;
return
$this
;
}
public
function
getAllowNull
()
{
return
$this
->
allowNull
;
}
public
function
setHideTime
(
$hide_time
)
{
$this
->
hideTime
=
$hide_time
;
return
$this
;
}
public
function
getHideTime
()
{
return
$this
->
hideTime
;
}
protected
function
newControl
()
{
return
id
(
new
AphrontFormDateControl
())
->
setAllowNull
(
$this
->
getAllowNull
())
->
setIsTimeDisabled
(
$this
->
getHideTime
())
->
setViewer
(
$this
->
getViewer
());
}
protected
function
newHTTPParameterType
()
{
return
id
(
new
AphrontEpochHTTPParameterType
())
->
setAllowNull
(
$this
->
getAllowNull
());
}
protected
function
newConduitParameterType
()
{
return
new
ConduitEpochParameterType
();
}
}
Event Timeline
Log In to Comment