Differential D20389 Diff 48666 src/applications/dashboard/engine/PhabricatorDashboardPortalFulltextEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/engine/PhabricatorDashboardPortalFulltextEngine.php
- This file was added.
<?php | |||||
final class PhabricatorDashboardPortalFulltextEngine | |||||
extends PhabricatorFulltextEngine { | |||||
protected function buildAbstractDocument( | |||||
PhabricatorSearchAbstractDocument $document, | |||||
$object) { | |||||
$portal = $object; | |||||
$document->setDocumentTitle($portal->getName()); | |||||
$document->addRelationship( | |||||
$portal->isArchived() | |||||
? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED | |||||
: PhabricatorSearchRelationship::RELATIONSHIP_OPEN, | |||||
$portal->getPHID(), | |||||
PhabricatorDashboardPortalPHIDType::TYPECONST, | |||||
PhabricatorTime::getNow()); | |||||
} | |||||
} |