Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97024856
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
Wed, Jan 1, 18:18
Size
635 B
Mime Type
text/x-php
Expires
Fri, Jan 3, 18:18 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23314787
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
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