Page MenuHomec4science

PhabricatorUserFulltextEngine.php
No OneTemporary

File Metadata

Created
Fri, Nov 8, 15:45

PhabricatorUserFulltextEngine.php

<?php
final class PhabricatorUserFulltextEngine
extends PhabricatorFulltextEngine {
protected function buildAbstractDocument(
PhabricatorSearchAbstractDocument $document,
$object) {
$user = $object;
$document->setDocumentTitle($user->getFullName());
$document->addRelationship(
$user->isUserActivated()
? PhabricatorSearchRelationship::RELATIONSHIP_OPEN
: PhabricatorSearchRelationship::RELATIONSHIP_CLOSED,
$user->getPHID(),
PhabricatorPeopleUserPHIDType::TYPECONST,
PhabricatorTime::getNow());
}
}

Event Timeline