Skip to content
Snippets Groups Projects
Unverified Commit b723a2b8 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Document parameters

parent 471272d4
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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);
}
......@@ -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();
}
......@@ -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;
}
......@@ -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;
}
......@@ -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);
}
......@@ -31,6 +31,9 @@ interface IProvideAvatarBackend {
/**
* @since 14.0.0
*
* @param string $uid
* @return bool
*/
public function canChangeAvatar(string $uid): bool;
}
......@@ -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;
}
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment