1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/www/p5-Template-Iterator-AlzaboWrapperCursor/pkg-descr
Andrew Pantyukhin 0acc92c3c0 Add port www/p5-Template-Iterator-AlzaboWrapperCursor:
This module allows a Class::AlzaboWrapper::Cursor object to be used as
a TT2 iterator.

For a cursor which returns one object at a time, the iterator simply
returns one object per iteration. When the cursor returns multiple
objects, the iterator returns a hash reference where the keys are the
table name of the object's class in lower-case, with camel-casing
turned into underscores. The values of the hash are the objects.

So if the cursor returns Foo::User and Foo::Page objects, the keys are
"user" and "page".

WWW: http://search.cpan.org/dist/Template-Iterator-AlzaboWrapperCursor/

Justification:	socialtext dependency
2006-08-02 10:54:42 +00:00

14 lines
589 B
Plaintext

This module allows a Class::AlzaboWrapper::Cursor object to be used as
a TT2 iterator.
For a cursor which returns one object at a time, the iterator simply
returns one object per iteration. When the cursor returns multiple
objects, the iterator returns a hash reference where the keys are the
table name of the object's class in lower-case, with camel-casing
turned into underscores. The values of the hash are the objects.
So if the cursor returns Foo::User and Foo::Page objects, the keys are
"user" and "page".
WWW: http://search.cpan.org/dist/Template-Iterator-AlzaboWrapperCursor/