3 final class PhabricatorLiskSearchEngineExtension
4 extends PhabricatorSearchEngineExtension
{
6 const EXTENSIONKEY
= 'lisk';
8 public function isExtensionEnabled() {
12 public function getExtensionName() {
13 return pht('Lisk Builtin Properties');
16 public function getExtensionOrder() {
20 public function supportsObject($object) {
21 if (!($object instanceof LiskDAO
)) {
25 if (!$object->getConfigOption(LiskDAO
::CONFIG_TIMESTAMPS
)) {
32 public function getFieldSpecificationsForConduit($object) {
34 id(new PhabricatorConduitSearchFieldSpecification())
35 ->setKey('dateCreated')
38 pht('Epoch timestamp when the object was created.')),
39 id(new PhabricatorConduitSearchFieldSpecification())
40 ->setKey('dateModified')
43 pht('Epoch timestamp when the object was last updated.')),
47 public function getFieldValuesForConduit($object, $data) {
49 'dateCreated' => (int)$object->getDateCreated(),
50 'dateModified' => (int)$object->getDateModified(),