Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92768113
HeraldNewObjectField.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 23, 13:45
Size
574 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 13:45 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22507474
Attached To
rPH Phabricator
HeraldNewObjectField.php
View Options
<?php
final
class
HeraldNewObjectField
extends
HeraldField
{
const
FIELDCONST
=
'new-object'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Is newly created'
);
}
public
function
getFieldGroupKey
()
{
return
HeraldEditFieldGroup
::
FIELDGROUPKEY
;
}
public
function
supportsObject
(
$object
)
{
return
!
$this
->
getAdapter
()->
isSingleEventAdapter
();
}
public
function
getHeraldFieldValue
(
$object
)
{
return
$this
->
getAdapter
()->
getIsNewObject
();
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_BOOL
;
}
}
Event Timeline
Log In to Comment