Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96387641
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
Thu, Dec 26, 07:14
Size
680 B
Mime Type
text/x-php
Expires
Sat, Dec 28, 07:14 (1 d, 11 h)
Engine
blob
Format
Raw Data
Handle
23161827
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