Mappings: Direktzugriff auf package names Methode
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 29 May 2015 14:35:34 +0000 (16:35 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 29 May 2015 14:35:34 +0000 (16:35 +0200)
SL/DB/Helper/Mappings.pm

index 31ae7b6..709e881 100644 (file)
@@ -207,6 +207,10 @@ sub get_package_names {
   return KIVITENDO => \%kivitendo_package_names;
 }
 
+sub get_name_for_table {
+  return $kivitendo_package_names{ $_[0] };
+}
+
 sub get_package_for_table {
   %kivitendo_tables_to_packages = map { ($_ => "SL::DB::" . camelify($kivitendo_package_names{$_})) } keys %kivitendo_package_names
     unless %kivitendo_tables_to_packages;