Filter/Null.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Filter
- Version
- $Id: Null.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Filter_Null
Package: Zend\Filter
Parameters
Returns
Throws
- Implements
- \Zend_Filter_Interface
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties


$_constants = array(self::BOOLEAN => 'boolean', self::INTEGER => 'integer', self::EMPTY_ARRAY => 'array', self::STRING => 'string', self::ZERO => 'zero', self::ALL => 'all')
Default value
array(self::BOOLEAN => 'boolean', self::INTEGER => 'integer', self::EMPTY_ARRAY => 'array', self::STRING => 'string', self::ZERO => 'zero', self::ALL => 'all')
Details- Type
- n/a
Methods


__construct(string | array | \Zend_Config $options = null) : void
Constructor
Parameters
Name | Type | Description |
---|---|---|
$options | string | array | \Zend_Config | OPTIONAL |


filter(string $value) : string
Defined by Zend_Filter_Interface
Returns null representation of $value, if value is empty and matches types that should be considered null.
Name | Type | Description |
---|---|---|
$value | string |
Type | Description |
---|---|
string |
Exception | Description |
---|---|
\Zend_Filter_Exception | If filtering $value is impossible |


setType(integer | array $type = null) : \Zend_Filter_Null
Set the null types
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$type | integer | array |
Type | Description |
---|---|
\Zend_Filter_Null |
Exception | Description |
---|---|
\Zend_Filter_Exception |