Filename | /home/vagrant/kohaclone/Koha/Schema/Result/MessageTransport.pm |
Statements | Executed 15 statements in 591µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 32µs | 36µs | BEGIN@1.2835 | Class::C3::Componentised::
1 | 1 | 1 | 12µs | 22µs | BEGIN@13 | Koha::Schema::Result::MessageTransport::
1 | 1 | 1 | 10µs | 88µs | BEGIN@16 | Koha::Schema::Result::MessageTransport::
1 | 1 | 1 | 10µs | 20µs | BEGIN@14 | Koha::Schema::Result::MessageTransport::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 81µs | 2 | 40µs | # spent 36µs (32+4) within Class::C3::Componentised::BEGIN@1.2835 which was called:
# once (32µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 36µs making 1 call to Class::C3::Componentised::BEGIN@1.2835
# 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 | 41µs | 2 | 33µs | # spent 22µs (12+11) within Koha::Schema::Result::MessageTransport::BEGIN@13 which was called:
# once (12µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 22µs making 1 call to Koha::Schema::Result::MessageTransport::BEGIN@13
# spent 11µs making 1 call to strict::import |
14 | 2 | 40µs | 2 | 29µs | # spent 20µs (10+10) within Koha::Schema::Result::MessageTransport::BEGIN@14 which was called:
# once (10µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 20µs making 1 call to Koha::Schema::Result::MessageTransport::BEGIN@14
# spent 10µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 324µs | 2 | 165µs | # spent 88µs (10+77) within Koha::Schema::Result::MessageTransport::BEGIN@16 which was called:
# once (10µs+77µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 88µs making 1 call to Koha::Schema::Result::MessageTransport::BEGIN@16
# spent 77µs making 1 call to base::import |
17 | |||||
18 | =head1 TABLE: C<message_transports> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 20µs | 1 | 411µs | __PACKAGE__->table("message_transports"); # spent 411µ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 | 27µs | 1 | 2.00ms | __PACKAGE__->add_columns( # spent 2.00ms 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 | 17µs | 1 | 87µs | __PACKAGE__->set_primary_key("message_attribute_id", "message_transport_type", "is_digest"); # spent 87µ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 | 12µs | 1 | 287µs | __PACKAGE__->belongs_to( # spent 287µ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 | 12µs | 1 | 230µs | __PACKAGE__->belongs_to( # spent 230µ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 | 260µs | __PACKAGE__->belongs_to( # spent 260µ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 | 12µs | 1; |