| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Apache::Voodoo::View; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
$VERSION = "3.0200"; |
|
4
|
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
1940
|
use strict; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
71
|
|
|
6
|
2
|
|
|
2
|
|
13
|
use warnings; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
59
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
10
|
use base("Apache::Voodoo"); |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
1319
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# |
|
11
|
|
|
|
|
|
|
# Gets or sets the returned content type |
|
12
|
|
|
|
|
|
|
# |
|
13
|
|
|
|
|
|
|
sub content_type { |
|
14
|
7
|
|
|
7
|
0
|
16
|
my $self = shift; |
|
15
|
|
|
|
|
|
|
|
|
16
|
7
|
50
|
|
|
|
21
|
if (defined($_[0])) { |
|
17
|
7
|
|
|
|
|
31
|
$self->{content_type} = shift; |
|
18
|
|
|
|
|
|
|
} |
|
19
|
|
|
|
|
|
|
|
|
20
|
7
|
|
|
|
|
21
|
return $self->{content_type}; |
|
21
|
|
|
|
|
|
|
} |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# |
|
24
|
|
|
|
|
|
|
# Called at the begining of each request |
|
25
|
|
|
|
|
|
|
# |
|
26
|
0
|
|
|
0
|
0
|
|
sub begin { } |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
# |
|
29
|
|
|
|
|
|
|
# Called multiple times as each handler / controller produces data. |
|
30
|
|
|
|
|
|
|
# |
|
31
|
0
|
|
|
0
|
0
|
|
sub params { } |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
# |
|
34
|
|
|
|
|
|
|
# Called whenver an exception is thrown by the handler / controller. |
|
35
|
|
|
|
|
|
|
# |
|
36
|
0
|
|
|
0
|
0
|
|
sub exception { } |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
# |
|
39
|
|
|
|
|
|
|
# Whatever this method returns is passed to the browser. |
|
40
|
|
|
|
|
|
|
# |
|
41
|
0
|
|
|
0
|
0
|
|
sub output { } |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
# |
|
44
|
|
|
|
|
|
|
# Called at the end of each request. Here is where any cleanup happens. |
|
45
|
|
|
|
|
|
|
# |
|
46
|
0
|
|
|
0
|
0
|
|
sub finish { } |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
################################################################################ |
|
51
|
|
|
|
|
|
|
# Copyright (c) 2005-2010 Steven Edwards (maverick@smurfbane.org). |
|
52
|
|
|
|
|
|
|
# All rights reserved. |
|
53
|
|
|
|
|
|
|
# |
|
54
|
|
|
|
|
|
|
# You may use and distribute Apache::Voodoo under the terms described in the |
|
55
|
|
|
|
|
|
|
# LICENSE file include in this package. The summary is it's a legalese version |
|
56
|
|
|
|
|
|
|
# of the Artistic License :) |
|
57
|
|
|
|
|
|
|
# |
|
58
|
|
|
|
|
|
|
################################################################################ |