create()
create(integer $userid,integer $admin_id,integer $dept_id,string $subject,string $message,string $full_name = '',string $email = '',string $phone = ''): integer
Create a new ticket
Parameters
integer | $userid | The ID# of the user to open a ticket on. 0 = public |
integer | $admin_id | The ID# of the administrator to open tikcet on. 0 = unassigned. |
integer | $dept_id | The ID# of the department to assign ticket to. |
string | $subject | Subject of the ticket |
string | $message | The contents of the message to submit |
string | $full_name | Optional, only required for public tickets |
string | Optional, only required for public tickets |
|
string | $phone | Optional, only required for public tickets |
Returns
integer —The ID# of the newly created ticket