BabelObjects-Component-Data-Configurator
view release on metacpan or search on metacpan
lib/BabelObjects/Component/Data/Configurator.pm view on Meta::CPAN
return ($xmlHelper->getElementsByPath($doc, $context."/parameter/".$key))[0]
->getFirstChild()->getData();
}
sub getValueOld {
my $self = shift;
my $key = shift;
my $x;
my $doc = $self->parameters;
my $context = $self->context;
foreach $x ($doc->$context->test) {
my $name = $x->name->getString;
if (lc($name) eq $key) {
return $x->value->getString;
}
}
return "PB";
}
sub AUTOLOAD {
my $self = shift;
my $type = ref($self) or croak "$self is not an object";
my $name = $AUTOLOAD;
$name =~ s/.*://; # strip fully-qualified portion
unless (exists $self->{_permitted}->{$name} ) {
# croak "Can't access `$name' field in class $type";
# On intercepte ici les erreurs liées aux tentatives d'appel
# des méthodes inexistantes
#print "Dispatcher AUTOLOAD = $AUTOLOAD\n";
return $AUTOLOAD;
}
if (@_) {
return $self->{$name} = shift;
} else {
return $self->{$name};
}
}
1;
__END__
# Below is the stub of documentation for your module. You better edit it!
=head1 NAME
BabelObjects::Component::Data::Configurator - Perl extension for blah blah blah
=head1 SYNOPSIS
use BabelObjects::Component::Data::Configurator;
blah blah blah
=head1 DESCRIPTION
Stub documentation for BabelObjects::Component::Data::Configurator was created by h2xs. It looks like the
author of the extension was negligent enough to leave the stub
unedited.
Blah blah blah.
=head1 AUTHOR
Jean-Christophe Kermagoret, jck@BabelObjects.Org (http://www.BabelObjects.Org)
=head1 SEE ALSO
perl(1).
=cut
( run in 1.227 second using v1.01-cache-2.11-cpan-39bf76dae61 )