Function __global->add_ticket_type
Definitions
sources/tickets2.php
- Add a ticket type.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$ticket_type_name | SHORT_TEXT | No | No | required parameter | N/A | N/A | The ticket type name |
$guest_emails_mandatory | BINARY | No | No | 0 | N/A | N/A | Whether guest e-mail addresses are mandatory for new tickets |
$search_faq | BINARY | No | No | 0 | N/A | N/A | Whether the FAQ should be searched before submitting a new ticket |
Returns
- The ticket type ID
- Type: AUTO_LINK
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Add a ticket type.
*
* @param SHORT_TEXT $ticket_type_name The ticket type name
* @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
* @return AUTO_LINK The ticket type ID
*/
function add_ticket_type(string $ticket_type_name, int $guest_emails_mandatory = 0, int $search_faq = 0) : int
* Add a ticket type.
*
* @param SHORT_TEXT $ticket_type_name The ticket type name
* @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
* @return AUTO_LINK The ticket type ID
*/
function add_ticket_type(string $ticket_type_name, int $guest_emails_mandatory = 0, int $search_faq = 0) : int