view Lib/IMPL/DOM/Transform.pm @ 97:964587c5183c

Added SecureCall to Web QueryHandlers stack many bug fixes to Security and Web Application modules
author wizard
date Tue, 04 May 2010 04:04:37 +0400
parents f017c0d7527c
children e6447ad85cb4
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