2015-12-11 17:45:56 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class ConduitResultSearchEngineExtension
|
|
|
|
extends PhabricatorSearchEngineExtension {
|
|
|
|
|
|
|
|
const EXTENSIONKEY = 'conduit';
|
|
|
|
|
|
|
|
public function isExtensionEnabled() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2015-12-13 17:45:01 +01:00
|
|
|
public function getExtensionOrder() {
|
2015-12-13 19:11:40 +01:00
|
|
|
return 1500;
|
2015-12-13 17:45:01 +01:00
|
|
|
}
|
|
|
|
|
2015-12-11 17:45:56 +01:00
|
|
|
public function getExtensionName() {
|
|
|
|
return pht('Support for ConduitResultInterface');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function supportsObject($object) {
|
|
|
|
return ($object instanceof PhabricatorConduitResultInterface);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getFieldSpecificationsForConduit($object) {
|
|
|
|
return $object->getFieldSpecificationsForConduit();
|
|
|
|
}
|
|
|
|
|
2016-07-31 17:19:17 +02:00
|
|
|
public function getFieldValuesForConduit($object, $data) {
|
2015-12-11 17:45:56 +01:00
|
|
|
return $object->getFieldValuesForConduit();
|
|
|
|
}
|
|
|
|
|
2015-12-14 15:01:04 +01:00
|
|
|
public function getSearchAttachments($object) {
|
|
|
|
return $object->getConduitSearchAttachments();
|
|
|
|
}
|
|
|
|
|
2015-12-11 17:45:56 +01:00
|
|
|
}
|