This file deals with some of the items required by the helpdesk, but are primarily supporting functions; they're not the principle functions that drive the admin area.
It is subject to given parameters (start, number of items, order/sorting), parses the language strings and adds the parameter information provided.
Parameter: $start
Expected type: int
Number of items into the log to start (for pagination). If -1, return everything. If nothing is given, fall back to 0, i.e the first log item.
Parameter: $items_per_page
Expected type: int
Default: 10
How many items to load. Default to 10 items.
Parameter: $sort
Expected type: string
Default: 'la.log_time'
SQL clause to state which column(s) to order the data by. By default it orders by log_time.
Parameter: $order
Expected type: string
Default: 'DESC'
SQL clause to state whether the order is ascending or descending. Defaults to descending.
Parameter: $clause
Expected type: string
Default: ''
An SQL fragment that forms a WHERE clause to limit log items, e.g. to load a specific ticket or specific member's log items.
This function gets the total number of items logged in the helpdesk log, for the purposes of establishing the number of pages there should be in the page-index.
Parameter: $clause
Expected type: string
Default: ''
An SQL fragment that forms a WHERE clause to limit log items, e.g. to load a specific ticket or specific member's log items.
Perform all the operations required for SimpleDesk to safely start operations inside the admin panel.
Parameter: $admin_areas
Expected type: array
The full admin area array from SMF's Admin.php.
Add the SimpleDesk option into the Core Features page inside the admin panel.
Parameter: $core_features
Expected type: array
The array of Core Features as provided by ManageSettings.php
All of the parameters are the normal variables provided by ManagePermissions.php to its integration hook.
Parameter: $permissionGroups
Expected type: array
The array of groups of permissions
Parameter: $permissionList
Expected type: array
The master list of permissions themselves
Parameter: $leftPermissionGroups
Expected type: array
The list of permission groups that are displayed on the left hand side of the screen in Classic Mode
Parameter: $hiddenPermissions
Expected type: array
A list of permissions to be hidden in the event of features being disabled
Parameter: $relabelPermissions
Expected type: array
A list of permissions to be renamed depending on features being active
Intergrates into SMF's admin search.
Parameter: $language_files
Expected type: array
language files to include.
Parameter: $include_files
Expected type: array
Files to load.
Parameter: $settings_search
Expected type: array
Settings to search.
Removes an attachment when removed from SMF.
Parameter: $attach
Expected type: array
All attachment IDs removed.
Converts helpdesk body length to match SMF's.
Parameter: $body_type
Expected type: array
Default: 'null'
Either text or other.
Adds SimpleDesk language files into our search location.
Parameter: $themes
Expected type: array
all the language directories avaiable.
Parameter: $lang_dirs
Expected type: mixed
Tracks a change to our options/configvars.
Parameter: $save_vars
Expected type: array
Passed before we do the updateDBSettings but after everything else is ready.
Logs a change in our admin area.
Parameter: $action
Expected type: string
The area this was from.
Parameter: $extra
Expected type: array
An array of extra elements, in the following format. (required) string $action The action performed. (optional) string $setting During a setting update, this is the variable we changed. (optional) string $type The subaction peformed or during a setting update, int/string/etc. (optional) int $id The ID of the item we performed the action on. (optional) string $direction During a reorder up/down operation which way we moved. (optional) int $to The ID of the destination item used during copy/move operation. (optional) int $from The ID of the source item used during the copy/move operation
It is subject to given parameters (start, number of items, order/sorting), parses the language strings and adds the parameter information provided.
Parameter: $start
Expected type: int
Number of items into the log to start (for pagination). If -1, return everything. If nothing is given, fall back to 0, i.e the first log item.
Parameter: $items_per_page
Expected type: int
Default: 10
How many items to load. Default to 10 items.
Parameter: $sort
Expected type: string
Default: 'la.log_time'
SQL clause to state which column(s) to order the data by. By default it orders by log_time.
Parameter: $order
Expected type: string
Default: 'DESC'
SQL clause to state whether the order is ascending or descending. Defaults to descending.
This function gets the total number of items logged in the helpdesk admin log, for the purposes of establishing the number of pages there should be in the page-index.
Page created in 0.016 seconds with 11 queries.