ProviderUserAssignmentDao¶
-
class
OC\Authentication\TwoFactorAuth\Db\ProviderUserAssignmentDao¶ - Data access object to query and assign (provider_id, uid, enabled) tuples of2FA providers
Source: lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php#38
Constants¶
-
TABLE_NAME = twofactor_providers Source: lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php#39
Properties¶
Methods¶
-
public
OC\Authentication\TwoFactorAuth\Db\ProviderUserAssignmentDao::__construct($dbConn)¶ Source: lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php#44
-
public
OC\Authentication\TwoFactorAuth\Db\ProviderUserAssignmentDao::getState($uid)¶ - Get all assigned provider IDs for the given user ID
Source: lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php#54 Returns: string[] where the array key is the provider ID (string) and the value is the enabled state (bool)
-
public
OC\Authentication\TwoFactorAuth\Db\ProviderUserAssignmentDao::persist($providerId, $uid, $enabled)¶ - Persist a new/updated (provider_id, uid, enabled) tuple
Source: lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php#73
-
public
OC\Authentication\TwoFactorAuth\Db\ProviderUserAssignmentDao::deleteByUser($uid)¶ - Delete all provider states of a user and return the provider IDs
Source: lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php#102
Parameters: - $uid (string)
Returns: int[]
-
public
OC\Authentication\TwoFactorAuth\Db\ProviderUserAssignmentDao::deleteAll($providerId)¶ Source: lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php#126