My favorites | Sign in
Project Home Downloads Issues Source
Repository:
Checkout   Browse   Changes   Clones    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
require_once '../lib/Str.php';
require_once '../lib/OO.php';
require_once '../lib/String.php';
require_once '../lib/Number.php';
require_once '../lib/Map.php';

// I know what is right - «CurrencyСonverter»
class KurrencyKonverter extends Number {
/*
Currency : [
Ua : [
NBU : [UAH, EUR, RUR, USD]
Sell : [UAH, EUR, RUR, USD]
Buy : [UAH, EUR, RUR, USD]
]
Ru : [RUR, EUR, USD]
]
*/

public function __construct ($number = 0) {
parent::__construct($number);
$this->convert['Currency'] = array ( // Actual: 2009.07.23
'Ua' => array (
'NBU' => array ( // National Bank of Ukraine
'UAH' => 1000000,
'EUR' => 10903683,
'RUR' => 246590,
'USD' => 7663000
),
'Sell' => array ( // You buy
'UAH' => 1000000,
'EUR' => 11332346,
'RUR' => 252260,
'USD' => 7934062
),
'Buy' => array ( // You sell
'UAH' => 1000000,
'EUR' => 11077531,
'RUR' => 236500,
'USD' => 7816631
)
),
'Ru' => array (
'RUR' => 10000,
'EUR' => 310760,
'USD' => 442771
)
);
}
}

Change log

6b8b7e20ef68 by Nikita Baksalyar <nik...@cgold.ru> on Nov 11, 2009   Diff
Final version
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 1090 bytes, 51 lines
Powered by Google Project Hosting