line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package ASP4::GlobalASA; |
3
|
|
|
|
|
|
|
|
4
|
6
|
|
|
6
|
|
3904
|
use strict; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
223
|
|
5
|
6
|
|
|
6
|
|
30
|
use warnings 'all'; |
|
6
|
|
|
|
|
8
|
|
|
6
|
|
|
|
|
245
|
|
6
|
6
|
|
|
6
|
|
26
|
use base 'ASP4::HTTPHandler'; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
626
|
|
7
|
6
|
|
|
6
|
|
34
|
use vars __PACKAGE__->VARS; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
53
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
0
|
1
|
|
sub Script_OnStart { } |
10
|
|
|
|
0
|
1
|
|
sub Script_OnEnd { } |
11
|
|
|
|
0
|
1
|
|
sub Session_OnStart { } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
1;# return true: |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=pod |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 NAME |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
ASP4::GlobalASA - Application event handler |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 SYNOPSIS |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
package DefaultApp::GlobalASA; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
use strict; |
26
|
|
|
|
|
|
|
use warnings 'all'; |
27
|
|
|
|
|
|
|
use base 'ASP4::GlobalASA'; |
28
|
|
|
|
|
|
|
use vars __PACKAGE__->VARS; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub Script_OnStart { |
31
|
|
|
|
|
|
|
warn "Script_OnStart!"; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub Script_OnEnd { |
35
|
|
|
|
|
|
|
warn "Script_OnEnd!"; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub Session_OnStart { |
39
|
|
|
|
|
|
|
warn "Session_OnStart!"; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1;# return true: |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 DESCRIPTION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
The GlobalASA handles 3 kinds of events: |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head2 Script_OnStart |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Called after all objects have been initialized, but before the request is processed by its handler (or page). |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head2 Script_OnEnd |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Called at the end of a request. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head2 Session_OnStart |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Called when a session is first created. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=cut |
61
|
|
|
|
|
|
|
|