Changeset 18622 for branches/comu-ver2
- Timestamp:
- 2010/04/24 01:45:21 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/SC_Customer.php
r18186 r18622 165 165 166 166 $this->customer_data['mobile_phone_id'] = $_SESSION['mobile']['phone_id']; 167 }168 169 /**170 * email から email_mobile へ携帯のメールアドレスをコピーする。171 *172 * @return void173 */174 function updateEmailMobile() {175 176 $objMobile = new SC_Helper_Mobile_Ex();177 // すでに email_mobile に値が入っている場合は何もしない。178 if ($this->customer_data['email_mobile'] != '') {179 return;180 }181 182 // email が携帯のメールアドレスではない場合は何もしない。183 if (!$objMobile->gfIsMobileMailAddress($this->customer_data['email'])) {184 return;185 }186 187 // email から email_mobile へコピーする。188 $objQuery = new SC_Query;189 $sqlval = array('email_mobile' => $this->customer_data['email']);190 $where = 'customer_id = ? AND del_flg = 0 AND status = 2';191 $objQuery->update('dtb_customer', $sqlval, $where, array($this->customer_data['customer_id']));192 193 $this->customer_data['email_mobile'] = $this->customer_data['email'];194 167 } 195 168
Note: See TracChangeset
for help on using the changeset viewer.