Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82390841
DivinerLiveBookFulltextEngine.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
Wed, Sep 11, 03:32
Size
606 B
Mime Type
text/x-php
Expires
Fri, Sep 13, 03:32 (2 d)
Engine
blob
Format
Raw Data
Handle
20685353
Attached To
rPH Phabricator
DivinerLiveBookFulltextEngine.php
View Options
<?php
final
class
DivinerLiveBookFulltextEngine
extends
PhabricatorFulltextEngine
{
protected
function
buildAbstractDocument
(
PhabricatorSearchAbstractDocument
$document
,
$object
)
{
$book
=
$object
;
$document
->
setDocumentTitle
(
$book
->
getTitle
());
$document
->
addField
(
PhabricatorSearchDocumentFieldType
::
FIELD_BODY
,
$book
->
getPreface
());
$document
->
addRelationship
(
PhabricatorSearchRelationship
::
RELATIONSHIP_REPOSITORY
,
$book
->
getRepositoryPHID
(),
PhabricatorRepositoryRepositoryPHIDType
::
TYPECONST
,
$book
->
getDateCreated
());
}
}
Event Timeline
Log In to Comment