lib/private/Group/Database.php
/**
	 * Removes a user from a group
	 * @param string $uid Name of the user to remove from group
	 * @param string $gid Name of the group from which remove the user
	 * @return bool
	 *
	 * removes the user from a group.
	 */
Removes a user from a group
@param string $uid Name of the user to remove from group
@param string $gid Name of the group from which remove the user
@return bool

removes the user from a group.
Removes a user from a group @param string $uid Name of the user to remove from group @param string $gid Name of the group from which remove the user @return bool removes the user from a group .
public function removeFromGroup( $uid, $gid ) {
		$this->fixDI();
		$qb = $this->dbConn->getQueryBuilder();
		$qb->delete('group_user')
			->where($qb->expr()->eq('uid', $qb->createNamedParameter($uid)))
			->andWhere($qb->expr()->eq('gid', $qb->createNamedParameter($gid)))
			->execute();
		return true;
	}
public function removeFromGroup ( $ uid , $ gid ) { $ this -> fixDI ( ) ; $ qb = $ this -> dbConn -> getQueryBuilder ( ) ; $ qb -> delete ( 'group_user' ) -> where ( $ qb -> expr ( ) -> eq ( 'uid' , $ qb -> createNamedParameter ( $ uid ) ) ) -> andWhere ( $ qb -> expr ( ) -> eq ( 'gid' , $ qb -> createNamedParameter ( $ gid ) ) ) -> execute ( ) ; return true ; }
Removes a user from a group
 @param string $uid Name of the user to remove from group
 @param string $gid Name of the group from which remove the user
 @return bool
Removes a user from a group @param string $uid Name of the user to remove from group @param string $gid Name of the group from which remove the user @return bool