Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100971862
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
Tue, Feb 4, 10:31
Size
535 B
Mime Type
text/x-php
Expires
Thu, Feb 6, 10:31 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
24066977
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
(
'data'
=>
$object
->
getRawContent
(),
);
}
}
Event Timeline
Log In to Comment