SubAdmin¶
-
class
OC\
SubAdmin
¶ Source: lib/private/SubAdmin.php#45 Parent: OC\Hooks\PublicEmitter
Implements: OCP\Group\ISubAdmin
Properties¶
Methods¶
-
public
OC\SubAdmin::
__construct
($userManager, $groupManager, $dbConn, $eventDispatcher)¶ Source: Parameters: - $userManager (
OCP\IUserManager
) - $groupManager (
OCP\IGroupManager
) - $dbConn (
OCP\IDBConnection
)
- $userManager (
-
public
OC\SubAdmin::
createSubAdmin
($user, $group)¶ - add a SubAdmin
Source: Parameters: - $user (
OCP\IUser
) user to be SubAdmin - $group (
OCP\IGroup
) group $user becomes subadmin of
- $user (
-
public
OC\SubAdmin::
deleteSubAdmin
($user, $group)¶ - delete a SubAdmin
Source: Parameters: - $user (
OCP\IUser
) the user that is the SubAdmin - $group (
OCP\IGroup
) the group
- $user (
-
public
OC\SubAdmin::
getSubAdminsGroups
($user)¶ - get groups of a SubAdmin
Source: Parameters: - $user (
OCP\IUser
) the SubAdmin
Returns: - $user (
-
public
OC\SubAdmin::
getSubAdminsGroupIds
($user)¶ - Get group ids of a SubAdmin
Source: Parameters: - $user (
OCP\IUser
) the SubAdmin
Returns: string[]
- $user (
-
public
OC\SubAdmin::
getSubAdminsGroupsName
($user)¶ - get an array of groupid and displayName for a user
Source: Parameters: - $user (
OCP\IUser
)
Returns: array [‘displayName’ => displayname]
- $user (
-
public
OC\SubAdmin::
getGroupsSubAdmins
($group)¶ - get SubAdmins of a group
Source: Parameters: - $group (
OCP\IGroup
) the group
Returns: - $group (
-
public
OC\SubAdmin::
getAllSubAdmins
()¶ - get all SubAdmins
Source: lib/private/SubAdmin.php#202 Returns: array
-
public
OC\SubAdmin::
isSubAdminOfGroup
($user, $group)¶ - checks if a user is a SubAdmin of a group
Source: Parameters: - $user (
OCP\IUser
) - $group (
OCP\IGroup
)
Returns: bool
- $user (
-
public
OC\SubAdmin::
isSubAdmin
($user)¶ - checks if a user is a SubAdmin
Source: Parameters: - $user (
OCP\IUser
)
Returns: bool
- $user (
-
public
OC\SubAdmin::
isUserAccessible
($subadmin, $user)¶ - checks if a user is a accessible by a subadmin
Source: Parameters: Returns: bool