annotate Lib/IMPL/Web/View/Metadata/Meta.pm @ 363:d67e45705be5

sync, model metadata
author cin
date Fri, 29 Nov 2013 11:04:19 +0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
363
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
1 package IMPL::Web::View::Metadata::Meta;
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
2 use strict;
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
3
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
4 use IMPL::Const qw(:prop);
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
5 use IMPL::declare {
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
6 base => [
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
7 'IMPL::Object' => undef
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
8 ],
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
9 props => [
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
10 type => PROP_RO,
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
11 provider => PROP_RO
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
12 ]
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
13 };
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
14
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
15 sub CTOR {
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
16 my ($this,$provider,$type) = @_;
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
17
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
18 }
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
19
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
20 sub GetChild {
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
21 my ($this,$name) = @_;
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
22 }
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
23
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
24 1;
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
25
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
26 __END__
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
27
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
28 =pod
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
29
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
30 =head1 NAME
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
31
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
32 =head1 SYNOPSIS
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
33
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
34 =head1 DESCRIPTION
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
35
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
36 Метаданные описывают модель, ее свойства, используются для построения
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
37 представления.
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
38
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
39 =over
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
40
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
41 =item * type
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
42
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
43 Опционально. Тип модели. В случаях, когда модель не определена, данное свойство
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
44 позволяет определить ее тип.
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
45
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
46 =item * label
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
47
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
48 Опционально. Имя модели для отображения.
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
49
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
50 =item * template
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
51
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
52 Шаблон, который следует использовать для отображения модели.
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
53
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
54 =item * fields
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
55
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
56 Коллекция с информацией по свойствам (полям) модели. Данный хеш используется
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
57 для определения представления при использовании C<display_for('field')>.
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
58
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
59 =back
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
60
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
61 Метаданные публикуются провайдером, кроме того они могут быть расширены
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
62 дополнительными свойствами.
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
63
d67e45705be5 sync, model metadata
cin
parents:
diff changeset
64 =cut