| 1 | package DBIx::Class::AuditAny::AuditContext::Column; | ||
| 2 | 12 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 12 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | # ABSTRACT: Default 'Column' context object class for DBIx::Class::AuditAny | ||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | DBIx::Class::AuditAny::AuditContext::Column - Default 'Column' context object for DBIx::Class::AuditAny | ||
| 10 | |||
| 11 | =head1 DESCRIPTION | ||
| 12 | |||
| 13 | This class tracks a single change to a single column, belonging to a parent "Change" context which | ||
| 14 | represents multiple column changes, and the Change may belong to a "ChangeSet" which may comprise | ||
| 15 | multiple different Changes, which of which having 1 or more column change contexts. | ||
| 16 | |||
| 17 | =cut | ||
| 18 | |||
| 19 | 12 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 12 | ▶ | use MooX::Types::MooseLike::Base qw(:all); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 12 | extends 'DBIx::Class::AuditAny::AuditContext'; | |
| 22 | |||
| 23 | 12 | ▶ | use DBIx::Class::AuditAny::Util; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | =head1 ATTRIBUTES | ||
| 26 | |||
| 27 | Docs regarding the API/purpose of the attributes and methods in this class still TBD... | ||
| 28 | |||
| 29 | =head2 ChangeContext | ||
| 30 | |||
| 31 | =head2 column_name | ||
| 32 | |||
| 33 | =head2 old_value | ||
| 34 | |||
| 35 | =head2 new_value | ||
| 36 | |||
| 37 | =cut | ||
| 38 | |||
| 39 | 12 | has 'ChangeContext', is => 'ro', required => 1; | |
| 40 | 12 | has 'column_name', is => 'ro', isa => Str, required => 1; | |
| 41 | 12 | has 'old_value', is => 'ro', isa => Maybe[Str], required => 1; | |
| 42 | 12 | has 'new_value', is => 'ro', isa => Maybe[Str], required => 1; | |
| 43 | |||
| 44 | =head1 METHODS | ||
| 45 | |||
| 46 | =head2 class | ||
| 47 | |||
| 48 | =cut | ||
| 49 | 0 | ▶ | sub class { (shift)->ChangeContext->class } |
|
Subroutine
class: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 50 | |||
| 51 | sub _build_tiedContexts { | ||
| 52 | 0 | ▶ | my $self = shift; |
|
Subroutine
_build_tiedContexts: not called CC=1 SCAR=6.9
| |||
| 53 | 0 | my @Contexts = ( $self->ChangeContext, @{$self->ChangeContext->tiedContexts} ); | |
| 54 | 0 | return \@Contexts; | |
| 55 | } | ||
| 56 | sub _build_local_datapoint_data { | ||
| 57 | 0 | ▶ | my $self = shift; |
|
Subroutine
_build_local_datapoint_data: not called CC=1 SCAR=6.9
| |||
| 58 | 0 | return { map { $_->name => $_->get_value($self) } $self->get_context_datapoints('column') }; | |
| 59 | } | ||
| 60 | |||
| 61 | |||
| 62 | 12 | 1; | |
| 63 | |||
| 64 | __END__ | ||
| 65 | |||
| 66 | =head1 SEE ALSO | ||
| 67 | |||
| 68 | =over | ||
| 69 | |||
| 70 | =item * | ||
| 71 | |||
| 72 | L<DBIx::Class::AuditAny> | ||
| 73 | |||
| 74 | =item * | ||
| 75 | |||
| 76 | L<DBIx::Class> | ||
| 77 | |||
| 78 | =back | ||
| 79 | |||
| 80 | =head1 SUPPORT | ||
| 81 | |||
| 82 | IRC: | ||
| 83 | |||
| 84 | Join #rapidapp on irc.perl.org. | ||
| 85 | |||
| 86 | =head1 AUTHOR | ||
| 87 | |||
| 88 | Henry Van Styn <vanstyn@cpan.org> | ||
| 89 | |||
| 90 | =head1 COPYRIGHT AND LICENSE | ||
| 91 | |||
| 92 | This software is copyright (c) 2012-2015 by IntelliTree Solutions llc. | ||
| 93 | |||
| 94 | This is free software; you can redistribute it and/or modify it under | ||
| 95 | the same terms as the Perl 5 programming language system itself. | ||
| 96 | |||
| 97 | =cut | ||