lib/private/Group/Database.php
/**
	 * delete a group
	 * @param string $gid gid of the group to delete
	 * @return bool
	 *
	 * Deletes a group and removes it from the group_user-table
	 */
delete a group
@param string $gid gid of the group to delete
@return bool

Deletes a group and removes it from the group_user-table
delete a group @param string $gid gid of the group to delete @return bool Deletes a group and removes it from the group_user - table
public function deleteGroup( $gid ) {
		$this->fixDI();
		$qb = $this->dbConn->getQueryBuilder();
		$qb->delete('groups')
			->where($qb->expr()->eq('gid', $qb->createNamedParameter($gid)))
			->execute();
		-user relation
		$qb = $this->dbConn->getQueryBuilder();
		$qb->delete('group_user')
			->where($qb->expr()->eq('gid', $qb->createNamedParameter($gid)))
			->execute();
		-groupadmin relation
		$qb = $this->dbConn->getQueryBuilder();
		$qb->delete('group_admin')
			->where($qb->expr()->eq('gid', $qb->createNamedParameter($gid)))
			->execute();
		unset($this->groupCache[$gid]);
		return true;
	}
public function deleteGroup ( $ gid ) { $ this -> fixDI ( ) ; $ qb = $ this -> dbConn -> getQueryBuilder ( ) ; $ qb -> delete ( 'groups' ) -> where ( $ qb -> expr ( ) -> eq ( 'gid' , $ qb -> createNamedParameter ( $ gid ) ) ) -> execute ( ) ; $ qb = $ this -> dbConn -> getQueryBuilder ( ) ; $ qb -> delete ( 'group_user' ) -> where ( $ qb -> expr ( ) -> eq ( 'gid' , $ qb -> createNamedParameter ( $ gid ) ) ) -> execute ( ) ; $ qb = $ this -> dbConn -> getQueryBuilder ( ) ; $ qb -> delete ( 'group_admin' ) -> where ( $ qb -> expr ( ) -> eq ( 'gid' , $ qb -> createNamedParameter ( $ gid ) ) ) -> execute ( ) ; unset ( $ this -> groupCache [ $ gid ] ) ; return true ; }
delete a group
 @param string $gid gid of the group to delete
 @return bool
delete a group @param string $gid gid of the group to delete @return bool
// Delete the group // Delete the group-user relation // Delete the group-groupadmin relation // Delete from cache