SimpleDesk API
Procedural File: SimpleDesk-Post.php
Source Location: /source/SimpleDesk-Post.phpThis 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.
Tags:
- todo
- Finish documenting this file.
- since
- 1.0
Contains the following functions:
shd_check_attachments [line 1288]
shd_done_posting [line 1031]
void shd_done_posting (
)
Redirects the user once a ticket has been posted or replied to.
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
Tags:
- since
- 1.0
Return value
This function has no return value.[ Top ]
shd_handle_attachments [line 1477]
shd_load_attachments [line 1252]
shd_postbox [line 1145]
void shd_postbox (
$id, $message, $buttons, [ $width = '70%'] )
Parameters
- $id
- $message
- $buttons
- $width
Return value
This function has no return value.[ Top ]
shd_post_reply [line 533]
shd_post_ticket [line 35]
void shd_post_ticket (
)
Create a new ticket
Return value
This function has no return value.[ Top ]
shd_prepare_reply_context [line 1196]
shd_save_post [line 196]
shd_save_reply [line 772]
shd_save_ticket [line 261]
shd_setup_replies [line 1042]
void shd_setup_replies (
$first_msg )
Parameters
- $first_msg
Return value
This function has no return value.[ Top ]



