Ignore:
Timestamp:
2013/07/20 16:45:29 (11 years ago)
Author:
adachi
Message:

#2181 メソッド名等整理

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/plugin/SC_Plugin_Installer.php

    r22978 r22990  
    4141        $this->arrInstallData['insert'] = array(); 
    4242        $this->arrInstallData['update'] = array(); 
     43        $this->arrInstallData['delete'] = array(); 
    4344        $this->arrInstallData['remove_file'] = array(); 
    4445        $this->arrInstallData['remove_directory'] = array(); 
     
    4950         
    5051        $plugin_code = $this->arrPlugin['plugin_code']; 
    51  
    5252 
    5353        // テーブル作成SQLなどを実行 
     
    147147     
    148148    public function removeDirectory($dist) { 
    149        $this->arrInstallData['remove_file'][] = array( 
     149       $this->arrInstallData['remove_directory'][] = array( 
    150150            'dist' => $dist 
    151151        );      
     
    171171     * @param type $type  
    172172     */ 
    173     function sqlAterTableAddColumn($table_name, $col_name, $col_type) { 
     173    function addColumn($table_name, $col_name, $col_type) { 
    174174        $sql = "ALTER TABLE $table_name ADD $col_name $col_type "; 
    175175        $this->sql($sql); 
     
    183183     * @param type $type  
    184184     */ 
    185     function sqlAterTableDropColumn($table_name, $col_name) { 
     185    function dropColumn($table_name, $col_name) { 
    186186        $sql = "ALTER TABLE $table_name DROP $col_name"; 
    187187        $this->sql($sql); 
    188188    } 
    189189     
    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()) { 
    192191        $this->arrInstallData['insert'][] = array( 
    193192            'table' => $table, 
     
    200199    } 
    201200     
    202     function sqlUpdate($table, $arrVal, $where = '', $arrWhereVal = array(), $arrRawSql = array(), $arrRawSqlVal = array()) { 
     201    function update($table, $arrVal, $where = '', $arrWhereVal = array(), $arrRawSql = array(), $arrRawSqlVal = array()) { 
    203202        $this->arrInstallData['update'][] = array( 
    204203            'table' => $table, 
     
    232231        } 
    233232         
    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          
    241233        $sth->free(); 
    242234        // force_runをもとに戻す. 
Note: See TracChangeset for help on using the changeset viewer.