API Documentation

Filter/Boolean.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:$
Classes
Zend_Filter_Boolean

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_Boolean

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
FLOAT
STRING
ZERO
EMPTY_ARRAY
NULL
PHP
FALSE_STRING
YES
ALL
Properties
$_constants
$_type
$_locale
$_casting
Methods
__construct
getType
setType
getLocale
setLocale
getCasting
setCasting
filter
_getLocalizedQuestion

Description

Constants

BOOLEAN

 BOOLEAN = '1'

Details

value
1

INTEGER

 INTEGER = '2'

Details

value
2

FLOAT

 FLOAT = '4'

Details

value
4

STRING

 STRING = '8'

Details

value
8

ZERO

 ZERO = '16'

Details

value
16

EMPTY_ARRAY

 EMPTY_ARRAY = '32'

Details

value
32

NULL

 NULL = '64'

Details

value
64

PHP

 PHP = '127'

Details

value
127

FALSE_STRING

 FALSE_STRING = '128'

Details

value
128

YES

 YES = '256'

Details

value
256

ALL

 ALL = '511'

Details

value
511

Properties

$_casting

boolean $_casting = 'true'

Internal mode

Details

$_casting
boolean
visibility
protected
default
true
final
false
static
false

$_constants

 $_constants = 'array'

Details

visibility
protected
default
array
final
false
static
false

$_locale

array $_locale = 'array'

Internal locale

Details

$_locale
array
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

_getLocalizedQuestion

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

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

Arguments
$value
string
$yes
boolean
$locale
array
Output
boolean
Details
visibility
protected
final
false
static
false

filter

filter( string $value ) : string

Defined by Zend_Filter_Interface

Returns a boolean representation of $value

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

getCasting

getCasting( ) : boolean

Returns the casting option

Output
boolean
Details
visibility
public
final
false
static
false

getLocale

getLocale( ) : array

Returns the set locale

Output
array
Details
visibility
public
final
false
static
false

getType

getType( ) : int

Returns the set null types

Output
int
Details
visibility
public
final
false
static
false

setCasting

setCasting(  $casting = true ) : Zend_Filter_Boolean

Set the working mode

Arguments
$casting
Details
visibility
public
final
false
static
false
throws

setLocale

setLocale( string|array|Zend_Locale $locale = null ) : Zend_Filter_Boolean

Set the locales which are accepted

Arguments
$locale
stringarrayZend_Locale
Details
visibility
public
final
false
static
false
throws

setType

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

Set the null types

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