- Timestamp:
- 2014/05/29 14:40:57 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/pages/products/LC_Page_Products_List.php
r23407 r23459 185 185 * カテゴリIDの取得 186 186 * 187 * @return integer カテゴリID 187 * @param int $category_id 188 * @return integer|void カテゴリID 188 189 */ 189 190 public function lfGetCategoryId($category_id) … … 193 194 194 195 // 正当性チェック 195 if (!SC_Utils_Ex::sfIsInt($category_id)196 || SC_Utils_Ex::sfIsZeroFilling($category_id)197 || !SC_Helper_DB_Ex::sfIsRecord('dtb_category', 'category_id', (array) $category_id, 'del_flg = 0')198 ){196 $objCategory = new SC_Helper_Category_Ex(); 197 if ($objCategory->isValidCategoryId($category_id)) { 198 return $category_id; 199 } else { 199 200 SC_Utils_Ex::sfDispSiteError(CATEGORY_NOT_FOUND); 200 201 } 201 202 // 指定されたカテゴリIDを元に正しいカテゴリIDを取得する。203 $arrCategory_id = SC_Helper_DB_Ex::sfGetCategoryId('', $category_id);204 205 if (empty($arrCategory_id)) {206 SC_Utils_Ex::sfDispSiteError(CATEGORY_NOT_FOUND);207 }208 209 return $arrCategory_id[0];210 202 } 211 203
Note: See TracChangeset
for help on using the changeset viewer.