lib/private/SubAdmin.php
/**
	 * add a SubAdmin
	 * @param IUser $user user to be SubAdmin
	 * @param IGroup $group group $user becomes subadmin of
	 * @return bool
	 */
add a SubAdmin
@param IUser $user user to be SubAdmin
@param IGroup $group group $user becomes subadmin of
@return bool
add a SubAdmin @param IUser $user user to be SubAdmin @param IGroup $group group $user becomes subadmin of @return bool
public function createSubAdmin(IUser $user, IGroup $group) {
		$qb = $this->dbConn->getQueryBuilder();
		$qb->insert('group_admin')
			->values([
				'gid' => $qb->createNamedParameter($group->getGID()),
				'uid' => $qb->createNamedParameter($user->getUID())
			])
			->execute();
		$this->emit('\OC\SubAdmin', 'postCreateSubAdmin', [$user, $group]);
		\OC_Hook::emit("OC_SubAdmin", "post_createSubAdmin", ["gid" => $group->getGID()]);
		return true;
	}
public function createSubAdmin ( IUser $ user , IGroup $ group ) { $ qb = $ this -> dbConn -> getQueryBuilder ( ) ; $ qb -> insert ( 'group_admin' ) -> values ( [ 'gid' => $ qb -> createNamedParameter ( $ group -> getGID ( ) ) , 'uid' => $ qb -> createNamedParameter ( $ user -> getUID ( ) ) ] ) -> execute ( ) ; $ this -> emit ( '\OC\SubAdmin' , 'postCreateSubAdmin' , [ $ user , $ group ] ) ; \ OC_Hook :: emit ( " OC_SubAdmin " , " post_createSubAdmin " , [ " gid " => $ group -> getGID ( ) ] ) ; return true ; }
add a SubAdmin
 @param IUser $user user to be SubAdmin
 @param IGroup $group group $user becomes subadmin of
 @return bool
add a SubAdmin @param IUser $user user to be SubAdmin @param IGroup $group group $user becomes subadmin of @return bool