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: ro, isa ArrayRef[Tuple[Object,Maybe[HashRef]]], traits: ['Array']
12 This attribute stores the objects found/created at the object action. It handles the following methods:
14 all_objects => 'elements'
16 count_objects => 'count'
17 has_objects => 'count'
18 clear_objects => 'clear'
25 isa => ArrayRef[ Tuple[ Object, Maybe[HashRef] ] ],
26 traits => [ 'Array' ],
27 default => sub { [] },
30 all_objects => 'elements',
32 count_objects => 'count',
33 has_objects => 'count',
34 clear_objects => 'clear',
39 =attribute_public current_result_set is: ro, isa: L<Catalyst::Controller::DBIC::API::Types/ResultSet>
41 Stores the current ResultSet derived from the initial L<Catalyst::Controller::DBIC::API::StoredResultSource/stored_model>.
45 has current_result_set =>
49 writer => '_set_current_result_set',