Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92696205
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
Fri, Nov 22, 21:04
Size
780 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 21:04 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
22488672
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