Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81119689
DiffusionCommitAutocloseHeraldField.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, Sep 4, 07:23
Size
593 B
Mime Type
text/x-php
Expires
Fri, Sep 6, 07:23 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20519788
Attached To
rPH Phabricator
DiffusionCommitAutocloseHeraldField.php
View Options
<?php
final
class
DiffusionCommitAutocloseHeraldField
extends
DiffusionCommitHeraldField
{
const
FIELDCONST
=
'diffusion.commit.autoclose'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Commit is on autoclose branch'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
return
$object
->
getRepository
()->
shouldAutocloseCommit
(
$object
);
}
public
function
getHeraldFieldConditions
()
{
return
array
(
HeraldAdapter
::
CONDITION_UNCONDITIONALLY
,
);
}
public
function
getHeraldFieldValueType
(
$condition
)
{
return
new
HeraldEmptyFieldValue
();
}
}
Event Timeline
Log In to Comment