Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99652474
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
Sun, Jan 26, 00:08
Size
574 B
Mime Type
text/x-php
Expires
Tue, Jan 28, 00:08 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23833100
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