Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2889227
PhabricatorLegalpadBodySearchEngineAttachment.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
608 B
Referenced Files
None
Subscribers
None
PhabricatorLegalpadBodySearchEngineAttachment.php
View Options
<?php
final
class
PhabricatorLegalpadBodySearchEngineAttachment
extends
PhabricatorSearchEngineAttachment
{
public
function
getAttachmentName
(
)
{
return
pht
(
'Legalpad Document Body'
)
;
}
public
function
getAttachmentDescription
(
)
{
return
pht
(
'Get the full content for each document.'
)
;
}
public
function
willLoadAttachmentData
(
$query
,
$spec
)
{
$query
->
needDocumentBodies
(
true
)
;
}
public
function
getAttachmentForObject
(
$object
,
$data
,
$spec
)
{
return
array
(
'body'
=>
$object
->
getDocumentBody
(
)
->
getText
(
)
,
'preamble'
=>
$object
->
getPreamble
(
)
,
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 11:51 (5 w, 9 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1124260
Default Alt Text
PhabricatorLegalpadBodySearchEngineAttachment.php (608 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment