Changeset 21743 for branches/version-2_12-dev/data/class/pages/frontparts
- Timestamp:
- 2012/04/15 03:05:06 (12 years ago)
- Location:
- branches/version-2_12-dev/data/class/pages/frontparts
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/frontparts/LC_Page_FrontParts_LoginCheck.php
r21693 r21743 65 65 */ 66 66 function action() { 67 // フックポイント.68 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);69 $objPlugin->doAction('LC_Page_FrontParts_LoginCheck_action_before', array($this));70 67 71 68 // 会員管理クラス … … 96 93 if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 97 94 echo $this->lfGetErrorMessage(TEMP_LOGIN_ERROR); 98 exit;95 SC_Response_Ex::actionExit(); 99 96 } else { 100 97 SC_Utils_Ex::sfDispSiteError(TEMP_LOGIN_ERROR); 101 exit;98 SC_Response_Ex::actionExit(); 102 99 } 103 100 } … … 144 141 if (!$objMobile->gfIsMobileMailAddress($objCustomer->getValue('email'))) { 145 142 if (!$objCustomer->hasValue('email_mobile')) { 146 // フックポイント.147 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);148 $objPlugin->doAction('LC_Page_FrontParts_LoginCheck_action_login_mobile', array($this));149 143 150 144 SC_Response_Ex::sendRedirectFromUrlPath('entry/email_mobile.php'); 151 exit;145 SC_Response_Ex::actionExit(); 152 146 } 153 147 } … … 156 150 // --- ログインに成功した場合 157 151 if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 158 // フックポイント.159 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);160 $objPlugin->doAction('LC_Page_FrontParts_LoginCheck_action_login_smartphone', array($this));161 152 162 153 echo SC_Utils_Ex::jsonEncode(array('success' => $_POST['url'])); 163 154 } else { 164 // フックポイント.165 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);166 $objPlugin->doAction('LC_Page_FrontParts_LoginCheck_action_login_pc', array($this));167 155 168 156 SC_Response_Ex::sendRedirect($_POST['url']); 169 157 } 170 exit;158 SC_Response_Ex::actionExit(); 171 159 } else { 172 160 // --- ログインに失敗した場合 … … 179 167 if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 180 168 echo $this->lfGetErrorMessage(TEMP_LOGIN_ERROR); 181 exit;169 SC_Response_Ex::actionExit(); 182 170 } else { 183 171 SC_Utils_Ex::sfDispSiteError(TEMP_LOGIN_ERROR); 184 exit;172 SC_Response_Ex::actionExit(); 185 173 } 186 174 } else { 187 175 if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 188 176 echo $this->lfGetErrorMessage(SITE_LOGIN_ERROR); 189 exit;177 SC_Response_Ex::actionExit(); 190 178 } else { 191 179 SC_Utils_Ex::sfDispSiteError(SITE_LOGIN_ERROR); 192 exit;180 SC_Response_Ex::actionExit(); 193 181 } 194 182 } … … 198 186 // 入力エラーの場合、元のアドレスに戻す。 199 187 SC_Response_Ex::sendRedirect($_POST['url']); 200 exit;188 SC_Response_Ex::actionExit(); 201 189 } 202 190 … … 210 198 $mypage_url_search = strpos('.'.$_POST['url'], 'mypage'); 211 199 if ($mypage_url_search == 2) { 212 // フックポイント.213 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);214 $objPlugin->doAction('LC_Page_FrontParts_LoginCheck_action_logout_mypage', array($this));215 200 216 201 // マイページログイン中はログイン画面へ移行 217 202 SC_Response_Ex::sendRedirectFromUrlPath('mypage/login.php'); 218 203 } else { 219 // フックポイント.220 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);221 $objPlugin->doAction('LC_Page_FrontParts_LoginCheck_action_logout_toppage', array($this));222 204 223 205 // 上記以外の場合、トップへ遷移 224 206 SC_Response_Ex::sendRedirect(HTTP_URL); 225 207 } 226 exit;208 SC_Response_Ex::actionExit(); 227 209 228 210 break; … … 230 212 break; 231 213 } 232 // フックポイント. 233 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 234 $objPlugin->doAction('LC_Page_FrontParts_LoginCheck_action_after', array($this)); 214 235 215 } 236 216 -
branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Calendar.php
r21738 r21743 63 63 */ 64 64 function action() { 65 // フックポイント.66 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);67 $objPlugin->doAction('LC_Page_FrontParts_Bloc_Calafterar_action_before', array($this));68 65 69 66 // 休日取得取得 … … 74 71 $this->arrCalendar = $this->lfGetCalendar(2); 75 72 76 // フックポイント. 77 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 78 $objPlugin->doAction('LC_Page_FrontParts_Bloc_Calafterar_action_after', array($this)); 73 79 74 } 80 75 -
branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Cart.php
r21693 r21743 64 64 */ 65 65 function action() { 66 // フックポイント.67 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);68 $objPlugin->doAction('LC_Page_FrontParts_Bloc_Cart_action_before', array($this));69 66 70 67 $objCart = new SC_CartSession_Ex(); … … 74 71 $this->arrCartList = array(0 => $this->lfGetCartData($objCart)); 75 72 76 // フックポイント. 77 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 78 $objPlugin->doAction('LC_Page_FrontParts_Bloc_Cart_action_after', array($this)); 73 79 74 } 80 75 -
branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php
r21693 r21743 62 62 */ 63 63 function action() { 64 // フックポイント.65 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);66 $objPlugin->doAction('LC_Page_FrontParts_Bloc_Category_action_before', array($this));67 64 68 65 // モバイル判定 … … 80 77 } 81 78 82 // フックポイント. 83 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 84 $objPlugin->doAction('LC_Page_FrontParts_Bloc_Category_action_after', array($this)); 79 85 80 } 86 81 -
branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Login.php
r21704 r21743 65 65 */ 66 66 function action() { 67 // フックポイント.68 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);69 $objPlugin->doAction('LC_Page_FrontParts_Bloc_Login_action_before', array($this));70 67 71 68 $objCustomer = new SC_Customer_Ex(); … … 95 92 $this->transactionid = SC_Helper_Session_Ex::getToken(); 96 93 97 // フックポイント. 98 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 99 $objPlugin->doAction('LC_Page_FrontParts_Bloc_Login_action_after', array($this)); 94 100 95 } 101 96 -
branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php
r21693 r21743 62 62 */ 63 63 function action() { 64 // フックポイント.65 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);66 $objPlugin->doAction('LC_Page_FrontParts_Bloc_News_action_before', array($this));67 64 68 65 $objFormParam = new SC_FormParam_Ex(); … … 74 71 $this->arrErr = $objFormParam->checkError(false); 75 72 if (empty($this->arrErr)) { 76 // フックポイント.77 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);78 $objPlugin->doAction('LC_Page_FrontParts_Bloc_News_action_getList', array($this));79 73 80 74 $json = $this->lfGetNewsForJson($objFormParam); 81 75 echo $json; 82 exit;76 SC_Response_Ex::actionExit(); 83 77 } else { 84 78 echo $this->lfGetErrors($this->arrErr); 85 exit;79 SC_Response_Ex::actionExit(); 86 80 } 87 81 break; … … 92 86 $this->arrErr = $objFormParam->checkError(false); 93 87 if (empty($this->arrErr)) { 94 // フックポイント.95 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);96 $objPlugin->doAction('LC_Page_FrontParts_Bloc_News_action_getDetail', array($this));97 88 98 89 $json = $this->lfGetNewsDetailForJson($objFormParam); 99 90 echo $json; 100 exit;91 SC_Response_Ex::actionExit(); 101 92 } else { 102 93 echo $this->lfGetErrors($this->arrErr); 103 exit;94 SC_Response_Ex::actionExit(); 104 95 } 105 96 break; … … 109 100 break; 110 101 } 111 // フックポイント. 112 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 113 $objPlugin->doAction('LC_Page_FrontParts_Bloc_News_action_after', array($this)); 102 114 103 } 115 104 -
branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Recommend.php
r21693 r21743 62 62 */ 63 63 function action() { 64 // フックポイント.65 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);66 $objPlugin->doAction('LC_Page_FrontParts_Bloc_Recommafter_action_before', array($this));67 64 68 65 // 基本情報を渡す … … 73 70 $this->arrBestProducts = $this->lfGetRanking(); 74 71 75 // フックポイント. 76 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 77 $objPlugin->doAction('LC_Page_FrontParts_Bloc_Recommafter_action_after', array($this)); 72 78 73 } 79 74 -
branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_SearchProducts.php
r21693 r21743 62 62 */ 63 63 function action() { 64 // フックポイント.65 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);66 $objPlugin->doAction('LC_Page_FrontParts_Bloc_SearchProducts_action_before', array($this));67 64 68 65 // 商品ID取得 … … 81 78 $this->arrMakerList = $this->lfGetMakerList(); 82 79 83 // フックポイント. 84 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 85 $objPlugin->doAction('LC_Page_FrontParts_Bloc_SearchProducts_action_after', array($this)); 80 86 81 } 87 82
Note: See TracChangeset
for help on using the changeset viewer.