Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108257564
DivinerBookSearchIndexer.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, Apr 15, 08:26
Size
590 B
Mime Type
text/x-php
Expires
Thu, Apr 17, 08:26 (2 d)
Engine
blob
Format
Raw Data
Handle
25529234
Attached To
rPH Phabricator
DivinerBookSearchIndexer.php
View Options
<?php
final
class
DivinerBookSearchIndexer
extends
PhabricatorSearchDocumentIndexer
{
public
function
getIndexableObject
()
{
return
new
DivinerLiveBook
();
}
protected
function
buildAbstractDocumentByPHID
(
$phid
)
{
$book
=
$this
->
loadDocumentByPHID
(
$phid
);
$doc
=
$this
->
newDocument
(
$phid
)
->
setDocumentTitle
(
$book
->
getTitle
())
->
setDocumentCreated
(
$book
->
getDateCreated
())
->
setDocumentModified
(
$book
->
getDateModified
());
$doc
->
addField
(
PhabricatorSearchDocumentFieldType
::
FIELD_BODY
,
$book
->
getPreface
());
return
$doc
;
}
}
Event Timeline
Log In to Comment