MaxLengthFilter Class Reference

Filter to put a maximum on the number of characters. More...

List of all members.

Public Member Functions

 init ($howmany)
 Initializes this MaxLengthFilter.
 filter ($value)
 Applies the filter to the passed value.


Detailed Description

Filter to put a maximum on the number of characters.

Definition at line 30 of file maxlengthfilter.lib.php.


Member Function Documentation

MaxLengthFilter::init ( howmany  ) 

Initializes this MaxLengthFilter.

Parameters:
$howmany The maximum number of characters.

Definition at line 37 of file maxlengthfilter.lib.php.

MaxLengthFilter::filter ( value  ) 

Applies the filter to the passed value.

Parameters:
$value String to filter.
Returns:
The filtered string with all characters above the maximum length cut off.

Reimplemented from Filter.

Definition at line 51 of file maxlengthfilter.lib.php.


The documentation for this class was generated from the following file:

Generated on Sun Aug 2 22:54:38 2009 for Anewt by  doxygen 1.5.9