Zend\Filter\Boolean
Synopsis
class Boolean
extends AbstractFilter
{
- // constants
- const TYPE_BOOLEAN = 1;
- const TYPE_INTEGER = 2;
- const TYPE_FLOAT = 4;
- const TYPE_STRING = 8;
- const TYPE_ZERO_STRING = 16;
- const TYPE_EMPTY_ARRAY = 32;
- const TYPE_NULL = 64;
- const TYPE_PHP = 127;
- const TYPE_FALSE_STRING = 128;
- const TYPE_LOCALIZED = 256;
- const TYPE_ALL = 511;
- // members
- protected array $constants;
- protected array $options;
- // Inherited members from AbstractFilter
- protected array $options;
- // methods
- public void __construct()
- public self setType()
- public int getType()
- public self setCasting()
- public bool getCasting()
- public self setTranslations()
- public array getTranslations()
- public string filter()
- // Inherited methods from AbstractFilter
- public static bool hasPcreUnicodeSupport()
- public self setOptions()
- public array getOptions()
- public mixed __invoke()
- protected static bool isOptions()
Hierarchy
Extends
Constants
Name | Value |
---|---|
TYPE_BOOLEAN | 1 |
TYPE_INTEGER | 2 |
TYPE_FLOAT | 4 |
TYPE_STRING | 8 |
TYPE_ZERO_STRING | 16 |
TYPE_EMPTY_ARRAY | 32 |
TYPE_NULL | 64 |
TYPE_PHP | 127 |
TYPE_FALSE_STRING | 128 |
TYPE_LOCALIZED | 256 |
TYPE_ALL | 511 |
Members
protected
- $constants — array
- $options — array
- $options
—
array
Filter options
Methods
public
- __construct() — Constructor
- filter() — Defined by Zend\Filter\FilterInterface
- getCasting() — Returns the casting option
- getTranslations()
- getType() — Returns defined boolean types
- setCasting() — Set the working mode
- setTranslations()
- setType() — Set boolean types
Inherited from Zend\Filter\AbstractFilter
protected
public
- __invoke() — Invoke filter as a command
- getOptions() — Retrieve options representing object state
- hasPcreUnicodeSupport()
- setOptions()