| 1 | package Daje::Database::View::Super::VToolsObjectsActive; | ||
| 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_objects_pkey, editnum, insby, insdatetime, modby, moddatetime, tools_version_fkey, "name", active, tools_object_types_fkey, tools_projects_fkey'; | ||
| 35 | has 'primary_keys' => "tools_objects_pkey"; | ||
| 36 | has 'foreign_keys' => "tools_version_fkey, tools_projects_fkey"; | ||
| 37 | has 'view_name' => "v_tools_objects_active"; | ||
| 38 | |||
| 39 | |||
| 40 | sub load_tools_objects_active($self, $foreign_key) { | ||
| 41 | |||
| 42 | return $self->load_fkey( | ||
| 43 | $self->view_name, $self->fields(), 'tools_projects_fkey', $foreign_key | ||
| 44 | ); | ||
| 45 | } | ||
| 46 | |||
| 47 | 1; | ||
| 48 | #################### pod generated by Pod::Autopod - keep this line to make pod updates possible #################### | ||
| 49 | |||
| 50 | =head1 NAME | ||
| 51 | |||
| 52 | |||
| 53 | Daje::Database::View::Super::VToolsObjects - It creates perl code | ||
| 54 | |||
| 55 | |||
| 56 | |||
| 57 | =head1 SYNOPSIS | ||
| 58 | |||
| 59 | |||
| 60 | use Daje::Database::View::Super::VToolsObjects; | ||
| 61 | |||
| 62 | |||
| 63 | |||
| 64 | =head1 DESCRIPTION | ||
| 65 | |||
| 66 | |||
| 67 | Daje::Database::View::Super::VToolsObjects is a module that retrieves data from a View | ||
| 68 | |||
| 69 | |||
| 70 | |||
| 71 | =head1 REQUIRES | ||
| 72 | |||
| 73 | L<v5.40> | ||
| 74 | |||
| 75 | L<Mojo::Base> | ||
| 76 | |||
| 77 | |||
| 78 | =head1 METHODS | ||
| 79 | |||
| 80 | =head2 load_tools_objects_fkey($self, | ||
| 81 | |||
| 82 | load_tools_objects_fkey($self,(); | ||
| 83 | |||
| 84 | |||
| 85 | =head1 AUTHOR | ||
| 86 | |||
| 87 | |||
| 88 | janeskil1525 E<lt>janeskil1525@gmail.comE<gt> | ||
| 89 | |||
| 90 | |||
| 91 | |||
| 92 | =head1 LICENSE | ||
| 93 | |||
| 94 | |||
| 95 | Copyright (C) janeskil1525. | ||
| 96 | |||
| 97 | This library is free software; you can redistribute it and/or modify | ||
| 98 | it under the same terms as Perl itself. | ||
| 99 | |||
| 100 | |||
| 101 | |||
| 102 | =cut | ||
| 103 |