Net::LDAP::Class::MultiIterator - a set of Net::LDAP::Class::Iterator objects


Net-LDAP-Class documentation  | view source Contained in the Net-LDAP-Class distribution.

Index


NAME

Top

Net::LDAP::Class::MultiIterator - a set of Net::LDAP::Class::Iterator objects

SYNOPSIS

Top

 my $iterator = $user->groups_iterator;
 while ( my $group = $iterator->next ) {
    # $group isa Net::LDAP::Class::Group
 }
 printf("%d groups found\n", $iterator->count);

DESCRIPTION

Top

Net::LDAP::Class::MultiIterator handles multiple iterators under a single call to next(). Used by users_iterator() and groups_iterator() methods.

METHODS

Top

iterators

The array ref of iterators. Required to be set in new().

init

Set up the object.

count

Returns the total number of iterations.

next

Return the next result. If one iterator on the stack is exhausted, automatically moves to the next one.

is_exhausted

Returns true (1) if all the internal iterators return is_exhausted, false (undef) otherwise.

finish

Calls finish() on all un-exhausted iterators.

AUTHOR

Top

Peter Karman, <karman at cpan.org>

BUGS

Top

Please report any bugs or feature requests to bug-net-ldap-class at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-LDAP-Class. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc Net::LDAP::Class

You can also look for information at:

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Net-LDAP-Class

* CPAN Ratings

http://cpanratings.perl.org/d/Net-LDAP-Class

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-LDAP-Class

* Search CPAN

http://search.cpan.org/dist/Net-LDAP-Class

COPYRIGHT

Top

SEE ALSO

Top

Net::LDAP, Net::LDAP::Batch


Net-LDAP-Class documentation  | view source Contained in the Net-LDAP-Class distribution.