Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / search / engineextension / PhabricatorLiskFulltextEngineExtension.php
blob1626d248da0499064a3b3ca5c6a3e8666efd6a86
1 <?php
3 final class PhabricatorLiskFulltextEngineExtension
4 extends PhabricatorFulltextEngineExtension {
6 const EXTENSIONKEY = 'lisk';
8 public function getExtensionName() {
9 return pht('Lisk Builtin Properties');
12 public function shouldEnrichFulltextObject($object) {
13 if (!($object instanceof PhabricatorLiskDAO)) {
14 return false;
17 if (!$object->getConfigOption(LiskDAO::CONFIG_TIMESTAMPS)) {
18 return false;
21 return true;
24 public function enrichFulltextObject(
25 $object,
26 PhabricatorSearchAbstractDocument $document) {
28 $document
29 ->setDocumentCreated($object->getDateCreated())
30 ->setDocumentModified($object->getDateModified());