Mercurial > pub > Impl
view Lib/IMPL/DOM/Transform.pm @ 69:8c7b88bdb663
Cookie Simple auth support
author | wizard |
---|---|
date | Wed, 24 Mar 2010 17:41:41 +0300 |
parents | 16ada169ca75 |
children | f017c0d7527c |
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