Page MenuHomePhorge

PhabricatorCalendarEventFulltextEngine.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

PhabricatorCalendarEventFulltextEngine.php

<?php
final class PhabricatorCalendarEventFulltextEngine
extends PhabricatorFulltextEngine {
protected function buildAbstractDocument(
PhabricatorSearchAbstractDocument $document,
$object) {
$event = $object;
$document->setDocumentTitle($event->getName());
$document->addField(
PhabricatorSearchDocumentFieldType::FIELD_BODY,
$event->getDescription());
$document->addRelationship(
PhabricatorSearchRelationship::RELATIONSHIP_AUTHOR,
$event->getHostPHID(),
PhabricatorPeopleUserPHIDType::TYPECONST,
$event->getDateCreated());
$document->addRelationship(
PhabricatorSearchRelationship::RELATIONSHIP_OWNER,
$event->getHostPHID(),
PhabricatorPeopleUserPHIDType::TYPECONST,
$event->getDateCreated());
$document->addRelationship(
$event->getIsCancelled()
? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED
: PhabricatorSearchRelationship::RELATIONSHIP_OPEN,
$event->getPHID(),
PhabricatorCalendarEventPHIDType::TYPECONST,
PhabricatorTime::getNow());
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, May 12, 4:07 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
123387
Default Alt Text
PhabricatorCalendarEventFulltextEngine.php (1 KB)

Event Timeline