API Documentation

Filter/Null.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Filter
version
$Id: Null.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Filter_Null

Description

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.

Zend_Filter_Null

Implements
Zend_Filter_Interface
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Filter
Constants
BOOLEAN
INTEGER
EMPTY_ARRAY
STRING
ZERO
ALL
Properties
$_constants
$_type
Methods
__construct
getType
setType
filter

Description

Constants

BOOLEAN

 BOOLEAN = '1'

Details

value
1

INTEGER

 INTEGER = '2'

Details

value
2

EMPTY_ARRAY

 EMPTY_ARRAY = '4'

Details

value
4

STRING

 STRING = '8'

Details

value
8

ZERO

 ZERO = '16'

Details

value
16

ALL

 ALL = '31'

Details

value
31

Properties

$_constants

 $_constants = 'array'

Details

visibility
protected
default
array
final
false
static
false

$_type

integer $_type = 'self'

Internal type to detect

Details

$_type
integer
visibility
protected
default
self
final
false
static
false

Methods

__construct

__construct( string|array|Zend_Config $options = null ) :

Constructor

Arguments
$options
stringarrayZend_Config
OPTIONAL
Details
visibility
public
final
false
static
false

filter

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.

Arguments
$value
string
Output
string
Details
visibility
public
final
false
static
false

getType

getType( ) : array

Returns the set null types

Output
array
Details
visibility
public
final
false
static
false

setType

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

Set the null types

Arguments
$type
integerarray
Details
visibility
public
final
false
static
false
throws
Documentation was generated by DocBlox.