Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 protected static function getConfig()
 {
     if (array_key_exists('SQLITE_LOCATION', $GLOBALS)) {
         $this->location = $GLOBALS['SQLITE_LOCATION'];
     }
     parent::getConfig();
 }
Exemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 protected static function getConfig()
 {
     if (array_key_exists('MYSQL_USERNAME', $GLOBALS)) {
         $this->username = $GLOBALS['MYSQL_USERNAME'];
     }
     if (array_key_exists('MYSQL_PASSWORD', $GLOBALS)) {
         $this->password = $GLOBALS['MYSQL_PASSWORD'];
     }
     if (array_key_exists('MYSQL_DB_NAME', $GLOBALS)) {
         $this->dbName = $GLOBALS['MYSQL_DB_NAME'];
     }
     parent::getConfig();
 }