}
/**
- * Returns all the children in the given item list of the given parent. If threading
- * is allowed, does it recursively.
+ * Returns all the children in the given item list of the given parent, recusrsively
+ * or not.
+ *
+ * @brief Returns all the children in the given item list of the given parent
*
* @param array $item_list
* @param array $parent
+ * @param bool $recursive
* @return type
*/
function get_item_children(array $item_list, array $parent, $recursive = true)
}
/**
- * Recursively sorts a tree-like item array
+ * @brief Recursively sorts a tree-like item array
*
* @param array $items
* @return array
}
/**
- * Recursively add all children items at the top level of a list
+ * @brief Recursively add all children items at the top level of a list
*
* @param array $children List of items to append
* @param array $item_list
* This process is rendered somewhat more complicated because items can be either
* replies or likes, and these don't factor at all in the reply count/last reply.
*
+ * @brief Selectively flattens a tree-like item structure to prevent threading stairs
+ *
* @param array $parent A tree-like array of items
* @return array
*/
* sort the top-level posts either on "created" or "commented", and finally
* append all the items at the top level (???)
*
+ * @brief Expands a flat item list into a conversation array for display
+ *
* @param array $item_list A list of items belonging to one or more conversations
* @param string $order Either on "created" or "commented"
* @return array
}
/**
- * usort() callback to sort item arrays by the created key
+ * @brief usort() callback to sort item arrays by the created key
*
* @param array $a
* @param array $b
}
/**
- * usort() callback to reverse sort item arrays by the created key
+ * @brief usort() callback to reverse sort item arrays by the created key
*
* @param array $a
* @param array $b
}
/**
- * usort() callback to sort item arrays by the commented key
+ * @brief usort() callback to sort item arrays by the commented key
*
* @param array $a
* @param array $b