Page MenuHomePhorge

PassphraseCredentialFulltextEngine.php
No OneTemporary

Size
713 B
Referenced Files
None
Subscribers
None

PassphraseCredentialFulltextEngine.php

<?php
final class PassphraseCredentialFulltextEngine
extends PhabricatorFulltextEngine {
protected function buildAbstractDocument(
PhabricatorSearchAbstractDocument $document,
$object) {
$credential = $object;
$document->setDocumentTitle($credential->getName());
$document->addField(
PhabricatorSearchDocumentFieldType::FIELD_BODY,
$credential->getDescription());
$document->addRelationship(
$credential->getIsDestroyed()
? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED
: PhabricatorSearchRelationship::RELATIONSHIP_OPEN,
$credential->getPHID(),
PassphraseCredentialPHIDType::TYPECONST,
PhabricatorTime::getNow());
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, May 12, 6:35 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
124962
Default Alt Text
PassphraseCredentialFulltextEngine.php (713 B)

Event Timeline