Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct (array $tokens=[]) | |
getTokens () | |
addFromDesciption (Description $description) | |
setOutputFormat ( $outputFormat) | |
highlight ( $text, $type=self::HL_BOLD) | |
Public Attributes | |
const | HL_WIKI = 'HL_WIKI' |
const | HL_BOLD = 'HL_BOLD' |
const | HL_SPAN = 'HL_SPAN' |
const | HL_UNDERLINE = 'HL_UNDERLINE' |
For a wildcard search, build tokens from the query string, and allow to highlight them in the result set.
GNU GPL v2+
SMW\Query\QueryToken::__construct | ( | array | $tokens = [] | ) |
array | $tokens |
SMW\Query\QueryToken::addFromDesciption | ( | Description | $description | ) |
Description | $description |
SMW\Query\QueryToken::getTokens | ( | ) |
SMW\Query\QueryToken::highlight | ( | $text, | |
$type = self::HL_BOLD |
|||
) |
string | $text | |
type | $text |
SMW\Query\QueryToken::setOutputFormat | ( | $outputFormat | ) |
Sets format information (|?Foo#-hl) from a result printer
string | $outputFormat |
const SMW\Query\QueryToken::HL_WIKI = 'HL_WIKI' |
Highlighter marker type