Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91959795
PhabricatorPasteContentSearchEngineAttachment.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
Sat, Nov 16, 03:43
Size
538 B
Mime Type
text/x-php
Expires
Mon, Nov 18, 03:43 (2 d)
Engine
blob
Format
Raw Data
Handle
22354502
Attached To
rPH Phabricator
PhabricatorPasteContentSearchEngineAttachment.php
View Options
<?php
final
class
PhabricatorPasteContentSearchEngineAttachment
extends
PhabricatorSearchEngineAttachment
{
public
function
getAttachmentName
()
{
return
pht
(
'Paste Content'
);
}
public
function
getAttachmentDescription
()
{
return
pht
(
'Get the full content for each paste.'
);
}
public
function
willLoadAttachmentData
(
$query
,
$spec
)
{
$query
->
needRawContent
(
true
);
}
public
function
getAttachmentForObject
(
$object
,
$data
,
$spec
)
{
return
array
(
'content'
=>
$object
->
getRawContent
(),
);
}
}
Event Timeline
Log In to Comment