ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 6894


Ignore:
Timestamp:
May 1, 2008, 4:17:39 AM (11 years ago)
Author:
ebihara
Message:

中途半端な実装になっていたので、OpenPNE_Img_Storageからtableとprimary_keyプロパティを削除

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/work/ebihara/prj_renew_OpenPNE_Img/webapp/lib/OpenPNE/Img/Storage.php

    r6893 r6894  
    1717    var $dsn;
    1818    var $db;
    19     var $table;
    20     var $primary_key;
    2119
    2220    function OpenPNE_Img_Storage($options = array())
     
    2523        if (!empty($options['dsn'])) {
    2624            $this->dsn = $options['dsn'];
    27         }
    28 
    29         $this->table = 'c_image';
    30         if (!empty($options['table'])) {
    31             $this->table = $options['table'];
    32         }
    33 
    34         $this->primary_key = 'c_image_id';
    35         if (!empty($options['pkey'])) {
    36             $this->primary_key = $options['pkey'];
    3725        }
    3826
     
    5745            'r_datetime' => db_now(),
    5846        );
    59         return $this->db->insert($this->table, $data, $this->primary_key);
     47        return $this->db->insert('c_image', $data);
    6048    }
    6149
Note: See TracChangeset for help on using the changeset viewer.