Blesta
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • blesta
    • app
      • components
        • events
          • default
      • controllers
      • models
    • components
      • auth
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • exchange
        • rates
          • foxrate
          • google
            • finance
          • yahoo
            • finance
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
      • json
      • modules
      • net
        • http
        • net
          • amazon
            • s3
          • geo
            • ip
      • plugins
      • recaptcha
      • security
      • session
        • cart
      • settingscollection
      • upgrades
      • upload
      • vcard
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
  • com
    • tecnick
      • tcpdf
        • blesta
          • components
            • invoice
              • templates
                • quickbooks
                  • invoice
                • templates
                  • default
  • Crypt
    • AES
    • DES
    • Hash
    • Random
    • RC4
    • Rijndael
    • RSA
    • TerraDES
  • File
    • ANSI
    • ASN1
    • X509
  • Math
    • BigInteger
  • minPHP
    • components
      • input
      • record
    • helpers
      • color
      • data
        • structure
      • date
      • html
      • xml
    • lib
  • Net
    • SFTP
    • SSH1
    • SSH2
  • None
  • PHP
  • PHPMailer
  • Services
    • JSON
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • Foxrate

Class Foxrate

FoxRate Currency Exchange Rate Processor

ExchangeRate
Extended by Foxrate
Package: blesta\components\exchange\rates\foxrate
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/exchange_rates/foxrate/foxrate.php

Methods summary

public
# __construct( Http $Http )

Initializes the exchange rate processor

Initializes the exchange rate processor

Parameters

$Http
Http
$Http The Http component to more easily facilitate HTTP requests to fetch data
public mixed
# getRate( string $currency_from, string $currency_to, float $amount = 1.0 )

Fetches the exchange rate from currency A to currency B using the given amount

Fetches the exchange rate from currency A to currency B using the given amount

Parameters

$currency_from
string
$currency_from The ISO 4217 currency code to convert from
$currency_to
string
$currency_to The ISO 4217 currency code to convert to
$amount
float
$amount The amount to convert

Returns

mixed
(boolean) false on error or an array containing the exchange rate information including: -rate -updated The date/time of the last update in YYYY-MM-DD HH:MM:SS format in UTC time

Magic methods summary

Properties summary

private static string $url
#

The URL to the API

The URL to the API

private static integer $timeout
#

The maximum number of seconds to wait for a response

The maximum number of seconds to wait for a response

Blesta API documentation generated by ApiGen 2.8.0