previousHTML_QuickForm::isRuleRegistered() (Previous) (Next) Outputting the formnext

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::applyFilter()

HTML_QuickForm::applyFilter() – Applique un filtre à un ou des champs donnés

Synopsis

require_once 'HTML/QuickForm.php';

void HTML_QuickForm::applyFilter ( mixed $element , mixed $filter )

Description

Applique un filtre à un ou des champs donnés. Le filtre est appliqué récursivement.

Parameter

mixed $element

Nom de l'élément de formulaire ou tableau de noms d'éléments. Le nom spécial '__ALL__' signifie tous les éléments du formulaire.

mixed $filter

Callback, soit un nom de fonction, soit un tableau array(&$object, 'method')

Throws

Possible PEAR_Error values
Code erreur Message d'erreur Raison Solution
QUICKFORM_INVALID_FILTER Callback function does not exist in QuickForm::applyFilter() Tentative de passage d'un nom de fonction inexistante en tant que callback Vérifiez le nom de la fonction

Note

Disponible depuis la version 2.0.

This function can not be called statically.

previousHTML_QuickForm::isRuleRegistered() (Previous) (Next) Outputting the formnext

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:
Note by: cweiske
Trim all whitespace from all elements:
<?php
$form
->applyFilter('__ALL__''trim');
?>