Select
        
        extends Field
    
    
            
            in package
            
        
    
    
    
Read onlyYes
Champ de formulaire Select
Table of Contents
Properties
Methods
- __construct() : mixed
- Création du champ
- toString() : string
- retourne le code Html
Properties
$choices
    public
        array<string|int, mixed>
    $choices
    
    
    
    
$label
    public
        string
    $label
     = ''
    
    
    
$selected
    public
        string|null
    $selected
     = null
    
    
    
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