annotate Lib/IMPL/Web/TT/Form.pm @ 214:4683002758aa

sync
author sergey
date Mon, 06 Aug 2012 17:27:47 +0400
parents 4d0e1962161c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
122
a7efb3117295 Fixed bug in IMPL::DOM::Navigator::selectNodes
wizard
parents:
diff changeset
1 use strict;
a7efb3117295 Fixed bug in IMPL::DOM::Navigator::selectNodes
wizard
parents:
diff changeset
2 package IMPL::Web::TT::Form;
a7efb3117295 Fixed bug in IMPL::DOM::Navigator::selectNodes
wizard
parents:
diff changeset
3
166
4267a2ac3d46 Added Class::Template,
wizard
parents: 158
diff changeset
4 use parent qw(IMPL::Web::TT::Control);
122
a7efb3117295 Fixed bug in IMPL::DOM::Navigator::selectNodes
wizard
parents:
diff changeset
5
124
e30bdd040fe3 IMPL::Web::TT::Form concept
wizard
parents: 122
diff changeset
6 use IMPL::Class::Property;
148
e6447ad85cb4 DOM objects now have a schema and schemaSource properties
wizard
parents: 145
diff changeset
7 use IMPL::DOM::Navigator::SchemaNavigator();
e6447ad85cb4 DOM objects now have a schema and schemaSource properties
wizard
parents: 145
diff changeset
8
126
c8dfbbdd8005 Several bug fixes
wizard
parents: 124
diff changeset
9 __PACKAGE__->PassThroughArgs;
124
e30bdd040fe3 IMPL::Web::TT::Form concept
wizard
parents: 122
diff changeset
10
e30bdd040fe3 IMPL::Web::TT::Form concept
wizard
parents: 122
diff changeset
11 BEGIN {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
12 public property base => prop_all;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
13 public property schema => prop_all;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
14 public property errors => prop_all;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
15 public property data => prop_all;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
16 public property state => prop_all;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
17 public property formResult => prop_all;
124
e30bdd040fe3 IMPL::Web::TT::Form concept
wizard
parents: 122
diff changeset
18 }
e30bdd040fe3 IMPL::Web::TT::Form concept
wizard
parents: 122
diff changeset
19
e30bdd040fe3 IMPL::Web::TT::Form concept
wizard
parents: 122
diff changeset
20 sub CTOR {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
21 my ($this) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
22
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
23 if (my $form = $this->formResult) {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
24 $this->base($form->{formName});
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
25 $this->errors($form->{formErrors});
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
26 $this->data($form->{formData});
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
27 $this->schema($form->{formSchema});
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
28 $this->state($form->{state});
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
29 } else {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
30
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
31 $this->base($this->nodeName) unless $this->base;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
32
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
33 die new IMPL::InvalidArgumentException('A schema is required for a form',$this->nodeName)
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
34 unless eval { $this->schema->isa( typeof IMPL::DOM::Schema ) };
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
35
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
36 die new IMPL::InvalidOperationException('Can\'t find a form definition in a schema',$this->nodeName,$this->base)
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
37 unless $this->schema->selectNodes(sub { $_->nodeName eq 'ComplexNode' and $_->name eq $this->base });
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
38 }
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
39
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
40 $this->errors([]) unless $this->errors;
124
e30bdd040fe3 IMPL::Web::TT::Form concept
wizard
parents: 122
diff changeset
41 }
e30bdd040fe3 IMPL::Web::TT::Form concept
wizard
parents: 122
diff changeset
42
148
e6447ad85cb4 DOM objects now have a schema and schemaSource properties
wizard
parents: 145
diff changeset
43 sub fillContents {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
44 my ($this) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
45
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
46 my $schema = $this->schema->selectSingleNode(sub { $_->nodeName eq 'ComplexNode' and $_->name eq $this->base });
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
47
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
48 $this->buildContainer(
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
49 $schema,
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
50 $schema,
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
51 $this->data->isComplex ? $this->data : undef,
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
52 $this
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
53 );
148
e6447ad85cb4 DOM objects now have a schema and schemaSource properties
wizard
parents: 145
diff changeset
54 }
e6447ad85cb4 DOM objects now have a schema and schemaSource properties
wizard
parents: 145
diff changeset
55
e6447ad85cb4 DOM objects now have a schema and schemaSource properties
wizard
parents: 145
diff changeset
56 sub buildContainer {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
57 my ($this,$schemaSource,$schema,$domNode,$container,$path) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
58
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
59 $path = [@{$path || []},{node => $domNode, schemaSource => $schemaSource}];
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
60
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
61 $container ||= $this->document->Create($schemaSource->name,'IMPL::Web::TT::Collection');
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
62
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
63 foreach my $schemaItem ( $schema->content->childNodes ) {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
64 my $schemaItemSource = $schemaItem;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
65
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
66 $schemaItem = $this->schema->resolveType($schemaItem->type)
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
67 if typeof $schemaItem eq typeof IMPL::DOM::Schema::Node;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
68
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
69 my @nodesData = $domNode->selectNodes(sub { $_->schemaSource == $schemaItemSource } ) if $domNode;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
70
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
71 push @nodesData, undef unless @nodesData;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
72
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
73 if ($schemaItem->isa(typeof IMPL::DOM::Schema::ComplexNode) ) {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
74 $this->appendChild( $this->buildContainer($schemaItemSource,$schemaItem,$_,undef,$path) ) foreach @nodesData;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
75 } elsif ($schemaItem->isa(typeof IMPL::DOM::Schema::SimpleNode)) {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
76 $this->appendChild( $this->buildControl($schemaItemSource,$schemaItem,$_,$path) ) foreach @nodesData;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
77 }
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
78 }
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
79
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
80 return $container;
148
e6447ad85cb4 DOM objects now have a schema and schemaSource properties
wizard
parents: 145
diff changeset
81 }
e6447ad85cb4 DOM objects now have a schema and schemaSource properties
wizard
parents: 145
diff changeset
82
e6447ad85cb4 DOM objects now have a schema and schemaSource properties
wizard
parents: 145
diff changeset
83 sub buildControl {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
84 my ($this,$schemaSource,$schema,$node,$path) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
85
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
86 my @errors;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
87
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
88 if ($node) {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
89 @errors = grep { ($_->Node || $_->Parent) == $node } @{$this->errors};
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
90 } else {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
91 @errors = grep $_->Schema == $schemaSource, @{$this->errors};
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
92 }
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
93
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
94 return $this->document->CreateControl(
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
95 $schemaSource->name,
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
96 $this->mapType($schemaSource),
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
97 {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
98 schema => $schema,
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
99 sourceSchema => $schemaSource,
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
100 errors => \@errors,
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
101 data => $node,
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
102 inputType => $schemaSource->nodeProperty('inputType') || $schema->nodeProperty('inputType'),
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
103 nodeValue => $node && $node->nodeValue, # small hack set a non dom class property through
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
104 queryParameter => $this->makeParameterName([@$path,{ node => $node, schemaSource => $schemaSource}])
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
105 }
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
106 );
148
e6447ad85cb4 DOM objects now have a schema and schemaSource properties
wizard
parents: 145
diff changeset
107 }
e6447ad85cb4 DOM objects now have a schema and schemaSource properties
wizard
parents: 145
diff changeset
108
e6447ad85cb4 DOM objects now have a schema and schemaSource properties
wizard
parents: 145
diff changeset
109 sub mapType {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
110 my ($this,$schema) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
111
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
112 $schema->nodeProperty('control') ||
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
113 ( $schema->type && $this->schema->resolveType($schema->type)->nodeProperty('control') )
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
114 or die new IMPL::Exception("Unable to get control class for the form element",$schema->path);
148
e6447ad85cb4 DOM objects now have a schema and schemaSource properties
wizard
parents: 145
diff changeset
115 }
e6447ad85cb4 DOM objects now have a schema and schemaSource properties
wizard
parents: 145
diff changeset
116
e6447ad85cb4 DOM objects now have a schema and schemaSource properties
wizard
parents: 145
diff changeset
117 sub makeParameterName {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
118 my ($this,$path) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
119
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
120 join '/', map {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
121 $_->{node} ?
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
122 (
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
123 $_->{node}->nodeProperty('instanceId') ?
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
124 $_->{node}->nodeName . '['. ']' :
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
125 $_->{node}->nodeName
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
126 ) :
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
127 (
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
128 $_->{schemaSource}->maxOccur eq 'unbounded' || $_->{schemaSource}->maxOccur > 1 ?
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
129 $_->{schemaSource}->name . '[0]' :
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
130 $_->{schemaSource}->name
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
131 )
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
132 } @$path;
148
e6447ad85cb4 DOM objects now have a schema and schemaSource properties
wizard
parents: 145
diff changeset
133 }
e6447ad85cb4 DOM objects now have a schema and schemaSource properties
wizard
parents: 145
diff changeset
134
126
c8dfbbdd8005 Several bug fixes
wizard
parents: 124
diff changeset
135 sub makeControlArgs{
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
136 my ($this,$path) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
137
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
138 my $navi = new IMPL::DOM::Navigator::SchemaNavigator($this->schema);
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
139 my @path = ($this->base, split(/\./,$path) );
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
140
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
141 $navi->NavigateName($_) or die new IMPL::InvalidArgumentException(
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
142 "Can't find a definition for an element",
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
143 $_,
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
144 $path,
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
145 $this->element,
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
146 ) foreach @path;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
147
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
148 my $schema = $navi->Current;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
149 my $sourceSchema = $navi->SourceSchemaNode;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
150 my $queryParameter = join '/', @path;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
151 shift @path;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
152 my $node = $this->data ? $this->data->selectSingleNode(@path) : undef;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
153
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
154 my @errors;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
155
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
156 if ($node) {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
157 @errors = grep { ($_->Node || $_->Parent) == $node } @{$this->errors};
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
158 } else {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
159 @errors = grep $_->Schema == $sourceSchema, @{$this->errors};
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
160 }
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
161
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
162 return {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
163 schema => $schema,
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
164 sourceSchema => $sourceSchema,
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
165 errors => \@errors,
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
166 data => $node,
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
167 nodeValue => $node && $node->nodeValue, # small hack set a non dom class property through
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
168 queryParameter => $queryParameter,
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
169 inputType => $sourceSchema->nodeProperty('inputType') || $schema->nodeProperty('inputType')
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
170 };
126
c8dfbbdd8005 Several bug fixes
wizard
parents: 124
diff changeset
171 }
c8dfbbdd8005 Several bug fixes
wizard
parents: 124
diff changeset
172
145
bd10093bb122 Minor changes
wizard
parents: 144
diff changeset
173 sub makeContent {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
174 my ($this,$mappings) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
175
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
176 my $formSchema = $this->schema->selectSingleNode(sub { $_->nodeName eq 'ComplexNode' and $_->name eq $this->base } )
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
177 or die new Exception("Cant find a schema element for the specified form", $this->base);
145
bd10093bb122 Minor changes
wizard
parents: 144
diff changeset
178
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
179 my $doc = $this->document;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
180 foreach my $itemSchema ( $formSchema->content->childNodes ) {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
181 my $itemName = $itemSchema->name;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
182 if (my $controlClass = $mappings->{$itemName} ) {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
183 my $contorl = $doc->CreateControl($itemName,$controlClass,$this->makeControlArgs($itemName));
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
184 $this->appendChild($contorl);
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
185 }
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
186 }
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
187 return;
145
bd10093bb122 Minor changes
wizard
parents: 144
diff changeset
188 }
bd10093bb122 Minor changes
wizard
parents: 144
diff changeset
189
126
c8dfbbdd8005 Several bug fixes
wizard
parents: 124
diff changeset
190 sub formErrors {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
191 my ($this) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
192
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
193 if (my $node = $this->data ) {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
194 return [
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
195 grep {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
196 ( $_->Node || $_->Parent) == $node
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
197 } @{$this->errors}
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
198 ];
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
199 } else {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
200 return [];
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
201 }
124
e30bdd040fe3 IMPL::Web::TT::Form concept
wizard
parents: 122
diff changeset
202 }
e30bdd040fe3 IMPL::Web::TT::Form concept
wizard
parents: 122
diff changeset
203
122
a7efb3117295 Fixed bug in IMPL::DOM::Navigator::selectNodes
wizard
parents:
diff changeset
204 1;
a7efb3117295 Fixed bug in IMPL::DOM::Navigator::selectNodes
wizard
parents:
diff changeset
205 __END__
a7efb3117295 Fixed bug in IMPL::DOM::Navigator::selectNodes
wizard
parents:
diff changeset
206
a7efb3117295 Fixed bug in IMPL::DOM::Navigator::selectNodes
wizard
parents:
diff changeset
207 =pod
a7efb3117295 Fixed bug in IMPL::DOM::Navigator::selectNodes
wizard
parents:
diff changeset
208
a7efb3117295 Fixed bug in IMPL::DOM::Navigator::selectNodes
wizard
parents:
diff changeset
209 =head1 NAME
a7efb3117295 Fixed bug in IMPL::DOM::Navigator::selectNodes
wizard
parents:
diff changeset
210
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 173
diff changeset
211 C<IMPL::Web::TT::Form> - Форма с элементами
122
a7efb3117295 Fixed bug in IMPL::DOM::Navigator::selectNodes
wizard
parents:
diff changeset
212
a7efb3117295 Fixed bug in IMPL::DOM::Navigator::selectNodes
wizard
parents:
diff changeset
213 =head1 DESCRIPTION
a7efb3117295 Fixed bug in IMPL::DOM::Navigator::selectNodes
wizard
parents:
diff changeset
214
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 173
diff changeset
215 Является элементом управления, тоесть для своего преобразования ипользует
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 173
diff changeset
216 шаблон
122
a7efb3117295 Fixed bug in IMPL::DOM::Navigator::selectNodes
wizard
parents:
diff changeset
217
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 173
diff changeset
218 =cut