Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112651965
PhabricatorRepositoryFulltextEngine.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
Mon, May 12, 00:07
Size
850 B
Mime Type
text/x-php
Expires
Wed, May 14, 00:07 (2 d)
Engine
blob
Format
Raw Data
Handle
26119607
Attached To
rPH Phabricator
PhabricatorRepositoryFulltextEngine.php
View Options
<?php
final
class
PhabricatorRepositoryFulltextEngine
extends
PhabricatorFulltextEngine
{
protected
function
buildAbstractDocument
(
PhabricatorSearchAbstractDocument
$document
,
$object
)
{
$repo
=
$object
;
$document
->
setDocumentTitle
(
$repo
->
getName
());
$document
->
addField
(
PhabricatorSearchDocumentFieldType
::
FIELD_BODY
,
$repo
->
getRepositorySlug
().
"
\n
"
.
$repo
->
getDetail
(
'description'
));
$document
->
setDocumentCreated
(
$repo
->
getDateCreated
());
$document
->
setDocumentModified
(
$repo
->
getDateModified
());
$document
->
addRelationship
(
$repo
->
isTracked
()
?
PhabricatorSearchRelationship
::
RELATIONSHIP_OPEN
:
PhabricatorSearchRelationship
::
RELATIONSHIP_CLOSED
,
$repo
->
getPHID
(),
PhabricatorRepositoryRepositoryPHIDType
::
TYPECONST
,
PhabricatorTime
::
getNow
());
}
}
Event Timeline
Log In to Comment