src/DataBaseAR.php
public function connect($nameDB = NULL, $configFile = NULL){
        if($configFile != NULL){
            $this->configFile= $configFile;
            self::$config_db= NULL;
        }
        $this->connection= $this->getConnection($nameDB);
    }
public function connect($nameDB = NULL, $configFile = NULL){
        if($configFile != NULL){
            $this->configFile= $configFile;
            self::$config_db= NULL;
        }
        $this->connection= $this->getConnection($nameDB);
    }
public function connect ( $ nameDB = NULL , $ configFile = NULL ) { if ( $ configFile != NULL ) { $ this -> configFile = $ configFile ; self :: $ config_db = NULL ; } $ this -> connection = $ this -> getConnection ( $ nameDB ) ; }
Realiza la conexion a la base indicada o por defecto
@param string $nameDB
Realiza la conexion a la base indicada o por defecto