Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100160521
PhabricatorOwnersPackageFulltextEngine.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
Tue, Jan 28, 15:51
Size
780 B
Mime Type
text/x-php
Expires
Thu, Jan 30, 15:51 (2 d)
Engine
blob
Format
Raw Data
Handle
23909551
Attached To
rPH Phabricator
PhabricatorOwnersPackageFulltextEngine.php
View Options
<?php
final
class
PhabricatorOwnersPackageFulltextEngine
extends
PhabricatorFulltextEngine
{
protected
function
buildAbstractDocument
(
PhabricatorSearchAbstractDocument
$document
,
$object
)
{
$package
=
$object
;
$document
->
setDocumentTitle
(
$package
->
getName
());
// TODO: These are bogus, but not currently stored on packages.
$document
->
setDocumentCreated
(
PhabricatorTime
::
getNow
());
$document
->
setDocumentModified
(
PhabricatorTime
::
getNow
());
$document
->
addRelationship
(
$package
->
isArchived
()
?
PhabricatorSearchRelationship
::
RELATIONSHIP_CLOSED
:
PhabricatorSearchRelationship
::
RELATIONSHIP_OPEN
,
$package
->
getPHID
(),
PhabricatorOwnersPackagePHIDType
::
TYPECONST
,
PhabricatorTime
::
getNow
());
}
}
Event Timeline
Log In to Comment