This class retrieves FAQ information form the database including its parent category. It can be used to search for FAQs on bot question and category criteria. 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 GetFAQs command:
<mbapi> <command><!-- None --></command> <showXMLHeader><!-- None --></showXMLHeader> <params> <faqID><!-- int --></faqID> <faqCategoryID><!-- int --></faqCategoryID> <faqQuestion><!-- string --></faqQuestion> <faqAnswer><!-- string --></faqAnswer> <faqCategoryName><!-- string --></faqCategoryName> <faqCategoryType><!-- int --></faqCategoryType> <faqDateCreatedLessThan><!-- int --></faqDateCreatedLessThan> <faqDateCreated><!-- int --></faqDateCreated> <faqDateCreatedGreaterThan><!-- int --></faqDateCreatedGreaterThan> <sortDir><!-- None --></sortDir> <sortColumn><!-- None --></sortColumn> <recordOffset><!-- None --></recordOffset> <numRecords><!-- None --></numRecords> </params> </mbapi>
None
mbapi
command
showXMLHeader
params
faqID
The ID of the FAQ to fetch. This will always select at most 1 FAQ.
faqCategoryID
The ID of the FAQ category to fetch. This will fetch all questions in the category.
faqQuestion
The FAQ question to fetch. This is searched using a LIKE statement.
faqAnswer
The FAQ answer to fetch. This is searched using a LIKE statement.
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.
faqDateCreatedLessThan
The maximum UNIX timestamp for which a FAQ in the result set was created.
faqDateCreated
The exact UNIX timestamp for which a FAQ in the result set was created.
faqDateCreatedGreaterThan
The minimum UNIX timestamp for which a FAQ in the result set was created
sortDir
sortColumn
recordOffset
numRecords