Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106384288
PhameBlogFulltextEngine.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, Mar 25, 08:17
Size
669 B
Mime Type
text/x-php
Expires
Thu, Mar 27, 08:17 (2 d)
Engine
blob
Format
Raw Data
Handle
25175317
Attached To
rPH Phabricator
PhameBlogFulltextEngine.php
View Options
<?php
final
class
PhameBlogFulltextEngine
extends
PhabricatorFulltextEngine
{
protected
function
buildAbstractDocument
(
PhabricatorSearchAbstractDocument
$document
,
$object
)
{
$blog
=
$object
;
$document
->
setDocumentTitle
(
$blog
->
getName
());
$document
->
addField
(
PhabricatorSearchDocumentFieldType
::
FIELD_BODY
,
$blog
->
getDescription
());
$document
->
addRelationship
(
$blog
->
isArchived
()
?
PhabricatorSearchRelationship
::
RELATIONSHIP_CLOSED
:
PhabricatorSearchRelationship
::
RELATIONSHIP_OPEN
,
$blog
->
getPHID
(),
PhabricatorPhameBlogPHIDType
::
TYPECONST
,
PhabricatorTime
::
getNow
());
}
}
Event Timeline
Log In to Comment