SimpleDesk API
Procedural File: SimpleDesk.template.php
Source Location: /template/SimpleDesk.template.phpThis file handles displaying the blocks of tickets for the front page, as well as the slightly customised views for the recycle bin and the list of resolved tickets.
Tags:
- since
- 1.0
Contains the following functions:
template_closedtickets [line 95]
void template_closedtickets (
)
Display the helpdesk view of resolved tickets.
This function steps through the blocks defined in SimpleDesk.php to display all the block of closed items.
All the blocks here are defined in shd_closed_tickets() and data gathered in shd_helpdesk_listing().
Tags:
- see
- template_ticket_block()
- since
- 1.0
Return value
This function has no return value.template_collapsed_ticket_block [line 219]
void template_collapsed_ticket_block (
)
Display a collapsed block.
In the front page, you are able to force a given block to be displayed in its entirety. When that happens, the other blocks are collapsed, so that they are present but their principle content is not.
Tags:
- see
- template_ticket_block()
- since
- 1.0
Return value
This function has no return value.template_main [line 23]
void template_main (
)
Display the main helpdesk view of active tickets.
This function steps through the blocks defined in SimpleDesk.php to display all the blocks that potentially would be visible, noting whether blocks have been collapsed or not, and calling to the sub-subtemplates to output collapsed and noncollapsed blocks.
All the blocks here are defined in shd_main_helpdesk() (or shd_view_block() if viewing a single block) and data gathered in shd_helpdesk_listing().
Tags:
- see
- template_collapsed_ticket_block()
- see
- template_ticket_block()
- since
- 1.0
Return value
This function has no return value.template_recyclebin [line 158]
void template_recyclebin (
)
Display the helpdesk view of recycled and partly recycled tickets.
This function steps through the blocks defined in SimpleDesk.php to display all the blocks that would be related; the list of deleted tickets, and the list of tickets with deleted replies in.
All the blocks here are defined in shd_recycle_bin() and data gathered in shd_helpdesk_listing().
Tags:
- see
- template_ticket_block()
- since
- 1.0
Return value
This function has no return value.template_shd_menu_header [line 440]
string template_shd_menu_header (
string $header, string $string )
Makes a menu header clickable/sortable.
Within the ticket blocks, it is possible to sort the blocks by column, and do so in a way that is retained as you manipulate individual blocks. Since this is transient (not pushed to the database) it needs to be recorded in the URL over time.
Tags:
- see
- template_ticket_block()
- since
- 1.0
Parameters
- string $header
- The identifier of the header to use here; related to shd_helpdesk_listing()
- string $string
- The text string to use as the header text
Return value
Returns a type string. The fully formed HTML fragment for the link, text and hint imagetemplate_ticket_block [line 244]
void template_ticket_block (
)
Display an individual, non-collapsed block.
Each front-page template uses this function to display a given block of tickets. It handles displaying the menu header, including ticket count, followed by all the different column types as listed in shd_main_helpdesk(), then to iterate through the ticket details to display each row (provided by shd_helpdesk_listing().
Tags:
- see
- shd_main_helpdesk()
- see
- shd_helpdesk_listing()
- since
- 1.0



