Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93145223
DiffusionCommitRevisionSubscribersHeraldField.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
Tue, Nov 26, 13:31
Size
822 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 13:31 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22581306
Attached To
rPH Phabricator
DiffusionCommitRevisionSubscribersHeraldField.php
View Options
<?php
final
class
DiffusionCommitRevisionSubscribersHeraldField
extends
DiffusionCommitHeraldField
{
const
FIELDCONST
=
'diffusion.commit.revision.subscribers'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Differential subscribers'
);
}
public
function
getFieldGroupKey
()
{
return
HeraldRelatedFieldGroup
::
FIELDGROUPKEY
;
}
public
function
getHeraldFieldValue
(
$object
)
{
$revision
=
$this
->
getAdapter
()->
loadDifferentialRevision
();
if
(!
$revision
)
{
return
array
();
}
$phid
=
$revision
->
getPHID
();
return
PhabricatorSubscribersQuery
::
loadSubscribersForPHID
(
$phid
);
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_PHID_LIST
;
}
protected
function
getDatasource
()
{
return
new
PhabricatorProjectOrUserDatasource
();
}
}
Event Timeline
Log In to Comment