Page MenuHomec4science

PholioMockFulltextEngine.php
No OneTemporary

File Metadata

Created
Wed, Nov 27, 05:29

PholioMockFulltextEngine.php

<?php
final class PholioMockFulltextEngine
extends PhabricatorFulltextEngine {
protected function buildAbstractDocument(
PhabricatorSearchAbstractDocument $document,
$object) {
$mock = $object;
$document->setDocumentTitle($mock->getName());
$document->addField(
PhabricatorSearchDocumentFieldType::FIELD_BODY,
$mock->getDescription());
$document->addRelationship(
PhabricatorSearchRelationship::RELATIONSHIP_AUTHOR,
$mock->getAuthorPHID(),
PhabricatorPeopleUserPHIDType::TYPECONST,
$mock->getDateCreated());
}
}

Event Timeline