Mercurial > pub > Impl
annotate Lib/IMPL/DOM/Transform.pm @ 60:b0c068da93ac
Lazy activation for the configuration objects (final concept)
small fixes
author | wizard |
---|---|
date | Tue, 09 Mar 2010 19:47:39 +0300 |
parents | 16ada169ca75 |
children | f017c0d7527c |
rev | line source |
---|---|
49 | 1 package IMPL::DOM::Transform; |
2 use strict; | |
3 use warnings; | |
4 | |
5 use base qw(IMPL::Transform); | |
6 | |
7 __PACKAGE__->PassThroughArgs; | |
8 | |
9 sub GetClassForObject { | |
10 my ($this,$object) = @_; | |
11 | |
12 if (my $class = ref $object) { | |
13 if (UNIVERSAL::isa($object,'IMPL::DOM::Node')) { | |
14 return $object->nodeName; | |
15 } else { | |
16 return $class; | |
17 } | |
18 } else { | |
19 return undef; | |
20 } | |
21 } | |
22 | |
23 1; | |
24 | |
25 __END__ | |
26 | |
27 =pod | |
28 | |
29 =head1 DESCRIPTION | |
30 | |
31 Преобразование для DOM документа | |
32 | |
33 =cut |