public function setCurrentDb($v)
    {
        if (!is_int($v)) {
            throw new Exception("please describe the db as an integer ^^");
        }
        if ($v == Cache::CACHE) {
            throw new Exception("cant use ".Cache::CACHE." in class ".__CLASS__);
        }
        $this->currentDb = $v;

        return $this;
    }
public function setCurrentDb($v)
    {
        if (!is_int($v)) {
            throw new Exception("please describe the db as an integer ^^");
        }
        if ($v == Cache::CACHE) {
            throw new Exception("cant use ".Cache::CACHE." in class ".__CLASS__);
        }
        $this->currentDb = $v;

        return $this;
    }
public function setCurrentDb ( $ v ) { if ( ! is_int ( $ v ) ) { throw new Exception ( "please describe the db as an integer ^^" ) ; } if ( $ v == Cache :: CACHE ) { throw new Exception ( "cant use " . Cache :: CACHE . " in class " . __CLASS__ ) ; } $ this -> currentDb = $ v ; return $ this ; }
set the current db

@param integer $v

@throws Exception
@return object DB
set the current db