Fully Qualified Name: | Laminas\Filter\Callback |
Extends: | AbstractFilter |
Name | Description | Defined By |
---|---|---|
__construct() | Callback | |
__invoke() | Invoke filter as a command | AbstractFilter |
filter() | Calls the filter per callback | Callback |
getCallback() | Returns the set callback | Callback |
getCallbackParams() | Get parameters for the callback | Callback |
getOptions() | Retrieve options representing object state | AbstractFilter |
hasPcreUnicodeSupport() | AbstractFilter | |
setCallback() | Sets a new callback for this filter | Callback |
setCallbackParams() | Sets parameters for the callback | Callback |
setOptions() | AbstractFilter |
Parameter Name | Type | Description |
---|---|---|
$callbackOrOptions | callable|array|string|\Traversable | |
$callbackParams | array |
Returns:
Invoke filter as a command
Proxies to {@link filter()}
Parameter Name | Type | Description |
---|---|---|
$value | mixed |
Returns: mixed
Calls the filter per callback
Parameter Name | Type | Description |
---|---|---|
$value | mixed | Options |
Returns: mixed Result from the filter which was called
Returns the set callback
Returns: callable
Get parameters for the callback
Returns: array
Retrieve options representing object state
Returns: array
Returns: bool
Sets a new callback for this filter
Parameter Name | Type | Description |
---|---|---|
$callback | callable |
Returns: self
Sets parameters for the callback
Parameter Name | Type | Description |
---|---|---|
$params | array |
Returns: self
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable |
Returns: self