annotate Lib/IMPL/Class/declare.pm @ 165:76515373dac0

Added Class::Template, Rewritten SQL::Schema 'use parent' directive instead of 'use base'
author wizard
date Sat, 23 Apr 2011 23:06:48 +0400
parents 6ce1f052b90a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
163
6ce1f052b90a temp commit
wizard
parents:
diff changeset
1 package IMPL::Class::declare;
6ce1f052b90a temp commit
wizard
parents:
diff changeset
2 use strict;
6ce1f052b90a temp commit
wizard
parents:
diff changeset
3 use IMPL::_core::version;
6ce1f052b90a temp commit
wizard
parents:
diff changeset
4
6ce1f052b90a temp commit
wizard
parents:
diff changeset
5 sub import {
6ce1f052b90a temp commit
wizard
parents:
diff changeset
6 my ($self,$meta) = @_;
6ce1f052b90a temp commit
wizard
parents:
diff changeset
7 }
6ce1f052b90a temp commit
wizard
parents:
diff changeset
8
6ce1f052b90a temp commit
wizard
parents:
diff changeset
9 1;
6ce1f052b90a temp commit
wizard
parents:
diff changeset
10
6ce1f052b90a temp commit
wizard
parents:
diff changeset
11 __END__
6ce1f052b90a temp commit
wizard
parents:
diff changeset
12
6ce1f052b90a temp commit
wizard
parents:
diff changeset
13 =pod
6ce1f052b90a temp commit
wizard
parents:
diff changeset
14
6ce1f052b90a temp commit
wizard
parents:
diff changeset
15 =head1 NAME
6ce1f052b90a temp commit
wizard
parents:
diff changeset
16
6ce1f052b90a temp commit
wizard
parents:
diff changeset
17 =head1 SYNOPSIS
6ce1f052b90a temp commit
wizard
parents:
diff changeset
18
6ce1f052b90a temp commit
wizard
parents:
diff changeset
19 =begin code
6ce1f052b90a temp commit
wizard
parents:
diff changeset
20
6ce1f052b90a temp commit
wizard
parents:
diff changeset
21 package Foo;
6ce1f052b90a temp commit
wizard
parents:
diff changeset
22 use IMPL::Class::declare {
6ce1f052b90a temp commit
wizard
parents:
diff changeset
23 base => [qw(Bar)],
6ce1f052b90a temp commit
wizard
parents:
diff changeset
24 properties => [
6ce1f052b90a temp commit
wizard
parents:
diff changeset
25 id => { get => public, set => protected, type => 'uuid', verify => \&_checkId },
6ce1f052b90a temp commit
wizard
parents:
diff changeset
26 name => { get => public, set => public },
6ce1f052b90a temp commit
wizard
parents:
diff changeset
27 info => { static => 1 }
6ce1f052b90a temp commit
wizard
parents:
diff changeset
28 ],
6ce1f052b90a temp commit
wizard
parents:
diff changeset
29 methods => [
6ce1f052b90a temp commit
wizard
parents:
diff changeset
30 store => \&_storeImpl
6ce1f052b90a temp commit
wizard
parents:
diff changeset
31 get => \&_getImpl
6ce1f052b90a temp commit
wizard
parents:
diff changeset
32 ],
6ce1f052b90a temp commit
wizard
parents:
diff changeset
33 attributes => [
6ce1f052b90a temp commit
wizard
parents:
diff changeset
34 new ClassId('class-foo-1')
6ce1f052b90a temp commit
wizard
parents:
diff changeset
35 ]
6ce1f052b90a temp commit
wizard
parents:
diff changeset
36 };
6ce1f052b90a temp commit
wizard
parents:
diff changeset
37
6ce1f052b90a temp commit
wizard
parents:
diff changeset
38 =end code
6ce1f052b90a temp commit
wizard
parents:
diff changeset
39
6ce1f052b90a temp commit
wizard
parents:
diff changeset
40 =head1 DESCRIPTION
6ce1f052b90a temp commit
wizard
parents:
diff changeset
41
6ce1f052b90a temp commit
wizard
parents:
diff changeset
42 =cut