- Timestamp:
- 2011/02/07 11:54:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/regist/LC_Page_Regist.php
r20090 r20106 95 95 96 96 /** 97 * lfRegistData98 *99 97 * 仮会員を本会員にUpdateする 100 98 * 101 99 * @param mixed $array 102 * @access p ublic103 * @return void100 * @access private 101 * @return string $arrRegist["secret_key"] 本登録ID 104 102 */ 105 103 function lfRegistData($array) { 106 $objQuery = new SC_Query(); 107 108 $arrRegist["secret_key"] = SC_Helper_Customer_Ex::sfGetUniqSecretKey(); // 本登録ID発行 104 $objQuery = SC_Query::getSingletonInstance(); 105 $arrRegist["secret_key"] = SC_Helper_Customer_Ex::sfGetUniqSecretKey(); //本登録ID発行 109 106 $arrRegist["status"] = 2; 110 107 $arrRegist["update_date"] = "NOW()"; … … 114 111 $objQuery->commit(); 115 112 116 return $arrRegist["secret_key"]; // 本登録IDを返す113 return $arrRegist["secret_key"]; 117 114 } 118 115 119 116 /** 120 * lfErrorCheck121 *122 117 * 入力エラーチェック 123 118 * 124 119 * @param mixed $array 125 * @access p ublic126 * @return void120 * @access private 121 * @return array エラーの配列 127 122 */ 128 123 function lfErrorCheck($array) { … … 142 137 143 138 /** 144 * lfSendRegistMail145 *146 139 * 正会員登録完了メール送信 147 140 * 148 141 * @param mixed $registSecretKey 149 * @access p ublic142 * @access private 150 143 * @return void 151 144 */ 152 145 function lfSendRegistMail($registSecretKey) { 146 $objQuery = SC_Query::getSingletonInstance(); 153 147 $objCustomer = new SC_Customer(); 154 $objQuery = new SC_Query();155 148 $objHelperMail = new SC_Helper_Mail_Ex(); 156 $ this->CONF= SC_Helper_DB_Ex::sfGetBasisData();149 $CONF = SC_Helper_DB_Ex::sfGetBasisData(); 157 150 158 151 //-- 会員データを取得 159 $ result= $objQuery->select("*", "dtb_customer", "secret_key = ?", array($registSecretKey));160 $data = $ result[0];152 $arrCustomer = $objQuery->select("*", "dtb_customer", "secret_key = ?", array($registSecretKey)); 153 $data = $arrCustomer[0]; 161 154 $objCustomer->setLogin($data['email']); 162 155 163 156 //-- メール送信 164 157 $objMailText = new SC_SiteView(); 165 $objMailText->assign("CONF", $ this->CONF);158 $objMailText->assign("CONF", $CONF); 166 159 $objMailText->assign("name01", $data["name01"]); 167 160 $objMailText->assign("name02", $data["name02"]);
Note: See TracChangeset
for help on using the changeset viewer.