Свойство | Тип | Описание | |
---|---|---|---|
$options | |||
$value |
Метод | Описание | |
---|---|---|
__construct ( string $label, array $options ) | ||
options ( null | array $options = null ) | Get or set the options of the optgroup | |
storeValue ( string $value ) : boolean | Store the given value so it can be used during rendering | |
toHTML ( ) : string | The HTML representation of this element |
Метод | Описание | |
---|---|---|
renderOptions ( ) : string |
public __construct ( string $label, array $options ) | ||
$label | string | The label text for this element (will be autoescaped) |
$options | array | The available options |
public storeValue ( string $value ) : boolean | ||
$value | string | |
Результат | boolean | true if an option with the given value exists, false otherwise |