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