| 1 | |||||||||||
| 2 | package OpusVL::Preferences::Schema::ResultSet::PrfOwnerType; | ||||||||||
| 3 | |||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | extends 'DBIx::Class::ResultSet'; | |||||||||
| 9 | |||||||||||
| 10 | sub setup_from_source | ||||||||||
| 11 | 0 | ▶ | { | ||||||||
|
Subroutine
setup_from_source: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 12 | 0 | my $self = shift; | |||||||||
| 13 | 0 | my $source = shift; | |||||||||
| 14 | |||||||||||
| 15 | 0 | my $table = $source->from; | |||||||||
| 16 | 0 | my $rs = $source->source_name; | |||||||||
| 17 | |||||||||||
| 18 | 0 | my $type = $self->get_from_source ($source); | |||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | unless ($type) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | { | ||||||||||
| 22 | 0 | $type = $self->create | |||||||||
| 23 | ({ | ||||||||||
| 24 | owner_table => $table, | ||||||||||
| 25 | owner_resultset => $rs | ||||||||||
| 26 | }); | ||||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | 0 | return $type; | |||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | sub get_from_source | ||||||||||
| 33 | 0 | ▶ | { | ||||||||
|
Subroutine
get_from_source: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 34 | 0 | my $self = shift; | |||||||||
| 35 | 0 | my $source = shift; | |||||||||
| 36 | |||||||||||
| 37 | 0 | my $table = $source->from; | |||||||||
| 38 | 0 | my $rs = $source->source_name; | |||||||||
| 39 | |||||||||||
| 40 | 0 | return $self->find | |||||||||
| 41 | ({ | ||||||||||
| 42 | owner_table => $table, | ||||||||||
| 43 | owner_resultset => $rs | ||||||||||
| 44 | }); | ||||||||||
| 45 | } | ||||||||||
| 46 | |||||||||||
| 47 | 1 | return 1; | |||||||||
| 48 | |||||||||||
| 49 | |||||||||||
| 50 | =head1 DESCRIPTION | ||||||||||
| 51 | |||||||||||
| 52 | =head1 METHODS | ||||||||||
| 53 | |||||||||||
| 54 | =head2 setup_from_source | ||||||||||
| 55 | |||||||||||
| 56 | =head2 get_from_source | ||||||||||
| 57 | |||||||||||
| 58 | =head1 ATTRIBUTES | ||||||||||
| 59 | |||||||||||
| 60 | |||||||||||
| 61 | =head1 LICENSE AND COPYRIGHT | ||||||||||
| 62 | |||||||||||
| 63 | Copyright 2012 OpusVL. | ||||||||||
| 64 | |||||||||||
| 65 | This software is licensed according to the "IP Assignment Schedule" provided with the development project. | ||||||||||
| 66 | |||||||||||
| 67 | =cut | ||||||||||