*/ class LSattr_html_password extends LSattr_html { /** * Ajoute l'attribut au formualaire passer en paramètre * * @param[in] &$form LSform Le formulaire * @param[in] $idForm L'identifiant du formulaire * @param[in] $data Valeur du champs du formulaire * * @retval LSformElement L'element du formulaire ajouté */ function addToForm (&$form,$idForm,$data=NULL) { $element=$form -> addElement('password', $this -> name, $this -> config['label'], $this -> config); if(!$element) { $GLOBALS['LSerror'] -> addErrorCode(206,$this -> name); return; } if (count($data)>1) { $GLOBALS['LSerror'] -> addErrorCode(103,'password'); return; } if ($data) { $element -> setValue($data); } return $element; } } ?>