Initialize (kind of constructor)
public init ( array $values, string | boolean $prompt = null ) | ||
$values | array | A hash map where the key is the internal 'value' to process and the value is the caption presented to the user |
$prompt | string | boolean | A null value text to prompt user selecting a value. Use a default if boolean true, else use the supplied string. No prompt on false. |