Subversion-Projekte lars-tiefland.content-management

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
// $Id: EbatNs_Convert.php 4066 2011-11-03 08:13:59Z tiefland $
3
// $Log: EbatNs_Convert.php,v $
4
// Revision 1.2  2008-05-02 15:04:05  carsten
5
// Initial, PHP5
6
//
7
//
8
require_once 'AmountType.php';
9
require_once 'CategoryType.php';
10
 
11
class EbatNs_Convert
12
{
13
	static function ToAmount($amountValue, $currency)
14
	{
15
		$a = new AmountType();
16
		$a->setTypeValue($amountValue);
17
		$a->setTypeAttribute('currencyID', $currency);
18
 
19
		return $a;
20
	}
21
 
22
	static function ToCategory($categoryId)
23
	{
24
		$category = new CategoryType();
25
		$category->CategoryID = $categoryId;
26
		return $category;
27
	}
28
}
29
 
30
?>