- Timestamp:
- 2012/04/15 03:05:06 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/shopping/LC_Page_Shopping.php
r21693 r21743 76 76 */ 77 77 function action() { 78 // フックポイント.79 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);80 $objPlugin->doAction('LC_Page_Shopping_action_before', array($this));81 78 82 79 $objSiteSess = new SC_SiteSession_Ex(); … … 97 94 // ログイン済みの場合は次画面に遷移 98 95 if ($objCustomer->isLoginSuccess(true)) { 99 // フックポイント.100 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);101 $objPlugin->doAction('LC_Page_Shopping_action_logined', array($this));102 96 103 97 SC_Response_Ex::sendRedirect( … … 105 99 $objCustomer, $objPurchase, 106 100 $objSiteSess)); 107 exit;101 SC_Response_Ex::actionExit(); 108 102 } 109 103 // 非会員かつ, ダウンロード商品の場合はエラー表示 … … 113 107 . 'お手数ですが、会員登録をお願いします。'; 114 108 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, $objSiteSess, false, $msg); 115 exit;109 SC_Response_Ex::actionExit(); 116 110 } 117 111 } … … 136 130 if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE) { 137 131 if ($this->hasEmailMobile($objCustomer) == false) { 138 // フックポイント.139 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);140 $objPlugin->doAction('LC_Page_Shopping_action_login_mobile', array($this));141 132 142 133 SC_Response_Ex::sendRedirectFromUrlPath('entry/email_mobile.php'); 143 exit;134 SC_Response_Ex::actionExit(); 144 135 } 145 136 } 146 137 // スマートフォンの場合はログイン成功を返す 147 138 elseif (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 148 // フックポイント. 149 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 150 $objPlugin->doAction('LC_Page_Shopping_action_login_smartphone', array($this)); 151 152 echo SC_Utils_Ex::jsonEncode(array('success' => 139 140 echo SC_Utils_Ex::jsonEncode(array('success' => 153 141 $this->getNextLocation($this->cartKey, $this->tpl_uniqid, 154 142 $objCustomer, $objPurchase, 155 143 $objSiteSess))); 156 exit;144 SC_Response_Ex::actionExit(); 157 145 } 158 // フックポイント.159 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);160 $objPlugin->doAction('LC_Page_Shopping_action_login', array($this));161 146 162 147 SC_Response_Ex::sendRedirect( … … 164 149 $objCustomer, $objPurchase, 165 150 $objSiteSess)); 166 exit;151 SC_Response_Ex::actionExit(); 167 152 } 168 153 // ログインに失敗した場合 … … 172 157 if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 173 158 echo $this->lfGetErrorMessage(TEMP_LOGIN_ERROR); 174 exit;159 SC_Response_Ex::actionExit(); 175 160 } else { 176 161 SC_Utils_Ex::sfDispSiteError(TEMP_LOGIN_ERROR); 177 exit;162 SC_Response_Ex::actionExit(); 178 163 } 179 164 } else { 180 165 if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 181 166 echo $this->lfGetErrorMessage(SITE_LOGIN_ERROR); 182 exit;167 SC_Response_Ex::actionExit(); 183 168 } else { 184 169 SC_Utils_Ex::sfDispSiteError(SITE_LOGIN_ERROR); 185 exit;170 SC_Response_Ex::actionExit(); 186 171 } 187 172 } … … 203 188 $objSiteSess->setRegistFlag(); 204 189 205 // フックポイント.206 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);207 $objPlugin->doAction('LC_Page_Shopping_action_nonmember_confirm', array($this));208 190 209 191 SC_Response_Ex::sendRedirect(SHOPPING_PAYMENT_URLPATH); 210 exit;192 SC_Response_Ex::actionExit(); 211 193 } 212 194 break; … … 214 196 // 前のページに戻る 215 197 case 'return': 216 // フックポイント.217 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);218 $objPlugin->doAction('LC_Page_Shopping_action_return', array($this));219 198 220 199 SC_Response_Ex::sendRedirect(CART_URLPATH); 221 exit;200 SC_Response_Ex::actionExit(); 222 201 break; 223 202 … … 227 206 if (USE_MULTIPLE_SHIPPING === false) { 228 207 SC_Utils_Ex::sfDispSiteError(PAGE_ERROR, '', true); 229 exit;208 SC_Response_Ex::actionExit(); 230 209 } 231 210 … … 239 218 $objSiteSess->setRegistFlag(); 240 219 241 // フックポイント.242 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);243 $objPlugin->doAction('LC_Page_Shopping_action_multiple', array($this));244 220 245 221 SC_Response_Ex::sendRedirect(MULTIPLE_URLPATH); 246 exit;222 SC_Response_Ex::actionExit(); 247 223 } 248 224 $this->tpl_mainpage = $nonmember_mainpage; … … 286 262 $this->tpl_valid_phone_id = $objCustomer->checkMobilePhoneId(); 287 263 } 288 // フックポイント. 289 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 290 $objPlugin->doAction('LC_Page_Shopping_action_after', array($this)); 264 291 265 } 292 266
Note: See TracChangeset
for help on using the changeset viewer.