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