Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99849466
FundInitiativeFulltextEngine.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
Sun, Jan 26, 23:05
Size
999 B
Mime Type
text/x-php
Expires
Tue, Jan 28, 23:05 (2 d)
Engine
blob
Format
Raw Data
Handle
23834500
Attached To
rPH Phabricator
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
());
}
}
Event Timeline
Log In to Comment