Function __global->get_ticket_meta_details

Definitions

sources/tickets2.php

  • Get ticket details, except actual posts or ticket type information.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$ticket_id string No No required parameter N/A N/A The ticket ID
$hard_error boolean No No True N/A N/A Exit with an error message if it cannot find the ticket

Returns

  • A tuple: The ticket title, the topic ID, the ticket type ID, the ticket owner (null: not found)
  • Type: ?array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get ticket details, except actual posts or ticket type information.
 *
 * @param  string $ticket_id The ticket ID
 * @param  boolean $hard_error Exit with an error message if it cannot find the ticket
 * @return ?array A tuple: The ticket title, the topic ID, the ticket type ID, the ticket owner (null: not found)
 */

function get_ticket_meta_details(string $ticket_id, bool $hard_error = true) : ?array