| 1 | package Daje::Database::View::Super::VToolsParameterValues; | ||
| 2 | use Mojo::Base 'Daje::Database::Model::Super::Common::Base', -base, -signatures, -async_await; | ||
| 3 | use v5.40; | ||
| 4 | |||
| 5 | # NAME | ||
| 6 | # ==== | ||
| 7 | # | ||
| 8 | # Daje::Database::View::Super::VToolsObjects - It creates perl code | ||
| 9 | # | ||
| 10 | # SYNOPSIS | ||
| 11 | # ======== | ||
| 12 | # | ||
| 13 | # use Daje::Database::View::Super::VToolsObjects; | ||
| 14 | # | ||
| 15 | # DESCRIPTION | ||
| 16 | # =========== | ||
| 17 | # | ||
| 18 | # Daje::Database::View::Super::VToolsObjects is a module that retrieves data from a View | ||
| 19 | # | ||
| 20 | # LICENSE | ||
| 21 | # ======= | ||
| 22 | # | ||
| 23 | # Copyright (C) janeskil1525. | ||
| 24 | # | ||
| 25 | # This library is free software; you can redistribute it and/or modify | ||
| 26 | # it under the same terms as Perl itself. | ||
| 27 | # | ||
| 28 | # AUTHOR | ||
| 29 | # ====== | ||
| 30 | # | ||
| 31 | # janeskil1525 E<lt>janeskil1525@gmail.comE<gt> | ||
| 32 | # | ||
| 33 | |||
| 34 | has 'fields' => "tools_parameter_values_pkey, parameter_group, parameter, value, description, active, tools_projects_fkey"; | ||
| 35 | has 'primary_keys' => "tools_parameter_values_pkey"; | ||
| 36 | has 'foreign_keys' => "tools_projects_fkey"; | ||
| 37 | has 'view_name' => "v_tools_parameter_values"; | ||
| 38 | |||
| 39 | |||
| 40 | async sub load_full_list_p($self) { | ||
| 41 | my $result = $self->load_a_full_list( | ||
| 42 | $self->view_name, | ||
| 43 | $self->fields | ||
| 44 | ); | ||
| 45 | return $result; | ||
| 46 | } | ||
| 47 | |||
| 48 | sub load_tools_objects_fkey($self, $foreign_key_name, $foreign_key) { | ||
| 49 | return $self->load_fkey( | ||
| 50 | $self->view_name, $self->fields(), $foreign_key_name, $foreign_key | ||
| 51 | ); | ||
| 52 | } | ||
| 53 | |||
| 54 | 1; | ||
| 55 | #################### pod generated by Pod::Autopod - keep this line to make pod updates possible #################### | ||
| 56 | |||
| 57 | =head1 NAME | ||
| 58 | |||
| 59 | |||
| 60 | Daje::Database::View::Super::VToolsObjects - It creates perl code | ||
| 61 | |||
| 62 | |||
| 63 | |||
| 64 | =head1 SYNOPSIS | ||
| 65 | |||
| 66 | |||
| 67 | use Daje::Database::View::Super::VToolsObjects; | ||
| 68 | |||
| 69 | |||
| 70 | |||
| 71 | =head1 DESCRIPTION | ||
| 72 | |||
| 73 | |||
| 74 | Daje::Database::View::Super::VToolsObjects is a module that retrieves data from a View | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | =head1 REQUIRES | ||
| 79 | |||
| 80 | L<v5.40> | ||
| 81 | |||
| 82 | L<Mojo::Base> | ||
| 83 | |||
| 84 | |||
| 85 | =head1 METHODS | ||
| 86 | |||
| 87 | =head2 load_tools_objects_fkey($self, | ||
| 88 | |||
| 89 | load_tools_objects_fkey($self,(); | ||
| 90 | |||
| 91 | |||
| 92 | =head1 AUTHOR | ||
| 93 | |||
| 94 | |||
| 95 | janeskil1525 E<lt>janeskil1525@gmail.comE<gt> | ||
| 96 | |||
| 97 | |||
| 98 | |||
| 99 | =head1 LICENSE | ||
| 100 | |||
| 101 | |||
| 102 | Copyright (C) janeskil1525. | ||
| 103 | |||
| 104 | This library is free software; you can redistribute it and/or modify | ||
| 105 | it under the same terms as Perl itself. | ||
| 106 | |||
| 107 | |||
| 108 | |||
| 109 | =cut | ||
| 110 |