previousHTML_QuickForm_select::load() (Previous) (Next) HTML_QuickForm_select::loadDbResult()next

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

HTML_QuickForm_select::loadArray()

HTML_QuickForm_select::loadArray() – Charge les options depuis un tableau associatif

Synopsis

require_once 'HTML/QuickForm/select.php';

mixed HTML_QuickForm_select::loadArray ( array $arr , mixed $values = = null )

Description

Le tableau doit avoir la forme 'valeur de l'option' => 'texte de l'option'.

Parameter

array $arr

Tableau associatif d'options

mixed $values

(optionnel) Tableau ou chaîne séparée par une virgule de valeurs

Return value

Retourne TRUE en cas de succès.

Throws

Lance une exception PEAR_Error si une erreur survient.

See

Voir load(), addOption().

Note

Disponible depuis la version 1.0.

This function can not be called statically.

previousHTML_QuickForm_select::load() (Previous) (Next) HTML_QuickForm_select::loadDbResult()next

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.