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 is:
12 isa ArrayRef[Tuple[Object,Maybe[HashRef]]]
15 This attribute stores the objects found/created at the object action.
16 It handles the following methods:
18 all_objects => 'elements'
20 count_objects => 'count'
21 has_objects => 'count'
22 clear_objects => 'clear'
28 isa => ArrayRef[Tuple[Object,Maybe[HashRef]]],
30 default => sub { [] },
32 all_objects => 'elements',
34 count_objects => 'count',
35 has_objects => 'count',
36 clear_objects => 'clear',
41 =attribute_public current_result_set is:
43 isa: L<Catalyst::Controller::DBIC::API::Types/ResultSet>
45 Stores the current ResultSet derived from the initial
46 L<Catalyst::Controller::DBIC::API::StoredResultSource/stored_model>.
50 has current_result_set => (
53 writer => '_set_current_result_set',