lib/private/SubAdmin.php
/**
	 * delete a SubAdmin
	 * @param IUser $user the user that is the SubAdmin
	 * @param IGroup $group the group
	 * @return bool
	 */
delete a SubAdmin
@param IUser $user the user that is the SubAdmin
@param IGroup $group the group
@return bool
delete a SubAdmin @param IUser $user the user that is the SubAdmin @param IGroup $group the group @return bool
public function deleteSubAdmin(IUser $user, IGroup $group) {
		$qb = $this->dbConn->getQueryBuilder();
		$qb->delete('group_admin')
			->where($qb->expr()->eq('gid', $qb->createNamedParameter($group->getGID())))
			->andWhere($qb->expr()->eq('uid', $qb->createNamedParameter($user->getUID())))
			->execute();
		$this->emit('\OC\SubAdmin', 'postDeleteSubAdmin', [$user, $group]);
		\OC_Hook::emit("OC_SubAdmin", "post_deleteSubAdmin", ["gid" => $group->getGID()]);
		return true;
	}
public function deleteSubAdmin ( IUser $ user , IGroup $ group ) { $ qb = $ this -> dbConn -> getQueryBuilder ( ) ; $ qb -> delete ( 'group_admin' ) -> where ( $ qb -> expr ( ) -> eq ( 'gid' , $ qb -> createNamedParameter ( $ group -> getGID ( ) ) ) ) -> andWhere ( $ qb -> expr ( ) -> eq ( 'uid' , $ qb -> createNamedParameter ( $ user -> getUID ( ) ) ) ) -> execute ( ) ; $ this -> emit ( '\OC\SubAdmin' , 'postDeleteSubAdmin' , [ $ user , $ group ] ) ; \ OC_Hook :: emit ( " OC_SubAdmin " , " post_deleteSubAdmin " , [ " gid " => $ group -> getGID ( ) ] ) ; return true ; }
delete a SubAdmin
 @param IUser $user the user that is the SubAdmin
 @param IGroup $group the group
 @return bool
delete a SubAdmin @param IUser $user the user that is the SubAdmin @param IGroup $group the group @return bool