public function preventNoLocalDriver($prevented = true)
    {
        if ($prevented && !array_key_exists($this->getType(), $this->connectionStrings)) {
            $this->availableDrivers[] = $this->getType();
            $this->rebuildConnectionString();
        }

        $this->preventNoLocalDriver = $prevented;
    }
public function preventNoLocalDriver($prevented = true)
    {
        if ($prevented && !array_key_exists($this->getType(), $this->connectionStrings)) {
            $this->availableDrivers[] = $this->getType();
            $this->rebuildConnectionString();
        }

        $this->preventNoLocalDriver = $prevented;
    }
public function preventNoLocalDriver ( $ prevented = true ) { if ( $ prevented && ! array_key_exists ( $ this -> getType ( ) , $ this -> connectionStrings ) ) { $ this -> availableDrivers [ ] = $ this -> getType ( ) ; $ this -> rebuildConnectionString ( ) ; } $ this -> preventNoLocalDriver = $ prevented ; }
Prevent error if driver is not available.

@param bool $prevented
Prevent error if driver is not available .