Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65675537
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
Wed, Jun 5, 11:22
Size
699 B
Mime Type
text/x-php
Expires
Fri, Jun 7, 11:22 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18110679
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
());
$this
->
indexTransactions
(
$doc
,
new
DivinerLiveBookTransactionQuery
(),
array
(
$phid
));
return
$doc
;
}
}
Event Timeline
Log In to Comment