Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97578236
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
Sun, Jan 5, 10:13
Size
850 B
Mime Type
text/x-php
Expires
Tue, Jan 7, 10:13 (2 d)
Engine
blob
Format
Raw Data
Handle
23430165
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