Function __global->create_selection_list_events

Definitions

sources/calendar.php

  • Get a list of events to edit.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$only_owned ?MEMBER No No required parameter N/A N/A Only show events owned by this member (null: no such limitation)
$it ?AUTO_LINK No No required parameter N/A N/A Event to select by default (null: no specific default)
$edit_viewable_events boolean No No True N/A N/A Whether owned public events should be shown

Returns

  • The list
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a list of events to edit.
 *
 * @param  ?MEMBER $only_owned Only show events owned by this member (null: no such limitation)
 * @param  ?AUTO_LINK $it Event to select by default (null: no specific default)
 * @param  boolean $edit_viewable_events Whether owned public events should be shown
 * @return Tempcode The list
 */

function create_selection_list_events(?int $only_owned, ?int $it, bool $edit_viewable_events = true) : object