| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/AuthorisedValue.pm |
| Statements | Executed 14 statements in 506µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 27µs | 31µs | Class::C3::Componentised::BEGIN@1.1706 |
| 1 | 1 | 1 | 13µs | 70µs | Koha::Schema::Result::AuthorisedValue::BEGIN@16 |
| 1 | 1 | 1 | 10µs | 21µs | Koha::Schema::Result::AuthorisedValue::BEGIN@13 |
| 1 | 1 | 1 | 10µs | 19µs | Koha::Schema::Result::AuthorisedValue::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 82µs | 2 | 35µs | # spent 31µs (27+4) within Class::C3::Componentised::BEGIN@1.1706 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.1706
# spent 4µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::AuthorisedValue; | ||||
| 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::AuthorisedValue | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 42µs | 2 | 33µs | # spent 21µs (10+11) within Koha::Schema::Result::AuthorisedValue::BEGIN@13 which was called:
# once (10µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 21µs making 1 call to Koha::Schema::Result::AuthorisedValue::BEGIN@13
# spent 11µs making 1 call to strict::import |
| 14 | 2 | 42µs | 2 | 28µs | # spent 19µs (10+9) within Koha::Schema::Result::AuthorisedValue::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::AuthorisedValue::BEGIN@14
# spent 9µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 254µs | 2 | 126µs | # spent 70µs (13+56) within Koha::Schema::Result::AuthorisedValue::BEGIN@16 which was called:
# once (13µs+56µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 70µs making 1 call to Koha::Schema::Result::AuthorisedValue::BEGIN@16
# spent 56µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<authorised_values> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 21µs | 1 | 971µs | __PACKAGE__->table("authorised_values"); # spent 971µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 id | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_auto_increment: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 category | ||||
| 33 | |||||
| 34 | data_type: 'varchar' | ||||
| 35 | default_value: (empty string) | ||||
| 36 | is_nullable: 0 | ||||
| 37 | size: 32 | ||||
| 38 | |||||
| 39 | =head2 authorised_value | ||||
| 40 | |||||
| 41 | data_type: 'varchar' | ||||
| 42 | default_value: (empty string) | ||||
| 43 | is_nullable: 0 | ||||
| 44 | size: 80 | ||||
| 45 | |||||
| 46 | =head2 lib | ||||
| 47 | |||||
| 48 | data_type: 'varchar' | ||||
| 49 | is_nullable: 1 | ||||
| 50 | size: 200 | ||||
| 51 | |||||
| 52 | =head2 lib_opac | ||||
| 53 | |||||
| 54 | data_type: 'varchar' | ||||
| 55 | is_nullable: 1 | ||||
| 56 | size: 200 | ||||
| 57 | |||||
| 58 | =head2 imageurl | ||||
| 59 | |||||
| 60 | data_type: 'varchar' | ||||
| 61 | is_nullable: 1 | ||||
| 62 | size: 200 | ||||
| 63 | |||||
| 64 | =cut | ||||
| 65 | |||||
| 66 | 1 | 23µs | 1 | 2.15ms | __PACKAGE__->add_columns( # spent 2.15ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 67 | "id", | ||||
| 68 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 69 | "category", | ||||
| 70 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 32 }, | ||||
| 71 | "authorised_value", | ||||
| 72 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 80 }, | ||||
| 73 | "lib", | ||||
| 74 | { data_type => "varchar", is_nullable => 1, size => 200 }, | ||||
| 75 | "lib_opac", | ||||
| 76 | { data_type => "varchar", is_nullable => 1, size => 200 }, | ||||
| 77 | "imageurl", | ||||
| 78 | { data_type => "varchar", is_nullable => 1, size => 200 }, | ||||
| 79 | ); | ||||
| 80 | |||||
| 81 | =head1 PRIMARY KEY | ||||
| 82 | |||||
| 83 | =over 4 | ||||
| 84 | |||||
| 85 | =item * L</id> | ||||
| 86 | |||||
| 87 | =back | ||||
| 88 | |||||
| 89 | =cut | ||||
| 90 | |||||
| 91 | 1 | 17µs | 1 | 80µs | __PACKAGE__->set_primary_key("id"); # spent 80µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 92 | |||||
| 93 | =head1 RELATIONS | ||||
| 94 | |||||
| 95 | =head2 authorised_values_branches | ||||
| 96 | |||||
| 97 | Type: has_many | ||||
| 98 | |||||
| 99 | Related object: L<Koha::Schema::Result::AuthorisedValuesBranch> | ||||
| 100 | |||||
| 101 | =cut | ||||
| 102 | |||||
| 103 | 1 | 9µs | 1 | 339µs | __PACKAGE__->has_many( # spent 339µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
| 104 | "authorised_values_branches", | ||||
| 105 | "Koha::Schema::Result::AuthorisedValuesBranch", | ||||
| 106 | { "foreign.av_id" => "self.id" }, | ||||
| 107 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 108 | ); | ||||
| 109 | |||||
| 110 | =head2 items_search_fields | ||||
| 111 | |||||
| 112 | Type: has_many | ||||
| 113 | |||||
| 114 | Related object: L<Koha::Schema::Result::ItemsSearchField> | ||||
| 115 | |||||
| 116 | =cut | ||||
| 117 | |||||
| 118 | 1 | 4µs | 1 | 234µs | __PACKAGE__->has_many( # spent 234µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
| 119 | "items_search_fields", | ||||
| 120 | "Koha::Schema::Result::ItemsSearchField", | ||||
| 121 | { "foreign.authorised_values_category" => "self.category" }, | ||||
| 122 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 123 | ); | ||||
| 124 | |||||
| 125 | |||||
| 126 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-05 15:20:11 | ||||
| 127 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GS7UBpk66HAhBptwrpKR7Q | ||||
| 128 | |||||
| 129 | |||||
| 130 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 131 | 1 | 12µs | 1; |