Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77512843
PhabricatorProjectsMembersSearchEngineAttachment.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, Aug 14, 22:16
Size
680 B
Mime Type
text/x-php
Expires
Fri, Aug 16, 22:16 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19881170
Attached To
rPH Phabricator
PhabricatorProjectsMembersSearchEngineAttachment.php
View Options
<?php
final
class
PhabricatorProjectsMembersSearchEngineAttachment
extends
PhabricatorSearchEngineAttachment
{
public
function
getAttachmentName
()
{
return
pht
(
'Project Members'
);
}
public
function
getAttachmentDescription
()
{
return
pht
(
'Get the member list for the project.'
);
}
public
function
willLoadAttachmentData
(
$query
,
$spec
)
{
$query
->
needMembers
(
true
);
}
public
function
getAttachmentForObject
(
$object
,
$data
,
$spec
)
{
$members
=
array
();
foreach
(
$object
->
getMemberPHIDs
()
as
$member_phid
)
{
$members
[]
=
array
(
'phid'
=>
$member_phid
,
);
}
return
array
(
'members'
=>
$members
,
);
}
}
Event Timeline
Log In to Comment