- Timestamp:
- 2013/02/18 19:09:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/db/SC_DB_DBFactory.php
r22206 r22567 29 29 * @version $Id:SC_DB_DBFactory.php 15532 2007-08-31 14:39:46Z nanasess $ 30 30 */ 31 class SC_DB_DBFactory { 31 class SC_DB_DBFactory 32 { 32 33 33 34 /** … … 37 38 * @return mixed DBFactory インスタンス 38 39 */ 39 function getInstance($db_type = DB_TYPE) { 40 function getInstance($db_type = DB_TYPE) 41 { 40 42 switch ($db_type) { 41 43 case 'mysql': … … 60 62 * @return mixed データソース名またはDB接続パラメータの連想配列 61 63 */ 62 function getDSN($dsn = '') { 64 function getDSN($dsn = '') 65 { 63 66 if (empty($dsn)) { 64 67 if (defined('DEFAULT_DSN')) { … … 84 87 * @return string データベースのバージョン 85 88 */ 86 function sfGetDBVersion($dsn = '') { return null; } 89 function sfGetDBVersion($dsn = '') 90 { return null; } 87 91 88 92 /** … … 92 96 * @return string MySQL 用に置換した SQL 文 93 97 */ 94 function sfChangeMySQL($sql) { return null; } 98 function sfChangeMySQL($sql) 99 { return null; } 95 100 96 101 /** … … 100 105 * @return string 昨日の売上高・売上件数を算出する SQL 101 106 */ 102 function getOrderYesterdaySql($method) { return null; } 107 function getOrderYesterdaySql($method) 108 { return null; } 103 109 104 110 /** … … 108 114 * @return string 当月の売上高・売上件数を算出する SQL 109 115 */ 110 function getOrderMonthSql($method) { return null; } 116 function getOrderMonthSql($method) 117 { return null; } 111 118 112 119 /** … … 115 122 * @return string 昨日のレビュー書き込み件数を算出する SQL 116 123 */ 117 function getReviewYesterdaySql() { return null; } 124 function getReviewYesterdaySql() 125 { return null; } 118 126 119 127 /** … … 122 130 * @return string 検索条件の SQL 123 131 */ 124 function getSendHistoryWhereStartdateSql() { return null; } 132 function getSendHistoryWhereStartdateSql() 133 { return null; } 125 134 126 135 /** … … 129 138 * @return string 検索条件の SQL 130 139 */ 131 function getDownloadableDaysWhereSql() { return null; } 140 function getDownloadableDaysWhereSql() 141 { return null; } 132 142 133 143 /** … … 137 147 * @return string 連結後の SQL 文 138 148 */ 139 function concatColumn($columns) { return null; } 149 function concatColumn($columns) 150 { return null; } 140 151 141 152 /** … … 148 159 * @return array テーブル名の配列 149 160 */ 150 function findTableNames($expression = '') { return array(); } 161 function findTableNames($expression = '') 162 { return array(); } 151 163 152 164 /** … … 159 171 * @return array インデックス設定情報配列 160 172 */ 161 function sfGetCreateIndexDefinition($table, $name, $definition) { return $definition; } 173 function sfGetCreateIndexDefinition($table, $name, $definition) 174 { return $definition; } 162 175 163 176 /** … … 167 180 * @return void 168 181 */ 169 function initObjQuery(SC_Query &$objQuery) { 182 function initObjQuery(SC_Query &$objQuery) 183 { 170 184 } 171 185 … … 175 189 * @return array テーブル名の配列 176 190 */ 177 function listTables(SC_Query &$objQuery) { 191 function listTables(SC_Query &$objQuery) 192 { 178 193 $objManager =& $objQuery->conn->loadModule('Manager'); 179 194 return $objManager->listTables();
Note: See TracChangeset
for help on using the changeset viewer.