Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F549806
PhabricatorOwnersPackageFulltextEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
780 B
Referenced Files
None
Subscribers
None
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
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 2:19 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
98803
Default Alt Text
PhabricatorOwnersPackageFulltextEngine.php (780 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment