Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93516811
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
Fri, Nov 29, 09:38
Size
699 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 09:38 (2 d)
Engine
blob
Format
Raw Data
Handle
22655436
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