Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99273191
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
Wed, Jan 22, 23:43
Size
482 B
Mime Type
text/x-php
Expires
Fri, Jan 24, 23:43 (2 d)
Engine
blob
Format
Raw Data
Handle
23762667
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
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