Revision b79b80d3
Von Werner Hahn vor etwa 2 Jahren hinzugefügt
SL/Presenter/Tag.pm | ||
---|---|---|
172 | 172 |
} elsif (ref($default_coll) eq 'HASH') { |
173 | 173 |
%selected = %{ $default_coll }; |
174 | 174 |
|
175 |
} elsif ($default_coll) { |
|
176 |
$default_coll = [ $default_coll ] unless 'ARRAY' eq ref $default_coll; |
|
177 | 175 |
|
178 | 176 |
%selected = $default_val_key ? map({ ($normalize_entry->('value', $_, undef, $default_val_key) => 1) } @{ $default_coll }) |
179 | 177 |
: map({ ($_ => 1) } @{ $default_coll }); |
... | ... | |
859 | 857 |
|
860 | 858 |
The following are used directly from each level: |
861 | 859 |
|
862 |
=over 12
|
|
860 |
=over 4
|
|
863 | 861 |
|
864 | 862 |
=item I<name> is deleted from level attributes. |
865 | 863 |
The I<name> is used for the for the name of the 'select' tag. |
... | ... | |
880 | 878 |
|
881 | 879 |
=item I<default> is used to find the default level object. |
882 | 880 |
|
883 |
=tiem I<default_key> names the key for the default feld of level object. Is
|
|
881 |
=item I<default_key> names the key for the default feld of level object. Is
|
|
884 | 882 |
ignored if I<default> is set. |
885 | 883 |
|
886 |
=back |
|
887 |
|
|
888 | 884 |
|
889 |
<\@collection> is used for the level object of level 1. The objects of the next |
|
885 |
=item I<\@collection> is used for the level object of level 1. The objects of the next
|
|
890 | 886 |
level are taken from the previous level via the <object_key>. On each level the |
891 | 887 |
objects must be a hash reference or a blessed reference. |
892 | 888 |
|
Auch abrufbar als: Unified diff
POD Syntax