Class Boolean

Summary

Fully Qualified Name: Zend\Filter\Boolean
Extends: AbstractFilter

Description

Methods

Name Description Defined By
__construct() Constructor Boolean
__invoke() Invoke filter as a command AbstractFilter
filter() Defined by Zend\Filter\FilterInterface Boolean
getCasting() Returns the casting option Boolean
getOptions() Retrieve options representing object state AbstractFilter
getTranslations() Boolean
getType() Returns defined boolean types Boolean
hasPcreUnicodeSupport() AbstractFilter
setCasting() Set the working mode Boolean
setOptions() AbstractFilter
setTranslations() Boolean
setType() Set boolean types Boolean

Method Details

__construct()

Constructor

Parameter Name Type Description
$typeOrOptions array|\Traversable|int|null
$casting bool
$translations array

Returns:

__invoke()

Invoke filter as a command

Proxies to {@link filter()}

Parameter Name Type Description
$value mixed

Returns: mixed

filter()

Defined by Zend\Filter\FilterInterface

Returns a boolean representation of $value

Parameter Name Type Description
$value string

Returns: string

getCasting()

Returns the casting option

Returns: bool

getOptions()

Retrieve options representing object state

Returns: array

getTranslations()

Returns: array

getType()

Returns defined boolean types

Returns: int

hasPcreUnicodeSupport()

Returns: bool

setCasting()

Set the working mode

Parameter Name Type Description
$flag bool When

Returns: self

setOptions()

Parameter Name Type Description
$options array|\Traversable

Returns: self

setTranslations()

Parameter Name Type Description
$translations array|\Traversable

Returns: self

setType()

Set boolean types

Parameter Name Type Description
$type int|array

Returns: self

Top