line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package VoiceXML::Client::Item::Clear; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
|
5
|
3
|
|
|
3
|
|
16
|
use base qw (VoiceXML::Client::Item); |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
232
|
|
6
|
3
|
|
|
3
|
|
19
|
use VoiceXML::Client::Util; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
85
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Copyright (C) 2007,2008 by Pat Deegan. |
13
|
|
|
|
|
|
|
All rights reserved |
14
|
|
|
|
|
|
|
http://voicexml.psychogenic.com |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
This library is released under the terms of the GNU GPL version 3, making it available only for |
17
|
|
|
|
|
|
|
free programs ("free" here being used in the sense of the GPL, see http://www.gnu.org for more details). |
18
|
|
|
|
|
|
|
Anyone wishing to use this library within a proprietary or otherwise non-GPLed program MUST contact psychogenic.com to |
19
|
|
|
|
|
|
|
acquire a distinct license for their application. This approach encourages the use of free software |
20
|
|
|
|
|
|
|
while allowing for proprietary solutions that support further development. |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
This file is part of VoiceXML::Client. |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
VoiceXML::Client is free software: you can redistribute it and/or modify |
28
|
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by |
29
|
|
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or |
30
|
|
|
|
|
|
|
(at your option) any later version. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
VoiceXML::Client is distributed in the hope that it will be useful, |
33
|
|
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
34
|
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
35
|
|
|
|
|
|
|
GNU General Public License for more details. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License |
38
|
|
|
|
|
|
|
along with VoiceXML::Client. If not, see . |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=cut |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
3
|
|
|
3
|
|
16
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
96
|
|
46
|
|
|
|
|
|
|
|
47
|
3
|
|
|
|
|
749
|
use vars qw{ |
48
|
|
|
|
|
|
|
$VERSION |
49
|
3
|
|
|
3
|
|
16
|
}; |
|
3
|
|
|
|
|
6
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
$VERSION = $VoiceXML::Client::Item::VERSION; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
sub init { |
57
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
58
|
|
|
|
|
|
|
|
59
|
0
|
|
0
|
|
|
|
$self->{'namelist'} = $self->{'XMLElement'}->attribute('namelist') || ''; |
60
|
|
|
|
|
|
|
|
61
|
0
|
|
|
|
|
|
my @names = split(/\s+/, $self->{'namelist'}); |
62
|
|
|
|
|
|
|
|
63
|
0
|
|
|
|
|
|
$self->{'vars'} = []; |
64
|
0
|
|
|
|
|
|
foreach my $n (@names) |
65
|
|
|
|
|
|
|
{ |
66
|
0
|
|
|
|
|
|
push @{$self->{'vars'}}, $n; |
|
0
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
0
|
|
|
|
|
|
return 1; |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
sub execute { |
74
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
75
|
0
|
|
|
|
|
|
my $handle = shift; |
76
|
0
|
|
|
|
|
|
my $optParams = shift; |
77
|
|
|
|
|
|
|
|
78
|
0
|
|
|
|
|
|
my $vxmlDoc = $self->getParentVXMLDocument(); |
79
|
|
|
|
|
|
|
|
80
|
0
|
|
|
|
|
|
foreach my $v (@{$self->{'vars'}}) |
|
0
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
{ |
82
|
0
|
|
|
|
|
|
$vxmlDoc->clearGlobalVar($v); |
83
|
|
|
|
|
|
|
} |
84
|
|
|
|
|
|
|
|
85
|
0
|
|
|
|
|
|
return $self->executeChildren($handle, $optParams); |
86
|
|
|
|
|
|
|
} |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
1; |