Function __global->get_tickets

Definitions

sources/tickets.php

  • Get an array of tickets for the given member and ticket type.If the member has permission to see others' tickets, it will be a list of all tickets in the system, restricted by ticket type as appropriate. Otherwise, it will be a list of that member's tickets, as restricted by ticket type.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$filters array [] N/A N/A A map of filters; supports: ticket_type_id (AUTO_LINK), only_owner_id (MEMBER), only_assigned_id (MEMBER), only_open (boolean)
$include_first_posts boolean False N/A N/A Whether to include first posts
$silent_error_handling boolean False N/A N/A Whether to skip showing errors, returning null instead

Return

  • Array of tickets, empty on failure
  • Type: array
  • Set: N/A
  • Range: N/A