Filename | /home/vagrant/kohaclone/Koha/Template/Plugin/AudioAlerts.pm |
Statements | Executed 13 statements in 493µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 29µs | 119µs | BEGIN@20 | Koha::Template::Plugin::AudioAlerts::
1 | 1 | 1 | 24µs | 56µs | BEGIN@22 | Koha::Template::Plugin::AudioAlerts::
1 | 1 | 1 | 16µs | 18µs | BEGIN@27 | Koha::Template::Plugin::AudioAlerts::
1 | 1 | 1 | 14µs | 73µs | BEGIN@25 | Koha::Template::Plugin::AudioAlerts::
1 | 1 | 1 | 13µs | 107µs | BEGIN@23 | Koha::Template::Plugin::AudioAlerts::
1 | 1 | 1 | 6µs | 6µs | BEGIN@28 | Koha::Template::Plugin::AudioAlerts::
0 | 0 | 0 | 0s | 0s | AudioAlerts | Koha::Template::Plugin::AudioAlerts::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Koha::Template::Plugin::AudioAlerts; | ||||
2 | |||||
3 | # Copyright ByWater Solutions 2013 | ||||
4 | |||||
5 | # This file is part of Koha. | ||||
6 | # | ||||
7 | # Koha is free software; you can redistribute it and/or modify it | ||||
8 | # under the terms of the GNU General Public License as published by | ||||
9 | # the Free Software Foundation; either version 3 of the License, or | ||||
10 | # (at your option) any later version. | ||||
11 | # | ||||
12 | # Koha is distributed in the hope that it will be useful, but | ||||
13 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
15 | # GNU General Public License for more details. | ||||
16 | # | ||||
17 | # You should have received a copy of the GNU General Public License | ||||
18 | # along with Koha; if not, see <http://www.gnu.org/licenses>. | ||||
19 | |||||
20 | 2 | 139µs | 2 | 208µs | # spent 119µs (29+89) within Koha::Template::Plugin::AudioAlerts::BEGIN@20 which was called:
# once (29µs+89µs) by Template::Plugins::_load at line 20 # spent 119µs making 1 call to Koha::Template::Plugin::AudioAlerts::BEGIN@20
# spent 89µs making 1 call to Modern::Perl::import |
21 | |||||
22 | 2 | 78µs | 2 | 89µs | # spent 56µs (24+32) within Koha::Template::Plugin::AudioAlerts::BEGIN@22 which was called:
# once (24µs+32µs) by Template::Plugins::_load at line 22 # spent 56µs making 1 call to Koha::Template::Plugin::AudioAlerts::BEGIN@22
# spent 32µs making 1 call to Exporter::import |
23 | 2 | 37µs | 2 | 201µs | # spent 107µs (13+94) within Koha::Template::Plugin::AudioAlerts::BEGIN@23 which was called:
# once (13µs+94µs) by Template::Plugins::_load at line 23 # spent 107µs making 1 call to Koha::Template::Plugin::AudioAlerts::BEGIN@23
# spent 94µs making 1 call to JSON::import |
24 | |||||
25 | 2 | 97µs | 2 | 131µs | # spent 73µs (14+59) within Koha::Template::Plugin::AudioAlerts::BEGIN@25 which was called:
# once (14µs+59µs) by Template::Plugins::_load at line 25 # spent 73µs making 1 call to Koha::Template::Plugin::AudioAlerts::BEGIN@25
# spent 59µs making 1 call to base::import |
26 | |||||
27 | 2 | 37µs | 2 | 21µs | # spent 18µs (16+3) within Koha::Template::Plugin::AudioAlerts::BEGIN@27 which was called:
# once (16µs+3µs) by Template::Plugins::_load at line 27 # spent 18µs making 1 call to Koha::Template::Plugin::AudioAlerts::BEGIN@27
# spent 3µs making 1 call to C4::Context::import |
28 | 2 | 102µs | 1 | 6µs | # spent 6µs within Koha::Template::Plugin::AudioAlerts::BEGIN@28 which was called:
# once (6µs+0s) by Template::Plugins::_load at line 28 # spent 6µs making 1 call to Koha::Template::Plugin::AudioAlerts::BEGIN@28 |
29 | |||||
30 | sub AudioAlerts { | ||||
31 | my $dbh = C4::Context->dbh; | ||||
32 | my $audio_alerts = $dbh->selectall_arrayref( 'SELECT * FROM audio_alerts ORDER BY precedence', { Slice => {} } ); | ||||
33 | return encode_json($audio_alerts); | ||||
34 | } | ||||
35 | |||||
36 | 1 | 3µs | 1; |