line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catalyst::Controller::DBIC::API::Request::Context; |
2
|
|
|
|
|
|
|
$Catalyst::Controller::DBIC::API::Request::Context::VERSION = '2.008001'; |
3
|
|
|
|
|
|
|
#ABSTRACT: Provides additional context to the Request |
4
|
16
|
|
|
16
|
|
10805
|
use Moose::Role; |
|
16
|
|
|
|
|
43
|
|
|
16
|
|
|
|
|
146
|
|
5
|
16
|
|
|
16
|
|
88080
|
use MooseX::Types::Moose(':all'); |
|
16
|
|
|
|
|
48
|
|
|
16
|
|
|
|
|
178
|
|
6
|
16
|
|
|
16
|
|
147859
|
use MooseX::Types::Structured('Tuple'); |
|
16
|
|
|
|
|
2645121
|
|
|
16
|
|
|
|
|
122
|
|
7
|
16
|
|
|
16
|
|
5344
|
use Catalyst::Controller::DBIC::API::Types(':all'); |
|
16
|
|
|
|
|
44
|
|
|
16
|
|
|
|
|
189
|
|
8
|
16
|
|
|
16
|
|
82614
|
use namespace::autoclean; |
|
16
|
|
|
|
|
51
|
|
|
16
|
|
|
|
|
108
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has objects => ( |
12
|
|
|
|
|
|
|
is => 'ro', |
13
|
|
|
|
|
|
|
isa => ArrayRef[Tuple[Object,Maybe[HashRef]]], |
14
|
|
|
|
|
|
|
traits => ['Array'], |
15
|
|
|
|
|
|
|
default => sub { [] }, |
16
|
|
|
|
|
|
|
handles => { |
17
|
|
|
|
|
|
|
all_objects => 'elements', |
18
|
|
|
|
|
|
|
add_object => 'push', |
19
|
|
|
|
|
|
|
count_objects => 'count', |
20
|
|
|
|
|
|
|
has_objects => 'count', |
21
|
|
|
|
|
|
|
clear_objects => 'clear', |
22
|
|
|
|
|
|
|
get_object => 'get', |
23
|
|
|
|
|
|
|
}, |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
has current_result_set => ( |
28
|
|
|
|
|
|
|
is => 'ro', |
29
|
|
|
|
|
|
|
isa => ResultSet, |
30
|
|
|
|
|
|
|
writer => '_set_current_result_set', |
31
|
|
|
|
|
|
|
); |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=pod |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 NAME |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Catalyst::Controller::DBIC::API::Request::Context - Provides additional context to the Request |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 VERSION |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
version 2.008001 |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 PUBLIC_ATTRIBUTES |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head2 objects |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
This attribute stores the objects found/created at the object action. |
52
|
|
|
|
|
|
|
It handles the following methods: |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
all_objects => 'elements' |
55
|
|
|
|
|
|
|
add_object => 'push' |
56
|
|
|
|
|
|
|
count_objects => 'count' |
57
|
|
|
|
|
|
|
has_objects => 'count' |
58
|
|
|
|
|
|
|
clear_objects => 'clear' |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head2 current_result_set |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Stores the current ResultSet derived from the initial |
63
|
|
|
|
|
|
|
L<Catalyst::Controller::DBIC::API::StoredResultSource/stored_model>. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 AUTHORS |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=over 4 |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=item * |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Nicholas Perez <nperez@cpan.org> |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=item * |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Luke Saunders <luke.saunders@gmail.com> |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=item * |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
Alexander Hartmaier <abraxxa@cpan.org> |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=item * |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Florian Ragwitz <rafl@debian.org> |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=item * |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
Oleg Kostyuk <cub.uanic@gmail.com> |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=item * |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Samuel Kaufman <sam@socialflow.com> |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=back |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
This software is copyright (c) 2019 by Luke Saunders, Nicholas Perez, Alexander Hartmaier, et al. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
100
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=cut |