Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F119582955
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, Jun 27, 20:22
Size
587 B
Mime Type
text/x-php
Expires
Sun, Jun 29, 20:22 (2 d)
Engine
blob
Format
Raw Data
Handle
27023286
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
getHeraldFieldStandardConditions
()
{
return
self
::
STANDARD_BOOL
;
}
public
function
getHeraldFieldValueType
(
$condition
)
{
return
HeraldAdapter
::
VALUE_NONE
;
}
}
Event Timeline
Log In to Comment