Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1437260
PhrictionContentSearchEngineAttachment.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
742 B
Referenced Files
None
Subscribers
None
PhrictionContentSearchEngineAttachment.php
View Options
<?php
final
class
PhrictionContentSearchEngineAttachment
extends
PhabricatorSearchEngineAttachment
{
public
function
getAttachmentName
()
{
return
pht
(
'Document Content'
);
}
public
function
getAttachmentDescription
()
{
return
pht
(
'Get the content of documents or document histories.'
);
}
public
function
getAttachmentForObject
(
$object
,
$data
,
$spec
)
{
if
(
$object
instanceof
PhrictionDocument
)
{
$content
=
$object
->
getContent
();
}
else
{
$content
=
$object
;
}
return
array
(
'title'
=>
$content
->
getTitle
(),
'path'
=>
$content
->
getSlug
(),
'authorPHID'
=>
$content
->
getAuthorPHID
(),
'content'
=>
array
(
'raw'
=>
$content
->
getContent
(),
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jul 10, 11:46 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
335242
Default Alt Text
PhrictionContentSearchEngineAttachment.php (742 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment