Changeset 22603 for branches/version-2_12-dev/data/class/util
- Timestamp:
- 2013/03/05 09:21:53 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/util/SC_Utils.php
r22602 r22603 1969 1969 * @param string $glue_key 親IDキー名 1970 1970 * @param array $correction 階層構造が含まれている配列 1971 * @param boolean $cid_is_key キーがIDの配列の場合はtrue 1971 1972 * @param integer $root_id ルートID 1972 1973 * @param boolean $id_only IDだけの配列を返す場合はtrue 1973 1974 * @return array 親ID配列 1974 1975 */ 1975 public static function getTreeTrail($start_id, $primary_key, $glue_key, $correction = array(), $root_id = 0, $id_only = TRUE) 1976 { 1977 $arrIDToKay = SC_Utils_Ex::makeArrayIDToKey($primary_key, $correction); 1976 public static function getTreeTrail($start_id, $primary_key, $glue_key, $correction = array(), $cid_is_key = FALSE, $root_id = 0, $id_only = TRUE) 1977 { 1978 if ($cid_is_key) { 1979 $arrIDToKay = $correction; 1980 } else { 1981 $arrIDToKay = SC_Utils_Ex::makeArrayIDToKey($primary_key, $correction); 1982 } 1978 1983 $id = $start_id; 1979 1984 $arrTrail = array();
Note: See TracChangeset
for help on using the changeset viewer.