| Catalyst-Controller-DBIC-API documentation | Contained in the Catalyst-Controller-DBIC-API distribution. |
Catalyst::Controller::DBIC::API::Request::Context - Provides additional context to the Request
version 2.003002
This attribute stores the objects found/created at the object action. It handles the following methods:
all_objects => 'elements'
add_object => 'push'
count_objects => 'count'
has_objects => 'count'
clear_objects => 'clear'
Stores the current ResultSet derived from the initial stored_model in Catalyst::Controller::DBIC::API::StoredResultSource.
This software is copyright (c) 2011 by Luke Saunders, Nicholas Perez, Alexander Hartmaier, et al..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Catalyst-Controller-DBIC-API documentation | Contained in the Catalyst-Controller-DBIC-API distribution. |
package Catalyst::Controller::DBIC::API::Request::Context; BEGIN { $Catalyst::Controller::DBIC::API::Request::Context::VERSION = '2.003002'; } #ABSTRACT: Provides additional context to the Request use Moose::Role; use MooseX::Types::Moose(':all'); use MooseX::Types::Structured('Tuple'); use Catalyst::Controller::DBIC::API::Types(':all'); use namespace::autoclean; has objects => ( is => 'ro', isa => ArrayRef[ Tuple[ Object, Maybe[HashRef] ] ], traits => [ 'Array' ], default => sub { [] }, handles => { all_objects => 'elements', add_object => 'push', count_objects => 'count', has_objects => 'count', clear_objects => 'clear', get_object => 'get', }, ); has current_result_set => ( is => 'ro', isa => ResultSet, writer => '_set_current_result_set', ); 1; __END__