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