Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99938562
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
Mon, Jan 27, 09:08
Size
680 B
Mime Type
text/x-php
Expires
Wed, Jan 29, 09:08 (2 d)
Engine
blob
Format
Raw Data
Handle
23854291
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