Filter/Null.php

Show: PublicProtectedPrivateinherited
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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Filter  
Version
$Id$  

\Zend_Filter_Null

Package: Zend_Filter
Implements
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

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

Properties

>VPropertyprotected$_constants = array(self::BOOLEAN => 'boolean', self::INTEGER => 'integer', self::EMPTY_ARRAY => 'array', self::STRING => 'string', self::ZERO => 'zero', self::ALL => 'all')
Default valuearray(self::BOOLEAN => 'boolean', self::INTEGER => 'integer', self::EMPTY_ARRAY => 'array', self::STRING => 'string', self::ZERO => 'zero', self::ALL => 'all')Details
Type
n/a
>VPropertyprotectedinteger $_type = self::ALL
Internal type to detect
Default valueself::ALLDetails
Type
integer

Methods

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

Constructor

Parameters
NameTypeDescription
$optionsstring | 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
NameTypeDescription
$valuestring
Returns
TypeDescription
string
methodpublicgetType() : array

Returns the set null types

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

Set the null types

Parameters
NameTypeDescription
$typeinteger | array
Returns
TypeDescription
\Zend_Filter_Null
Throws
ExceptionDescription
\Zend_Filter_Exception
Documentation was generated by phpDocumentor 2.2.0 .