12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 27 ■ API <strong>Reference</strong> 869The KNOWLEDGE_BASE_QUERY_LOAD_SUCCESS also indicates that therequested results are available; this function presents an alternative that can beused across UI reloads or login/logout.Returns:isLoaded—True if query results are available; otherwise false (boolean)KBSetup_BeginLoadingLoads a maximum number <strong>of</strong> ‘‘Top Issues’’ from a given page.KBSetup_BeginLoading(numArticles, currentPage)Arguments:numArticles—The number <strong>of</strong> articles displayed per page. This istypically the constant KBASE_NUM_ARTICLES_PER_PAGE (number)currentPage—The page to display (number)KBSetup_GetArticleHeaderCountReturns the number <strong>of</strong> ‘‘Top Issues’’ articles on the current page.articleHeaderCount = KBSetup_GetArticleHeaderCount()Returns:articleHeaderCount—The number <strong>of</strong> ‘‘Top Issues’’ articles on the currentpage (number)KBSetup_GetArticleHeaderDataReturns header in<strong>for</strong>mation about a ‘‘Top Issue’’ article.articleId, title, isHotIssue, isRecentlyUpdated = iKBSetup_GetArticleHeaderData(index)Arguments:index—The index <strong>of</strong> the article to query (number)Returns:articleId—A unique articleId <strong>for</strong> the article (number)title—The title <strong>of</strong> the article (string)isHotIssue—true if the article is a ‘‘Hot Issue’’, otherwise false (boolean)isRecentlyUpdated—true if the article has been recently updated, otherwisefalse (boolean)KBSetup_GetCategoryCountReturns the number <strong>of</strong> available knowledge base categories.numCategories = KBSetup_GetCategoryCount()Returns:numCategories—The number <strong>of</strong> available knowledge base categories (number)KBSetup_GetCategoryDataReturns in<strong>for</strong>mation about a knowledge base category.categoryId, name = KBSetup_GetCategoryData(index)Arguments:index—The index <strong>of</strong> the category (number)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!