Page MenuHomePhorge

PhabricatorOwnersPathsSearchEngineAttachment.php
No OneTemporary

Size
783 B
Referenced Files
None
Subscribers
None

PhabricatorOwnersPathsSearchEngineAttachment.php

<?php
final class PhabricatorOwnersPathsSearchEngineAttachment
extends PhabricatorSearchEngineAttachment {
public function getAttachmentName() {
return pht('Included Paths');
}
public function getAttachmentDescription() {
return pht('Get the paths for each package.');
}
public function willLoadAttachmentData($query, $spec) {
$query->needPaths(true);
}
public function getAttachmentForObject($object, $data, $spec) {
$paths = $object->getPaths();
$list = array();
foreach ($paths as $path) {
$list[] = array(
'repositoryPHID' => $path->getRepositoryPHID(),
'path' => $path->getPathDisplay(),
'excluded' => (bool)$path->getExcluded(),
);
}
return array(
'paths' => $list,
);
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, May 7, 3:21 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
89661
Default Alt Text
PhabricatorOwnersPathsSearchEngineAttachment.php (783 B)

Event Timeline