Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F509572
PhabricatorProjectsWatchersSearchEngineAttachment.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
691 B
Referenced Files
None
Subscribers
None
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
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 11, 9:30 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
104313
Default Alt Text
PhabricatorProjectsWatchersSearchEngineAttachment.php (691 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment