view Lib/IMPL/DOM/Transform.pm @ 47:a9b70d836b28

Web::Application development (request controller) Security development
author Sergey
date Tue, 23 Feb 2010 22:57:16 +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