Function Block_side_calendar->get_filter
Definitions
sources/blocks/side_calendar.php
- Gets the type filter, if there is one.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$filter_map | array | No | No | required parameter | N/A | N/A | What to filter according to block parameters |
$private_events | ?BINARY | No | No | required parameter | N/A | N/A | Whether to show private events (1) or public events (0) (null: both public and private) |
Returns
- The filter
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Gets the type filter, if there is one.
*
* @param array $filter_map What to filter according to block parameters
* @param ?BINARY $private_events Whether to show private events (1) or public events (0) (null: both public and private)
* @return array The filter
*/
protected function get_filter(array $filter_map, ?int $private_events) : array
* Gets the type filter, if there is one.
*
* @param array $filter_map What to filter according to block parameters
* @param ?BINARY $private_events Whether to show private events (1) or public events (0) (null: both public and private)
* @return array The filter
*/
protected function get_filter(array $filter_map, ?int $private_events) : array