Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1143738
FundInitiativeFulltextEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
999 B
Referenced Files
None
Subscribers
None
FundInitiativeFulltextEngine.php
View Options
<?php
final
class
FundInitiativeFulltextEngine
extends
PhabricatorFulltextEngine
{
protected
function
buildAbstractDocument
(
PhabricatorSearchAbstractDocument
$document
,
$object
)
{
$initiative
=
$object
;
$document
->
setDocumentTitle
(
$initiative
->
getName
());
$document
->
addRelationship
(
PhabricatorSearchRelationship
::
RELATIONSHIP_AUTHOR
,
$initiative
->
getOwnerPHID
(),
PhabricatorPeopleUserPHIDType
::
TYPECONST
,
$initiative
->
getDateCreated
());
$document
->
addRelationship
(
PhabricatorSearchRelationship
::
RELATIONSHIP_OWNER
,
$initiative
->
getOwnerPHID
(),
PhabricatorPeopleUserPHIDType
::
TYPECONST
,
$initiative
->
getDateCreated
());
$document
->
addRelationship
(
$initiative
->
isClosed
()
?
PhabricatorSearchRelationship
::
RELATIONSHIP_CLOSED
:
PhabricatorSearchRelationship
::
RELATIONSHIP_OPEN
,
$initiative
->
getPHID
(),
FundInitiativePHIDType
::
TYPECONST
,
PhabricatorTime
::
getNow
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 1, 10:40 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
262564
Default Alt Text
FundInitiativeFulltextEngine.php (999 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment