Function __global->render_event_box

Definitions

sources/calendar.php

  • Render an event box.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$row array No No required parameter N/A N/A Event row
$zone ID_TEXT No No _SEARCH N/A N/A Zone to link through to
$give_context boolean No No True N/A N/A Whether to include context (i.e. say WHAT this is, not just show the actual content)
$guid ID_TEXT No No Blank (empty string) N/A N/A Overridden GUID to send to templates (blank: none)
$text_summary ?Tempcode No No Null N/A N/A Text summary for result (e.g. highlighted portion of actual file from search result) (null: none)

Returns

  • The event box
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Render an event box.
 *
 * @param  array $row Event row
 * @param  ID_TEXT $zone Zone to link through to
 * @param  boolean $give_context Whether to include context (i.e. say WHAT this is, not just show the actual content)
 * @param  ID_TEXT $guid Overridden GUID to send to templates (blank: none)
 * @param  ?Tempcode $text_summary Text summary for result (e.g. highlighted portion of actual file from search result) (null: none)
 * @return Tempcode The event box
 */

function render_event_box(array $row, string $zone = '_SEARCH', bool $give_context = true, string $guid = '', ?object $text_summary = null) : object