API Documentation

Zend/Filter/Boolean.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: Boolean.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Filter_Boolean

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  FLOAT = 4
Constant  STRING = 8
Constant  ZERO = 16
Constant  EMPTY_ARRAY = 32
Constant  NULL = 64
Constant  PHP = 127
Constant  FALSE_STRING = 128
Constant  YES = 256
Constant  ALL = 511

Properties

Propertyprotectedboolean  $_casting= 'true'

Internal mode

Default valuetrueDetails
Type
boolean
Propertyprotected  $_constants= 'array( self::BOOLEAN => 'boolean''
Default valuearray( self::BOOLEAN => 'boolean'Details
Type
Propertyprotectedarray  $_locale= 'array('auto')'

Internal locale

Default valuearray('auto')Details
Type
array
Propertyprotectedinteger  $_type= 'self::PHP'

Internal type to detect

Default valueself::PHPDetails
Type
integer

Methods

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

Constructor

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

OPTIONAL

methodprotected_getLocalizedQuestion( string $value, boolean $yes, array $locale ) : boolean

Determine the value of a localized string, and compare it to a given value

Parameters
Name Type Description
$value string
$yes boolean
$locale array
Returns
Type Description
boolean
methodpublicfilter( string $value ) : string

Defined by Zend_Filter_Interface

Returns a boolean representation of $value

Parameters
Name Type Description
$value string
Returns
Type Description
string
methodpublicgetCasting( ) : boolean

Returns the casting option

Returns
Type Description
boolean
methodpublicgetLocale( ) : array

Returns the set locale

Returns
Type Description
array
methodpublicgetType( ) : int

Returns the set null types

Returns
Type Description
int
methodpublicsetCasting(  $casting = true ) : \Zend_Filter_Boolean

Set the working mode

Parameters
Name Type Description
$casting
Returns
Type Description
\Zend_Filter_Boolean
Throws
Exception Description
\Zend_Filter_Exception
methodpublicsetLocale( string|array|\Zend_Locale $locale = null ) : \Zend_Filter_Boolean

Set the locales which are accepted

Parameters
Name Type Description
$locale string|array|\Zend_Locale
Returns
Type Description
\Zend_Filter_Boolean
Throws
Exception Description
\Zend_Filter_Exception
methodpublicsetType( integer|array $type = null ) : \Zend_Filter_Boolean

Set the null types

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