Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/storage/PhabricatorExternalAccount.php
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | return array( | ||||
'username' => 'text255?', | 'username' => 'text255?', | ||||
'realName' => 'text255?', | 'realName' => 'text255?', | ||||
'email' => 'text255?', | 'email' => 'text255?', | ||||
'emailVerified' => 'bool', | 'emailVerified' => 'bool', | ||||
'profileImagePHID' => 'phid?', | 'profileImagePHID' => 'phid?', | ||||
'accountURI' => 'text255?', | 'accountURI' => 'text255?', | ||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'key_phid' => null, | |||||
'phid' => array( | |||||
'columns' => array('phid'), | |||||
'unique' => true, | |||||
), | |||||
'account_details' => array( | 'account_details' => array( | ||||
'columns' => array('accountType', 'accountDomain', 'accountID'), | 'columns' => array('accountType', 'accountDomain', 'accountID'), | ||||
'unique' => true, | 'unique' => true, | ||||
), | ), | ||||
'key_user' => array( | |||||
'columns' => array('userPHID'), | |||||
), | |||||
), | ), | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function getPhabricatorUser() { | public function getPhabricatorUser() { | ||||
$tmp_usr = id(new PhabricatorUser()) | $tmp_usr = id(new PhabricatorUser()) | ||||
->makeEphemeral() | ->makeEphemeral() | ||||
->setPHID($this->getPHID()); | ->setPHID($this->getPHID()); | ||||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |