| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Virtualshelve.pm |
| Statements | Executed 0 statements in 0s |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 27µs | 30µs | Class::C3::Componentised::BEGIN@1.2751 |
| 1 | 1 | 1 | 10µs | 79µs | Koha::Schema::Result::Virtualshelve::BEGIN@16 |
| 1 | 1 | 1 | 9µs | 17µs | Koha::Schema::Result::Virtualshelve::BEGIN@13 |
| 1 | 1 | 1 | 8µs | 14µs | Koha::Schema::Result::Virtualshelve::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 34µs | # spent 30µs (27+3) within Class::C3::Componentised::BEGIN@1.2751 which was called:
# once (27µ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.2751
# spent 3µs making 1 call to utf8::import | ||
| 2 | package Koha::Schema::Result::Virtualshelve; | ||||
| 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::Virtualshelve | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 26µs | # spent 17µs (9+8) within Koha::Schema::Result::Virtualshelve::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::Virtualshelve::BEGIN@13
# spent 8µs making 1 call to strict::import | ||
| 14 | 2 | 20µs | # spent 14µs (8+6) within Koha::Schema::Result::Virtualshelve::BEGIN@14 which was called:
# once (8µs+6µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 14µs making 1 call to Koha::Schema::Result::Virtualshelve::BEGIN@14
# spent 6µs making 1 call to warnings::import | ||
| 15 | |||||
| 16 | 2 | 149µs | # spent 79µs (10+70) within Koha::Schema::Result::Virtualshelve::BEGIN@16 which was called:
# once (10µs+70µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 79µs making 1 call to Koha::Schema::Result::Virtualshelve::BEGIN@16
# spent 70µs making 1 call to base::import | ||
| 17 | |||||
| 18 | =head1 TABLE: C<virtualshelves> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 381µs | __PACKAGE__->table("virtualshelves"); # spent 381µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table | ||
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 shelfnumber | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_auto_increment: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 shelfname | ||||
| 33 | |||||
| 34 | data_type: 'varchar' | ||||
| 35 | is_nullable: 1 | ||||
| 36 | size: 255 | ||||
| 37 | |||||
| 38 | =head2 owner | ||||
| 39 | |||||
| 40 | data_type: 'integer' | ||||
| 41 | is_foreign_key: 1 | ||||
| 42 | is_nullable: 1 | ||||
| 43 | |||||
| 44 | =head2 category | ||||
| 45 | |||||
| 46 | data_type: 'varchar' | ||||
| 47 | is_nullable: 1 | ||||
| 48 | size: 1 | ||||
| 49 | |||||
| 50 | =head2 sortfield | ||||
| 51 | |||||
| 52 | data_type: 'varchar' | ||||
| 53 | default_value: 'title' | ||||
| 54 | is_nullable: 1 | ||||
| 55 | size: 16 | ||||
| 56 | |||||
| 57 | =head2 lastmodified | ||||
| 58 | |||||
| 59 | data_type: 'timestamp' | ||||
| 60 | datetime_undef_if_invalid: 1 | ||||
| 61 | default_value: current_timestamp | ||||
| 62 | is_nullable: 0 | ||||
| 63 | |||||
| 64 | =head2 created_on | ||||
| 65 | |||||
| 66 | data_type: 'timestamp' | ||||
| 67 | datetime_undef_if_invalid: 1 | ||||
| 68 | default_value: '0000-00-00 00:00:00' | ||||
| 69 | is_nullable: 0 | ||||
| 70 | |||||
| 71 | =head2 allow_add | ||||
| 72 | |||||
| 73 | data_type: 'tinyint' | ||||
| 74 | default_value: 0 | ||||
| 75 | is_nullable: 1 | ||||
| 76 | |||||
| 77 | =head2 allow_delete_own | ||||
| 78 | |||||
| 79 | data_type: 'tinyint' | ||||
| 80 | default_value: 1 | ||||
| 81 | is_nullable: 1 | ||||
| 82 | |||||
| 83 | =head2 allow_delete_other | ||||
| 84 | |||||
| 85 | data_type: 'tinyint' | ||||
| 86 | default_value: 0 | ||||
| 87 | is_nullable: 1 | ||||
| 88 | |||||
| 89 | =cut | ||||
| 90 | |||||
| 91 | 1 | 5.31ms | __PACKAGE__->add_columns( # spent 5.31ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns | ||
| 92 | "shelfnumber", | ||||
| 93 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 94 | "shelfname", | ||||
| 95 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||||
| 96 | "owner", | ||||
| 97 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | ||||
| 98 | "category", | ||||
| 99 | { data_type => "varchar", is_nullable => 1, size => 1 }, | ||||
| 100 | "sortfield", | ||||
| 101 | { | ||||
| 102 | data_type => "varchar", | ||||
| 103 | default_value => "title", | ||||
| 104 | is_nullable => 1, | ||||
| 105 | size => 16, | ||||
| 106 | }, | ||||
| 107 | "lastmodified", | ||||
| 108 | { | ||||
| 109 | data_type => "timestamp", | ||||
| 110 | datetime_undef_if_invalid => 1, | ||||
| 111 | default_value => \"current_timestamp", | ||||
| 112 | is_nullable => 0, | ||||
| 113 | }, | ||||
| 114 | "created_on", | ||||
| 115 | { | ||||
| 116 | data_type => "timestamp", | ||||
| 117 | datetime_undef_if_invalid => 1, | ||||
| 118 | default_value => "0000-00-00 00:00:00", | ||||
| 119 | is_nullable => 0, | ||||
| 120 | }, | ||||
| 121 | "allow_add", | ||||
| 122 | { data_type => "tinyint", default_value => 0, is_nullable => 1 }, | ||||
| 123 | "allow_delete_own", | ||||
| 124 | { data_type => "tinyint", default_value => 1, is_nullable => 1 }, | ||||
| 125 | "allow_delete_other", | ||||
| 126 | { data_type => "tinyint", default_value => 0, is_nullable => 1 }, | ||||
| 127 | ); | ||||
| 128 | |||||
| 129 | =head1 PRIMARY KEY | ||||
| 130 | |||||
| 131 | =over 4 | ||||
| 132 | |||||
| 133 | =item * L</shelfnumber> | ||||
| 134 | |||||
| 135 | =back | ||||
| 136 | |||||
| 137 | =cut | ||||
| 138 | |||||
| 139 | 1 | 123µs | __PACKAGE__->set_primary_key("shelfnumber"); # spent 123µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key | ||
| 140 | |||||
| 141 | =head1 RELATIONS | ||||
| 142 | |||||
| 143 | =head2 owner | ||||
| 144 | |||||
| 145 | Type: belongs_to | ||||
| 146 | |||||
| 147 | Related object: L<Koha::Schema::Result::Borrower> | ||||
| 148 | |||||
| 149 | =cut | ||||
| 150 | |||||
| 151 | 1 | 404µs | __PACKAGE__->belongs_to( # spent 404µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 152 | "owner", | ||||
| 153 | "Koha::Schema::Result::Borrower", | ||||
| 154 | { borrowernumber => "owner" }, | ||||
| 155 | { | ||||
| 156 | is_deferrable => 1, | ||||
| 157 | join_type => "LEFT", | ||||
| 158 | on_delete => "SET NULL", | ||||
| 159 | on_update => "SET NULL", | ||||
| 160 | }, | ||||
| 161 | ); | ||||
| 162 | |||||
| 163 | =head2 virtualshelfcontents | ||||
| 164 | |||||
| 165 | Type: has_many | ||||
| 166 | |||||
| 167 | Related object: L<Koha::Schema::Result::Virtualshelfcontent> | ||||
| 168 | |||||
| 169 | =cut | ||||
| 170 | |||||
| 171 | 1 | 268µs | __PACKAGE__->has_many( # spent 268µs making 1 call to DBIx::Class::Relationship::HasMany::has_many | ||
| 172 | "virtualshelfcontents", | ||||
| 173 | "Koha::Schema::Result::Virtualshelfcontent", | ||||
| 174 | { "foreign.shelfnumber" => "self.shelfnumber" }, | ||||
| 175 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 176 | ); | ||||
| 177 | |||||
| 178 | =head2 virtualshelfshares | ||||
| 179 | |||||
| 180 | Type: has_many | ||||
| 181 | |||||
| 182 | Related object: L<Koha::Schema::Result::Virtualshelfshare> | ||||
| 183 | |||||
| 184 | =cut | ||||
| 185 | |||||
| 186 | 1 | 215µs | __PACKAGE__->has_many( # spent 215µs making 1 call to DBIx::Class::Relationship::HasMany::has_many | ||
| 187 | "virtualshelfshares", | ||||
| 188 | "Koha::Schema::Result::Virtualshelfshare", | ||||
| 189 | { "foreign.shelfnumber" => "self.shelfnumber" }, | ||||
| 190 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 191 | ); | ||||
| 192 | |||||
| 193 | |||||
| 194 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-11-05 10:39:28 | ||||
| 195 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:O3y89+0IUoePtcIHAqR+oA | ||||
| 196 | |||||
| 197 | |||||
| 198 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 199 | 1; |