/** * {@inheritDoc} */ protected static function getConfig() { if (array_key_exists('SQLITE_LOCATION', $GLOBALS)) { $this->location = $GLOBALS['SQLITE_LOCATION']; } parent::getConfig(); }
/** * {@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(); }