Acme-ReturnValue
view release on metacpan or search on metacpan
t/pms/RayApp.pm view on Meta::CPAN
(B<Apache2::RequestRec>) object. An example of an input module might
be
package Application::Input;
use RayApp::Request ();
use DBI ();
sub handler {
my ($dsd, $r) = @_;
if (defined $dsd) {
$dsd->validate_parameters($q)
or die $dsd->errstr;
}
my $dbh = DBI->connect('dbi:Oracle:prod',
'scott', 'tiger',
{ RaiseError => 1, AutoCommit => 0 });
my $q = new RayApp::Request($r);
return ($dbh, $q);
}
1;
Here we first validate parameters against DSD (you can optionally
die or just log an error, depending on how strict you want to be),
we connect to the database, so that the applications get connection
to their database backend, and we use B<RayApp::Request> to get
uniform (for mod_perl and CGI) query object. The values B<$dbh> and
B<$q> are returned and will be passed as argument to the application
B<handler>.
=item RayAppStyleParamModule / RAYAPP_STYLE_PARAM_MODULE
There are often additional data except the core data of the
( run in 1.856 second using v1.01-cache-2.11-cpan-13bb782fe5a )