Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/storage/PhortuneAccount.php
| Show All 10 Lines | implements | ||||
| PhabricatorApplicationTransactionInterface, | PhabricatorApplicationTransactionInterface, | ||||
| PhabricatorPolicyInterface { | PhabricatorPolicyInterface { | ||||
| protected $name; | protected $name; | ||||
| private $memberPHIDs = self::ATTACHABLE; | private $memberPHIDs = self::ATTACHABLE; | ||||
| public static function initializeNewAccount(PhabricatorUser $actor) { | public static function initializeNewAccount(PhabricatorUser $actor) { | ||||
| $account = id(new PhortuneAccount()); | return id(new self()) | ||||
| $account->memberPHIDs = array($actor->getPHID() => $actor->getPHID()); | ->attachMemberPHIDs(array()); | ||||
| return $account; | |||||
| } | } | ||||
| public static function createNewAccount( | public static function createNewAccount( | ||||
| PhabricatorUser $actor, | PhabricatorUser $actor, | ||||
| PhabricatorContentSource $content_source) { | PhabricatorContentSource $content_source) { | ||||
| $account = self::initializeNewAccount($actor); | $account = self::initializeNewAccount($actor); | ||||
| ▲ Show 20 Lines • Show All 143 Lines • Show Last 20 Lines | |||||