Mercurial > pub > Impl
view Lib/IMPL/DOM/Transform.pm @ 48:1c3c3e63a314
security in progress
author | Sergey |
---|---|
date | Fri, 26 Feb 2010 01:43:42 +0300 |
parents | d660fb38b7cc |
children | 16ada169ca75 |
line wrap: on
line source
package IMPL::DOM::Transform; use strict; use warnings; use base qw(IMPL::Transform); __PACKAGE__->PassThroughArgs; sub GetClassForObject { my ($this,$object) = @_; if (my $class = ref $object) { if (UNIVERSAL::isa($object,'IMPL::DOM::Node')) { return $object->nodeName; } else { return $class; } } else { return undef; } } 1; __END__ =pod =head1 DESCRIPTION Преобразование для DOM документа =cut