Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/editor/PhortuneCartEditor.php
Show First 20 Lines • Show All 182 Lines • ▼ Show 20 Lines | $body->addLinkSection( | ||||
PhabricatorEnv::getProductionURI($account_uri)); | PhabricatorEnv::getProductionURI($account_uri)); | ||||
return $body; | return $body; | ||||
} | } | ||||
protected function getMailTo(PhabricatorLiskDAO $object) { | protected function getMailTo(PhabricatorLiskDAO $object) { | ||||
$phids = array(); | $phids = array(); | ||||
// Reload the cart to pull merchant and account information, in case we | // Reload the cart to pull account information, in case we just created the | ||||
// just created the object. | // object. | ||||
$cart = id(new PhortuneCartQuery()) | $cart = id(new PhortuneCartQuery()) | ||||
->setViewer($this->requireActor()) | ->setViewer($this->requireActor()) | ||||
->withPHIDs(array($object->getPHID())) | ->withPHIDs(array($object->getPHID())) | ||||
->executeOne(); | ->executeOne(); | ||||
foreach ($cart->getAccount()->getMemberPHIDs() as $account_member) { | foreach ($cart->getAccount()->getMemberPHIDs() as $account_member) { | ||||
$phids[] = $account_member; | $phids[] = $account_member; | ||||
} | } | ||||
foreach ($cart->getMerchant()->getMemberPHIDs() as $merchant_member) { | |||||
$phids[] = $merchant_member; | |||||
} | |||||
return $phids; | return $phids; | ||||
} | } | ||||
protected function getMailCC(PhabricatorLiskDAO $object) { | protected function getMailCC(PhabricatorLiskDAO $object) { | ||||
return array(); | return array(); | ||||
} | } | ||||
protected function getMailSubjectPrefix() { | protected function getMailSubjectPrefix() { | ||||
Show All 29 Lines |