Changeset 6266 for temp/trunk/data/class
- Timestamp:
- 2006/10/13 13:22:44 (20 years ago)
- Location:
- temp/trunk/data/class
- Files:
-
- 2 edited
-
SC_DbConn.php (modified) (1 diff)
-
SC_Query.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/class/SC_DbConn.php
r6262 r6266 22 22 23 23 // ¥³¥ó¥¹¥È¥é¥¯¥¿ 24 function SC_DbConn($dsn = "", $err_disp = true ){24 function SC_DbConn($dsn = "", $err_disp = true, $new = false){ 25 25 global $objDbConn; 26 26 27 27 // Debug¥â¡¼¥É»ØÄê 28 28 $options['debug'] = PEAR_DB_DEBUG; 29 // ´û¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤ ˤÏÀܳ¤·¤Ê¤¤30 if(!isset($objDbConn->connection) ) {29 // ´û¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤ÈºÆÀܳ¤Ê¤·¤Î¾ì¹ç¤ÏÀܳ¤·¤Ê¤¤ 30 if(!isset($objDbConn->connection) && !$new) { 31 31 if($dsn != "") { 32 32 $objDbConn = DB::connect($dsn, $options); -
temp/trunk/data/class/SC_Query.php
r6217 r6266 12 12 13 13 // ¥³¥ó¥¹¥È¥é¥¯¥¿ 14 function SC_Query($dsn = "", $err_disp = true) { 15 $this->conn = new SC_DBconn($dsn, $err_disp); 14 /* 15 $err_disp:¥¨¥é¡¼É½¼¨¤ò¹Ô¤¦¤« 16 $new¡§ºÆÀܳ¤ò¹Ô¤¦¤« 17 */ 18 function SC_Query($dsn = "", $err_disp = true, $new = false) { 19 $this->conn = new SC_DBconn($dsn, $err_disp, $new); 16 20 $this->where = ""; 17 21 return $this->conn;
Note: See TracChangeset
for help on using the changeset viewer.
