1 package Catalyst::Controller::DBIC::API::Request::Context;
3 #ABSTRACT: Provides additional context to the Request
5 use MooseX::Types::Moose(':all');
6 use MooseX::Types::Structured('Tuple');
7 use Catalyst::Controller::DBIC::API::Types(':all');
8 use namespace::autoclean;
10 =attribute_public objects
12 This attribute stores the objects found/created at the object action.
13 It handles the following methods:
15 all_objects => 'elements'
17 count_objects => 'count'
18 has_objects => 'count'
19 clear_objects => 'clear'
25 isa => ArrayRef[Tuple[Object,Maybe[HashRef]]],
27 default => sub { [] },
29 all_objects => 'elements',
31 count_objects => 'count',
32 has_objects => 'count',
33 clear_objects => 'clear',
38 =attribute_public current_result_set
40 Stores the current ResultSet derived from the initial
41 L<Catalyst::Controller::DBIC::API::StoredResultSource/stored_model>.
45 has current_result_set => (
48 writer => '_set_current_result_set',