category Zend
package Zend_Filter
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Constructor

__construct(string|array|\Zend_Config $options = null

Parameters

$options

stringarray\Zend_Config

OPTIONAL

Defined by Zend_Filter_Interface

filter(string $value) : string

Returns null representation of $value, if value is empty and matches types that should be considered null.

inherited_from \Zend_Filter_Interface::filter()

Parameters

$value

string

Returns

string

Returns the set null types

getType() : array

Returns

array

Set the null types

setType(integer|array $type = null) : \Zend_Filter_Null

Parameters

$type

integerarray

Exceptions

\Zend_Filter_Exception

Returns

\Zend_Filter_Null

 Properties

 

$_constants

$_constants 

Default

array(self::BOOLEAN => 'boolean', self::INTEGER => 'integer', self::EMPTY_ARRAY => 'array', self::STRING => 'string', self::ZERO => 'zero', self::ALL => 'all')
 

Internal type to detect

$_type : integer

Default

self::ALL

 Constants

 

ALL

ALL = 31 
 

BOOLEAN

BOOLEAN = 1 
 

EMPTY_ARRAY

EMPTY_ARRAY = 4 
 

INTEGER

INTEGER = 2 
 

STRING

STRING = 8 
 

ZERO

ZERO = 16