Page MenuHomestyx hydra

PhabricatorOwnersPackageFulltextEngine.php
No OneTemporary

PhabricatorOwnersPackageFulltextEngine.php

<?php
final class PhabricatorOwnersPackageFulltextEngine
extends PhabricatorFulltextEngine {
protected function buildAbstractDocument(
PhabricatorSearchAbstractDocument $document,
$object) {
$package = $object;
$document->setDocumentTitle($package->getName());
// TODO: These are bogus, but not currently stored on packages.
$document->setDocumentCreated(PhabricatorTime::getNow());
$document->setDocumentModified(PhabricatorTime::getNow());
$document->addRelationship(
$package->isArchived()
? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED
: PhabricatorSearchRelationship::RELATIONSHIP_OPEN,
$package->getPHID(),
PhabricatorOwnersPackagePHIDType::TYPECONST,
PhabricatorTime::getNow());
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Nov 21, 3:22 PM (20 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
347790
Default Alt Text
PhabricatorOwnersPackageFulltextEngine.php (780 B)

Event Timeline