Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * PAYGENT B2B MODULE |
---|
4 | * ResponseDataFactory.php |
---|
5 | * |
---|
6 | * Copyright (C) 2007 by PAYGENT Co., Ltd. |
---|
7 | * All rights reserved. |
---|
8 | */ |
---|
9 | |
---|
10 | include_once("jp/co/ks/merchanttool/connectmodule/exception/PaygentB2BModuleException.php"); |
---|
11 | include_once("jp/co/ks/merchanttool/connectmodule/system/PaygentB2BModuleResources.php"); |
---|
12 | include_once("jp/co/ks/merchanttool/connectmodule/entity/ReferenceResponseDataImpl.php"); |
---|
13 | include_once("jp/co/ks/merchanttool/connectmodule/entity/PaymentResponseDataImpl.php"); |
---|
14 | |
---|
15 | /** |
---|
16 | * d¶pIuWFNgì¬NX |
---|
17 | * |
---|
18 | * @version $Revision: 1.4 $ |
---|
19 | * @author $Author: t-mori $ |
---|
20 | */ |
---|
21 | class ResponseDataFactory { |
---|
22 | |
---|
23 | /** |
---|
24 | * ResponseData ðì¬ |
---|
25 | * |
---|
26 | * @param kind |
---|
27 | * @return ResponseData |
---|
28 | */ |
---|
29 | function create($kind) { |
---|
30 | $resData = null; |
---|
31 | $masterFile = null; |
---|
32 | |
---|
33 | $masterFile = PaygentB2BModuleResources::getInstance(); |
---|
34 | |
---|
35 | // Create ResponseData |
---|
36 | if ($masterFile->isTelegramKindRef($kind)) { |
---|
37 | // ÆïÌê |
---|
38 | $resData = new ReferenceResponseDataImpl(); |
---|
39 | } else { |
---|
40 | // ÆïÈOÌê |
---|
41 | $resData = new PaymentResponseDataImpl(); |
---|
42 | } |
---|
43 | |
---|
44 | return $resData; |
---|
45 | } |
---|
46 | |
---|
47 | } |
---|
48 | |
---|
49 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.