Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93605255
DiffusionPreCommitContentRevisionSubscribersHeraldField.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
Sat, Nov 30, 02:45
Size
834 B
Mime Type
text/x-php
Expires
Mon, Dec 2, 02:45 (2 d)
Engine
blob
Format
Raw Data
Handle
22672111
Attached To
rPH Phabricator
DiffusionPreCommitContentRevisionSubscribersHeraldField.php
View Options
<?php
final
class
DiffusionPreCommitContentRevisionSubscribersHeraldField
extends
DiffusionPreCommitContentHeraldField
{
const
FIELDCONST
=
'diffusion.pre.content.revision.subscribers'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Differential subscribers'
);
}
public
function
getFieldGroupKey
()
{
return
HeraldRelatedFieldGroup
::
FIELDGROUPKEY
;
}
public
function
getHeraldFieldValue
(
$object
)
{
$revision
=
$this
->
getAdapter
()->
getRevision
();
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