- Timestamp:
- 2013/07/20 16:45:29 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/plugin/SC_Plugin_Installer.php
r22978 r22990 41 41 $this->arrInstallData['insert'] = array(); 42 42 $this->arrInstallData['update'] = array(); 43 $this->arrInstallData['delete'] = array(); 43 44 $this->arrInstallData['remove_file'] = array(); 44 45 $this->arrInstallData['remove_directory'] = array(); … … 49 50 50 51 $plugin_code = $this->arrPlugin['plugin_code']; 51 52 52 53 53 // テーブル作成SQLなどを実行 … … 147 147 148 148 public function removeDirectory($dist) { 149 $this->arrInstallData['remove_ file'][] = array(149 $this->arrInstallData['remove_directory'][] = array( 150 150 'dist' => $dist 151 151 ); … … 171 171 * @param type $type 172 172 */ 173 function sqlAterTableAddColumn($table_name, $col_name, $col_type) {173 function addColumn($table_name, $col_name, $col_type) { 174 174 $sql = "ALTER TABLE $table_name ADD $col_name $col_type "; 175 175 $this->sql($sql); … … 183 183 * @param type $type 184 184 */ 185 function sqlAterTableDropColumn($table_name, $col_name) {185 function dropColumn($table_name, $col_name) { 186 186 $sql = "ALTER TABLE $table_name DROP $col_name"; 187 187 $this->sql($sql); 188 188 } 189 189 190 191 function sqlInsert($table, $arrVal, $arrSql = array(), $arrSqlVal = array(), $from = '', $arrFromVal = array()) { 190 function insert($table, $arrVal, $arrSql = array(), $arrSqlVal = array(), $from = '', $arrFromVal = array()) { 192 191 $this->arrInstallData['insert'][] = array( 193 192 'table' => $table, … … 200 199 } 201 200 202 function sqlUpdate($table, $arrVal, $where = '', $arrWhereVal = array(), $arrRawSql = array(), $arrRawSqlVal = array()) {201 function update($table, $arrVal, $where = '', $arrWhereVal = array(), $arrRawSql = array(), $arrRawSqlVal = array()) { 203 202 $this->arrInstallData['update'][] = array( 204 203 'table' => $table, … … 232 231 } 233 232 234 //$ret = $sth->execute($params);235 //if (PEAR::isError($ret)) {236 // $error_message = $ret->message . ":" . $ret->userinfo;237 // $objQuery->force_run = false;238 // return $error_message;239 //}240 241 233 $sth->free(); 242 234 // force_runをもとに戻す.
Note: See TracChangeset
for help on using the changeset viewer.