684. Class

684.1. Zend\Filter\Boolean

684.1.1. Methods

684.1.1.1. __construct

__construct()

Constructor

Parameters:
  • array|Traversable|int|null
  • bool
  • array

684.1.1.2. setType

setType()

Set boolean types

Parameters:integer|array
Throws ExceptionInvalidArgumentException:
 
Return type:Boolean

684.1.1.3. getType

getType()

Returns defined boolean types

Return type:int

684.1.1.4. setCasting

setCasting()

Set the working mode

Parameters:bool – When true this filter works like cast When false it recognises only true and false and all other values are returned as is
Return type:Boolean

684.1.1.5. getCasting

getCasting()

Returns the casting option

Return type:bool

684.1.1.6. setTranslations

setTranslations()

@param array|Traversable $translations

Return type:Boolean

684.1.1.7. getTranslations

getTranslations()

@return array

684.1.1.8. filter

filter()

Defined by ZendFilterFilterInterface

Returns a boolean representation of $value

Parameters:string
Return type:string

684.1.2. Constants

684.1.2.1. TYPE_BOOLEAN

684.1.2.2. TYPE_INTEGER

684.1.2.3. TYPE_FLOAT

684.1.2.4. TYPE_STRING

684.1.2.5. TYPE_ZERO_STRING

684.1.2.6. TYPE_EMPTY_ARRAY

684.1.2.7. TYPE_NULL

684.1.2.8. TYPE_PHP

684.1.2.9. TYPE_FALSE_STRING

684.1.2.10. TYPE_LOCALIZED

684.1.2.11. TYPE_ALL