AccountManager¶
-
class
OC\Accounts\AccountManager¶ - Class AccountManagerManage system accounts table
Source: lib/private/Accounts/AccountManager.php#59 Implements: OCP\Accounts\IAccountManager
Properties¶
Methods¶
-
public
OC\Accounts\AccountManager::__construct($connection, $config, $eventDispatcher, $jobList, $logger)¶ Source: lib/private/Accounts/AccountManager.php#82
-
protected
OC\Accounts\AccountManager::parsePhoneNumber($input)¶ Source: Parameters: - $input (string)
Returns: string Provided phone number in E.164 format when it was a valid number
Throws: \InvalidArgumentExceptionWhen the phone number was invalid or no default region is set and the number doesn’t start with a country code
-
protected
OC\Accounts\AccountManager::parseWebsite($input)¶ Source: Parameters: - $input (string)
Returns: string
Throws: \InvalidArgumentExceptionWhen the website did not have http(s) as protocol or the host name was empty
-
public
OC\Accounts\AccountManager::updateUser($user, $data, $throwOnData=false)¶ - update user record
Source: Parameters: - $user (
OCP\IUser) - $data (array)
- $throwOnData (bool) Set to true if you can inform the user about invalid data
Returns: array The potentially modified data (e.g. phone numbers are converted to E.164 format)
Throws: \InvalidArgumentExceptionMessage is the property that was invalid - $user (
-
public
OC\Accounts\AccountManager::deleteUser($user)¶ - delete user from accounts table
Source: Parameters: - $user (
OCP\IUser)
- $user (
-
public
OC\Accounts\AccountManager::deleteUserData($user)¶ - delete user from accounts table
Source: Parameters: - $user (
OCP\IUser)
- $user (
-
public
OC\Accounts\AccountManager::getUser($user)¶ - get stored data from a given user
Source: Parameters: - $user (
OCP\IUser)
Returns: array
Deprecated: use getAccount instead to make sure migrated properties work correctly
- $user (
-
public
OC\Accounts\AccountManager::searchUsers($property, $values)¶ Source: lib/private/Accounts/AccountManager.php#313
-
protected
OC\Accounts\AccountManager::checkEmailVerification($oldData, $newData, $user)¶ - check if we need to ask the server for email verification, if yes we create a cronjob
Source: Parameters: - $oldData
- $newData
- $user (
OCP\IUser)
Returns: array
-
protected
OC\Accounts\AccountManager::addMissingDefaultValues($userData)¶ - make sure that all expected data are set
Source: Parameters: - $userData (array)
Returns: array
-
protected
OC\Accounts\AccountManager::updateVerifyStatus($oldData, $newData)¶ - reset verification status if personal data changed
Source: Parameters: - $oldData (array)
- $newData (array)
Returns: array
-
protected
OC\Accounts\AccountManager::insertNewUser($user, $data)¶ - add new user to accounts table
Source: Parameters: - $user (
OCP\IUser) - $data (array)
- $user (
-
protected
OC\Accounts\AccountManager::updateExistingUser($user, $data)¶ - update existing user in accounts table
Source: Parameters: - $user (
OCP\IUser) - $data (array)
- $user (
-
protected
OC\Accounts\AccountManager::writeUserData($user, $data)¶ Source: lib/private/Accounts/AccountManager.php#474
-
protected
OC\Accounts\AccountManager::buildDefaultUserRecord($user)¶ - build default user record in case not data set exists yet
Source: Parameters: - $user (
OCP\IUser)
Returns: array
- $user (
-
public
OC\Accounts\AccountManager::getAccount($user)¶ Source: lib/private/Accounts/AccountManager.php#554
-
public
OC\Accounts\AccountManager::updateAccount($account)¶ Source: lib/private/Accounts/AccountManager.php#558