Atsushi Kobayashi > Teng > Teng::Iterator

Download:
Teng-0.18.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Teng-0.25

NAME ^

Teng::Iterator - Iterator for Teng

DESCRIPTION ^

This is an iterator class for Teng.

SYNOPSIS ^

  my $itr = Your::Model->search('user',{});
  
  my @rows = $itr->all; # get all rows

  # do iteration
  while (my $row = $itr->next) {
    ...
  }

METHODS ^

$itr = Teng::Iterator->new()

Create new Teng::Iterator's object. You may not call this method directly.

my $row = $itr->next();

Get next row data.

my @ary = $itr->all;

Get all row data in array.

$itr->suppress_object_creation($bool)

Set row object creation mode.

syntax highlighting: