From 48c0b3c90c7955cbdd953f50a16e5cc190d43559 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 29 May 2015 16:35:34 +0200 Subject: [PATCH] Mappings: Direktzugriff auf package names Methode --- SL/DB/Helper/Mappings.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SL/DB/Helper/Mappings.pm b/SL/DB/Helper/Mappings.pm index 31ae7b699..709e881ef 100644 --- a/SL/DB/Helper/Mappings.pm +++ b/SL/DB/Helper/Mappings.pm @@ -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; -- 2.20.1