Function __global->adjust_event_dates_for_a_recurrence

Definitions

sources/calendar.php

  • Adjust an event row to match a recurrence on a specific day.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$day string No No required parameter N/A N/A A day (Y-m-d)
$event array No No required parameter N/A N/A The event row
$timezone string No No required parameter N/A N/A Timezone of the viewer

Returns

  • Adjusted event row
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Adjust an event row to match a recurrence on a specific day.
 *
 * @param  string $day A day (Y-m-d)
 * @param  array $event The event row
 * @param  string $timezone Timezone of the viewer
 * @return array Adjusted event row
 */

function adjust_event_dates_for_a_recurrence(string $day, array $event, string $timezone) : array