Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101919063
DivinerLiveSymbolFulltextEngine.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
Sat, Feb 15, 03:41
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Feb 17, 03:41 (2 d)
Engine
blob
Format
Raw Data
Handle
24244910
Attached To
rPH Phabricator
DivinerLiveSymbolFulltextEngine.php
View Options
<?php
final
class
DivinerLiveSymbolFulltextEngine
extends
PhabricatorFulltextEngine
{
protected
function
buildAbstractDocument
(
PhabricatorSearchAbstractDocument
$document
,
$object
)
{
$atom
=
$object
;
$book
=
$atom
->
getBook
();
$document
->
setDocumentTitle
(
$atom
->
getTitle
())
->
setDocumentCreated
(
$book
->
getDateCreated
())
->
setDocumentModified
(
$book
->
getDateModified
());
$document
->
addField
(
PhabricatorSearchDocumentFieldType
::
FIELD_BODY
,
$atom
->
getSummary
());
$document
->
addRelationship
(
PhabricatorSearchRelationship
::
RELATIONSHIP_BOOK
,
$atom
->
getBookPHID
(),
DivinerBookPHIDType
::
TYPECONST
,
PhabricatorTime
::
getNow
());
$document
->
addRelationship
(
PhabricatorSearchRelationship
::
RELATIONSHIP_REPOSITORY
,
$atom
->
getRepositoryPHID
(),
PhabricatorRepositoryRepositoryPHIDType
::
TYPECONST
,
PhabricatorTime
::
getNow
());
$document
->
addRelationship
(
$atom
->
getGraphHash
()
?
PhabricatorSearchRelationship
::
RELATIONSHIP_CLOSED
:
PhabricatorSearchRelationship
::
RELATIONSHIP_OPEN
,
$atom
->
getBookPHID
(),
DivinerBookPHIDType
::
TYPECONST
,
PhabricatorTime
::
getNow
());
}
}
Event Timeline
Log In to Comment