Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1389436
PhabricatorPasteFulltextEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorPasteFulltextEngine.php
View Options
<?php
final
class
PhabricatorPasteFulltextEngine
extends
PhabricatorFulltextEngine
{
protected
function
buildAbstractDocument
(
PhabricatorSearchAbstractDocument
$document
,
$object
)
{
$paste
=
id
(
new
PhabricatorPasteQuery
())
->
setViewer
(
$this
->
getViewer
())
->
withPHIDs
(
array
(
$object
->
getPHID
()))
->
needContent
(
true
)
->
executeOne
();
$document
->
setDocumentTitle
(
$paste
->
getTitle
());
$document
->
addRelationship
(
$paste
->
isArchived
()
?
PhabricatorSearchRelationship
::
RELATIONSHIP_CLOSED
:
PhabricatorSearchRelationship
::
RELATIONSHIP_OPEN
,
$paste
->
getPHID
(),
PhabricatorPastePastePHIDType
::
TYPECONST
,
PhabricatorTime
::
getNow
());
$document
->
addField
(
PhabricatorSearchDocumentFieldType
::
FIELD_BODY
,
$paste
->
getContent
());
$document
->
addRelationship
(
PhabricatorSearchRelationship
::
RELATIONSHIP_AUTHOR
,
$paste
->
getAuthorPHID
(),
PhabricatorPeopleUserPHIDType
::
TYPECONST
,
$paste
->
getDateCreated
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jul 7, 7:33 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
327216
Default Alt Text
PhabricatorPasteFulltextEngine.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment