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_TEXT
The ticket type name
\BINARY
Whether guest e-mail addresses are mandatory for new tickets
\BINARY
Whether the FAQ should be searched before submitting a new ticket
\AUTO_LINK
The ticket type IDbuild_types_list(\?AUTO_LINK $selected_ticket_type_id, \?array $ticket_types_to_let_through = null
) : array
package | tickets |
---|
\?AUTO_LINK
The current selected ticket type (null: none)
\?array
List of ticket types to show regardless of access permissions (null: none)
array
A 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_LINK
The ticket type ID
\?SHORT_TEXT
The new ticket type text (null: do not change)
\BINARY
Whether guest e-mail addresses are mandatory for new tickets
\BINARY
Whether 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_TEXT
Ticket ID
array
Map of assigned members (member ID to display name)get_ticket_details(string $ticket_id, boolean $hard_error = true
) : \?array
package | tickets |
---|
string
The ticket ID
boolean
Exit with an error message if it cannot find the ticket
\?array
A 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_LINK
The member ID (null: no member)
\?integer
The ticket type (null: all ticket types)
boolean
Create the forum if it's missing
boolean
Whether to skip showing errors, returning NULL instead
\?AUTO_LINK
Forum 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 |
---|
string
The ticket ID
\AUTO_LINK
Return location for the forum ID
\AUTO_LINK
Return location for the topic ID
\AUTO_LINK
Return location for the ticket type
integer
Start offset in pagination
\?integer
Max per page in pagination (null: no limit)
mixed
The 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_LINK
The ticket type (null: fallback for old tickets)
\?array
Array 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_LINK
The member ID
\?AUTO_LINK
The ticket type (null: all ticket types)
boolean
Don't view others' tickets, even if the member has permission to
boolean
Whether to skip showing errors, returning NULL instead
boolean
Open tickets only
boolean
Whether to include first posts
array
Array of tickets, empty on failureis_non_human_email(string $subject, string $body, string $full_header) : boolean
package | tickets |
---|
string
Subject line
string
Message body
string
Message headers
boolean
Whether it should not be processedis_ticket_forum(\?AUTO_LINK $forum_id) : boolean
package | tickets |
---|
\?AUTO_LINK
The forum ID (null: private topics forum)
boolean
Whether the given forum is a ticket forumis_ticket_post_staff_only(array $post) : boolean
package | tickets |
---|
array
Array of data for the post
boolean
Whether 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 |
---|
string
The ticket ID
\LONG_TEXT
The ticket title
\LONG_TEXT
The ticket post's content
mixed
The home URL (to view the ticket) (URLPATH or Tempcode URL)
\EMAIL
Ticket owner's e-mail address, in the case of a new ticket
integer
The new ticket type, or -1 if it is a reply to an existing ticket
\?MEMBER
Posting member (null: current member)
boolean
Whether 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_LINK
The member ID
string
The ticket ID (doesn't have to exist)
integer
The ticket type (-1 reply to ticket)
\LONG_TEXT
The post title
\LONG_TEXT
The post content in Comcode format
string
The home URL
boolean
Whether the reply is staff only (invisible to ticket owner, only on Conversr)
\?TIME
The post time (null: use current time)
ticket_email_cannot_bind(string $subject, string $body, string $email, string $email_bounce_to)
package | tickets |
---|
string
Subject line of original message
string
Body of original message
string
E-mail address we tried to bind to
string
E-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 |
---|