Page MenuHomec4science

AlmanacBindingsSearchEngineAttachment.php
No OneTemporary

File Metadata

Created
Tue, Jul 16, 02:10

AlmanacBindingsSearchEngineAttachment.php

<?php
final class AlmanacBindingsSearchEngineAttachment
extends AlmanacSearchEngineAttachment {
public function getAttachmentName() {
return pht('Almanac Bindings');
}
public function getAttachmentDescription() {
return pht('Get Almanac bindings for the service.');
}
public function willLoadAttachmentData($query, $spec) {
$query->needProperties(true);
$query->needBindings(true);
}
public function getAttachmentForObject($object, $data, $spec) {
$bindings = array();
foreach ($object->getBindings() as $binding) {
$bindings[] = $this->getAlmanacBindingDictionary($binding);
}
return array(
'bindings' => $bindings,
);
}
}

Event Timeline