Example #1
0
 /**
  * 
  * @return \ntentan\atiaa\Driver
  */
 public function getDriver()
 {
     $driver = \ntentan\atiaa\Db::getConnection(array('driver' => getenv('ATIAA_DRIVER'), 'host' => getenv('ATIAA_HOST'), 'user' => getenv('ATIAA_USER'), 'password' => getenv('ATIAA_PASSWORD'), 'file' => getenv('ATIAA_FILE'), 'dbname' => getenv("ATIAA_DBNAME")));
     return $driver;
 }
Example #2
0
 public function __construct($config)
 {
     $this->connection = \ntentan\atiaa\Db::getConnection($config);
 }