++ed by:
DHOSS KARUPA KEEDI KTAT MALLEN

7 PAUSE user(s)
7 non-PAUSE user(s).

cho45 (さとう)

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.




Hosting generously
sponsored by Bytemark