- Timestamp:
- 2011/02/19 17:07:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/helper/SC_Helper_DB.php
r20180 r20199 509 509 $category_id = (int) $category_id; 510 510 $product_id = (int) $product_id; 511 if (SC_Utils_Ex::sfIsInt($category_id) && $category_id != 0 && $this->sfIsRecord("dtb_category","category_id", $category_id)) {511 if (SC_Utils_Ex::sfIsInt($category_id) && $category_id != 0 && SC_Helper_DB_Ex::sfIsRecord("dtb_category","category_id", $category_id)) { 512 512 $this->g_category_id = array($category_id); 513 } else if (SC_Utils_Ex::sfIsInt($product_id) && $product_id != 0 && $this->sfIsRecord("dtb_products","product_id", $product_id, $status)) {513 } else if (SC_Utils_Ex::sfIsInt($product_id) && $product_id != 0 && SC_Helper_DB_Ex::sfIsRecord("dtb_products","product_id", $product_id, $status)) { 514 514 $objQuery =& SC_Query::getSingletonInstance(); 515 515 $where = "product_id = ?"; … … 829 829 $arrChildren[] = $id; 830 830 831 $arrRet = $this->sfGetChildrenArraySub($arrData, $pid_name, $id_name, $arrPID);831 $arrRet = SC_Helper_DB_Ex::sfGetChildrenArraySub($arrData, $pid_name, $id_name, $arrPID); 832 832 833 833 while(count($arrRet) > 0) { 834 834 $arrChildren = array_merge($arrChildren, $arrRet); 835 $arrRet = $this->sfGetChildrenArraySub($arrData, $pid_name, $id_name, $arrRet);835 $arrRet = SC_Helper_DB_Ex::sfGetChildrenArraySub($arrData, $pid_name, $id_name, $arrRet); 836 836 } 837 837 … … 917 917 function sfGetCatWhere($category_id) { 918 918 // 子カテゴリIDの取得 919 $arrRet = $this->sfGetChildsID("dtb_category", "parent_category_id", "category_id", $category_id);919 $arrRet = SC_Helper_DB_Ex::sfGetChildrenArray("dtb_category", "parent_category_id", "category_id", $category_id); 920 920 $tmp_where = ""; 921 921 foreach ($arrRet as $val) {
Note: See TracChangeset
for help on using the changeset viewer.