Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98257871
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
Sat, Jan 11, 12:56
Size
691 B
Mime Type
text/x-php
Expires
Mon, Jan 13, 12:56 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23541923
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