Filter to put a maximum on the number of characters.
Filter to put a maximum on the number of characters.
init($howmany) ¶Initializes this MaxLengthFilter.
$howmanyThe maximum number of characters.
filter($value) ¶Applies the filter to the passed value.
$valueString to filter.
The filtered string with all characters above the maximum length cut off.
AnewtContainer::_to_array()AnewtContainer::_add()AnewtContainer::delete()AnewtContainer::get()AnewtContainer::_isset()AnewtContainer::_seed()AnewtContainer::setdefault()AnewtContainer::getdefault()AnewtContainer::set()AnewtContainer::__isset()AnewtContainer::__set()AnewtContainer::__construct()AnewtContainer::is_set()AnewtContainer::add()AnewtContainer::_getdefault()AnewtContainer::__unset()AnewtContainer::seed()AnewtContainer::to_array()AnewtContainer::_get()AnewtContainer::__get()AnewtContainer::keys()AnewtContainer::clear()AnewtContainer::_keys()AnewtContainer::_set()Filter::init()