Data-NestedSet
view release on metacpan or search on metacpan
lib/Data/NestedSet.pm view on Meta::CPAN
=item C<< The number of items within the array ref must be >=1 . Seen ... >>
You passed an empty reference to the constructor.
my $nodes = new Data::NestedSet([],2); # error
my $nodes = new Data::NestedSet([[1,'ROOT',0]],2); # ok
=item C<< An integer must be supplied as the second argument. Seen ... >>
You didn't supply a proper depth's offset value within the array reference.
my $nodes = new Data::NestedSet(\@array); # error
my $nodes = new Data::NestedSet(\@array,"wrong"); # error
my $nodes = new Data::NestedSet(\@array,2); # ok
=back
=head1 SEE ALSO
=over
=item B<explanation of the nested set model>
http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
(Managing Hierarchical Data in MySQL)
Even though, it is written for mysql rdb, the explanations are worth a look.
=item B<other related modules>
L<Table::ParentChild>
L<Tree::DAG_Node>
L<Sort::Tree>
L<DBIx::Tree>
L<DBIx::Tree::NestedSet>
None of this modules allows you to create a nested model
from the depth but are related to some extends.
=back
=head1 CONFIGURATION AND ENVIRONMENT
none
=head1 DEPENDENCIES
none
=head1 INCOMPATIBILITIES
none
=head1 BUGS AND LIMITATIONS
If you do me the favor to _use_ this module and find a bug, please email me
i will try to do my best to fix it (patches welcome)!
=head1 AUTHOR
Shirirules E<lt>shiriru0111[arobas]hotmail.comE<gt>
=head1 LICENSE AND COPYRIGHT
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=cut
( run in 1.010 second using v1.01-cache-2.11-cpan-39bf76dae61 )