OpenInteract::Request

Container for request info and output
Download

OpenInteract::Request Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Chris Winters
  • Publisher web site:
  • http://search.cpan.org/~cwinters/SPOPS-0.87/SPOPS/SQLInterface.pm

OpenInteract::Request Tags


OpenInteract::Request Description

Container for request info and output OpenInteract::Request is a Perl container for request info and output.SYNOPSIS # Anywhere in your website my $R = OpenInteract::Request->instance; my $user_rec = $R->user->fetch( $user_id ); my $org_recs = $R->org->fetch_group; my $db_info = $R->CONFIG->db_info(); my $dbh = $R->db;The Request object is fairly simple, having only a few methods to it. But it really ties applications together in the OpenInteract framework, acting as an object repository, a layer between your object names and their classes, and as a data store between different parts of the process. Since it is 'always around' (more later), you can thus have necessary configuration information, your database handle, cache store, template parser or other tools at your fingertips.This package is designed to run under mod_perl. Since it is a subclass of Class::Singleton, it maintains the request object (usually $R) around for the life of the Apache child. The intended side effect of this allows you to pluck the object from the ether from any handler or utility you are running by simply doing: my $R = OpenInteract::Request->intance;That is it. You do not need a 'use OpenInteract::Request;' statement, you do not need to pass the object around from method to method.The other job of the OpenInteract::Request object is to keep track of where we are: which action we are using, what URL was originally requested. etc. Requirements: · Perl


OpenInteract::Request Related Software