source: branches/feature-module-paygent/data/class/SC_SiteInfo.php @ 17

Revision 17, 705 bytes checked in by uehara, 14 years ago (diff)
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/* ¥»¥Ã¥·¥ç¥ó´ÉÍý¥¯¥é¥¹ */
9class SC_SiteInfo {
10   
11    var $conn;
12    var $data;
13   
14    function SC_SiteInfo($conn = ''){
15        $DB_class_name = "SC_DbConn";
16        if ( is_object($conn)){
17            if ( is_a($conn, $DB_class_name)){
18                // $conn¤¬$DB_class_name¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤Ç¤¢¤ë
19                $this->conn = $conn;
20            }
21        } else {
22            if (class_exists($DB_class_name)){
23                //$DB_class_name¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤òºîÀ®¤¹¤ë
24                $this->conn = new SC_DbConn();         
25            }
26        }
27       
28        if ( is_object($this->conn)){
29            $conn = $this->conn;
30            $sql = "SELECT * FROM dtb_baseinfo";
31            $data = $conn->getAll($sql);
32            $this->data = $data[0];
33        }
34    }
35   
36}
37?>
Note: See TracBrowser for help on using the repository browser.