line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Qudo::HookLoader; |
2
|
30
|
|
|
30
|
|
112
|
use strict; |
|
30
|
|
|
|
|
35
|
|
|
30
|
|
|
|
|
775
|
|
3
|
30
|
|
|
30
|
|
105
|
use warnings; |
|
30
|
|
|
|
|
40
|
|
|
30
|
|
|
|
|
706
|
|
4
|
30
|
|
|
30
|
|
135
|
use UNIVERSAL::require; |
|
30
|
|
|
|
|
44
|
|
|
30
|
|
|
|
|
143
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub register_hooks { |
7
|
0
|
|
|
0
|
0
|
|
my ($class, $to_class, $hook_modules) = @_; |
8
|
|
|
|
|
|
|
|
9
|
0
|
|
|
|
|
|
for my $module (@$hook_modules) { |
10
|
0
|
0
|
|
|
|
|
$module->require or Carp::croak $@; |
11
|
0
|
|
|
|
|
|
$module->load($to_class); |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub unregister_hooks { |
16
|
0
|
|
|
0
|
0
|
|
my ($class, $from_class, $hook_modules) = @_; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
|
for my $module (@$hook_modules) { |
19
|
0
|
|
|
|
|
|
$module->unload($from_class); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|