Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2889468
PhabricatorRepositoryFulltextEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorRepositoryFulltextEngine.php
View Options
<?php
final
class
PhabricatorRepositoryFulltextEngine
extends
PhabricatorFulltextEngine
{
protected
function
buildAbstractDocument
(
PhabricatorSearchAbstractDocument
$document
,
$object
)
{
$repo
=
$object
;
$title_fields
=
array
(
$repo
->
getName
(
)
,
$repo
->
getRepositorySlug
(
)
,
)
;
$callsign
=
$repo
->
getCallsign
(
)
;
if
(
$callsign
)
{
$title_fields
[
]
=
$callsign
;
$title_fields
[
]
=
'r'
.
$callsign
;
}
$document
->
setDocumentTitle
(
implode
(
"\n"
,
$title_fields
)
)
;
$document
->
addField
(
PhabricatorSearchDocumentFieldType
::
FIELD_BODY
,
$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
(
)
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 12:11 (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1124430
Default Alt Text
PhabricatorRepositoryFulltextEngine.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment