Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96542435
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
Fri, Dec 27, 20:44
Size
593 B
Mime Type
text/x-php
Expires
Sun, Dec 29, 20:44 (2 d)
Engine
blob
Format
Raw Data
Handle
23202941
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