source: branches/feature-module-paygent/data/downloads/module/mdl_paygent/jp/co/ks/merchanttool/connectmodule/entity/ResponseDataFactory.php @ 15162

Revision 15162, 1.1 KB checked in by naka, 17 years ago (diff)

ペイジェント決済モジュール

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
10include_once("jp/co/ks/merchanttool/connectmodule/exception/PaygentB2BModuleException.php");
11include_once("jp/co/ks/merchanttool/connectmodule/system/PaygentB2BModuleResources.php");
12include_once("jp/co/ks/merchanttool/connectmodule/entity/ReferenceResponseDataImpl.php");
13include_once("jp/co/ks/merchanttool/connectmodule/entity/PaymentResponseDataImpl.php");
14
15/**
16 * ‰ž“š“d•¶ˆ——pƒIƒuƒWƒFƒNƒgì¬ƒNƒ‰ƒX
17 *
18 * @version $Revision: 1.4 $
19 * @author $Author: t-mori $
20 */
21class 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.