Stub class for backwards compatibility.
Since PHP 7 adds "null" as a reserved keyword, we can no longer have a class
named that and retain PHP 7 compatibility. The original class has been
renamed to "ToNull", and this class is now an extension of it. It raises an
E_USER_DEPRECATED to warn users to migrate.
Methods
Constructor
__construct(string | array | \Traversable $typeOrOptions)
Parameters
$typeOrOptions
stringarray\Traversable
OPTIONAL
Invoke filter as a command
__invoke(mixed $value) : mixed
Inherited
Proxies to filter()
inherited_from |
\Zend\Filter\AbstractFilter::__invoke() |
inherited_from |
\Zend\Filter\ToNull::__invoke() |
Parameters
$value
mixed
Exceptions
Returns
mixed
Defined by Zend\Filter\FilterInterface
filter(string $value) : string
Inherited
Returns null representation of $value, if value is empty and matches
types that should be considered null.
inherited_from |
\Zend\Filter\ToNull::filter() |
Parameters
$value
string
Exceptions
Returns
string
Retrieve options representing object state
getOptions() : array
Inherited
inherited_from |
\Zend\Filter\AbstractFilter::getOptions() |
inherited_from |
\Zend\Filter\ToNull::getOptions() |
Returns
array
Returns defined boolean types
getType() : int
Inherited
inherited_from |
\Zend\Filter\ToNull::getType() |
Returns
int
hasPcreUnicodeSupport()
hasPcreUnicodeSupport() : bool
Inherited
inherited_from |
\Zend\Filter\AbstractFilter::hasPcreUnicodeSupport() |
inherited_from |
\Zend\Filter\ToNull::hasPcreUnicodeSupport() |
Returns
bool
setOptions()
setOptions(array | \Traversable $options) : \Zend\Filter\self
Inherited
inherited_from |
\Zend\Filter\AbstractFilter::setOptions() |
inherited_from |
\Zend\Filter\ToNull::setOptions() |
Parameters
$options
array\Traversable
Exceptions
Returns
\Zend\Filter\self
Set boolean types
setType(int | array $type) : \Zend\Filter\self
Inherited
inherited_from |
\Zend\Filter\ToNull::setType() |
Parameters
$type
intarray
Exceptions
Returns
\Zend\Filter\self
isOptions()
isOptions(mixed $options) : bool
Inherited
inherited_from |
\Zend\Filter\AbstractFilter::isOptions() |
inherited_from |
\Zend\Filter\ToNull::isOptions() |
Parameters
$options
mixed
Returns
bool
Properties
$constants
$constants : array
Inherited
inherited_from |
\Zend\Filter\ToNull::$$constants |
Filter options
$options : array
Inherited
inherited_from |
\Zend\Filter\ToNull::$$options |
Constants
TYPE_ALL
TYPE_ALL
Inherited
inherited_from |
\Zend\Filter\ToNull::TYPE_ALL |
TYPE_BOOLEAN
TYPE_BOOLEAN
Inherited
inherited_from |
\Zend\Filter\ToNull::TYPE_BOOLEAN |
TYPE_EMPTY_ARRAY
TYPE_EMPTY_ARRAY
Inherited
inherited_from |
\Zend\Filter\ToNull::TYPE_EMPTY_ARRAY |
TYPE_FLOAT
TYPE_FLOAT
Inherited
inherited_from |
\Zend\Filter\ToNull::TYPE_FLOAT |
TYPE_INTEGER
TYPE_INTEGER
Inherited
inherited_from |
\Zend\Filter\ToNull::TYPE_INTEGER |
TYPE_STRING
TYPE_STRING
Inherited
inherited_from |
\Zend\Filter\ToNull::TYPE_STRING |
TYPE_ZERO_STRING
TYPE_ZERO_STRING
Inherited
inherited_from |
\Zend\Filter\ToNull::TYPE_ZERO_STRING |