Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91637605
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
Tue, Nov 12, 23:35
Size
691 B
Mime Type
text/x-php
Expires
Thu, Nov 14, 23:35 (2 d)
Engine
blob
Format
Raw Data
Handle
22261991
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