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();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getFieldValuesForConduit($object) {
|
|
|
|
return $object->getFieldValuesForConduit();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|