Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/almanac/engineextension/AlmanacPropertiesSearchEngineAttachment.php
12256 views
1
<?php
2
3
final class AlmanacPropertiesSearchEngineAttachment
4
extends AlmanacSearchEngineAttachment {
5
6
public function getAttachmentName() {
7
return pht('Almanac Properties');
8
}
9
10
public function getAttachmentDescription() {
11
return pht('Get Almanac properties for the object.');
12
}
13
14
public function willLoadAttachmentData($query, $spec) {
15
$query->needProperties(true);
16
}
17
18
public function getAttachmentForObject($object, $data, $spec) {
19
$properties = $this->getAlmanacPropertyList($object);
20
21
return array(
22
'properties' => $properties,
23
);
24
}
25
26
}
27
28