API Documentation

Zend/Filter/Null.php

Show: inherited
Table of Contents

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 license@zend.com 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 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Filter_Null

Package: Zend\Filter

Implements
\Zend_Filter_Interface
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

Constant  BOOLEAN = 1
Constant  INTEGER = 2
Constant  EMPTY_ARRAY = 4
Constant  STRING = 8
Constant  ZERO = 16
Constant  ALL = 31

Properties

Propertyprotected  $_constants= 'array( self::BOOLEAN => 'boolean''
Default valuearray( self::BOOLEAN => 'boolean'Details
Type
Propertyprotectedinteger  $_type= 'self::ALL'

Internal type to detect

Default valueself::ALLDetails
Type
integer

Methods

methodpublic__construct( string|array|\Zend_Config $options = null ) : void

Constructor

Parameters
Name Type Description
$options string|array|\Zend_Config

OPTIONAL

methodpublicfilter( 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.

Parameters
Name Type Description
$value string
Returns
Type Description
string
methodpublicgetType( ) : array

Returns the set null types

Returns
Type Description
array
methodpublicsetType( integer|array $type = null ) : \Zend_Filter_Null

Set the null types

Parameters
Name Type Description
$type integer|array
Returns
Type Description
\Zend_Filter_Null
Throws
Exception Description
\Zend_Filter_Exception
Documentation was generated by DocBlox 0.15.1.