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