/** * Construct a new options object. * Options are constructed from an option array by default. The constructor * automatically passes the given options to the __set() method to set them * in the class. * * @throws ezcBasePropertyNotFoundException * If trying to access a non existent property. * @throws ezcBaseValueException * If the value for a property is out of range. * @param array(string=>mixed) $options The initial options to set. */ public function __construct(array $options = array()) { $this->properties["text"] = "Please enter a value: "; $this->properties["validator"] = new ezcConsoleQuestionDialogTypeValidator(); $this->properties["showResults"] = false; parent::__construct($options); }
/** * Construct a new options object. * Options are constructed from an option array by default. The constructor * automatically passes the given options to the __set() method to set them * in the class. * * @throws ezcBasePropertyNotFoundException * If trying to access a non existent property. * @throws ezcBaseValueException * If the value for a property is out of range. * @param array(string=>mixed) $options The initial options to set. */ public function __construct(array $options = array()) { $this->properties["text"] = "Please choose an item."; $this->properties["formatString"] = "%3s) %s\n"; $this->properties["selectText"] = "Select: "; $this->properties["validator"] = new ezcConsoleMenuDialogDefaultValidator(); parent::__construct($options); }