Revision 15124,
1.1 KB
checked in by nanasess, 17 years ago
(diff) |
db_extends パッケージ追加(クラス定義のみ)
|
-
Property charset set to
UTF-8'
-
Property svn:keywords set to
Id Revision Date
-
Property svn:mime-type set to
'application/x-httpd-php
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. |
---|
4 | * |
---|
5 | * http://www.lockon.co.jp/ |
---|
6 | */ |
---|
7 | |
---|
8 | // {{{ requires |
---|
9 | require_once(CLASS_PATH . "db/SC_DB_DBFactory.php"); |
---|
10 | require_once(CLASS_PATH . "db_extends/dbfactory/SC_DB_DBFactory_MYSQL_Ex.php"); |
---|
11 | require_once(CLASS_PATH . "db_extends/dbfactory/SC_DB_DBFactory_PGSQL_Ex.php"); |
---|
12 | |
---|
13 | /** |
---|
14 | * DBに依存した処理を抽象化するファクトリークラス(拡張). |
---|
15 | * |
---|
16 | * SC_DB_DBFactory をカスタマイズする場合はこのクラスを編集する. |
---|
17 | * |
---|
18 | * @package DB |
---|
19 | * @author LOCKON CO.,LTD. |
---|
20 | * @version $Id$ |
---|
21 | */ |
---|
22 | class SC_DB_DBFactory_Ex extends SC_DB_DBFactory { |
---|
23 | |
---|
24 | // }}} |
---|
25 | // {{{ functions |
---|
26 | |
---|
27 | /** |
---|
28 | * DB_TYPE に応じた DBFactory インスタンスを生成する. |
---|
29 | * |
---|
30 | * @return mixed DBFactory インスタンス |
---|
31 | */ |
---|
32 | function getInstance() { |
---|
33 | switch (DB_TYPE) { |
---|
34 | case "mysql": |
---|
35 | return new SC_DB_DBFactory_MYSQL_Ex(); |
---|
36 | break; |
---|
37 | |
---|
38 | case "pgsql": |
---|
39 | return new SC_DB_DBFactory_PGSQL_Ex(); |
---|
40 | break; |
---|
41 | |
---|
42 | default: |
---|
43 | } |
---|
44 | } |
---|
45 | } |
---|
46 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.