Horde_Group_Base::removeUser PHP Method

removeUser() public method

Removes a user from a group.
public removeUser ( mixed $gid, string $user )
$gid mixed A group ID.
$user string A user name.
    public function removeUser($gid, $user)
    {
        $this->_removeUser($gid, $user);
        // Update users cache.
        $sig = $this->_sig('users_' . $gid);
        try {
            if ($users = $this->_cache->get($sig, 0)) {
                $users = array_flip(@unserialize($users));
                unset($users[$user]);
                $this->_cache->set($sig, serialize(array_keys($users)));
            }
        } catch (Horde_Cache_Exception $e) {
        }
    }