public function groupRemoveGroup($group_dn, $only_if_group_empty = TRUE) {

    if ($only_if_group_empty) {
      $members = $this->groupAllMembers($group_dn);
      if (is_array($members) && count($members) > 0) {
        return FALSE;
      }
    }

    return $this->delete($group_dn);

  }
public function groupRemoveGroup($group_dn, $only_if_group_empty = TRUE) {

    if ($only_if_group_empty) {
      $members = $this->groupAllMembers($group_dn);
      if (is_array($members) && count($members) > 0) {
        return FALSE;
      }
    }

    return $this->delete($group_dn);

  }
public function groupRemoveGroup ( $ group_dn , $ only_if_group_empty = TRUE ) { if ( $ only_if_group_empty ) { $ members = $ this -> groupAllMembers ( $ group_dn ) ; if ( is_array ( $ members ) && count ( $ members ) > 0 ) { return FALSE ; } } return $ this -> delete ( $ group_dn ) ; }
NOT TESTED
remove a group entry

@param string $group_dn as ldap dn
@param boolean $only_if_group_empty
TRUE = group should not be removed if not empty
FALSE = groups should be deleted regardless of members
NOT TESTED remove a group entry