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