Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2892485
PhabricatorProjectsAncestorsSearchEngineAttachment.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
704 B
Referenced Files
None
Subscribers
None
PhabricatorProjectsAncestorsSearchEngineAttachment.php
View Options
<?php
final
class
PhabricatorProjectsAncestorsSearchEngineAttachment
extends
PhabricatorSearchEngineAttachment
{
public
function
getAttachmentName
(
)
{
return
pht
(
'Project Ancestors'
)
;
}
public
function
getAttachmentDescription
(
)
{
return
pht
(
'Get the full ancestor list for each project.'
)
;
}
public
function
getAttachmentForObject
(
$object
,
$data
,
$spec
)
{
$ancestors
=
$object
->
getAncestorProjects
(
)
;
// Order ancestors by depth, ascending.
$ancestors
=
array_reverse
(
$ancestors
)
;
$results
=
array
(
)
;
foreach
(
$ancestors
as
$ancestor
)
{
$results
[
]
=
$ancestor
->
getRefForConduit
(
)
;
}
return
array
(
'ancestors'
=>
$results
,
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 16:53 (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1126675
Default Alt Text
PhabricatorProjectsAncestorsSearchEngineAttachment.php (704 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment