PHP Класс dokuwiki\Form\OptGroup

Наследование: extends dokuwiki\Form\Element
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Описание методов

__construct() публичный метод

public __construct ( string $label, array $options )
$label string The label text for this element (will be autoescaped)
$options array The available options

options() публичный метод

Options can be given as associative array (value => label) or as an indexd array (label = value) or as an array of arrays. In the latter case an element has to look as follows: option-value => array ( 'label' => option-label, 'attrs' => array ( attr-key => attr-value, ... ) )
public options ( null | array $options = null )
$options null | array

renderOptions() защищенный метод

protected renderOptions ( ) : string
Результат string

storeValue() публичный метод

This is intended to be only called from within @see DropdownElement::val()
public storeValue ( string $value ) : boolean
$value string
Результат boolean true if an option with the given value exists, false otherwise

toHTML() публичный метод

The HTML representation of this element
public toHTML ( ) : string
Результат string

Описание свойств

$options защищенное свойство

protected $options

$value защищенное свойство

protected $value