Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/harbormaster/engineextension/HarbormasterQueryBuildsSearchEngineAttachment.php
12256 views
1
<?php
2
3
final class HarbormasterQueryBuildsSearchEngineAttachment
4
extends PhabricatorSearchEngineAttachment {
5
6
public function getAttachmentName() {
7
return pht('Harbormaster Query Builds');
8
}
9
10
public function getAttachmentDescription() {
11
return pht(
12
'This attachment exists solely to provide compatibility with the '.
13
'message format returned by an outdated API method. It will be '.
14
'taken away at some point and you should not rely on these fields '.
15
'being available.');
16
}
17
18
public function getAttachmentForObject($object, $data, $spec) {
19
$status_name = HarbormasterBuildStatus::getBuildStatusName(
20
$object->getBuildStatus());
21
return array(
22
'uri' => PhabricatorEnv::getProductionURI($object->getURI()),
23
'name' => $object->getName(),
24
'buildStatusName' => $status_name,
25
);
26
}
27
28
}
29
30