|db_Main||This method returns a valid dbh using the scheme described in Gantry::Docs::DBConn. It is compatible with Class::DBI and Gantry::Plugins::DBIxClassConn (the later is a mixin which allows easy access to a DBIx::Schema object for controllers).|
This method is exported as db_Main and works with the scheme described
in Gantry::Docs::DBConn. It too is compatible with Class::DBI and
I will repeat, if you ask for this method in your use statement:
it will come into your namespace as db_Main.
This method gives you a selection list for each foriegn key in your
table. The lists come to you as a single hash keyed by the table names
of the foreign keys. The values in the hash are ready for use
by form.tt as options on the field (whose type should be select).
To use this method, your models must implement these class methods:
Replacement for retrieve_all_for_main_listing.
Returns a list of row objects (one for each row in the table). The ORDER BY clause is either the same as the foreign_display columns or chosen by you. If you want to supply the order do it like this:
Note that your order_by will be used AS IS, so it must be a valid SQL ORDER BY clause, but feel free to include DESC or anything else you and SQL like.
DEPRECATED use get_listing instead
Returns a list of row objects (one for each row in the table) in order by their foreign_display columns.
Phil Crow <email@example.com>
Copyright (c) 2006, 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.
|perl v5.20.3||GANTRY::UTILS::MODELHELPER (3)||2016-04-03|