Definition at line 21 of file ImageMap.php.
◆ error()
static ImageMap::error |
( |
|
$name, |
|
|
|
$line = false |
|
) |
| |
|
staticprivate |
◆ onParserFirstCallInit()
static ImageMap::onParserFirstCallInit |
( |
Parser & |
$parser | ) |
|
|
static |
◆ render()
static ImageMap::render |
( |
|
$input, |
|
|
|
$params, |
|
|
|
$parser |
|
) |
| |
|
static |
- Parameters
-
string | $input | |
array | $params | |
Parser | $parser | |
- Returns
- string HTML (Image map, or error message)
Definition at line 43 of file ImageMap.php.
References $line, $lines, $output, $title, $type, $wgNoFollowLinks, $wgUrlProtocols, BOTTOM_RIGHT, Xml\element(), error(), ConfigFactory\getDefaultInstance(), Title\newFromText(), NS_FILE, NS_MEDIA, NS_SPECIAL, tokenizeCoords(), wfFindFile(), wfIsBadImage(), and wfMessage().
◆ tokenizeCoords()
static ImageMap::tokenizeCoords |
( |
|
$count, |
|
|
|
$lineNum |
|
) |
| |
|
staticprivate |
- Parameters
-
int | $count | |
int | string | $lineNum | |
- Returns
- array|string String with error (HTML), or array of coordinates
Definition at line 394 of file ImageMap.php.
References error().
Referenced by render().
◆ $id
◆ BOTTOM_LEFT
const ImageMap::BOTTOM_LEFT = 2 |
◆ BOTTOM_RIGHT
const ImageMap::BOTTOM_RIGHT = 1 |
◆ NONE
◆ TOP_LEFT
const ImageMap::TOP_LEFT = 3 |
◆ TOP_RIGHT
const ImageMap::TOP_RIGHT = 0 |
The documentation for this class was generated from the following file: