Fully Qualified Name: | Laminas\Filter\Boolean |
Extends: | AbstractFilter |
Name | Description | Defined By |
---|---|---|
__construct() | Constructor | Boolean |
__invoke() | Invoke filter as a command | AbstractFilter |
filter() | Defined by Laminas\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 |
Constructor
Parameter Name | Type | Description |
---|---|---|
$typeOrOptions | int|string|array|\Traversable|null | |
$casting | bool | |
$translations | array |
Returns:
Invoke filter as a command
Proxies to {@link filter()}
Parameter Name | Type | Description |
---|---|---|
$value | mixed |
Returns: mixed
Defined by Laminas\Filter\FilterInterface
Returns a boolean representation of $value
Parameter Name | Type | Description |
---|---|---|
$value | null|array|bool|float|int|string |
Returns: bool|mixed
Returns the casting option
Returns: bool
Retrieve options representing object state
Returns: array
Returns: array
Returns defined boolean types
Returns: int
Returns: bool
Set the working mode
Parameter Name | Type | Description |
---|---|---|
$flag | bool | When |
Returns: self
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable |
Returns: self
Parameter Name | Type | Description |
---|---|---|
$translations | array|\Traversable |
Returns: self
Set boolean types
Parameter Name | Type | Description |
---|---|---|
$type | int|string|array |
Returns: self