Parses and sanitizes text properties of GeoJSON/simplestyle by putting them through parser.
More...
|
| __construct (Parser $parser, PPFrame $frame=null, array $options=[]) |
| Constructor.
|
|
| parse ( $input) |
| Parses string into JSON and performs validation/sanitization.
|
|
| parseObject (&$data) |
| Validate and sanitize a parsed GeoJSON data object.
|
|
| normalizeAndSanitize (&$data) |
| Normalize an object.
|
|
Parses and sanitizes text properties of GeoJSON/simplestyle by putting them through parser.
◆ __construct()
Kartographer\SimpleStyleParser::__construct |
( |
Parser |
$parser, |
|
|
PPFrame |
$frame = null , |
|
|
array |
$options = [] |
|
) |
| |
Constructor.
- Parameters
-
Parser | $parser | Parser used for wikitext processing |
PPFrame | null | $frame | |
array | $options | Set ['saveUnparsed' => true] to back up the original values of title and description in _origtitle and _origdescription |
◆ doCountersRecursive()
static Kartographer\SimpleStyleParser::doCountersRecursive |
( |
array & |
$values, |
|
|
& |
$counters |
|
) |
| |
|
static |
- Parameters
-
stdClass[] | &$values | |
stdClass | &$counters | counter-name -> integer |
- Returns
- bool|array [ marker, marker properties ]
◆ normalize()
Kartographer\SimpleStyleParser::normalize |
( |
array & |
$json | ) |
|
|
protected |
◆ normalizeAndSanitize()
Kartographer\SimpleStyleParser::normalizeAndSanitize |
( |
& |
$data | ) |
|
Normalize an object.
- Parameters
-
- Returns
- Status
◆ parse()
Kartographer\SimpleStyleParser::parse |
( |
|
$input | ) |
|
Parses string into JSON and performs validation/sanitization.
- Parameters
-
- Returns
- Status
◆ parseObject()
Kartographer\SimpleStyleParser::parseObject |
( |
& |
$data | ) |
|
Validate and sanitize a parsed GeoJSON data object.
- Parameters
-
- Returns
- Status
◆ sanitize()
Kartographer\SimpleStyleParser::sanitize |
( |
& |
$json | ) |
|
|
protected |
◆ validateContent()
Kartographer\SimpleStyleParser::validateContent |
( |
|
$json | ) |
|
|
protected |
The documentation for this class was generated from the following file:
- includes/SimpleStyleParser.php