Changeset 109 for branches/1.1dev/lib
- Timestamp:
- Apr 26, 2006 11:24:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1dev/lib/Hierarchy.inc.php
r91 r109 712 712 for ($i=0; $i<$num_children; $i++) { 713 713 714 // Preventing circular references (Except when including current 714 // Preventing circular references (Except when including current item in list). 715 715 if ($my_children[$i]['child_type'] == $child_type && $my_children[$i]['child_id'] == $child_id && !($_return_flag && $include_curr)) { 716 716 logMsg(sprintf(_("Circular reference detected: %s has itself as a parent."), $this->toStringID($my_children[$i]['child_type'], $my_children[$i]['child_id'])), LOG_ERR, __FILE__, __LINE__); … … 748 748 } 749 749 750 /* 751 * Returns an array converted from a stack to a multidimentional hierarchy based on the parent types and ids. 752 * 753 * @access public 754 * @param array $curr The starting array to convert from. 755 * @param string $child_type Optional root node type to start from. 756 * @param int $child_id Optional root node id to start from. 757 * @return array Multidimentional array. 758 * @author Quinn Comendant <quinn@strangecode.com> 759 * @version 1.0 760 * @since 26 Apr 2006 15:40:30 761 */ 750 762 function convertListToTree($curr, $child_type=null, $child_id=null, $_indent=0) 751 763 { … … 814 826 } 815 827 828 /* 829 * Prints a nested HTML list from input array generated by convertListToTree(). 830 * 831 * @access public 832 * @param array $in Input array. 833 * @author Quinn Comendant <quinn@strangecode.com> 834 * @version 1.0 835 * @since 26 Apr 2006 15:50:00 836 */ 816 837 function printTree($in) 817 838 {
Note: See TracChangeset
for help on using the changeset viewer.