annotate Lib/IMPL/Web/AutoLocator.pm @ 298:78f767765706

TT view refactoring
author cin
date Tue, 19 Mar 2013 02:02:37 +0400
parents 6dc1c369eb71
children 793cc7f0a7e7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
210
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
1 package IMPL::Web::AutoLocator;
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
2 use strict;
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
3
244
a02b110da931 refactoring
sergey
parents: 232
diff changeset
4 use overload '""' => 'toString';
a02b110da931 refactoring
sergey
parents: 232
diff changeset
5
232
5c82eec23bb6 Fixed degradations due refactoring
sergey
parents: 229
diff changeset
6 use IMPL::Const qw(:prop);
244
a02b110da931 refactoring
sergey
parents: 232
diff changeset
7 use IMPL::lang qw(:hash);
a02b110da931 refactoring
sergey
parents: 232
diff changeset
8 use IMPL::clone qw(clone);
210
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
9 use URI;
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
10 use URI::Escape;
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
11 use IMPL::declare {
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
12 require => {
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
13 Exception => 'IMPL::Exception',
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
14 ArgumentException => '-IMPL::InvalidArgumentException'
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
15 },
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
16 base => [
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
17 'IMPL::Object' => undef,
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
18 'IMPL::Object::Autofill' => '@_',
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
19 'IMPL::Object::Serializable' => '@_'
229
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
20 ],
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
21 props => [
232
5c82eec23bb6 Fixed degradations due refactoring
sergey
parents: 229
diff changeset
22 base => PROP_RO,
5c82eec23bb6 Fixed degradations due refactoring
sergey
parents: 229
diff changeset
23 view => PROP_RW,
5c82eec23bb6 Fixed degradations due refactoring
sergey
parents: 229
diff changeset
24 query => PROP_RW,
5c82eec23bb6 Fixed degradations due refactoring
sergey
parents: 229
diff changeset
25 hash => PROP_RW
210
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
26 ]
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
27 };
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
28
244
a02b110da931 refactoring
sergey
parents: 232
diff changeset
29 sub Clone {
a02b110da931 refactoring
sergey
parents: 232
diff changeset
30 my $this = shift;
a02b110da931 refactoring
sergey
parents: 232
diff changeset
31
a02b110da931 refactoring
sergey
parents: 232
diff changeset
32 return clone($this);
a02b110da931 refactoring
sergey
parents: 232
diff changeset
33 }
a02b110da931 refactoring
sergey
parents: 232
diff changeset
34
229
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
35 sub Child {
210
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
36 my $this = shift;
211
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
37 my $child = shift or die ArgumentException->new("a child resource identifier is required");
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
38 die ArgumentException->new("a child resource can't be a reference") if ref $child;
210
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
39
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
40 # safe
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
41 $child = uri_escape($child);
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
42
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
43 my %args;
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
44
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
45 $args{base} = $this->base =~ /\/$/ ? $this->base . $child : $this->base . '/' . $child;
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
46 $args{view} = $this->view if $this->view;
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
47 $args{hash} = $this->hash if $this->hash;
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
48
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
49 if (@_) {
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
50 my $query = shift;
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
51
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
52 $args{query} = ref $query eq 'HASH' ? hashMerge($this->query,$query) : $query;
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
53 }
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
54
212
292226770180 bugfixes
sergey
parents: 211
diff changeset
55 return $this->new(%args);
211
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
56 }
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
57
292
cin
parents: 256
diff changeset
58 sub Query {
cin
parents: 256
diff changeset
59 my ($this,$query) = @_;
cin
parents: 256
diff changeset
60
cin
parents: 256
diff changeset
61 my %args;
cin
parents: 256
diff changeset
62
cin
parents: 256
diff changeset
63 $args{base} = $this->base;
cin
parents: 256
diff changeset
64 $args{view} = $this->view if $this->view;
cin
parents: 256
diff changeset
65 $args{hash} = $this->hash if $this->hash;
cin
parents: 256
diff changeset
66 $args{query} = ref $query eq 'HASH' ? hashMerge($this->query,$query) : $query;
cin
parents: 256
diff changeset
67
cin
parents: 256
diff changeset
68 return $this->new(%args);
cin
parents: 256
diff changeset
69 }
cin
parents: 256
diff changeset
70
211
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
71 sub SetView {
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
72 my ($this,$newView) = @_;
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
73
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
74 $this->view($newView);
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
75
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
76 return $this;
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
77 }
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
78
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
79 sub url {
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
80 my ($this) = @_;
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
81
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
82 my $url = URI->new($this->view ? $this->base . "." . $this->view : $this->base);
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
83 $url->query_form($this->query);
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
84 $url->fragment($this->hash);
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
85
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
86 return $url;
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
87 }
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
88
256
32aceba4ee6d corrected ViewHandlers to handle cookies and headers.
sergey
parents: 244
diff changeset
89 sub ToAbsolute {
32aceba4ee6d corrected ViewHandlers to handle cookies and headers.
sergey
parents: 244
diff changeset
90 my ($this,$baseUrl) = @_;
32aceba4ee6d corrected ViewHandlers to handle cookies and headers.
sergey
parents: 244
diff changeset
91
32aceba4ee6d corrected ViewHandlers to handle cookies and headers.
sergey
parents: 244
diff changeset
92 return URI->new_abs( $this->url, $baseUrl );
32aceba4ee6d corrected ViewHandlers to handle cookies and headers.
sergey
parents: 244
diff changeset
93 }
32aceba4ee6d corrected ViewHandlers to handle cookies and headers.
sergey
parents: 244
diff changeset
94
244
a02b110da931 refactoring
sergey
parents: 232
diff changeset
95 sub toString {
a02b110da931 refactoring
sergey
parents: 232
diff changeset
96 shift->url->as_string();
a02b110da931 refactoring
sergey
parents: 232
diff changeset
97 }
a02b110da931 refactoring
sergey
parents: 232
diff changeset
98
211
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
99 sub AUTOLOAD {
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
100 our $AUTOLOAD;
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
101
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
102 (my $method) = ($AUTOLOAD =~ m/(\w+)$/);
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
103
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
104 return if $method eq 'DESTROY';
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
105
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
106 my $this = shift;
229
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
107 return $this->Child($method,@_);
210
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
108 }
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
109
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
110
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
111
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
112 1;
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
113
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
114 __END__
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
115
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
116 =head1 NAME
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
117
229
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
118 C<IMPL::Web::AutoLocator> - Обертка вокруг адреса ресурса.
210
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
119
229
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
120 =head1 SYNOPSIS
210
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
121
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
122 =begin code
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
123
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
124 use IMPL::require {
229
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
125 Locator => 'IMPL::Web::AutoLocator'
210
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
126 };
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
127
212
292226770180 bugfixes
sergey
parents: 211
diff changeset
128 my $bugTracker = Locator->new(base => "http://myhost.org/bugzilla")->SetView("cgi");
210
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
129
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
130 my $bug = $bugTracker->show_bug({id = 1});
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
131
212
292226770180 bugfixes
sergey
parents: 211
diff changeset
132 my $wikiPages = Locator->new(base => "http://myhost.org/wiki/bin/view");
210
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
133
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
134 my $page = $wiki->Main->HowTo;
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
135
229
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
136 my $images = Locator->new(base => "http://static.myhost.org/images", view => "png");
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
137
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
138 my $editIco = $images->icons->small->edit;
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
139
210
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
140 =end code
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
141
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
142 =head1 DESCRIPTION
6adaeb86945d added IMPL::Web::AutoLocator
sergey
parents:
diff changeset
143
229
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
144 Для удобстав навигации по ресурсам, полностью отражает классическую структуру
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
145 иерархически организованных ресурсов. позволяет гибко работать с параметрами
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
146 запроса и хешем. Для постоты чтения реализует метод C<AUTOLOAD> для доступа
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
147 к дочерним ресурсам.
211
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
148
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
149 =head1 MEMBERS
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
150
229
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
151 =head2 C<CTOR(%args)>
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
152
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
153 Создает новый объект расположение. Позволяет задать путь, расширение, параметры
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
154 запроса и фрагмент ресурса.
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
155
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
156 =over
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
157
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
158 =item * C<base>
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
159
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
160 Строка с базовым адресом для дочерних ресурсов.
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
161
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
162 =item * C<view>
211
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
163
229
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
164 Задает суфикс, обозначающий представление ресурса, аналогично расширению у
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
165 файлов. Данный суффикс может использоваться контроллером для выбора
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
166 представления ресурса.
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
167
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
168 =item * C<query>
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
169
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
170 Ссылка на хеш с параметрами запроса
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
171
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
172 =item * C<hash>
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
173
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
174 Часть C<uri> обозначающая фрагмент документа (все, что идет после символа C<#>).
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
175
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
176 =back
211
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
177
229
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
178 =head2 C<Child($child[,$query])>
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
179
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
180 Получает расположение дочернего ресурса. При этом cоздается новый объект адреса ресурса.
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
181
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
182 =head2 C<SetView($view)>
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
183
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
184 Позволяет указать представление (расширение) у текущего адреса ресурса. Изменяет
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
185 представление и возвращает измененный адрес ресурса.
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
186
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
187 =head2 C<[get]base>
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
188
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
189 Базовый адрес, относительно которого будут получены дочерние ресурсы.
211
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
190
229
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
191 =head2 C<[get,set]view>
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
192
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
193 Представление для ресурсов, аналогично расширению у файлов.
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
194
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
195 =head2 C<[get,set]query>
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
196
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
197 Ссылка на хеш с параметрами для C<GET> запроса.
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
198
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
199 =head2 C<[get,set]hash>
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
200
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
201 Часть адреса ресурса, отвечающая за фрагмент.
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
202
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
203 =head2 C<[get]url>
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
204
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
205 Объект C<URI> для текущего адреса.
211
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
206
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
207 =head2 C<AUTLOAD>
2b9b55cfb79b Completed IMPL::Web::AutoLocator, added tests
cin
parents: 210
diff changeset
208
229
47f77e6409f7 heavily reworked the resource model of the web application:
sergey
parents: 212
diff changeset
209 Перенаправляет вызовы методов в метод C<Child> передавая первым параметром имя метода.
212
292226770180 bugfixes
sergey
parents: 211
diff changeset
210
292226770180 bugfixes
sergey
parents: 211
diff changeset
211 =cut
292226770180 bugfixes
sergey
parents: 211
diff changeset
212