Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92986505
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
Mon, Nov 25, 09:21
Size
780 B
Mime Type
text/x-php
Expires
Wed, Nov 27, 09:21 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22550383
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