Jifty::Action::Record::Bulk - Perform multiple record actions
use strict; use warnings; package MyApp::Action::BulkUpdateFoo; use base qw/ Jifty::Action::Record::Bulk /; __PACKAGE__->add_action('MyApp::Action::DeleteFoo' => { trigger => 'delete', final => 1 }); __PACKAGE__->add_action('MyApp::Action::UpdateFoo');
Merges the given action class into this one. Will die if the "action_class" in Jifty::Action::Record of the given CLASS doesn't match previously added classes.
die
CLASS
OPTIONS should be a hash reference of additional options. The existing options are:
Only run if this argument is provided
If this action runs, run only this action.
Merges together arguments from all of the actions added with "add_action". The record IDs to act on are stored (comma-separated) in an argument named ids, by default.
ids
Performs the given action CLASS on the given record IDs, which should be an array reference.
ID
Completes the actions on all of the IDs given.
Reports Bulk update successful.
Bulk update successful
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.