Page MenuHomePhorge

PhameBlogFulltextEngine.php
No OneTemporary

Size
669 B
Referenced Files
None
Subscribers
None

PhameBlogFulltextEngine.php

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

File Metadata

Mime Type
text/x-php
Expires
Tue, May 13, 1:02 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
109252
Default Alt Text
PhameBlogFulltextEngine.php (669 B)

Event Timeline