Function generateListFromArray
Creates the body of a select list
array |
$currentValue |
list of items to be flagged as checked |
array |
$list |
the elements of the select list |
boolean |
$descending |
set true for a ascending order sort. Set to null to keep the array as it is passed. |
boolean |
$localize |
set true if the keys as description should be listed instead of the plain values |