phpDocumentor

Radio extends Field
in package

Read onlyYes

Champ de formulaire boutons radio

Table of Contents

Properties

$choices  : array<string|int, mixed>
$label  : string
$selected  : string|null

Methods

__construct()  : mixed
Création du champ
toString()  : string
retourne le code Html

Properties

Methods

__construct()

Création du champ

public __construct(array<int, string>|array<string, string> $choices[, string $label = '' ][, string $selected = null ]) : mixed
Parameters
$choices : array<int, string>|array<string, string>

soit une liste de nom=libellé, soit un dict [nom => libelléDuChoix]

$label : string = ''

libellé pour indiquer ce champ dans le formulaire

$selected : string = null

le nom du choix par défaut

toString()

retourne le code Html

public toString(string $name) : string
Parameters
$name : string
Return values
string

        
On this page

Search results