Revision f203aa21
Von Moritz Bunkus vor etwa 14 Jahren hinzugefügt
SL/DB/Helper/LinkedRecords.pm | ||
---|---|---|
my %params = @_;
|
||
|
||
my $wanted = $params{direction} || croak("Missing parameter `direction'");
|
||
my $myself = $wanted eq 'from' ? 'to' : 'from';
|
||
my $myself = $wanted eq 'from' ? 'to' : $wanted eq 'to' ? 'from' : croak("Invalid parameter `direction'");
|
||
|
||
my $my_table = SL::DB::Helpers::Mappings::get_table_for_package(ref($self));
|
||
|
Auch abrufbar als: Unified diff
Bessere Parameterüberprüfung