Skip to content

Commit

Permalink
Added a not explaining how to use the TreeIterator constants instead
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Apr 6, 2014
1 parent 4d100c3 commit abdb0c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Collection/CollectionTrait.php
Expand Up @@ -876,6 +876,13 @@ public function compile($preserveKeys = true) {
* 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.
*
* 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:
*
* {{{
Expand Down

0 comments on commit abdb0c3

Please sign in to comment.