Esempio n. 1
0
 public function connect()
 {
     if (is_null(self::$connection)) {
         self::$connection = oci_connect(DB_HOST, DB_USER, DB_PWD . ":" . DB_PORT . "/" . DB_DATABASE);
     }
     return self::$connection;
 }
Esempio n. 2
0
 /**
  * Make connection
  *
  * @return object value
  */
 public function connect()
 {
     if (self::$connection === NULL) {
         self::$connection = oci_connect(_dbUser, _dbPwd, _dbHost . ":" . _dbPort . "/" . _dbName);
     }
     return self::$connection;
 }