Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / dashboard / engine / PhabricatorDashboardPanelFulltextEngine.php
blob275713c4346f8a3266d7d6092ed5adcc45c0159e
1 <?php
3 final class PhabricatorDashboardPanelFulltextEngine
4 extends PhabricatorFulltextEngine {
6 protected function buildAbstractDocument(
7 PhabricatorSearchAbstractDocument $document,
8 $object) {
10 $panel = $object;
12 $document->setDocumentTitle($panel->getName());
14 $document->addRelationship(
15 $panel->getIsArchived()
16 ? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED
17 : PhabricatorSearchRelationship::RELATIONSHIP_OPEN,
18 $panel->getPHID(),
19 PhabricatorDashboardPanelPHIDType::TYPECONST,
20 PhabricatorTime::getNow());