Horde_Group_Ldap::_remove PHP Method

_remove() protected method

Removes a group.
protected _remove ( mixed $gid )
$gid mixed A group ID.
    protected function _remove($gid)
    {
        if ($this->readOnly()) {
            throw new Horde_Group_Exception('This group backend is read-only.');
        }
        try {
            $this->_rebind(true);
            $this->_ldap->delete($gid);
            $this->_rebind(false);
        } catch (Horde_Ldap_Exception $e) {
            throw new Horde_Group_Exception($e);
        }
    }