Ignore:
Timestamp:
2013/03/04 09:05:06 (11 years ago)
Author:
pineray
Message:

#2166 商品並び替えページのツリーとパンくずを調整.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/util/SC_Utils.php

    r22590 r22597  
    19301930     * @param integer $max_depth 
    19311931     * @param array $correction 
    1932      * @param integer $base_id 
     1932     * @param integer $root_id 
    19331933     * @return array ツリーの配列 
    19341934     */ 
     
    19941994     * @param array $correction 階層構造が含まれている配列 
    19951995     * @param integer $root_id ルートID 
     1996     * @param boolean $id_only IDだけの配列を返す場合はtrue 
    19961997     * @return array 親ID配列 
    19971998     */ 
    1998     public static function getTreeTrail($start_id, $primary_key, $glue_key, $correction = array(), $root_id = 0) 
     1999    public static function getTreeTrail($start_id, $primary_key, $glue_key, $correction = array(), $root_id = 0, $id_only = TRUE) 
    19992000    { 
    20002001        $arrIDToKay = SC_Utils_Ex::makeArrayIDToKey($primary_key, $correction); 
     
    20022003        $arrTrail = array(); 
    20032004        while ($id != $root_id && !SC_Utils_Ex::isBlank($id)) { 
    2004             $arrTrail[] = $id; 
     2005            if ($id_only) { 
     2006                $arrTrail[] = $id; 
     2007            } else { 
     2008                $arrTrail[] = $arrIDToKay[$id]; 
     2009            } 
    20052010            if (isset($arrIDToKay[$id][$glue_key])) { 
    20062011                $id = $arrIDToKay[$id][$glue_key]; 
Note: See TracChangeset for help on using the changeset viewer.