toArray()); } //traduit une valeur en champ/label/légende HTML en fonction de son type public static function toHtml($field,$types=null,$options = array('allowCustomLabel'=>true)){ if(!isset($types)) $types = self::available(); if(!isset($field['id'])) $field['id'] = ''; $type = isset($field['type']) && isset($types[$field['type']]) ? $types[$field['type']] : $types['text']; $label = ''; if(!empty($field['label'])){ $label = '