| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/OpacNews.pm |
| Statements | Executed 14 statements in 559µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 38µs | 43µs | Class::C3::Componentised::BEGIN@1.2312 |
| 1 | 1 | 1 | 12µs | 21µs | Koha::Schema::Result::OpacNews::BEGIN@13 |
| 1 | 1 | 1 | 10µs | 74µs | Koha::Schema::Result::OpacNews::BEGIN@16 |
| 1 | 1 | 1 | 7µs | 14µs | Koha::Schema::Result::OpacNews::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 90µs | 2 | 48µs | # spent 43µs (38+5) within Class::C3::Componentised::BEGIN@1.2312 which was called:
# once (38µs+5µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 43µs making 1 call to Class::C3::Componentised::BEGIN@1.2312
# spent 5µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::OpacNews; | ||||
| 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::OpacNews | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 40µs | 2 | 30µs | # spent 21µs (12+9) within Koha::Schema::Result::OpacNews::BEGIN@13 which was called:
# once (12µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 21µs making 1 call to Koha::Schema::Result::OpacNews::BEGIN@13
# spent 9µs making 1 call to strict::import |
| 14 | 2 | 36µs | 2 | 20µs | # spent 14µs (7+7) within Koha::Schema::Result::OpacNews::BEGIN@14 which was called:
# once (7µs+7µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 14µs making 1 call to Koha::Schema::Result::OpacNews::BEGIN@14
# spent 6µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 296µs | 2 | 138µs | # spent 74µs (10+64) within Koha::Schema::Result::OpacNews::BEGIN@16 which was called:
# once (10µs+64µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 74µs making 1 call to Koha::Schema::Result::OpacNews::BEGIN@16
# spent 64µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<opac_news> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 19µs | 1 | 301µs | __PACKAGE__->table("opac_news"); # spent 301µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 idnew | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | extra: {unsigned => 1} | ||||
| 30 | is_auto_increment: 1 | ||||
| 31 | is_nullable: 0 | ||||
| 32 | |||||
| 33 | =head2 branchcode | ||||
| 34 | |||||
| 35 | data_type: 'varchar' | ||||
| 36 | is_foreign_key: 1 | ||||
| 37 | is_nullable: 1 | ||||
| 38 | size: 10 | ||||
| 39 | |||||
| 40 | =head2 title | ||||
| 41 | |||||
| 42 | data_type: 'varchar' | ||||
| 43 | default_value: (empty string) | ||||
| 44 | is_nullable: 0 | ||||
| 45 | size: 250 | ||||
| 46 | |||||
| 47 | =head2 new | ||||
| 48 | |||||
| 49 | accessor: undef | ||||
| 50 | data_type: 'text' | ||||
| 51 | is_nullable: 0 | ||||
| 52 | |||||
| 53 | =head2 lang | ||||
| 54 | |||||
| 55 | data_type: 'varchar' | ||||
| 56 | default_value: (empty string) | ||||
| 57 | is_nullable: 0 | ||||
| 58 | size: 25 | ||||
| 59 | |||||
| 60 | =head2 timestamp | ||||
| 61 | |||||
| 62 | data_type: 'timestamp' | ||||
| 63 | datetime_undef_if_invalid: 1 | ||||
| 64 | default_value: current_timestamp | ||||
| 65 | is_nullable: 0 | ||||
| 66 | |||||
| 67 | =head2 expirationdate | ||||
| 68 | |||||
| 69 | data_type: 'date' | ||||
| 70 | datetime_undef_if_invalid: 1 | ||||
| 71 | is_nullable: 1 | ||||
| 72 | |||||
| 73 | =head2 number | ||||
| 74 | |||||
| 75 | data_type: 'integer' | ||||
| 76 | is_nullable: 1 | ||||
| 77 | |||||
| 78 | =head2 borrowernumber | ||||
| 79 | |||||
| 80 | data_type: 'integer' | ||||
| 81 | is_foreign_key: 1 | ||||
| 82 | is_nullable: 1 | ||||
| 83 | |||||
| 84 | =cut | ||||
| 85 | |||||
| 86 | 1 | 28µs | 1 | 2.05ms | __PACKAGE__->add_columns( # spent 2.05ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 87 | "idnew", | ||||
| 88 | { | ||||
| 89 | data_type => "integer", | ||||
| 90 | extra => { unsigned => 1 }, | ||||
| 91 | is_auto_increment => 1, | ||||
| 92 | is_nullable => 0, | ||||
| 93 | }, | ||||
| 94 | "branchcode", | ||||
| 95 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, | ||||
| 96 | "title", | ||||
| 97 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 250 }, | ||||
| 98 | "new", | ||||
| 99 | { accessor => undef, data_type => "text", is_nullable => 0 }, | ||||
| 100 | "lang", | ||||
| 101 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 25 }, | ||||
| 102 | "timestamp", | ||||
| 103 | { | ||||
| 104 | data_type => "timestamp", | ||||
| 105 | datetime_undef_if_invalid => 1, | ||||
| 106 | default_value => \"current_timestamp", | ||||
| 107 | is_nullable => 0, | ||||
| 108 | }, | ||||
| 109 | "expirationdate", | ||||
| 110 | { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, | ||||
| 111 | "number", | ||||
| 112 | { data_type => "integer", is_nullable => 1 }, | ||||
| 113 | "borrowernumber", | ||||
| 114 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | ||||
| 115 | ); | ||||
| 116 | |||||
| 117 | =head1 PRIMARY KEY | ||||
| 118 | |||||
| 119 | =over 4 | ||||
| 120 | |||||
| 121 | =item * L</idnew> | ||||
| 122 | |||||
| 123 | =back | ||||
| 124 | |||||
| 125 | =cut | ||||
| 126 | |||||
| 127 | 1 | 17µs | 1 | 78µs | __PACKAGE__->set_primary_key("idnew"); # spent 78µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 128 | |||||
| 129 | =head1 RELATIONS | ||||
| 130 | |||||
| 131 | =head2 borrowernumber | ||||
| 132 | |||||
| 133 | Type: belongs_to | ||||
| 134 | |||||
| 135 | Related object: L<Koha::Schema::Result::Borrower> | ||||
| 136 | |||||
| 137 | =cut | ||||
| 138 | |||||
| 139 | 1 | 10µs | 1 | 416µs | __PACKAGE__->belongs_to( # spent 416µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 140 | "borrowernumber", | ||||
| 141 | "Koha::Schema::Result::Borrower", | ||||
| 142 | { borrowernumber => "borrowernumber" }, | ||||
| 143 | { | ||||
| 144 | is_deferrable => 1, | ||||
| 145 | join_type => "LEFT", | ||||
| 146 | on_delete => "SET NULL", | ||||
| 147 | on_update => "CASCADE", | ||||
| 148 | }, | ||||
| 149 | ); | ||||
| 150 | |||||
| 151 | =head2 branchcode | ||||
| 152 | |||||
| 153 | Type: belongs_to | ||||
| 154 | |||||
| 155 | Related object: L<Koha::Schema::Result::Branch> | ||||
| 156 | |||||
| 157 | =cut | ||||
| 158 | |||||
| 159 | 1 | 4µs | 1 | 316µs | __PACKAGE__->belongs_to( # spent 316µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 160 | "branchcode", | ||||
| 161 | "Koha::Schema::Result::Branch", | ||||
| 162 | { branchcode => "branchcode" }, | ||||
| 163 | { | ||||
| 164 | is_deferrable => 1, | ||||
| 165 | join_type => "LEFT", | ||||
| 166 | on_delete => "CASCADE", | ||||
| 167 | on_update => "CASCADE", | ||||
| 168 | }, | ||||
| 169 | ); | ||||
| 170 | |||||
| 171 | |||||
| 172 | # Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-21 19:50:05 | ||||
| 173 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QivH1Daozdp0BttbPF6CkA | ||||
| 174 | |||||
| 175 | |||||
| 176 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 177 | 1 | 20µs | 1; |