Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/storage/PhortuneAccount.php
| Show All 21 Lines | public static function initializeNewAccount(PhabricatorUser $actor) { | ||||
| return $account; | return $account; | ||||
| } | } | ||||
| public static function createNewAccount( | public static function createNewAccount( | ||||
| PhabricatorUser $actor, | PhabricatorUser $actor, | ||||
| PhabricatorContentSource $content_source) { | PhabricatorContentSource $content_source) { | ||||
| $account = PhortuneAccount::initializeNewAccount($actor); | $account = self::initializeNewAccount($actor); | ||||
| $xactions = array(); | $xactions = array(); | ||||
| $xactions[] = id(new PhortuneAccountTransaction()) | $xactions[] = id(new PhortuneAccountTransaction()) | ||||
| ->setTransactionType(PhortuneAccountTransaction::TYPE_NAME) | ->setTransactionType(PhortuneAccountTransaction::TYPE_NAME) | ||||
| ->setNewValue(pht('Default Account')); | ->setNewValue(pht('Default Account')); | ||||
| $xactions[] = id(new PhortuneAccountTransaction()) | $xactions[] = id(new PhortuneAccountTransaction()) | ||||
| ->setTransactionType(PhabricatorTransactions::TYPE_EDGE) | ->setTransactionType(PhabricatorTransactions::TYPE_EDGE) | ||||
| ▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines | |||||