Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72832188
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, Jul 17, 07:05
Size
606 B
Mime Type
text/x-php
Expires
Fri, Jul 19, 07:05 (2 d)
Engine
blob
Format
Raw Data
Handle
19090461
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