Mercurial > pub > Impl
annotate Lib/IMPL/DOM/Document.pm @ 30:dd4d72600c69
ORM in works
author | Sergey |
---|---|
date | Tue, 03 Nov 2009 16:31:47 +0300 |
parents | 7f00786f8210 |
children | 1828103371d0 |
rev | line source |
---|---|
15 | 1 package IMPL::DOM::Document; |
2 use strict; | |
3 use warnings; | |
4 | |
5 use base qw(IMPL::DOM::Node); | |
6 | |
7 __PACKAGE__->PassThroughArgs; | |
8 | |
9 sub Create { | |
10 my ($this,$nodeName,$class,$refProps) = @_; | |
11 | |
12 $refProps ||= {}; | |
13 | |
24 | 14 delete $refProps->{nodeName}; |
15 | |
15 | 16 return $class->new( |
17 nodeName => $nodeName, | |
18 %$refProps | |
19 ); | |
20 } | |
21 | |
22 1; | |
23 __END__ | |
24 | |
25 =pod | |
26 | |
27 =head1 DESCRIPTION | |
28 | |
18 | 29 =head1 METHODS |
30 | |
31 =over | |
32 | |
33 =item C<<$doc->Create>> | |
34 | |
15 | 35 . |
36 | |
18 | 37 =back |
38 | |
15 | 39 =cut |