Ignore:
Timestamp:
May 13, 2008 4:14:53 AM (16 years ago)
Author:
quinn
Message:

Fixed lots of misplings. I'm so embarrassed! ;P

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Hierarchy.inc.php

    r201 r334  
    1111 * data. You must provide identification of a piece of data (type and ID) to
    1212 * insert it into the hierarchy. The node hierarchy is completely
    13  * separate from data storage and retreival. You must separatly store the data
     13 * separate from data storage and retrieval. You must separately store the data
    1414 * using whatever logic is specific to the data then also call these functions.
    1515 * Nodes are not the data. The nodes are mere singularities in virtual space
     
    123123
    124124    /**
    125      * Takes a singlar node identifier and returns it as components of an array.
     125     * Takes a singular node identifier and returns it as components of an array.
    126126     * @param string    $node
    127127     * @return mixed    Array of node type and id on success, false on failure.
     
    145145     * @param string    $parents    A serialized array of serialized parent identifiers
    146146     * @param string    $relationship_type
    147      * @return bool     true on sucess, false on error.
     147     * @return bool     true on success, false on error.
    148148     */
    149149    function insertNode($parents, $child_type=null, $child_id=null, $relationship_type=null, $title='')
     
    346346    /**
    347347     * Returns an array of all the parents of the current node (just the ones
    348      * immediatly above this node). You may need to call array_unique if you
     348     * immediately above this node). You may need to call array_unique if you
    349349     * don't want duplicate nodes returned.
    350350     *
     
    439439    /**
    440440     * Returns an array of all the children of the current node (just the ones
    441      * immediatly below this node). You may need to call array_unique if you
     441     * immediately below this node). You may need to call array_unique if you
    442442     * don't want duplicate nodes returned.
    443443     *
     
    598598     * @param  bool      $go_linear  ?
    599599     * @param  int       $_return_flag  An internal value that counts up as
    600      *                                  recursion progesses. When the value
     600     *                                  recursion progresses. When the value
    601601     *                                  drops back to 0, we return the output.
    602602     * @return array     Array of serialized node identifiers.
     
    756756                }
    757757                if (!$is_a_leaf[$this->toStringID($my_children[$i]['child_type'], $my_children[$i]['child_id'])]) {
    758                     // If this node is not a leaf, we dive into it recursivly.
     758                    // If this node is not a leaf, we dive into it recursively.
    759759                    $this->getNodeList($preselected, $my_children[$i]['child_type'], $my_children[$i]['child_id'], $type_constraint, $include_curr, $order, $_indent+1, false);
    760760                }
     
    803803    /**
    804804     * Used internally by setSubnodeQty to add the quantity of subnodes to
    805      * all parents recursivly.
     805     * all parents recursively.
    806806     */
    807807    function setSubnodeQtyToParents($child_type, $child_id, $num_children)
Note: See TracChangeset for help on using the changeset viewer.