MaxLengthFilter class

Filter to put a maximum on the number of characters.

Class Overview

Filter to put a maximum on the number of characters.

Public Methods

init($howmany)

Initializes this MaxLengthFilter.

Parameters

$howmany

The maximum number of characters.

filter($value)

Applies the filter to the passed value.

Parameters

$value

String to filter.

Return value

The filtered string with all characters above the maximum length cut off.

Inheritance

Base Classes

Inherited members