Kartographer
Extensionthataddsmapstowikipages
|
Protected Member Functions | |
sanitize (&$json) | |
Performs recursive sanitizaton. More... | |
normalize (array &$json) | |
Normalizes JSON. More... | |
Protected Member Functions inherited from Kartographer\SimpleStyleParser | |
validateContent ( $json) | |
Additional Inherited Members | |
Public Member Functions inherited from Kartographer\SimpleStyleParser | |
__construct (Parser $parser, PPFrame $frame=null, array $options=[]) | |
Constructor. More... | |
parse ( $input) | |
Parses string into JSON and performs validation/sanitization. More... | |
parseObject (&$data) | |
Validate and sanitize a parsed GeoJSON data object. More... | |
normalizeAndSanitize (&$data) | |
Normalize an object. More... | |
Static Public Member Functions inherited from Kartographer\SimpleStyleParser | |
static | doCountersRecursive (array &$values, &$counters) |
|
protected |
Normalizes JSON.
array | &$json |
Reimplemented from Kartographer\SimpleStyleParser.
|
protected |
Performs recursive sanitizaton.
Does not attempt to be smart, just recurses through everything that can be dangerous even if not a valid GeoJSON.
object | array | &$json |
Reimplemented from Kartographer\SimpleStyleParser.