Function Module_calendar->get_and_filter

Definitions

site/pages/modules/calendar.php

  • Gets the event filter in a simple list form.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$only_event_types boolean No No False N/A N/A Whether to only show event types

Returns

  • The filter (array of integers)
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Gets the event filter in a simple list form.
 *
 * @param  boolean $only_event_types Whether to only show event types
 * @return array The filter (array of integers)
 */

public function get_and_filter(bool $only_event_types = false) : array