Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fund/search/FundInitiativeIndexer.php
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | protected function buildAbstractDocumentByPHID($phid) { | ||||
$doc->addRelationship( | $doc->addRelationship( | ||||
$initiative->isClosed() | $initiative->isClosed() | ||||
? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED | ? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED | ||||
: PhabricatorSearchRelationship::RELATIONSHIP_OPEN, | : PhabricatorSearchRelationship::RELATIONSHIP_OPEN, | ||||
$initiative->getPHID(), | $initiative->getPHID(), | ||||
FundInitiativePHIDType::TYPECONST, | FundInitiativePHIDType::TYPECONST, | ||||
time()); | time()); | ||||
$this->indexTransactions( | |||||
$doc, | |||||
new FundInitiativeTransactionQuery(), | |||||
array($initiative->getPHID())); | |||||
return $doc; | return $doc; | ||||
} | } | ||||
} | } |