| 1 | <?php |
|---|
| 2 | /* |
|---|
| 3 | * This file is part of EC-CUBE |
|---|
| 4 | * |
|---|
| 5 | * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. |
|---|
| 6 | * |
|---|
| 7 | * http://www.lockon.co.jp/ |
|---|
| 8 | * |
|---|
| 9 | * This program is free software; you can redistribute it and/or |
|---|
| 10 | * modify it under the terms of the GNU General Public License |
|---|
| 11 | * as published by the Free Software Foundation; either version 2 |
|---|
| 12 | * of the License, or (at your option) any later version. |
|---|
| 13 | * |
|---|
| 14 | * This program is distributed in the hope that it will be useful, |
|---|
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 17 | * GNU General Public License for more details. |
|---|
| 18 | * |
|---|
| 19 | * You should have received a copy of the GNU General Public License |
|---|
| 20 | * along with this program; if not, write to the Free Software |
|---|
| 21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|---|
| 22 | */ |
|---|
| 23 | |
|---|
| 24 | /** |
|---|
| 25 | * サイト情報を取得する. |
|---|
| 26 | * |
|---|
| 27 | * FIXME このクラスを使用している場合は, |
|---|
| 28 | * SC_Helper_DB::sf_getBasisData() に置き変えて下さい |
|---|
| 29 | * |
|---|
| 30 | * @deprecated SC_Helper_DB::sf_getBasisData() を使用して下さい. |
|---|
| 31 | */ |
|---|
| 32 | class SC_SiteInfo { |
|---|
| 33 | |
|---|
| 34 | var $conn; |
|---|
| 35 | var $data; |
|---|
| 36 | |
|---|
| 37 | /** |
|---|
| 38 | * @deprecated SC_Helper_DB::sf_getBasisData() を使用して下さい. |
|---|
| 39 | * |
|---|
| 40 | * FIXME この関数を使用している場合は, |
|---|
| 41 | * SC_Helper_DB::sf_getBasisData() に置き変えて下さい |
|---|
| 42 | * |
|---|
| 43 | */ |
|---|
| 44 | function SC_SiteInfo($conn = ''){ |
|---|
| 45 | /* |
|---|
| 46 | $DB_class_name = "SC_DbConn"; |
|---|
| 47 | if ( is_object($conn)){ |
|---|
| 48 | if ( is_a($conn, $DB_class_name)){ |
|---|
| 49 | // $connが$DB_class_nameのインスタンスである |
|---|
| 50 | $this->conn = $conn; |
|---|
| 51 | } |
|---|
| 52 | } else { |
|---|
| 53 | if (class_exists($DB_class_name)){ |
|---|
| 54 | //$DB_class_nameのインスタンスを作成する |
|---|
| 55 | $this->conn = new SC_DbConn(); |
|---|
| 56 | } |
|---|
| 57 | } |
|---|
| 58 | |
|---|
| 59 | if ( is_object($this->conn)){ |
|---|
| 60 | $conn = $this->conn; |
|---|
| 61 | $sql = "SELECT * FROM dtb_baseinfo"; |
|---|
| 62 | $data = $conn->getAll($sql); |
|---|
| 63 | $this->data = $data[0]; |
|---|
| 64 | } |
|---|
| 65 | */ |
|---|
| 66 | $objDb = new SC_Helper_DB_Ex(); |
|---|
| 67 | $this->data = $objDb->sf_getBasisData(); |
|---|
| 68 | } |
|---|
| 69 | } |
|---|
| 70 | ?> |
|---|