Function __global->_get_schedule_code_event_id

Definitions

sources/calendar2.php

  • Get the ID of the calendar_events event for the provided scheduled hook and id.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$hook ID_TEXT No No required parameter N/A N/A Hook to run under systems/commandr_scheduled
$id string No No required parameter N/A N/A Unspecified identifier for the resource behind this scheduled event, for future querying to find said event; also passed to the Commandr hook

Returns

  • calendar_events id (null: event was not scheduled)
  • Type: ?AUTO_LINK
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the ID of the calendar_events event for the provided scheduled hook and id.
 *
 * @param  ID_TEXT $hook Hook to run under systems/commandr_scheduled
 * @param  string $id Unspecified identifier for the resource behind this scheduled event, for future querying to find said event; also passed to the Commandr hook
 * @return ?AUTO_LINK calendar_events id (null: event was not scheduled)
 */

function _get_schedule_code_event_id(string $hook, string $id) : ?int