Highlighter utility function for Semantic MediaWiki
GNU GPL v2+
- Since
- 1.9
- Author
- mwjames
◆ __construct()
SMW\Highlighter::__construct |
( |
|
$type, |
|
|
|
$language = null |
|
) |
| |
- Since
- 1.9
- Parameters
-
int | $type | |
string | null | $language | |
◆ decode()
static SMW\Highlighter::decode |
( |
|
$text | ) |
|
|
static |
- Since
- 3.0
- Parameters
-
- Returns
- string
◆ factory()
static SMW\Highlighter::factory |
( |
|
$type, |
|
|
|
$language = null |
|
) |
| |
|
static |
- Since
- 1.9
- Parameters
-
string | int | $type | |
string | null | $language | |
- Returns
- Highlighter
◆ getHtml()
SMW\Highlighter::getHtml |
( |
| ) |
|
Returns html output
- Since
- 1.9
- Returns
- string
◆ getTypeId()
static SMW\Highlighter::getTypeId |
( |
|
$type | ) |
|
|
static |
Returns type id
- Since
- 1.9
- Parameters
-
- Returns
- integer
◆ hasHighlighterClass()
static SMW\Highlighter::hasHighlighterClass |
( |
|
$text, |
|
|
|
$type = null |
|
) |
| |
|
static |
- Since
- 3.0
- Parameters
-
string | $text | |
string | null | $type | |
- Returns
- booelan
◆ TYPE_ERROR
const SMW\Highlighter::TYPE_ERROR = 5 |
◆ TYPE_HELP
const SMW\Highlighter::TYPE_HELP = 7 |
◆ TYPE_INFO
const SMW\Highlighter::TYPE_INFO = 6 |
◆ TYPE_NOTE
const SMW\Highlighter::TYPE_NOTE = 8 |
◆ TYPE_NOTYPE
const SMW\Highlighter::TYPE_NOTYPE = 0 |
◆ TYPE_PROPERTY
const SMW\Highlighter::TYPE_PROPERTY = 1 |
◆ TYPE_QUANTITY
const SMW\Highlighter::TYPE_QUANTITY = 3 |
◆ TYPE_REFERENCE
const SMW\Highlighter::TYPE_REFERENCE = 10 |
◆ TYPE_SERVICE
const SMW\Highlighter::TYPE_SERVICE = 9 |
◆ TYPE_TEXT
const SMW\Highlighter::TYPE_TEXT = 2 |
◆ TYPE_WARNING
const SMW\Highlighter::TYPE_WARNING = 4 |
The documentation for this class was generated from the following file: