Changeset View
Changeset View
Standalone View
Standalone View
src/applications/passphrase/search/PassphraseSearchIndexer.php
Show All 22 Lines | protected function buildAbstractDocumentByPHID($phid) { | ||||
$doc->addRelationship( | $doc->addRelationship( | ||||
$credential->getIsDestroyed() | $credential->getIsDestroyed() | ||||
? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED | ? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED | ||||
: PhabricatorSearchRelationship::RELATIONSHIP_OPEN, | : PhabricatorSearchRelationship::RELATIONSHIP_OPEN, | ||||
$credential->getPHID(), | $credential->getPHID(), | ||||
PassphraseCredentialPHIDType::TYPECONST, | PassphraseCredentialPHIDType::TYPECONST, | ||||
time()); | time()); | ||||
$this->indexTransactions( | |||||
$doc, | |||||
new PassphraseCredentialTransactionQuery(), | |||||
array($phid)); | |||||
return $doc; | return $doc; | ||||
} | } | ||||
} | } |