Function __global->edit_ticket_type

Definitions

sources/tickets2.php

  • Edit a ticket type, keeping the integer ID the same.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$ticket_type_id AUTO_LINK No No required parameter N/A N/A The ticket type ID
$ticket_type_name ?SHORT_TEXT No No required parameter N/A N/A The new ticket type text (null: do not change)
$guest_emails_mandatory BINARY No No required parameter N/A N/A Whether guest e-mail addresses are mandatory for new tickets
$search_faq BINARY No No required parameter N/A N/A Whether the FAQ should be searched before submitting a new ticket

Preview

Code (PHP)

/**
 * Edit a ticket type, keeping the integer ID the same.
 *
 * @param  AUTO_LINK $ticket_type_id The ticket type ID
 * @param  ?SHORT_TEXT $ticket_type_name The new ticket type text (null: do not change)
 * @param  BINARY $guest_emails_mandatory Whether guest e-mail addresses are mandatory for new tickets
 * @param  BINARY $search_faq Whether the FAQ should be searched before submitting a new ticket
 */

function edit_ticket_type(int $ticket_type_id, ?string $ticket_type_name, int $guest_emails_mandatory, int $search_faq)