Browse Source

Document parameters

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v14.0.0beta1
Roeland Jago Douma 6 years ago
parent
commit
b723a2b8ca
No account linked to committer's email address

+ 3
- 0
lib/public/User/Backend/ABackend.php View File

@@ -35,6 +35,9 @@ abstract class ABackend implements IUserBackend, UserInterface {

/**
* @deprecated 14.0.0
*
* @param int $actions The action to check for
* @return bool
*/
public function implementsActions($actions): bool {
$implements = 0;

+ 4
- 0
lib/public/User/Backend/ICheckPasswordBackend.php View File

@@ -30,6 +30,10 @@ namespace OCP\User\Backend;
interface ICheckPasswordBackend {
/**
* @since 14.0.0
*
* @param string $uid The username
* @param string $password The password
* @return string|bool The uid on success false on failure
*/
public function checkPassword(string $loginName, string $password);
}

+ 2
- 0
lib/public/User/Backend/ICountUsersBackend.php View File

@@ -31,6 +31,8 @@ interface ICountUsersBackend {

/**
* @since 14.0.0
*
* @return int|bool The number of users on success false on failure
*/
public function countUsers();
}

+ 4
- 0
lib/public/User/Backend/ICreateUserBackend.php View File

@@ -31,6 +31,10 @@ interface ICreateUserBackend {

/**
* @since 14.0.0
*
* @param string $uid The username of the user to create
* @param string $password The password of the new user
* @return bool
*/
public function createUser(string $uid, string $password): bool;
}

+ 3
- 0
lib/public/User/Backend/IGetDisplayNameBackend.php View File

@@ -31,6 +31,9 @@ interface IGetDisplayNameBackend {

/**
* @since 14.0.0
*
* @param string $uid user ID of the user
* @return string display name
*/
public function getDisplayName($uid): string;
}

+ 3
- 0
lib/public/User/Backend/IGetHomeBackend.php View File

@@ -31,6 +31,9 @@ interface IGetHomeBackend {

/**
* @since 14.0.0
*
* @param string $uid the username
* @return string|bool Datadir on success false on failure
*/
public function getHome(string $uid);
}

+ 3
- 0
lib/public/User/Backend/IProvideAvatarBackend.php View File

@@ -31,6 +31,9 @@ interface IProvideAvatarBackend {

/**
* @since 14.0.0
*
* @param string $uid
* @return bool
*/
public function canChangeAvatar(string $uid): bool;
}

+ 4
- 0
lib/public/User/Backend/ISetDisplayNameBackend.php View File

@@ -31,6 +31,10 @@ interface ISetDisplayNameBackend {

/**
* @since 14.0.0
*
* @param string $uid The username
* @param string $displayName The new display name
* @return bool
*/
public function setDisplayName(string $uid, string $displayName): bool;
}

+ 4
- 0
lib/public/User/Backend/ISetPasswordBackend.php View File

@@ -31,6 +31,10 @@ interface ISetPasswordBackend {

/**
* @since 14.0.0
*
* @param string $uid The username
* @param string $password The new password
* @return bool
*/
public function setPassword(string $uid, string $password): bool;
}

Loading…
Cancel
Save