Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101573406
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
Tue, Feb 11, 17:03
Size
999 B
Mime Type
text/x-php
Expires
Thu, Feb 13, 17:03 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24148138
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