projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05346dc
)
Mappings: Direktzugriff auf package names Methode
author
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 29 May 2015 14:35:34 +0000
(16:35 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 29 May 2015 14:35:34 +0000
(16:35 +0200)
SL/DB/Helper/Mappings.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Helper/Mappings.pm
b/SL/DB/Helper/Mappings.pm
index
31ae7b6
..
709e881
100644
(file)
--- 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;