Podius::Property::MultipleSelections - component property allowing multiple selections from multiple choices
$property = new Podius::Property::MultipleSelections;
Supposed to be used in the Podius::Component manpage and the Podius::Property manpage module trees only.
This module implements component property of multiple choices with multiple selections. See also the Podius::Property::Selection manpage for a component property of multiple choice with a single selection.
The selection is one code (scalar, often integer or short string) from list of possible codes. This property operates with array of selections (codes).
If a constant array of choices is supplied in the class constructor, the label of this property is taken as a chosen code, when appropriate. If, instead, a constant code->label hash is supplied in the class constructor, it is used to translate from choice code to its label, when appropriate.
Note, access modifier method supposes to get an array of choice codes as
parameter, not labels; access accessor method returns an array of choice
code, not labels.
Use access_labels instead. access_codes is an alias to access.
the Exception manpage, the Podius::Property::ScalarList manpage.
access method inherited from superclass
the Podius::Property::ScalarList manpage, but choice labels are used instead of
choice codes (codes are evaluated from their labels).
Accessor: returns the currently selected choice labels.
Modifier: sets a new list of selected choice labels. If any given label is not found, it is ignored.
Modifier: choice labels (array of strings).
Modifier: new selected choice codes (array of scalars).
Returns a list of all possible choice codes.
Returns a list of all possible choice labels.
Returns a hash of all possible choices: {code =>* label}.
Returns a value that is used to initialized this property.
access method.