Function Module_tickets->render_ticket_row

Definitions

site/pages/modules/tickets.php

  • Render a ticket link row.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$topic array No No required parameter N/A N/A Ticket details (from forum API)

Returns

  • A tuple: Ticket row (Tempcode), Ticket type (ID), Ticket type (String)
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Render a ticket link row.
 *
 * @param  array $topic Ticket details (from forum API)
 * @return array A tuple: Ticket row (Tempcode), Ticket type (ID), Ticket type (String)
 */

protected function render_ticket_row(array $topic) : array