| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/ItemsSearchField.pm |
| Statements | Executed 13 statements in 508µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 37µs | 43µs | Class::C3::Componentised::BEGIN@1.1996 |
| 1 | 1 | 1 | 10µs | 22µs | Koha::Schema::Result::ItemsSearchField::BEGIN@13 |
| 1 | 1 | 1 | 10µs | 109µs | Koha::Schema::Result::ItemsSearchField::BEGIN@16 |
| 1 | 1 | 1 | 9µs | 18µs | Koha::Schema::Result::ItemsSearchField::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 85µs | 2 | 49µs | # spent 43µs (37+6) within Class::C3::Componentised::BEGIN@1.1996 which was called:
# once (37µs+6µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 43µs making 1 call to Class::C3::Componentised::BEGIN@1.1996
# spent 6µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::ItemsSearchField; | ||||
| 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::ItemsSearchField | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 42µs | 2 | 34µs | # spent 22µs (10+12) within Koha::Schema::Result::ItemsSearchField::BEGIN@13 which was called:
# once (10µs+12µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 22µs making 1 call to Koha::Schema::Result::ItemsSearchField::BEGIN@13
# spent 12µs making 1 call to strict::import |
| 14 | 2 | 40µs | 2 | 27µs | # spent 18µs (9+9) within Koha::Schema::Result::ItemsSearchField::BEGIN@14 which was called:
# once (9µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 18µs making 1 call to Koha::Schema::Result::ItemsSearchField::BEGIN@14
# spent 9µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 259µs | 2 | 208µs | # spent 109µs (10+99) within Koha::Schema::Result::ItemsSearchField::BEGIN@16 which was called:
# once (10µs+99µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 109µs making 1 call to Koha::Schema::Result::ItemsSearchField::BEGIN@16
# spent 99µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<items_search_fields> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 24µs | 1 | 366µs | __PACKAGE__->table("items_search_fields"); # spent 366µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 name | ||||
| 27 | |||||
| 28 | data_type: 'varchar' | ||||
| 29 | is_nullable: 0 | ||||
| 30 | size: 255 | ||||
| 31 | |||||
| 32 | =head2 label | ||||
| 33 | |||||
| 34 | data_type: 'varchar' | ||||
| 35 | is_nullable: 0 | ||||
| 36 | size: 255 | ||||
| 37 | |||||
| 38 | =head2 tagfield | ||||
| 39 | |||||
| 40 | data_type: 'char' | ||||
| 41 | is_nullable: 0 | ||||
| 42 | size: 3 | ||||
| 43 | |||||
| 44 | =head2 tagsubfield | ||||
| 45 | |||||
| 46 | data_type: 'char' | ||||
| 47 | is_nullable: 1 | ||||
| 48 | size: 1 | ||||
| 49 | |||||
| 50 | =head2 authorised_values_category | ||||
| 51 | |||||
| 52 | data_type: 'varchar' | ||||
| 53 | is_foreign_key: 1 | ||||
| 54 | is_nullable: 1 | ||||
| 55 | size: 32 | ||||
| 56 | |||||
| 57 | =cut | ||||
| 58 | |||||
| 59 | 1 | 21µs | 1 | 1.47ms | __PACKAGE__->add_columns( # spent 1.47ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 60 | "name", | ||||
| 61 | { data_type => "varchar", is_nullable => 0, size => 255 }, | ||||
| 62 | "label", | ||||
| 63 | { data_type => "varchar", is_nullable => 0, size => 255 }, | ||||
| 64 | "tagfield", | ||||
| 65 | { data_type => "char", is_nullable => 0, size => 3 }, | ||||
| 66 | "tagsubfield", | ||||
| 67 | { data_type => "char", is_nullable => 1, size => 1 }, | ||||
| 68 | "authorised_values_category", | ||||
| 69 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 32 }, | ||||
| 70 | ); | ||||
| 71 | |||||
| 72 | =head1 PRIMARY KEY | ||||
| 73 | |||||
| 74 | =over 4 | ||||
| 75 | |||||
| 76 | =item * L</name> | ||||
| 77 | |||||
| 78 | =back | ||||
| 79 | |||||
| 80 | =cut | ||||
| 81 | |||||
| 82 | 1 | 20µs | 1 | 74µs | __PACKAGE__->set_primary_key("name"); # spent 74µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 83 | |||||
| 84 | =head1 RELATIONS | ||||
| 85 | |||||
| 86 | =head2 authorised_values_category | ||||
| 87 | |||||
| 88 | Type: belongs_to | ||||
| 89 | |||||
| 90 | Related object: L<Koha::Schema::Result::AuthorisedValue> | ||||
| 91 | |||||
| 92 | =cut | ||||
| 93 | |||||
| 94 | 1 | 11µs | 1 | 986µs | __PACKAGE__->belongs_to( # spent 986µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 95 | "authorised_values_category", | ||||
| 96 | "Koha::Schema::Result::AuthorisedValue", | ||||
| 97 | { category => "authorised_values_category" }, | ||||
| 98 | { | ||||
| 99 | is_deferrable => 1, | ||||
| 100 | join_type => "LEFT", | ||||
| 101 | on_delete => "SET NULL", | ||||
| 102 | on_update => "CASCADE", | ||||
| 103 | }, | ||||
| 104 | ); | ||||
| 105 | |||||
| 106 | |||||
| 107 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-05 15:20:11 | ||||
| 108 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oHoTxnECC/702vwFO4vdqw | ||||
| 109 | |||||
| 110 | |||||
| 111 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||||
| 112 | 1 | 8µs | 1; |