| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/UserPermission.pm |
| Statements | Executed 13 statements in 467µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 26µs | 29µs | Class::C3::Componentised::BEGIN@1.1421 |
| 1 | 1 | 1 | 11µs | 96µs | Koha::Schema::Result::UserPermission::BEGIN@16 |
| 1 | 1 | 1 | 9µs | 18µs | Koha::Schema::Result::UserPermission::BEGIN@13 |
| 1 | 1 | 1 | 8µs | 15µs | Koha::Schema::Result::UserPermission::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 76µs | 2 | 33µs | # spent 29µs (26+3) within Class::C3::Componentised::BEGIN@1.1421 which was called:
# once (26µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 29µs making 1 call to Class::C3::Componentised::BEGIN@1.1421
# spent 3µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::UserPermission; | ||||
| 3 | |||||
| 4 | # Created by DBIx::Class::Schema::Loader | ||||
| 5 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||||
| 6 | |||||
| 7 | =head1 NAME | ||||
| 8 | |||||
| 9 | Koha::Schema::Result::UserPermission | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 37µs | 2 | 26µs | # spent 18µs (9+9) within Koha::Schema::Result::UserPermission::BEGIN@13 which was called:
# once (9µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 18µs making 1 call to Koha::Schema::Result::UserPermission::BEGIN@13
# spent 9µs making 1 call to strict::import |
| 14 | 2 | 40µs | 2 | 22µs | # spent 15µs (8+7) within Koha::Schema::Result::UserPermission::BEGIN@14 which was called:
# once (8µs+7µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 15µs making 1 call to Koha::Schema::Result::UserPermission::BEGIN@14
# spent 7µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 248µs | 2 | 181µs | # spent 96µs (11+85) within Koha::Schema::Result::UserPermission::BEGIN@16 which was called:
# once (11µs+85µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 96µs making 1 call to Koha::Schema::Result::UserPermission::BEGIN@16
# spent 85µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<user_permissions> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 19µs | 1 | 425µs | __PACKAGE__->table("user_permissions"); # spent 425µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 borrowernumber | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | default_value: 0 | ||||
| 30 | is_foreign_key: 1 | ||||
| 31 | is_nullable: 0 | ||||
| 32 | |||||
| 33 | =head2 module_bit | ||||
| 34 | |||||
| 35 | data_type: 'integer' | ||||
| 36 | default_value: 0 | ||||
| 37 | is_foreign_key: 1 | ||||
| 38 | is_nullable: 0 | ||||
| 39 | |||||
| 40 | =head2 code | ||||
| 41 | |||||
| 42 | data_type: 'varchar' | ||||
| 43 | is_foreign_key: 1 | ||||
| 44 | is_nullable: 1 | ||||
| 45 | size: 64 | ||||
| 46 | |||||
| 47 | =cut | ||||
| 48 | |||||
| 49 | 1 | 21µs | 1 | 296µs | __PACKAGE__->add_columns( # spent 296µs making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 50 | "borrowernumber", | ||||
| 51 | { | ||||
| 52 | data_type => "integer", | ||||
| 53 | default_value => 0, | ||||
| 54 | is_foreign_key => 1, | ||||
| 55 | is_nullable => 0, | ||||
| 56 | }, | ||||
| 57 | "module_bit", | ||||
| 58 | { | ||||
| 59 | data_type => "integer", | ||||
| 60 | default_value => 0, | ||||
| 61 | is_foreign_key => 1, | ||||
| 62 | is_nullable => 0, | ||||
| 63 | }, | ||||
| 64 | "code", | ||||
| 65 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 64 }, | ||||
| 66 | ); | ||||
| 67 | |||||
| 68 | =head1 RELATIONS | ||||
| 69 | |||||
| 70 | =head2 borrowernumber | ||||
| 71 | |||||
| 72 | Type: belongs_to | ||||
| 73 | |||||
| 74 | Related object: L<Koha::Schema::Result::Borrower> | ||||
| 75 | |||||
| 76 | =cut | ||||
| 77 | |||||
| 78 | 1 | 13µs | 1 | 339µs | __PACKAGE__->belongs_to( # spent 339µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 79 | "borrowernumber", | ||||
| 80 | "Koha::Schema::Result::Borrower", | ||||
| 81 | { borrowernumber => "borrowernumber" }, | ||||
| 82 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 83 | ); | ||||
| 84 | |||||
| 85 | =head2 permission | ||||
| 86 | |||||
| 87 | Type: belongs_to | ||||
| 88 | |||||
| 89 | Related object: L<Koha::Schema::Result::Permission> | ||||
| 90 | |||||
| 91 | =cut | ||||
| 92 | |||||
| 93 | 1 | 4µs | 1 | 186µs | __PACKAGE__->belongs_to( # spent 186µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 94 | "permission", | ||||
| 95 | "Koha::Schema::Result::Permission", | ||||
| 96 | { code => "code", module_bit => "module_bit" }, | ||||
| 97 | { | ||||
| 98 | is_deferrable => 1, | ||||
| 99 | join_type => "LEFT", | ||||
| 100 | on_delete => "CASCADE", | ||||
| 101 | on_update => "CASCADE", | ||||
| 102 | }, | ||||
| 103 | ); | ||||
| 104 | |||||
| 105 | |||||
| 106 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
| 107 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9dMAYxSmVQ1cVKxmnMiMkg | ||||
| 108 | |||||
| 109 | |||||
| 110 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 111 | 1 | 8µs | 1; |