Changeset 109 for branches/1.1dev/lib


Ignore:
Timestamp:
Apr 26, 2006 11:24:39 PM (18 years ago)
Author:
scdev
Message:

Q - Upgraded module_maker

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1dev/lib/Hierarchy.inc.php

    r91 r109  
    712712            for ($i=0; $i<$num_children; $i++) {
    713713
    714                 // Preventing circular references (Except when including current  item in list).
     714                // Preventing circular references (Except when including current item in list).
    715715                if ($my_children[$i]['child_type'] == $child_type && $my_children[$i]['child_id'] == $child_id && !($_return_flag && $include_curr)) {
    716716                    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__);
     
    748748    }
    749749   
     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    */
    750762    function convertListToTree($curr, $child_type=null, $child_id=null, $_indent=0)
    751763    {
     
    814826    }
    815827
     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    */
    816837    function printTree($in)
    817838    {
Note: See TracChangeset for help on using the changeset viewer.