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