dokuwiki\Form\DropdownElement::__construct PHP Метод

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

public __construct ( string $name, array $options, string $label = '' )
$name string The name of this form element
$options array The available options
$label string The label text for this element (will be autoescaped)
    public function __construct($name, $options, $label = '')
    {
        parent::__construct('dropdown', $name, $label);
        $this->rmattr('type');
        $this->optGroups[''] = new OptGroup(null, $options);
        $this->val('');
    }