Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93910663
PhabricatorCalendarEventFulltextEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Dec 2, 11:01
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Dec 4, 11:01 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22718492
Attached To
rPH Phabricator
PhabricatorCalendarEventFulltextEngine.php
View Options
<?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
());
}
}
Event Timeline
Log In to Comment