Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F547845
DiffusionPreCommitContentRevisionSubscribersHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
834 B
Referenced Files
None
Subscribers
None
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
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:39 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
116615
Default Alt Text
DiffusionPreCommitContentRevisionSubscribersHeraldField.php (834 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment