Function __global->add_event_type

Definitions

sources/calendar2.php

  • Add a calendar event type.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$title SHORT_TEXT No No required parameter N/A N/A The title of the event type
$logo ID_TEXT No No required parameter N/A N/A The theme image code
$external_feed URLPATH No No Blank (empty string) N/A N/A URL to external feed to associate with this event type

Returns

  • The ID of the event type
  • Type: AUTO_LINK
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Add a calendar event type.
 *
 * @param  SHORT_TEXT $title The title of the event type
 * @param  ID_TEXT $logo The theme image code
 * @param  URLPATH $external_feed URL to external feed to associate with this event type
 * @return AUTO_LINK The ID of the event type
 */

function add_event_type(string $title, string $logo, string $external_feed = '') : int