Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92700026
HeraldSubscribersField.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, Nov 22, 22:04
Size
730 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 22:04 (2 d)
Engine
blob
Format
Raw Data
Handle
22489494
Attached To
rPH Phabricator
HeraldSubscribersField.php
View Options
<?php
final
class
HeraldSubscribersField
extends
HeraldField
{
const
FIELDCONST
=
'cc'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Subscribers'
);
}
public
function
getFieldGroupKey
()
{
return
HeraldSupportFieldGroup
::
FIELDGROUPKEY
;
}
public
function
supportsObject
(
$object
)
{
return
(
$object
instanceof
PhabricatorSubscribableInterface
);
}
public
function
getHeraldFieldValue
(
$object
)
{
$phid
=
$object
->
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