public function remove_remaining($base_id, $n = 1)
    {
        $this->load_rights_bas();

        if (!$this->has_access_to_base($base_id)) {
            return false;
        }

        $this->_rights_bas[$base_id]['remain_dwnld'] = max(0, $this->_rights_bas[$base_id]['remain_dwnld'] - (int) $n);

        return $this;
    }
public function remove_remaining($base_id, $n = 1)
    {
        $this->load_rights_bas();

        if (!$this->has_access_to_base($base_id)) {
            return false;
        }

        $this->_rights_bas[$base_id]['remain_dwnld'] = max(0, $this->_rights_bas[$base_id]['remain_dwnld'] - (int) $n);

        return $this;
    }
public function remove_remaining ( $ base_id , $ n = 1 ) { $ this -> load_rights_bas ( ) ; if ( ! $ this -> has_access_to_base ( $ base_id ) ) { return false ; } $ this -> _rights_bas [ $ base_id ] [ 'remain_dwnld' ] = max ( 0 , $ this -> _rights_bas [ $ base_id ] [ 'remain_dwnld' ] - ( int ) $ n ) ; return $ this ; }
Remove n download from the remainings

@param  int $base_id
@param  int $n
@return ACL

todo : wtf direct cache modification, where is sql ?
Remove n download from the remainings