Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81098377
PhabricatorProjectsWatchersSearchEngineAttachment.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, Sep 4, 04:58
Size
691 B
Mime Type
text/x-php
Expires
Fri, Sep 6, 04:58 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
20516897
Attached To
rPH Phabricator
PhabricatorProjectsWatchersSearchEngineAttachment.php
View Options
<?php
final
class
PhabricatorProjectsWatchersSearchEngineAttachment
extends
PhabricatorSearchEngineAttachment
{
public
function
getAttachmentName
()
{
return
pht
(
'Project Watchers'
);
}
public
function
getAttachmentDescription
()
{
return
pht
(
'Get the watcher list for the project.'
);
}
public
function
willLoadAttachmentData
(
$query
,
$spec
)
{
$query
->
needWatchers
(
true
);
}
public
function
getAttachmentForObject
(
$object
,
$data
,
$spec
)
{
$watchers
=
array
();
foreach
(
$object
->
getWatcherPHIDs
()
as
$watcher_phid
)
{
$watchers
[]
=
array
(
'phid'
=>
$watcher_phid
,
);
}
return
array
(
'watchers'
=>
$watchers
,
);
}
}
Event Timeline
Log In to Comment