Apache-FastForward
view release on metacpan or search on metacpan
lib/Apache/FastForward.pm view on Meta::CPAN
foreach my $row ( @item_quantity_table ){
print $row->{item}}, $row->{quantity}
}
...
=head1 DESCRIPTION
=head2 USAGE
The module is part of the FastForward project, which aim is to allow fast development of web based spreadsheet applications. Apache::FastForward implements receiving CSV formatted data by the POST request and their convenient manipulation on the serv...
=head2 METHODS
=over
=item ParseBody ( $encoding )
Parses the body of the POST request and stores inside the class instance. Encoding as input (if nothing defaults to UTF-8). Output: returning success (1) or failure(0).
=item GetTable ( $col1, $col2, $col3 )
Column names from the POST request (order does not matter). Output: array of hashes [ {col1=> var11, col2=>var12}, {col1=> var21, col2=>var22} ] or undef if nothing exists.
=item IsBodyEmpty ( )
Checks, if the POST body is empty. No input (valid for last parsed body - passed via the class instance). Output: body is empty->check success (1) or body is not empty-> failure(0).
=item IsDefinedHeader ( $col1, $col2, $col3 )
Checks, if a set of column names (header) for a table is defined inside of the POST body. Column names as input (order does not matter).Output: check success (1) or failure(0).
=item IsDefinedTable ( $col1, $col2, $col3 )
Checks, if a table with the column names and some data is inside of the POST body. Column names as input (order does not matter - a set of column names defines a table).Output: check success (1) or failure(0).
=item ListHeaders ( )
No input (valid for last parsed body - passed via class instance). Output: array of headers (sets of column names defining a tables) or undef if nothing.
=item ListTables ( )
No input (valid for last parsed body - passed via class instance). Output: array of headers of tables (sets of column names defining a tables, where is some data inside) or undef if nothing.
=back
=head1 BUGS
Any suggestions for improvement are welcomed!
If a bug is detected or nonconforming behavior,
please send an error report to <jwach@cpan.org>.
=head1 COPYRIGHT
Copyright 2006 Jerzy Wachowiak <jwach@cpan.org>
This library is free software; you can redistribute it and/or modify
it under the terms of the Apache 2.0 license attached to the module.
=head1 SEE ALSO
L<Apache::FastForward::Spreadsheet>
=over
( run in 0.563 second using v1.01-cache-2.11-cpan-e1769b4cff6 )