BabelObjects
view release on metacpan or search on metacpan
BabelObjects/Component/Test/BabelObjects/Test.pm view on Meta::CPAN
sub getWorld {
print "World";
}
sub getValue {
my $self = shift;
my $key = shift;
my $x;
my $doc = $self->parameters;
my $context = $self->context;
foreach $x ($doc->$context->parameter) {
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
$aLog->log("AUTOLOAD : $self = $AUTOLOAD");
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::Test::BabelObjects::Test - Perl extension for blah blah blah
=head1 SYNOPSIS
use BabelObjects::Component::BabelObjects::Test;
blah blah blah
=head1 DESCRIPTION
Stub documentation for BabelObjects::Component::Test::BabelObjects::Test 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 2.505 seconds using v1.01-cache-2.11-cpan-5837b0d9d2c )