| OpenInteract documentation | view source | Contained in the OpenInteract distribution. |
OpenInteract - mod_perl handler to process all OpenInteract requests
This documentation is for the OpenInteract Apache content handler. For general information about OpenInteract, see OpenInteract::Intro (OpenInteract::Intro).
This content handler creates the OpenInteract::Request object and farms requests out to all the relevant handlers -- cookies, session, authentication, themes, etc.
We walk through a number of class methods here. They are probably self-evident by checking out the code, but just to be on the safe side.
$R (an OpenInteract::Request)
die with error message. $R. We
reuse this object throughout the request so we should not have any
issues with POST values being empty on a second read.
send_html() then
die with Apache return code (e.g., 'OK' ) send_html() then
die with Apache return code (e.g., 'OK' ) send_html() then
die with Apache return code (e.g., 'OK' ) send_html() then
die with Apache return code (e.g., 'OK' ) $R as the sole
argument. That method is responsible for resetting the URL in the
request to that specified in 'login.required_url'.
send_html() then
die with Apache return code (e.g., 'OK' ) $R->{theme}.
send_html() then
die with Apache return code (e.g., 'OK' ) send_html() then
die with Apache return code (e.g., 'OK' ) send_html() then
die with Apache return code (e.g., 'OK' ) Since all of the above are class methods, you can subclass OpenInteract so you override one or more of the above methods.
If you get an error with something like:
Can't locate object method "cookies" via package "OpenInteract::Request" at /usr/lib/perl5/site_perl/5.6.1/OpenInteract.pm line 226.
This likely means that the OpenInteract::Request::setup_aliases()
wasn't run. Typically this is run in the PerlChildInitHandler when an
Apache child is first created. This points to a larger problem if it
is not run. (What exactly is that larger problem? Still working on
that...)
Nothing known
None known
Copyright (c) 2001-2002 intes.net, inc.. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Chris Winters <chris@cwinters.com>
| OpenInteract documentation | view source | Contained in the OpenInteract distribution. |