PHP Класс BootstrapUI\View\Widget\RadioWidget

Наследование: extends Cake\View\Widget\RadioWidget
Показать файл Открыть проект

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

Свойство Тип Описание
$_inline boolean Set on RadioWidget::render() to tell RadioWidget::_renderLabel() that we want to have inline aligned radios.

Открытые методы

Метод Описание
render ( array $data, Cake\View\Form\ContextInterface $context ) : string Render a set of radio buttons.

Защищенные методы

Метод Описание
_renderLabel ( array $radio, false | string | array $label, string $input, Cake\View\Form\ContextInterface $context, boolean $escape ) : string Renders a label element for a given radio button.

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

_renderLabel() защищенный Метод

In the future this might be refactored into a separate widget as other input types (multi-checkboxes) will also need labels generated.
protected _renderLabel ( array $radio, false | string | array $label, string $input, Cake\View\Form\ContextInterface $context, boolean $escape ) : string
$radio array The input properties.
$label false | string | array The properties for a label.
$input string The input widget.
$context Cake\View\Form\ContextInterface The form context.
$escape boolean Whether or not to HTML escape the label.
Результат string Generated label.

render() публичный Метод

Data supports the following keys: - name - Set the input name. - inline - The alignement to use. - options - An array of options. See below for more information. - disabled - Either true or an array of inputs to disable. When true, the select element will be disabled. - val - A string of the option to mark as selected. - label - Either false to disable label generation, or an array of attributes for all labels. - required - Set to true to add the required attribute on all generated radios. - idPrefix Prefix for generated ID attributes.
public render ( array $data, Cake\View\Form\ContextInterface $context ) : string
$data array The data to build radio buttons with.
$context Cake\View\Form\ContextInterface The current form context.
Результат string

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

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

Set on RadioWidget::render() to tell RadioWidget::_renderLabel() that we want to have inline aligned radios.
protected bool $_inline
Результат boolean