Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Course.pm |
Statements | Executed 15 statements in 602µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 27µs | 31µs | BEGIN@1.1053 | Class::C3::Componentised::
1 | 1 | 1 | 10µs | 93µs | BEGIN@16 | Koha::Schema::Result::Course::
1 | 1 | 1 | 10µs | 19µs | BEGIN@14 | Koha::Schema::Result::Course::
1 | 1 | 1 | 9µs | 21µs | BEGIN@13 | Koha::Schema::Result::Course::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 73µs | 2 | 36µs | # spent 31µs (27+4) within Class::C3::Componentised::BEGIN@1.1053 which was called:
# once (27µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 31µs making 1 call to Class::C3::Componentised::BEGIN@1.1053
# spent 4µs making 1 call to utf8::import |
2 | package Koha::Schema::Result::Course; | ||||
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::Course | ||||
10 | |||||
11 | =cut | ||||
12 | |||||
13 | 2 | 41µs | 2 | 32µs | # spent 21µs (9+11) within Koha::Schema::Result::Course::BEGIN@13 which was called:
# once (9µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 21µs making 1 call to Koha::Schema::Result::Course::BEGIN@13
# spent 11µs making 1 call to strict::import |
14 | 2 | 41µs | 2 | 28µs | # spent 19µs (10+9) within Koha::Schema::Result::Course::BEGIN@14 which was called:
# once (10µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 19µs making 1 call to Koha::Schema::Result::Course::BEGIN@14
# spent 9µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 336µs | 2 | 175µs | # spent 93µs (10+83) within Koha::Schema::Result::Course::BEGIN@16 which was called:
# once (10µs+83µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 93µs making 1 call to Koha::Schema::Result::Course::BEGIN@16
# spent 83µs making 1 call to base::import |
17 | |||||
18 | =head1 TABLE: C<courses> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 22µs | 1 | 347µs | __PACKAGE__->table("courses"); # spent 347µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
23 | |||||
24 | =head1 ACCESSORS | ||||
25 | |||||
26 | =head2 course_id | ||||
27 | |||||
28 | data_type: 'integer' | ||||
29 | is_auto_increment: 1 | ||||
30 | is_nullable: 0 | ||||
31 | |||||
32 | =head2 department | ||||
33 | |||||
34 | data_type: 'varchar' | ||||
35 | is_nullable: 1 | ||||
36 | size: 80 | ||||
37 | |||||
38 | =head2 course_number | ||||
39 | |||||
40 | data_type: 'varchar' | ||||
41 | is_nullable: 1 | ||||
42 | size: 255 | ||||
43 | |||||
44 | =head2 section | ||||
45 | |||||
46 | data_type: 'varchar' | ||||
47 | is_nullable: 1 | ||||
48 | size: 255 | ||||
49 | |||||
50 | =head2 course_name | ||||
51 | |||||
52 | data_type: 'varchar' | ||||
53 | is_nullable: 1 | ||||
54 | size: 255 | ||||
55 | |||||
56 | =head2 term | ||||
57 | |||||
58 | data_type: 'varchar' | ||||
59 | is_nullable: 1 | ||||
60 | size: 80 | ||||
61 | |||||
62 | =head2 staff_note | ||||
63 | |||||
64 | data_type: 'mediumtext' | ||||
65 | is_nullable: 1 | ||||
66 | |||||
67 | =head2 public_note | ||||
68 | |||||
69 | data_type: 'mediumtext' | ||||
70 | is_nullable: 1 | ||||
71 | |||||
72 | =head2 students_count | ||||
73 | |||||
74 | data_type: 'varchar' | ||||
75 | is_nullable: 1 | ||||
76 | size: 20 | ||||
77 | |||||
78 | =head2 enabled | ||||
79 | |||||
80 | data_type: 'enum' | ||||
81 | default_value: 'yes' | ||||
82 | extra: {list => ["yes","no"]} | ||||
83 | is_nullable: 0 | ||||
84 | |||||
85 | =head2 timestamp | ||||
86 | |||||
87 | data_type: 'timestamp' | ||||
88 | datetime_undef_if_invalid: 1 | ||||
89 | default_value: current_timestamp | ||||
90 | is_nullable: 0 | ||||
91 | |||||
92 | =cut | ||||
93 | |||||
94 | 1 | 34µs | 1 | 3.49ms | __PACKAGE__->add_columns( # spent 3.49ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
95 | "course_id", | ||||
96 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
97 | "department", | ||||
98 | { data_type => "varchar", is_nullable => 1, size => 80 }, | ||||
99 | "course_number", | ||||
100 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||||
101 | "section", | ||||
102 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||||
103 | "course_name", | ||||
104 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||||
105 | "term", | ||||
106 | { data_type => "varchar", is_nullable => 1, size => 80 }, | ||||
107 | "staff_note", | ||||
108 | { data_type => "mediumtext", is_nullable => 1 }, | ||||
109 | "public_note", | ||||
110 | { data_type => "mediumtext", is_nullable => 1 }, | ||||
111 | "students_count", | ||||
112 | { data_type => "varchar", is_nullable => 1, size => 20 }, | ||||
113 | "enabled", | ||||
114 | { | ||||
115 | data_type => "enum", | ||||
116 | default_value => "yes", | ||||
117 | extra => { list => ["yes", "no"] }, | ||||
118 | is_nullable => 0, | ||||
119 | }, | ||||
120 | "timestamp", | ||||
121 | { | ||||
122 | data_type => "timestamp", | ||||
123 | datetime_undef_if_invalid => 1, | ||||
124 | default_value => \"current_timestamp", | ||||
125 | is_nullable => 0, | ||||
126 | }, | ||||
127 | ); | ||||
128 | |||||
129 | =head1 PRIMARY KEY | ||||
130 | |||||
131 | =over 4 | ||||
132 | |||||
133 | =item * L</course_id> | ||||
134 | |||||
135 | =back | ||||
136 | |||||
137 | =cut | ||||
138 | |||||
139 | 1 | 16µs | 1 | 80µs | __PACKAGE__->set_primary_key("course_id"); # spent 80µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
140 | |||||
141 | =head1 RELATIONS | ||||
142 | |||||
143 | =head2 course_instructors | ||||
144 | |||||
145 | Type: has_many | ||||
146 | |||||
147 | Related object: L<Koha::Schema::Result::CourseInstructor> | ||||
148 | |||||
149 | =cut | ||||
150 | |||||
151 | 1 | 8µs | 1 | 398µs | __PACKAGE__->has_many( # spent 398µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
152 | "course_instructors", | ||||
153 | "Koha::Schema::Result::CourseInstructor", | ||||
154 | { "foreign.course_id" => "self.course_id" }, | ||||
155 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
156 | ); | ||||
157 | |||||
158 | =head2 course_reserves | ||||
159 | |||||
160 | Type: has_many | ||||
161 | |||||
162 | Related object: L<Koha::Schema::Result::CourseReserve> | ||||
163 | |||||
164 | =cut | ||||
165 | |||||
166 | 1 | 4µs | 1 | 228µs | __PACKAGE__->has_many( # spent 228µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
167 | "course_reserves", | ||||
168 | "Koha::Schema::Result::CourseReserve", | ||||
169 | { "foreign.course_id" => "self.course_id" }, | ||||
170 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
171 | ); | ||||
172 | |||||
173 | =head2 borrowernumbers | ||||
174 | |||||
175 | Type: many_to_many | ||||
176 | |||||
177 | Composing rels: L</course_instructors> -> borrowernumber | ||||
178 | |||||
179 | =cut | ||||
180 | |||||
181 | 1 | 8µs | 1 | 1.41ms | __PACKAGE__->many_to_many("borrowernumbers", "course_instructors", "borrowernumber"); # spent 1.41ms making 1 call to DBIx::Class::Relationship::ManyToMany::many_to_many |
182 | |||||
183 | |||||
184 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
185 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:crKCFQ80qo2p885ebiBfnw | ||||
186 | |||||
187 | |||||
188 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
189 | 1 | 18µs | 1; |