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 $attribs, $image, $input, $line, $lines, $link, $name, $options, $output, $parent, $parser, $title, $type, $value, $wgNoFollowLinks, $wgUrlProtocols, as, BOTTOM_RIGHT, captcha-old\count, Xml\element(), error(), ConfigFactory\getDefaultInstance(), list, Title\newFromText(), NS_FILE, NS_MEDIA, NS_SPECIAL, text, 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 392 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: