Rose-DB-Object
view release on metacpan or search on metacpan
lib/Rose/DB/Object/Manager.pm view on Meta::CPAN
else
{
Carp::croak "make_manager_methods() called with an odd number of arguments"
unless(@_ % 2 == 0);
}
my %args = @_;
local $Debug = $args{'debug'} if(exists $args{'debug'});
my $calling_class = ($class eq __PACKAGE__) ? (caller)[0] : $class;
my $target_class = $args{'target_class'} || $calling_class;
my $object_class = $args{'object_class'};
my $class_invocant = UNIVERSAL::isa($target_class, __PACKAGE__) ?
$target_class : __PACKAGE__;
unless($object_class)
{
if(UNIVERSAL::isa($target_class, 'Rose::DB::Object::Manager'))
{
$object_class = $target_class->object_class;
lib/Rose/DB/Object/Metadata/MethodMaker.pm view on Meta::CPAN
if($options->{'preserve_existing'})
{
Carp::croak "Cannot specify true values for both the ",
"'replace_existing' and 'preserve_existing' ",
"options";
}
$options->{'override_existing'} = $args{'replace_existing'};
}
$options->{'target_class'} ||= $args{'target_class'} || (caller)[0];
my $types = $args{'types'} || [ $self->auto_method_types ];
foreach my $type (@$types)
{
my $method_maker_class = $self->method_maker_class($type)
or Carp::croak "No method maker class defined for method type '$type'";
my $method_maker_type = $self->method_maker_type($type)
or Carp::croak "No method maker type defined for method type '$type'";
( run in 2.420 seconds using v1.01-cache-2.11-cpan-a3c8064c92c )