Page MenuHomePhorge

PhabricatorProjectsAncestorsSearchEngineAttachment.php
No OneTemporary

Size
704 B
Referenced Files
None
Subscribers
None

PhabricatorProjectsAncestorsSearchEngineAttachment.php

<?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

Mime Type
text/x-php
Expires
Mon, May 12, 12:56 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
120249
Default Alt Text
PhabricatorProjectsAncestorsSearchEngineAttachment.php (704 B)

Event Timeline