CGI::Listman::selection - managing CGI::Listman::line's in batch
use CGI; use CGI::Listman; use CGI::Listman::selection; my $cgi = CGI->new (); my $list_manager = CGI::Listman->new (); [...] my $selection = CGI::Listman::selection->new (); foreach my $param ($cgi->param ()) { if ($param =~ m/^select_([0-9].*$)/) { $selection->add_line_by_number ($listman, $1); } }
A CGI::Listman::selection encapsulates an array of selected lines for further batch processing. This is handy for example in an administration interface when the developer wants to export or erase several lines at a time from the database.
Creates, initializes and returns a new instance of CGI::Listman::selection for you to enjoy and work with.
This method takes no parameter.
A blessed instance of CGI::Listman::selection.
Use this method to add a CGI::Listman::line to your selection.
A single instance of CGI::Listman::line to be exported.
This method returns nothing.
This method helps you adding a line by number. The first parameter has to be its contextual instance of CGI::Listman. Without it, a line cannot be guaranteed to be numbered since line numbers make no sense when they are not part of a CGI::Listman.
An instance of CGI::Listman.
An integer representing the CGI::Listman::line you want to add to your selection.
Same as above, except that it takes a reference to an ARRAY of numbers.
A reference to an ARRAY of integers representing the CGI::Listman::line's you want to add to your selection.
Wolfgang Sourdeau, <Wolfgang@Contre.COM>
Copyright (C) 2002 iScream multimédia <info@iScream.ca>
This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
CGI::Listman::line(3) CGI::Listman::exporter(3)
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'multimédia'. Assuming CP1252
To install CGI::Listman, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Listman
CPAN shell
perl -MCPAN -e shell install CGI::Listman
For more information on module installation, please visit the detailed CPAN module installation guide.