Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90463765
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
Fri, Nov 1, 22:12
Size
574 B
Mime Type
text/x-php
Expires
Sun, Nov 3, 22:12 (2 d)
Engine
blob
Format
Raw Data
Handle
22057644
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