EntityModel::Web::Context - handle context for a web request
version 0.004
my $web = EntityModel::Web->new; my $req = EntityModel::Web::Request->new; my $ctx = EntityModel::Web::Context->new( request => $req ); $ctx->find_page_and_data($web); $ctx->resolve_data; $ctx->process; $ctx->save_session; return $ctx->response;
Locate the page and populate any initial data from the path information.
Returns number of missing dependencies for the given EntityModel::Web::Page::Data entry.
Process all data for this page, handling initial population and then going through each item in turn, adding it back to the queue if the dependencies aren't ready.
Chained method.
Retrieve data value for given EntityModel::Web::Page::Data entry.
Resolve a single data item if we can.
Returns undef on failure, original entry on success.
Generate list of arguments for a method call.
Call class method to obtain new data value.
Instance method, in which case hopefully we already set this one up
Loads session data into the current context.
Tom Molesworth <cpan@entitymodel.com>
Copyright Tom Molesworth 2009-2011. Licensed under the same terms as Perl itself.
To install EntityModel::Web, copy and paste the appropriate command in to your terminal.
cpanm
cpanm EntityModel::Web
CPAN shell
perl -MCPAN -e shell install EntityModel::Web
For more information on module installation, please visit the detailed CPAN module installation guide.