| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/ClassSortRule.pm |
| Statements | Executed 13 statements in 429µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 26µs | 29µs | Class::C3::Componentised::BEGIN@1.2258 |
| 1 | 1 | 1 | 10µs | 69µs | Koha::Schema::Result::ClassSortRule::BEGIN@16 |
| 1 | 1 | 1 | 10µs | 20µs | Koha::Schema::Result::ClassSortRule::BEGIN@13 |
| 1 | 1 | 1 | 8µs | 15µs | Koha::Schema::Result::ClassSortRule::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 73µs | 2 | 32µs | # spent 29µs (26+3) within Class::C3::Componentised::BEGIN@1.2258 which was called:
# once (26µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 29µs making 1 call to Class::C3::Componentised::BEGIN@1.2258
# spent 3µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::ClassSortRule; | ||||
| 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::ClassSortRule | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 39µs | 2 | 30µs | # spent 20µs (10+10) within Koha::Schema::Result::ClassSortRule::BEGIN@13 which was called:
# once (10µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 20µs making 1 call to Koha::Schema::Result::ClassSortRule::BEGIN@13
# spent 10µs making 1 call to strict::import |
| 14 | 2 | 48µs | 2 | 23µs | # spent 15µs (8+7) within Koha::Schema::Result::ClassSortRule::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::ClassSortRule::BEGIN@14
# spent 7µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 199µs | 2 | 128µs | # spent 69µs (10+59) within Koha::Schema::Result::ClassSortRule::BEGIN@16 which was called:
# once (10µs+59µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 69µs making 1 call to Koha::Schema::Result::ClassSortRule::BEGIN@16
# spent 59µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<class_sort_rules> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 19µs | 1 | 296µs | __PACKAGE__->table("class_sort_rules"); # spent 296µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 class_sort_rule | ||||
| 27 | |||||
| 28 | data_type: 'varchar' | ||||
| 29 | default_value: (empty string) | ||||
| 30 | is_nullable: 0 | ||||
| 31 | size: 10 | ||||
| 32 | |||||
| 33 | =head2 description | ||||
| 34 | |||||
| 35 | data_type: 'mediumtext' | ||||
| 36 | is_nullable: 1 | ||||
| 37 | |||||
| 38 | =head2 sort_routine | ||||
| 39 | |||||
| 40 | data_type: 'varchar' | ||||
| 41 | default_value: (empty string) | ||||
| 42 | is_nullable: 0 | ||||
| 43 | size: 30 | ||||
| 44 | |||||
| 45 | =cut | ||||
| 46 | |||||
| 47 | 1 | 19µs | 1 | 1.44ms | __PACKAGE__->add_columns( # spent 1.44ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 48 | "class_sort_rule", | ||||
| 49 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, | ||||
| 50 | "description", | ||||
| 51 | { data_type => "mediumtext", is_nullable => 1 }, | ||||
| 52 | "sort_routine", | ||||
| 53 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 30 }, | ||||
| 54 | ); | ||||
| 55 | |||||
| 56 | =head1 PRIMARY KEY | ||||
| 57 | |||||
| 58 | =over 4 | ||||
| 59 | |||||
| 60 | =item * L</class_sort_rule> | ||||
| 61 | |||||
| 62 | =back | ||||
| 63 | |||||
| 64 | =cut | ||||
| 65 | |||||
| 66 | 1 | 16µs | 1 | 127µs | __PACKAGE__->set_primary_key("class_sort_rule"); # spent 127µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 67 | |||||
| 68 | =head1 RELATIONS | ||||
| 69 | |||||
| 70 | =head2 class_sources | ||||
| 71 | |||||
| 72 | Type: has_many | ||||
| 73 | |||||
| 74 | Related object: L<Koha::Schema::Result::ClassSource> | ||||
| 75 | |||||
| 76 | =cut | ||||
| 77 | |||||
| 78 | 1 | 10µs | 1 | 327µs | __PACKAGE__->has_many( # spent 327µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
| 79 | "class_sources", | ||||
| 80 | "Koha::Schema::Result::ClassSource", | ||||
| 81 | { "foreign.class_sort_rule" => "self.class_sort_rule" }, | ||||
| 82 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 83 | ); | ||||
| 84 | |||||
| 85 | |||||
| 86 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
| 87 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xvTm4GLMb6N4qHQEv8EhSw | ||||
| 88 | |||||
| 89 | |||||
| 90 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 91 | 1 | 7µs | 1; |