CatalystX::CRUD::Iterator::File - simple iterator for CXCO::File objects


CatalystX-CRUD documentation  | view source Contained in the CatalystX-CRUD distribution.

Index


NAME

Top

CatalystX::CRUD::Iterator::File - simple iterator for CXCO::File objects

SYNOPSIS

Top

 my $iterator = $c->model('MyFile')->iterator;
 while (my $file = $iterator->next)
 {
    # $file is a CatalystX::CRUD::Object::File
    # ...
 }




DESCRIPTION

Top

CatalystX::CRUD::Iterator::File is a simple iterator to fulfull the CatalystX::CRUD::Model::File API.

METHODS

Top

new( files )

Returns an iterator for files. files should be an array ref.

next

Returns the next File object or undef if no more files remain.

finish

Sets the array ref to empty. Always returns 1. This method is generally useless but implemented for completeness' sake.

AUTHOR

Top

Peter Karman, <perl at peknet.com>

BUGS

Top

Please report any bugs or feature requests to bug-catalystx-crud at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CatalystX-CRUD. 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 CatalystX::CRUD

You can also look for information at:

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/CatalystX-CRUD

* CPAN Ratings

http://cpanratings.perl.org/d/CatalystX-CRUD

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=CatalystX-CRUD

* Search CPAN

http://search.cpan.org/dist/CatalystX-CRUD

COPYRIGHT & LICENSE

Top


CatalystX-CRUD documentation  | view source Contained in the CatalystX-CRUD distribution.