Path

ez components / documentation / api reference / trunk / userinput


eZ Components trunk

UserInput: ezcInputFilter

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcInputFilter

Provides a set of standard filters. [source]
This class defines a set of filters that can be used with both with PHP's filter extension, or with the ezcInputForm class as callback filter method.
1.  <?php
2.  $definition array(
3.     'special' => arrayOPTIONAL'callback',
4.                                   array'ezcInputFilter''urlFilter' ) ),
5.  );
6.  $form new ezcInputFormezcInputForm::INPUT_GET$definition );
7.  ?>

Method Summary

public static mixed urlFilter( $value, $characterSet )
Receives a variable for filtering. The filter function is free to modify the variable and should return the modified variable.

Methods

urlFilter

mixed urlFilter( mixed $value, string $characterSet )
Receives a variable for filtering. The filter function is free to modify the variable and should return the modified variable.

Parameters

Name Type Description
$value mixed The variable's value
$characterSet string The value's character set

Last updated: Tue, 02 Dec 2008