Changeset 21743 for branches/version-2_12-dev/data/class/pages/products
- Timestamp:
- 2012/04/15 03:05:06 (12 years ago)
- Location:
- branches/version-2_12-dev/data/class/pages/products
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_CategoryList.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_Products_CategoryList_action_before', array($this));67 64 68 65 // カテゴリIDの正当性チェック … … 76 73 $this->tpl_subtitle = $this->arrCategory['category_name']; 77 74 78 // フックポイント. 79 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 80 $objPlugin->doAction('LC_Page_Products_CategoryList_action_after', array($this)); 75 81 76 } 82 77 … … 168 163 // 入力値の変換 169 164 $objFormParam->convParam(); 170 return $objFormParam; 165 return $objFormParam; 171 166 } 172 167 -
branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_Detail.php
r21693 r21743 92 92 */ 93 93 function action() { 94 // フックポイント.95 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);96 $objPlugin->doAction('LC_Page_Products_Detail_action_before', array($this));97 94 98 95 // 会員クラス … … 162 159 $objCartSess->addProduct($product_class_id, $this->objFormParam->getValue('quantity')); 163 160 164 // フックポイント.165 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);166 $objPlugin->doAction('LC_Page_Products_Detail_action_cart', array($this));167 161 168 162 SC_Response_Ex::sendRedirect(CART_URLPATH); 169 exit;163 SC_Response_Ex::actionExit(); 170 164 } 171 165 break; … … 176 170 if (count($this->arrErr) == 0) { 177 171 if (!$this->lfRegistFavoriteProduct($this->objFormParam->getValue('favorite_product_id'),$objCustomer->getValue('customer_id'))) { 178 // フックポイント. 172 179 173 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 180 174 $objPlugin->doAction('LC_Page_Products_Detail_action_add_favorite', array($this)); 181 175 182 exit;176 SC_Response_Ex::actionExit(); 183 177 } 184 178 } … … 192 186 if (count($this->arrErr) == 0) { 193 187 if ($this->lfRegistFavoriteProduct($this->objFormParam->getValue('favorite_product_id'),$objCustomer->getValue('customer_id'))) { 194 // フックポイント. 188 195 189 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 196 190 $objPlugin->doAction('LC_Page_Products_Detail_action_add_favorite_sphone', array($this)); 197 191 198 192 print 'true'; 199 exit;193 SC_Response_Ex::actionExit(); 200 194 } 201 195 } 202 196 print 'error'; 203 exit;197 SC_Response_Ex::actionExit(); 204 198 } 205 199 break; … … 324 318 $this->is_favorite = SC_Helper_DB_Ex::sfDataExists('dtb_customer_favorite_products', 'customer_id = ? AND product_id = ?', array($objCustomer->getValue('customer_id'), $product_id)); 325 319 } 326 // フックポイント. 327 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 328 $objPlugin->doAction('LC_Page_Products_Detail_action_after', array($this)); 320 329 321 } 330 322 -
branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_List.php
r21693 r21743 95 95 */ 96 96 function action() { 97 // フックポイント.98 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);99 $objPlugin->doAction('LC_Page_Products_List_action_before', array($this));100 97 101 98 $objProduct = new SC_Product_Ex(); … … 140 137 $this->arrProducts[$key]['main_list_image'] = SC_Utils_Ex::sfNoImageMainList($val['main_list_image']); 141 138 } 142 // フックポイント.143 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);144 $objPlugin->doAction('LC_Page_Products_List_action_json', array($this));145 139 146 140 echo SC_Utils_Ex::jsonEncode($this->arrProducts); 147 exit;141 SC_Response_Ex::actionExit(); 148 142 break; 149 143 … … 198 192 $this->lfAddCart($this->arrForm, $_SERVER['HTTP_REFERER']); 199 193 200 // フックポイント.201 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);202 $objPlugin->doAction('LC_Page_Products_List_action_cart', array($this));203 194 204 195 SC_Response_Ex::sendRedirect(CART_URLPATH); 205 exit;196 SC_Response_Ex::actionExit(); 206 197 } 207 198 $js_fnOnLoad .= $this->lfSetSelectedData($this->arrProducts, $this->arrForm, $arrErr, $target_product_id); … … 220 211 $this->tpl_rnd = SC_Utils_Ex::sfGetRandomString(3); 221 212 222 // フックポイント. 223 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 224 $objPlugin->doAction('LC_Page_Products_List_action_after', array($this)); 213 225 214 } 226 215 -
branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_Review.php
r21693 r21743 79 79 */ 80 80 function action() { 81 // フックポイント.82 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);83 $objPlugin->doAction('LC_Page_Products_Review_action_before', array($this));84 81 85 82 $objFormParam = new SC_FormParam_Ex(); … … 109 106 $this->lfRegistRecommendData($objFormParam); 110 107 111 // フックポイント.112 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);113 $objPlugin->doAction('LC_Page_Products_Review_action_complete', array($this));114 108 115 109 //レビュー書き込み完了ページへ 116 110 SC_Response_Ex::sendRedirect('review_complete.php'); 117 exit;111 SC_Response_Ex::actionExit(); 118 112 } 119 113 break; … … 135 129 $this->setTemplate($this->tpl_mainpage); 136 130 137 // フックポイント. 138 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 139 $objPlugin->doAction('LC_Page_Products_Review_action_after', array($this)); 131 140 132 } 141 133 -
branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_ReviewComplete.php
r21693 r21743 63 63 */ 64 64 function action() { 65 // フックポイント.66 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);67 $objPlugin->doAction('LC_Page_Products_ReviewComplete_action_before', array($this));68 65 69 66 $this->setTemplate('products/review_complete.tpl'); 70 67 71 // フックポイント. 72 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 73 $objPlugin->doAction('LC_Page_Products_ReviewComplete_action_after', array($this)); 68 74 69 } 75 70 -
branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_Search.php
r21693 r21743 63 63 */ 64 64 function action() { 65 // フックポイント.66 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);67 $objPlugin->doAction('LC_Page_Products_Search_action_before', array($this));68 65 69 // フックポイント. 70 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 71 $objPlugin->doAction('LC_Page_Products_Search_action_after', array($this)); 66 72 67 } 73 68
Note: See TracChangeset
for help on using the changeset viewer.