Documentation

selectedHelper

View helper with value

Tags
author

Stefan Seehafer sea75300@yahoo.de

copyright

(c) 2011-2022, Stefan Seehafer

license

http://www.gnu.org/licenses/gpl.txt GPLv3

Table of Contents

$isMultiple  : bool
Select multiple options
$selected  : string|array<string|int, mixed>
Element value
setIsMultiple()  : $this
Enable multiple selection
setSelected()  : $this
Set preselected value
getSelectedString()  : string
Return selected string

Properties

$isMultiple

Select multiple options

protected bool $isMultiple = false

$selected

Element value

protected string|array<string|int, mixed> $selected = ''

Methods

setIsMultiple()

Enable multiple selection

public setIsMultiple(bool $isMultiple) : $this
Parameters
$isMultiple : bool
Return values
$this

setSelected()

Set preselected value

public setSelected(string|int|array<string|int, mixed> $selected) : $this
Parameters
$selected : string|int|array<string|int, mixed>
Return values
$this

getSelectedString()

Return selected string

protected getSelectedString() : string
Return values
string

Search results