| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Itemtype.pm |
| Statements | Executed 14 statements in 539µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 26µs | 30µs | Class::C3::Componentised::BEGIN@1.2249 |
| 1 | 1 | 1 | 10µs | 79µs | Koha::Schema::Result::Itemtype::BEGIN@16 |
| 1 | 1 | 1 | 9µs | 17µs | Koha::Schema::Result::Itemtype::BEGIN@13 |
| 1 | 1 | 1 | 8µs | 16µs | Koha::Schema::Result::Itemtype::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 70µs | 2 | 33µs | # spent 30µs (26+3) within Class::C3::Componentised::BEGIN@1.2249 which was called:
# once (26µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 30µs making 1 call to Class::C3::Componentised::BEGIN@1.2249
# spent 3µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::Itemtype; | ||||
| 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::Itemtype | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 37µs | 2 | 26µs | # spent 17µs (9+8) within Koha::Schema::Result::Itemtype::BEGIN@13 which was called:
# once (9µs+8µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 17µs making 1 call to Koha::Schema::Result::Itemtype::BEGIN@13
# spent 8µs making 1 call to strict::import |
| 14 | 2 | 36µs | 2 | 23µs | # spent 16µs (8+7) within Koha::Schema::Result::Itemtype::BEGIN@14 which was called:
# once (8µs+7µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 16µs making 1 call to Koha::Schema::Result::Itemtype::BEGIN@14
# spent 7µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 293µs | 2 | 148µs | # spent 79µs (10+69) within Koha::Schema::Result::Itemtype::BEGIN@16 which was called:
# once (10µs+69µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 79µs making 1 call to Koha::Schema::Result::Itemtype::BEGIN@16
# spent 69µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<itemtypes> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 19µs | 1 | 311µs | __PACKAGE__->table("itemtypes"); # spent 311µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 itemtype | ||||
| 27 | |||||
| 28 | data_type: 'varchar' | ||||
| 29 | default_value: (empty string) | ||||
| 30 | is_nullable: 0 | ||||
| 31 | size: 10 | ||||
| 32 | |||||
| 33 | =head2 description | ||||
| 34 | |||||
| 35 | data_type: 'mediumtext' | ||||
| 36 | is_nullable: 1 | ||||
| 37 | |||||
| 38 | =head2 rentalcharge | ||||
| 39 | |||||
| 40 | data_type: 'double precision' | ||||
| 41 | is_nullable: 1 | ||||
| 42 | size: [16,4] | ||||
| 43 | |||||
| 44 | =head2 notforloan | ||||
| 45 | |||||
| 46 | data_type: 'smallint' | ||||
| 47 | is_nullable: 1 | ||||
| 48 | |||||
| 49 | =head2 imageurl | ||||
| 50 | |||||
| 51 | data_type: 'varchar' | ||||
| 52 | is_nullable: 1 | ||||
| 53 | size: 200 | ||||
| 54 | |||||
| 55 | =head2 summary | ||||
| 56 | |||||
| 57 | data_type: 'text' | ||||
| 58 | is_nullable: 1 | ||||
| 59 | |||||
| 60 | =head2 checkinmsg | ||||
| 61 | |||||
| 62 | data_type: 'varchar' | ||||
| 63 | is_nullable: 1 | ||||
| 64 | size: 255 | ||||
| 65 | |||||
| 66 | =head2 checkinmsgtype | ||||
| 67 | |||||
| 68 | data_type: 'char' | ||||
| 69 | default_value: 'message' | ||||
| 70 | is_nullable: 0 | ||||
| 71 | size: 16 | ||||
| 72 | |||||
| 73 | =head2 sip_media_type | ||||
| 74 | |||||
| 75 | data_type: 'varchar' | ||||
| 76 | is_nullable: 1 | ||||
| 77 | size: 3 | ||||
| 78 | |||||
| 79 | =head2 hideinopac | ||||
| 80 | |||||
| 81 | data_type: 'tinyint' | ||||
| 82 | default_value: 0 | ||||
| 83 | is_nullable: 0 | ||||
| 84 | |||||
| 85 | =head2 searchcategory | ||||
| 86 | |||||
| 87 | data_type: 'varchar' | ||||
| 88 | is_nullable: 1 | ||||
| 89 | size: 80 | ||||
| 90 | |||||
| 91 | =cut | ||||
| 92 | |||||
| 93 | 1 | 30µs | 1 | 5.06ms | __PACKAGE__->add_columns( # spent 5.06ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 94 | "itemtype", | ||||
| 95 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, | ||||
| 96 | "description", | ||||
| 97 | { data_type => "mediumtext", is_nullable => 1 }, | ||||
| 98 | "rentalcharge", | ||||
| 99 | { data_type => "double precision", is_nullable => 1, size => [16, 4] }, | ||||
| 100 | "notforloan", | ||||
| 101 | { data_type => "smallint", is_nullable => 1 }, | ||||
| 102 | "imageurl", | ||||
| 103 | { data_type => "varchar", is_nullable => 1, size => 200 }, | ||||
| 104 | "summary", | ||||
| 105 | { data_type => "text", is_nullable => 1 }, | ||||
| 106 | "checkinmsg", | ||||
| 107 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||||
| 108 | "checkinmsgtype", | ||||
| 109 | { | ||||
| 110 | data_type => "char", | ||||
| 111 | default_value => "message", | ||||
| 112 | is_nullable => 0, | ||||
| 113 | size => 16, | ||||
| 114 | }, | ||||
| 115 | "sip_media_type", | ||||
| 116 | { data_type => "varchar", is_nullable => 1, size => 3 }, | ||||
| 117 | "hideinopac", | ||||
| 118 | { data_type => "tinyint", default_value => 0, is_nullable => 0 }, | ||||
| 119 | "searchcategory", | ||||
| 120 | { data_type => "varchar", is_nullable => 1, size => 80 }, | ||||
| 121 | ); | ||||
| 122 | |||||
| 123 | =head1 PRIMARY KEY | ||||
| 124 | |||||
| 125 | =over 4 | ||||
| 126 | |||||
| 127 | =item * L</itemtype> | ||||
| 128 | |||||
| 129 | =back | ||||
| 130 | |||||
| 131 | =cut | ||||
| 132 | |||||
| 133 | 1 | 20µs | 1 | 95µs | __PACKAGE__->set_primary_key("itemtype"); # spent 95µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 134 | |||||
| 135 | =head1 RELATIONS | ||||
| 136 | |||||
| 137 | =head2 branch_item_rules | ||||
| 138 | |||||
| 139 | Type: has_many | ||||
| 140 | |||||
| 141 | Related object: L<Koha::Schema::Result::BranchItemRule> | ||||
| 142 | |||||
| 143 | =cut | ||||
| 144 | |||||
| 145 | 1 | 9µs | 1 | 379µs | __PACKAGE__->has_many( # spent 379µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
| 146 | "branch_item_rules", | ||||
| 147 | "Koha::Schema::Result::BranchItemRule", | ||||
| 148 | { "foreign.itemtype" => "self.itemtype" }, | ||||
| 149 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 150 | ); | ||||
| 151 | |||||
| 152 | =head2 default_branch_item_rule | ||||
| 153 | |||||
| 154 | Type: might_have | ||||
| 155 | |||||
| 156 | Related object: L<Koha::Schema::Result::DefaultBranchItemRule> | ||||
| 157 | |||||
| 158 | =cut | ||||
| 159 | |||||
| 160 | 1 | 8µs | 1 | 228µs | __PACKAGE__->might_have( # spent 228µs making 1 call to DBIx::Class::Relationship::HasOne::might_have |
| 161 | "default_branch_item_rule", | ||||
| 162 | "Koha::Schema::Result::DefaultBranchItemRule", | ||||
| 163 | { "foreign.itemtype" => "self.itemtype" }, | ||||
| 164 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 165 | ); | ||||
| 166 | |||||
| 167 | |||||
| 168 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-10-22 11:11:19 | ||||
| 169 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nknZ3AB923k+tEw7whtzQA | ||||
| 170 | |||||
| 171 | |||||
| 172 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 173 | 1 | 16µs | 1; |