/** * création d'une connection. * @access private * @param string $named nom du profil de connection * @return CopixDbConnection l'objet de connection */ function &_createConnector($profilName) { $profil =& CopixDBFactory::_getProfil($profilName); require_once COPIX_DB_PATH . '/drivers/' . $profil->driver . '/CopixDbConnection.' . $profil->driver . '.class.php'; require_once COPIX_DB_PATH . '/drivers/' . $profil->driver . '/CopixDbResultSet.' . $profil->driver . '.class.php'; $class = 'CopixDbConnection' . $profil->driver; //Création de l'objet $obj =& new $class(); $obj->profil = $profil; //$obj->connect ($profil); return $obj; }