This class retrieves information about a helpdesk bucket and optionally the admin info for the admin who owns the bucket. It can also retrieve the helpdesk department information for the bucket. This class should only be instantiated by dispatchMBAPI() found in include/mbapi/mbapi.php. Something similar to the following XML should be passed to dispatchMBAPI() when you want to call the GetHelpdeskBuckets command:
<mbapi> <command><!-- None --></command> <showXMLHeader><!-- None --></showXMLHeader> <params> <hdBucketID><!-- int --></hdBucketID> <hdBucketName><!-- string --></hdBucketName> <adminIDs> <adminID><!-- int --></adminID> </adminIDs> <getAdminData><!-- int --></getAdminData> <getHelpdeskDepartmentData><!-- int --></getHelpdeskDepartmentData> <getTicketData><!-- int --></getTicketData> <sortDir><!-- None --></sortDir> <sortColumn><!-- None --></sortColumn> <recordOffset><!-- None --></recordOffset> <numRecords><!-- None --></numRecords> </params> </mbapi>
None
mbapi
command
showXMLHeader
params
hdBucketID
The ID of the bucket to fetch. This will always select at most 1 bucket.
hdBucketName
The name of the helpdesk bucket to fetch. This is a searched using a LIKE clause, so an exact, full name is not necessary.
adminIDs
A list of admin IDs whose helpdesk buckets to search for.
adminID
The ID of an admin whose related helpdesk buckets should be returned in the result set.
getAdminData
Set to 1 to return a list of all admin IDs associated with this bucket. Set to 2 to return a list of all admins and all of their data associated with this bucket.
getHelpdeskDepartmentData
Set to 1 to return a list of department IDs associated with this bucket. Set this to 2 to return a list of all departments and all of their data associated with this bucket.
getTicketData
Set to 1 to return all helpdesk ticket data for the departments selected. This can return substantial amounts of data depending on the number of tickets. Use with caution. Options: 1: Get all Data; 2: Count, group by departmentID; 3: Get all tickets NOT closed.
sortDir
sortColumn
recordOffset
numRecords