This class retrives information about FAQ categories. It does not retrieve the child FAQs, so is of limited usefulness. 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 GetFAQCategories command:
<mbapi> <command><!-- None --></command> <showXMLHeader><!-- None --></showXMLHeader> <params> <faqCategoryID><!-- int --></faqCategoryID> <faqCategoryName><!-- string --></faqCategoryName> <faqCategoryType><!-- int --></faqCategoryType> <getFAQData><!-- int --></getFAQData> <sortDir><!-- None --></sortDir> <sortColumn><!-- None --></sortColumn> <recordOffset><!-- None --></recordOffset> <numRecords><!-- None --></numRecords> </params> </mbapi>
None
mbapi
command
showXMLHeader
params
faqCategoryID
The ID of the FAQ category to fetch. This will always select at most 1 FAQ category.
faqCategoryName
The name of the category to fetch. This is searched using a LIKE statement.
faqCategoryType
The type of category to fetch. While by default this will be 1 for admin and 0 for user, it can be any user-defined tinyint.
getFAQData
Set this to 1 to fetch all FAQs in each category, and return them in the result set.
sortDir
sortColumn
recordOffset
numRecords