MultipleChoice element
create a multiplechoice element:
parameter:
value - default value as array with pairs value => identifier.
array - array with pairs value => identifier.
name - optional. identifier. Its highly recommended to use unique identifiers to avoid side effects.
status - optional. function called after auto reload. If status is enabled, ippfp sets the choice->reload flag true automatically.
example:
$myChoice = $ippfp->createMultipleChoice(array(1 => "value 1"),array(1 => "value 1", 2 => "value 2", 3 => "value 3"),"mymultiplechoice");
Note: getValue() will give you the key, not the item. getValueAsString() will give you the item.