浏览代码

Added a not explaining how to use the TreeIterator constants instead

Jose Lorenzo Rodriguez 12 年之前
父节点
当前提交
abdb0c3a0f
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      src/Collection/CollectionTrait.php

+ 7 - 0
src/Collection/CollectionTrait.php

@@ -876,6 +876,13 @@ trait CollectionTrait {
  * Finally, you can specify to only get a collection with the leaf nodes in the
  * Finally, you can specify to only get a collection with the leaf nodes in the
  * tree structure. You do so by passing 'leaves' in the first argument.
  * tree structure. You do so by passing 'leaves' in the first argument.
  *
  *
+ * The possible values for the first argument are aliases for the following
+ * constants and it is valid to pass those instead of the alias:
+ *
+ * - desc: TreeIterator::SELF_FIRST
+ * - asc: TreeIterator::CHILD_FIRST
+ * - leaves: TreeIterator::LEAVES_ONLY
+ *
  * ### Example:
  * ### Example:
  *
  *
  * {{{
  * {{{