X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/53593baa211863fbf66540cf1bcc36c8fb37257f..f217d072d76183bc07723dcc29503b732bd2022d:/SL/DB/Helper/DisplayableNamePreferences.pm diff --git a/SL/DB/Helper/DisplayableNamePreferences.pm b/SL/DB/Helper/DisplayableNamePreferences.pm index 5080ea245..01982816c 100644 --- a/SL/DB/Helper/DisplayableNamePreferences.pm +++ b/SL/DB/Helper/DisplayableNamePreferences.pm @@ -21,9 +21,6 @@ sub import { $params{title} && $params{options} or croak 'need params title and options'; $prefs_specs{$importing} = \%params; - $prefs{$importing} = SL::Helper::UserPreferences::DisplayableName->new( - module => $importing - ); # Don't 'goto' to Exporters import, it would try to parse @params __PACKAGE__->export_to_level(1, $class, @EXPORT); @@ -50,7 +47,7 @@ sub displayable_name_prefs { my $class_or_self = shift; my $class = ref($class_or_self) || $class_or_self; - return $prefs{$class}; + return SL::Helper::UserPreferences::DisplayableName->new(module => $class); } sub displayable_name_specs { @@ -91,15 +88,15 @@ names configured via user preferences # Controller configuring a displayable name # can get specs to display title and options # and the user prefs to read and set them - my specs => SL::DB::SomeObject->displayable_name_specs; - my prefs => SL::DB::SomeObject->displayable_name_prefs; + my specs = SL::DB::SomeObject->displayable_name_specs; + my prefs = SL::DB::SomeObject->displayable_name_prefs; This mixin provides a method C for the calling module -which returns the a string depending on the settings of the -C (see also L. -The value in the user preferences is scanned for a pattern like E%name%E, which -will be replaced by the value of C<$object-Ename>. +which returns a string depending on the settings of the +C (see also L). +The value in the user preferences is scanned for a pattern like +E%name%E, which will be replaced by the value of C<$object-Ename>. =head1 CONFIGURATION @@ -134,7 +131,7 @@ user. =item C -This returns an instance of the L +This returns an instance of the L (see there) for the calling class. This can be used to read and set the preferences.