annotate Lib/IMPL/Web/View/Metadata.pm @ 362:715b9959b207

WebView: initial work on metadata providers
author cin
date Thu, 28 Nov 2013 20:00:20 +0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
362
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
1 package IMPL::Web::View::Metadata;
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
2 use strict;
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
3
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
4 use IMPL::declare {
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
5 base => [
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
6 'IMPL::Object' => undef
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
7 ]
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
8 };
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
9
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
10 1;
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
11
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
12 __END__
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
13
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
14 =pod
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
15
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
16 =head1 NAME
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
17
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
18 =head1 SYNOPSIS
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
19
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
20 =head1 DESCRIPTION
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
21
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
22 Метаданные описывают модель, ее свойства, используются для построения
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
23 представления.
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
24
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
25 =over
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
26
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
27 =item * type
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
28
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
29 Опционально. Тип модели. В случаях, когда модель не определена, данное свойство
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
30 позволяет определить ее тип.
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
31
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
32 =item * label
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
33
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
34 Опционально. Имя модели для отображения.
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
35
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
36 =item * template
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
37
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
38 Шаблон, который следует использовать для отображения модели.
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
39
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
40 =item * fields
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
41
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
42 Коллекция с информацией по свойствам (полям) модели. Данный хеш используется
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
43 для определения представления при использовании C<display_for('field')>.
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
44
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
45 =back
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
46
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
47 Метаданные публикуются провайдером, кроме того они могут быть расширены
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
48 дополнительными свойствами.
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
49
715b9959b207 WebView: initial work on metadata providers
cin
parents:
diff changeset
50 =cut