\apex\supportticket

Summary

Methods
Properties
Constants
create()
add_reply()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

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 $email

Optional, only required for public tickets

string $phone

Optional, only required for public tickets

Returns

integer —

The ID# of the newly created ticket

add_reply()

add_reply(integer  $ticket_id,string  $message)

Add reply to ticket

Parameters

integer $ticket_id

The ticket ID# to add reply to.

string $message

Message to add as reply.