Revision 40cee798
Von Bernd Bleßmann vor 12 Monaten hinzugefügt
SL/DB/Helper/DisplayableNamePreferences.pm | ||
---|---|---|
91 | 91 |
# Controller configuring a displayable name |
92 | 92 |
# can get specs to display title and options |
93 | 93 |
# and the user prefs to read and set them |
94 |
my specs => SL::DB::SomeObject->displayable_name_specs;
|
|
95 |
my prefs => SL::DB::SomeObject->displayable_name_prefs;
|
|
94 |
my specs = SL::DB::SomeObject->displayable_name_specs; |
|
95 |
my prefs = SL::DB::SomeObject->displayable_name_prefs; |
|
96 | 96 |
|
97 | 97 |
|
98 | 98 |
This mixin provides a method C<displayable_name> for the calling module |
99 |
which returns the a string depending on the settings of the
|
|
100 |
C<UserPreferences> (see also L<SL::Helper::UserPrefernces::DisplayableName>. |
|
101 |
The value in the user preferences is scanned for a pattern like E<lt>%name%E<gt>, which
|
|
102 |
will be replaced by the value of C<$object-E<gt>name>. |
|
99 |
which returns a string depending on the settings of the |
|
100 |
C<UserPreferences> (see also L<SL::Helper::UserPrefernces::DisplayableName>).
|
|
101 |
The value in the user preferences is scanned for a pattern like |
|
102 |
E<lt>%name%E<gt>, which will be replaced by the value of C<$object-E<gt>name>.
|
|
103 | 103 |
|
104 | 104 |
=head1 CONFIGURATION |
105 | 105 |
|
... | ... | |
134 | 134 |
|
135 | 135 |
=item C<displayable_name_prefs> |
136 | 136 |
|
137 |
This returns an instance of the L<SL::Helper::UserPrefernces::DisplayableName> |
|
137 |
This returns an instance of the L<SL::Helper::UserPreferences::DisplayableName>
|
|
138 | 138 |
(see there) for the calling class. This can be used to read and set the |
139 | 139 |
preferences. |
140 | 140 |
|
Auch abrufbar als: Unified diff
DisplayableNamePrefs: Typos im POD