Gantry::Utils::CRUDHelp - helper routines for CRUD plugins
use Gantry::Utils::CRUDHelp;
Exports helper functions useful when writing CRUD plugins.
Pass a hash of form parameters and the fields list from a Gantry::Plugins::AutoCRUD style form method. Any field with key is whose value is not boolean is examined in the params hash. If its value is false, that value is changed to undef. This keeps the ORM from trying to insert a blank string into a date and integer fields which is fatal, at least for DBIx::Class inserting into Postgres.
Gantry::Plugins::AutoCRUD
Pass a hash of form parameters and the fields list from a Gantry::Plugins::AutoCRUD style form method. Any field with key is whose value is date is examined in the params hash. If its value is false, that value is changed to undef. This keeps the ORM from trying to insert a blank string into a date field which is fatal, at least for Class::DBI inserting into Postgres.
Pass in the fields list from a Gantry::Plugins::AutoCRUD style _form method. Returns a hash reference suitable for passing to the check method of Data::FormValidator.
Gantry::Plugins::AutoCRUD (for simpler situations) Gantry::Plugins::CRUD (for slightly more complex situations)
Phil Crow <philcrow2000@yahoo.com>
Copyright (c) 2005, Phil Crow.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install Gantry, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gantry
CPAN shell
perl -MCPAN -e shell install Gantry
For more information on module installation, please visit the detailed CPAN module installation guide.