Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108047781
PhabricatorProjectFulltextEngine.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, Apr 13, 14:31
Size
622 B
Mime Type
text/x-php
Expires
Tue, Apr 15, 14:31 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25527736
Attached To
rPH Phabricator
PhabricatorProjectFulltextEngine.php
View Options
<?php
final
class
PhabricatorProjectFulltextEngine
extends
PhabricatorFulltextEngine
{
protected
function
buildAbstractDocument
(
PhabricatorSearchAbstractDocument
$document
,
$object
)
{
$project
=
$object
;
$project
->
updateDatasourceTokens
();
$document
->
setDocumentTitle
(
$project
->
getName
());
$document
->
addRelationship
(
$project
->
isArchived
()
?
PhabricatorSearchRelationship
::
RELATIONSHIP_CLOSED
:
PhabricatorSearchRelationship
::
RELATIONSHIP_OPEN
,
$project
->
getPHID
(),
PhabricatorProjectProjectPHIDType
::
TYPECONST
,
PhabricatorTime
::
getNow
());
}
}
Event Timeline
Log In to Comment