| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/ClassSource.pm |
| Statements | Executed 13 statements in 503µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 41µs | 46µs | Class::C3::Componentised::BEGIN@1.1369 |
| 1 | 1 | 1 | 11µs | 101µs | Koha::Schema::Result::ClassSource::BEGIN@16 |
| 1 | 1 | 1 | 10µs | 23µs | Koha::Schema::Result::ClassSource::BEGIN@13 |
| 1 | 1 | 1 | 9µs | 19µs | Koha::Schema::Result::ClassSource::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 83µs | 2 | 50µs | # spent 46µs (41+5) within Class::C3::Componentised::BEGIN@1.1369 which was called:
# once (41µs+5µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 46µs making 1 call to Class::C3::Componentised::BEGIN@1.1369
# spent 5µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::ClassSource; | ||||
| 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::ClassSource | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 43µs | 2 | 35µs | # spent 23µs (10+12) within Koha::Schema::Result::ClassSource::BEGIN@13 which was called:
# once (10µs+12µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 23µs making 1 call to Koha::Schema::Result::ClassSource::BEGIN@13
# spent 12µs making 1 call to strict::import |
| 14 | 2 | 43µs | 2 | 29µs | # spent 19µs (9+10) within Koha::Schema::Result::ClassSource::BEGIN@14 which was called:
# once (9µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 19µs making 1 call to Koha::Schema::Result::ClassSource::BEGIN@14
# spent 10µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 251µs | 2 | 190µs | # spent 101µs (11+90) within Koha::Schema::Result::ClassSource::BEGIN@16 which was called:
# once (11µs+90µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 101µs making 1 call to Koha::Schema::Result::ClassSource::BEGIN@16
# spent 90µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<class_sources> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 24µs | 1 | 348µs | __PACKAGE__->table("class_sources"); # spent 348µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 cn_source | ||||
| 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 used | ||||
| 39 | |||||
| 40 | data_type: 'tinyint' | ||||
| 41 | default_value: 0 | ||||
| 42 | is_nullable: 0 | ||||
| 43 | |||||
| 44 | =head2 class_sort_rule | ||||
| 45 | |||||
| 46 | data_type: 'varchar' | ||||
| 47 | default_value: (empty string) | ||||
| 48 | is_foreign_key: 1 | ||||
| 49 | is_nullable: 0 | ||||
| 50 | size: 10 | ||||
| 51 | |||||
| 52 | =cut | ||||
| 53 | |||||
| 54 | 1 | 22µs | 1 | 928µs | __PACKAGE__->add_columns( # spent 928µs making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 55 | "cn_source", | ||||
| 56 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, | ||||
| 57 | "description", | ||||
| 58 | { data_type => "mediumtext", is_nullable => 1 }, | ||||
| 59 | "used", | ||||
| 60 | { data_type => "tinyint", default_value => 0, is_nullable => 0 }, | ||||
| 61 | "class_sort_rule", | ||||
| 62 | { | ||||
| 63 | data_type => "varchar", | ||||
| 64 | default_value => "", | ||||
| 65 | is_foreign_key => 1, | ||||
| 66 | is_nullable => 0, | ||||
| 67 | size => 10, | ||||
| 68 | }, | ||||
| 69 | ); | ||||
| 70 | |||||
| 71 | =head1 PRIMARY KEY | ||||
| 72 | |||||
| 73 | =over 4 | ||||
| 74 | |||||
| 75 | =item * L</cn_source> | ||||
| 76 | |||||
| 77 | =back | ||||
| 78 | |||||
| 79 | =cut | ||||
| 80 | |||||
| 81 | 1 | 16µs | 1 | 81µs | __PACKAGE__->set_primary_key("cn_source"); # spent 81µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 82 | |||||
| 83 | =head1 RELATIONS | ||||
| 84 | |||||
| 85 | =head2 class_sort_rule | ||||
| 86 | |||||
| 87 | Type: belongs_to | ||||
| 88 | |||||
| 89 | Related object: L<Koha::Schema::Result::ClassSortRule> | ||||
| 90 | |||||
| 91 | =cut | ||||
| 92 | |||||
| 93 | 1 | 11µs | 1 | 875µs | __PACKAGE__->belongs_to( # spent 875µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 94 | "class_sort_rule", | ||||
| 95 | "Koha::Schema::Result::ClassSortRule", | ||||
| 96 | { class_sort_rule => "class_sort_rule" }, | ||||
| 97 | { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, | ||||
| 98 | ); | ||||
| 99 | |||||
| 100 | |||||
| 101 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55 | ||||
| 102 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2O58Q7wdbfAl6xmiW02PAA | ||||
| 103 | |||||
| 104 | |||||
| 105 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 106 | 1 | 10µs | 1; |