The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

EntityModel::Web::Context - handle context for a web request

VERSION

version 0.004

SYNOPSIS

 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;

DESCRIPTION

METHODS

find_page_and_data

Locate the page and populate any initial data from the path information.

data_missing

Returns number of missing dependencies for the given EntityModel::Web::Page::Data entry.

resolve_data

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.

find_data_value

Retrieve data value for given EntityModel::Web::Page::Data entry.

resolve_data_item

Resolve a single data item if we can.

Returns undef on failure, original entry on success.

args_for_data

Generate list of arguments for a method call.

data_from_class_method

Call class method to obtain new data value.

data_from_instance_method

Instance method, in which case hopefully we already set this one up

process

section_content

load_session

Loads session data into the current context.

save_session

AUTHOR

Tom Molesworth <cpan@entitymodel.com>

LICENSE

Copyright Tom Molesworth 2009-2011. Licensed under the same terms as Perl itself.