Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106633691
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, Mar 29, 00:12
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Mar 31, 01:12 (2 d)
Engine
blob
Format
Raw Data
Handle
25240156
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