Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/storage/PhortuneAccount.php
Show All 24 Lines | public static function createNewAccount( | ||||
PhabricatorUser $actor, | PhabricatorUser $actor, | ||||
PhabricatorContentSource $content_source) { | PhabricatorContentSource $content_source) { | ||||
$account = PhortuneAccount::initializeNewAccount($actor); | $account = PhortuneAccount::initializeNewAccount($actor); | ||||
$xactions = array(); | $xactions = array(); | ||||
$xactions[] = id(new PhortuneAccountTransaction()) | $xactions[] = id(new PhortuneAccountTransaction()) | ||||
->setTransactionType(PhortuneAccountTransaction::TYPE_NAME) | ->setTransactionType(PhortuneAccountTransaction::TYPE_NAME) | ||||
->setNewValue(pht('Account (%s)', $actor->getUserName())); | ->setNewValue(pht('Personal Account')); | ||||
$xactions[] = id(new PhortuneAccountTransaction()) | $xactions[] = id(new PhortuneAccountTransaction()) | ||||
->setTransactionType(PhabricatorTransactions::TYPE_EDGE) | ->setTransactionType(PhabricatorTransactions::TYPE_EDGE) | ||||
->setMetadataValue( | ->setMetadataValue( | ||||
'edge:type', | 'edge:type', | ||||
PhabricatorEdgeConfig::TYPE_ACCOUNT_HAS_MEMBER) | PhabricatorEdgeConfig::TYPE_ACCOUNT_HAS_MEMBER) | ||||
->setNewValue( | ->setNewValue( | ||||
array( | array( | ||||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |