Class Knowledge
Knowledge class
Syntax
Constructors
Knowledge()
Initializes a new instance of the Knowledge class.
Declaration
Knowledge
Methods
buildExternalEntryURLWithParser(Integer,Parser)
Builds a URL to the customer center to view a knowledge-base entry.
Declaration
String buildExternalEntryURLWithParser(Integer kbId, Parser parser)
Parameters
Type | Name | Description |
---|---|---|
Integer | kbId | The ID of the knowledge-base entry to link to. |
Parser | parser | The parser to use to parse the URl. |
Returns
Type | Description |
---|---|
String | The URL to the knowledge-base entry. |
Remarks
Fetches the baseUrl from the registry table with reg_id 61. Then it parses the URL with the input parser, and returns the URL.
rebuildFaqSearch(Integer,String)
Rebuilds the FAQ search base based on the kbEntryId.
Declaration
Void rebuildFaqSearch(Integer kbEntryId, String originalTitle)
Parameters
Type | Name | Description |
---|---|---|
Integer | kbEntryId | |
String | originalTitle |
Returns
Type | Description |
---|---|
Void |
Remarks
Supply the originalTitle since the title is weighted higher than words in the Question and Answer sections.