get_ticket_forum_id (line 31)
Get the forum ID for a given ticket type and member, taking the ticket_member_forums and ticket_type_forums options into account.
?AUTO_LINK
get_ticket_forum_id
([?AUTO_LINK $member = NULL], [?integer $ticket_type = NULL], [boolean $create = false], [boolean $silent_error_handling = false])
-
?AUTO_LINK
$member: The member ID (NULL: no member)
-
?integer
$ticket_type: The ticket type (NULL: all ticket types)
-
boolean
$create: Create the forum if it's missing
-
boolean
$silent_error_handling: Whether to skip showing errors, returning NULL instead
is_ticket_forum (line 79)
Returns whether the given forum ID is for a ticket forum (subforum of the root ticket forum).
boolean
is_ticket_forum
(AUTO_LINK $forum_id)
-
AUTO_LINK
$forum_id: The forum ID