|  | iLink App - Backoffice
    2.0.0
    | 
| Variables | |
| $site_url = base_url() | |
| if($alert=="ok") | $baseCurrency = 'USD' | 
| $pdo = new PDO('mysql:host=' . $this->db->hostname . ';dbname=' . $this->db->database, $this->db->username, $this->db->password) | |
| $configuration = new PDOProviderConfiguration() | |
| $configuration | tableName = 'exchange_rate' | 
| $configuration | exchangeRateColumnName = 'exchange_rate' | 
| $configuration | targetCurrencyColumnName = 'target_currency' | 
| $configuration | sourceCurrencyCode = $baseCurrency | 
| $provider = new PDOProvider($pdo, $configuration) | |
| $converter = new CurrencyConverter($provider) | |
| $context = new AutoContext() | |
| if ( $alert=="ok") $baseCurrency = 'USD' | 
| $configuration = new PDOProviderConfiguration() | 
| $context = new AutoContext() | 
| $converter = new CurrencyConverter($provider) | 
| $pdo = new PDO('mysql:host=' . $this->db->hostname . ';dbname=' . $this->db->database, $this->db->username, $this->db->password) | 
| $provider = new PDOProvider($pdo, $configuration) | 
| $site_url = base_url() | 
| $configuration exchangeRateColumnName = 'exchange_rate' | 
| $configuration sourceCurrencyCode = $baseCurrency | 
| $configuration tableName = 'exchange_rate' | 
| $configuration targetCurrencyColumnName = 'target_currency' |