This file is one of the cornerstones of SimpleDesk; it handles displaying the post form to users, both for tickets and replies, handles editing of tickets/replies, attachments to tickets/replies and actually saving all that into the database.
Create a new ticket
All the magically common posting stuff goes in here
Saves the main ticket data.
Loads the Post a reply area
Saves the reply
Commits the action log entry for what the user has done (since 1.1), then directs the user based on where they were and what was selected: - if 'return to ticket' was not selected, return to the front page - if it was, and we edited a reply, return to the reply - if it was select, but it was a new topic/reply, return just to the topic itself
Sets up the replies section data
Parameter: $first_msg
Expected type: array
The first message for the ricket
Sets up the post box for tuckets
Parameter: $id
Expected type: string
The id of the post box
Parameter: $message
Expected type: string
The message for the post box
Parameter: $buttons
Expected type: array
Buttons on the post box
Parameter: $width
Expected type: string|int
Default: '90%'
(optional) The width of the post box, can use percents, ems, px, etc.
Prepares a reply section
Load up any and all attachments related to this ticket.
Checks attachments are valid and allowed.
Handles attachment actions such as adding or removing.
Establishes the items for the 'additional options' in the posting screen.
Checks dependencies of the current ticket to see if it can be closed.
Loads the possible permutations of canned replies.
Page created in 0.018 seconds with 11 queries.