Ignore:
Timestamp:
2007/08/01 10:23:57 (17 years ago)
Author:
nanasess
Message:

slib.php のクラス化対応

Location:
branches/feature-module-update/html/frontparts/bloc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/html/frontparts/bloc/category.php

    r15080 r15152  
    3939    $arrRet = $objQuery->select($col, $from, $where); 
    4040 
    41     $arrParentID = SC_Utils::sfGetParents($objQuery, 'dtb_category', 'parent_category_id', 'category_id', $parent_category_id); 
    42     $arrBrothersID = SC_Utils::sfGetBrothersArray($arrRet, 'parent_category_id', 'category_id', $arrParentID); 
    43     $arrChildrenID = SC_Utils::sfGetUnderChildrenArray($arrRet, 'parent_category_id', 'category_id', $parent_category_id); 
     41    $arrParentID = SC_Utils_Ex::sfGetParents($objQuery, 'dtb_category', 'parent_category_id', 'category_id', $parent_category_id); 
     42    $arrBrothersID = SC_Utils_Ex::sfGetBrothersArray($arrRet, 'parent_category_id', 'category_id', $arrParentID); 
     43    $arrChildrenID = SC_Utils_Ex::sfGetUnderChildrenArray($arrRet, 'parent_category_id', 'category_id', $parent_category_id); 
    4444 
    4545    $objSubPage->root_parent_id = $arrParentID[0]; 
  • branches/feature-module-update/html/frontparts/bloc/search_products.php

    r15080 r15152  
    66 */ 
    77class LC_SearchProductsPage { 
    8     function LC_SearchProductsPage() { 
    9         /** 必ず変更する **/ 
    10         $this->tpl_mainpage = BLOC_PATH . 'search_products.tpl';    // メイン 
    11     } 
     8    function LC_SearchProductsPage() { 
     9        /** 必ず変更する **/ 
     10        $this->tpl_mainpage = BLOC_PATH . 'search_products.tpl';    // メイン 
     11    } 
    1212} 
    1313 
     
    1616 
    1717// 選択中のカテゴリIDを判定する 
    18 $objSubPage->category_id = sfGetCategoryId($_GET['product_id'], $_GET['category_id']); 
     18$objSubPage->category_id = SC_Utils_Ex::sfGetCategoryId($_GET['product_id'], $_GET['category_id']); 
    1919// カテゴリ検索用選択リスト 
    20 $arrRet = sfGetCategoryList('', true, ' '); 
     20$arrRet = SC_Utils_Ex::sfGetCategoryList('', true, ' '); 
    2121 
    2222if(is_array($arrRet)) { 
    23     // 文字サイズを制限する 
    24     foreach($arrRet as $key => $val) { 
    25         $arrRet[$key] = sfCutString($val, SEARCH_CATEGORY_LEN); 
    26     } 
     23    // 文字サイズを制限する 
     24    foreach($arrRet as $key => $val) { 
     25        $arrRet[$key] = SC_Utils_Ex::sfCutString($val, SEARCH_CATEGORY_LEN); 
     26    } 
    2727} 
    2828$objSubPage->arrCatList = $arrRet; 
Note: See TracChangeset for help on using the changeset viewer.