Mercurial > pub > Impl
annotate Lib/IMPL/Object/Fields.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 | eb3e9861a761 |
| children | 4267a2ac3d46 |
| rev | line source |
|---|---|
| 164 | 1 package IMPL::Object::Fields; |
| 2 use strict; | |
| 3 use warnings; | |
| 4 | |
| 5 use base qw(IMPL::Object::Abstract); | |
| 6 | |
| 7 sub new { | |
| 8 my $class = shift; | |
| 9 | |
| 10 $class = ref $class || $class; | |
| 11 | |
| 12 my $this = fields::new($class); | |
| 13 $this->callCTOR(@_); | |
| 14 | |
| 15 return $this; | |
| 16 } | |
| 17 | |
| 18 sub surrogate { | |
| 19 my $class = shift; | |
| 20 | |
| 21 $class = ref $class || $class; | |
| 22 | |
| 23 return fields::new($class); | |
| 24 } | |
| 25 | |
| 26 1; |
