add_ticket_type
build_types_list
check_ticket_access
delete_ticket_by_topic_id
delete_ticket_type
edit_ticket_type
email_comcode_from_html
email_comcode_from_text
find_ticket_assigned_to
get_ticket_details
get_ticket_forum_id
get_ticket_posts
get_ticket_type
get_tickets
incoming_ticket_email_script
is_non_human_email
is_ticket_forum
is_ticket_post_staff_only
send_ticket_email
ticket_add_post
ticket_email_cannot_bind
ticket_incoming_message
ticket_incoming_scan
ticket_outgoing_message
update_ticket_type_lead_times
add_ticket_type(\SHORT_TEXT $ticket_type_name, \BINARY $guest_emails_mandatory= 0, \BINARY $search_faq= 0) : \AUTO_LINK
| package | tickets |
|---|
\SHORT_TEXTThe ticket type name
\BINARYWhether guest e-mail addresses are mandatory for new tickets
\BINARYWhether the FAQ should be searched before submitting a new ticket
\AUTO_LINKThe ticket type IDbuild_types_list(\?AUTO_LINK $selected_ticket_type_id, \?array $ticket_types_to_let_through = null) : array
| package | tickets |
|---|
\?AUTO_LINKThe current selected ticket type (null: none)
\?arrayList of ticket types to show regardless of access permissions (null: none)
arrayA map between ticket types, and template-ready details about themcheck_ticket_access(string $id) : \MEMBER
delete_ticket_by_topic_id(\AUTO_LINK $topic_id)
delete_ticket_type(\AUTO_LINK $ticket_type_id)
edit_ticket_type(\AUTO_LINK $ticket_type_id, \?SHORT_TEXT $ticket_type_name, \BINARY $guest_emails_mandatory, \BINARY $search_faq)
| package | tickets |
|---|
\AUTO_LINKThe ticket type ID
\?SHORT_TEXTThe new ticket type text (null: do not change)
\BINARYWhether guest e-mail addresses are mandatory for new tickets
\BINARYWhether the FAQ should be searched before submitting a new ticket
email_comcode_from_html(string $body) : string
email_comcode_from_text(string $body) : string
find_ticket_assigned_to(\ID_TEXT $ticket_id) : array
| package | tickets |
|---|
\ID_TEXTTicket ID
arrayMap of assigned members (member ID to display name)get_ticket_details(string $ticket_id, boolean $hard_error = true) : \?array
| package | tickets |
|---|
stringThe ticket ID
booleanExit with an error message if it cannot find the ticket
\?arrayA tuple: The ticket title, the topic ID, the ticket type ID, the ticket owner (null: not found)get_ticket_forum_id(\?AUTO_LINK $member= null, \?integer $ticket_type_id= null, boolean $create= false, boolean $silent_error_handling= false) : \?AUTO_LINK
| package | tickets |
|---|
\?AUTO_LINKThe member ID (null: no member)
\?integerThe ticket type (null: all ticket types)
booleanCreate the forum if it's missing
booleanWhether to skip showing errors, returning NULL instead
\?AUTO_LINKForum ID (null: not found)get_ticket_posts(string $ticket_id, \AUTO_LINK $forum, \AUTO_LINK $topic_id, \AUTO_LINK $ticket_type, integer $start= 0, \?integer $max= null) : mixed
| package | tickets |
|---|
stringThe ticket ID
\AUTO_LINKReturn location for the forum ID
\AUTO_LINKReturn location for the topic ID
\AUTO_LINKReturn location for the ticket type
integerStart offset in pagination
\?integerMax per page in pagination (null: no limit)
mixedThe array of maps (Each map is: title, message, member, date) (null: no such ticket)get_ticket_type(\?AUTO_LINK $ticket_type_id) : \?array
| package | tickets |
|---|
\?AUTO_LINKThe ticket type (null: fallback for old tickets)
\?arrayArray of properties (null: ticket type not found)get_tickets(\AUTO_LINK $member, \?AUTO_LINK $ticket_type_id= null, boolean $override_view_others_tickets= false, boolean $silent_error_handling= false, boolean $open_only= false, boolean $include_first_posts= false) : array
| package | tickets |
|---|
\AUTO_LINKThe member ID
\?AUTO_LINKThe ticket type (null: all ticket types)
booleanDon't view others' tickets, even if the member has permission to
booleanWhether to skip showing errors, returning NULL instead
booleanOpen tickets only
booleanWhether to include first posts
arrayArray of tickets, empty on failureis_non_human_email(string $subject, string $body, string $full_header) : boolean
| package | tickets |
|---|
stringSubject line
stringMessage body
stringMessage headers
booleanWhether it should not be processedis_ticket_forum(\?AUTO_LINK $forum_id) : boolean
| package | tickets |
|---|
\?AUTO_LINKThe forum ID (null: private topics forum)
booleanWhether the given forum is a ticket forumis_ticket_post_staff_only(array $post) : boolean
| package | tickets |
|---|
arrayArray of data for the post
booleanWhether the post's staff onlysend_ticket_email(string $ticket_id, \LONG_TEXT $title, \LONG_TEXT $post, mixed $ticket_url, \EMAIL $uid_email, integer $ticket_type_id_if_new, \?MEMBER $new_poster= null, boolean $auto_created= false)
| package | tickets |
|---|
stringThe ticket ID
\LONG_TEXTThe ticket title
\LONG_TEXTThe ticket post's content
mixedThe home URL (to view the ticket) (URLPATH or Tempcode URL)
\EMAILTicket owner's e-mail address, in the case of a new ticket
integerThe new ticket type, or -1 if it is a reply to an existing ticket
\?MEMBERPosting member (null: current member)
booleanWhether the ticket was auto-created
ticket_add_post(\AUTO_LINK $member, string $ticket_id, integer $ticket_type_id, \LONG_TEXT $title, \LONG_TEXT $post, string $ticket_url, boolean $staff_only= false, \?TIME $time_post= null)
It has the same return value as make_post_forum_topic().
| package | tickets |
|---|
\AUTO_LINKThe member ID
stringThe ticket ID (doesn't have to exist)
integerThe ticket type (-1 reply to ticket)
\LONG_TEXTThe post title
\LONG_TEXTThe post content in Comcode format
stringThe home URL
booleanWhether the reply is staff only (invisible to ticket owner, only on Conversr)
\?TIMEThe post time (null: use current time)
ticket_email_cannot_bind(string $subject, string $body, string $email, string $email_bounce_to)
| package | tickets |
|---|
stringSubject line of original message
stringBody of original message
stringE-mail address we tried to bind to
stringE-mail address of sender (usually the same as $email, but not if it was a forwarded e-mail)
update_ticket_type_lead_times()
This is a query-intensive function, so should only be run occasionally.
| package | tickets |
|---|