Kartographer
Extensionthataddsmapstowikipages
Kartographer\Tests\MockSimpleStyleParser Class Reference
+ Inheritance diagram for Kartographer\Tests\MockSimpleStyleParser:
+ Collaboration diagram for Kartographer\Tests\MockSimpleStyleParser:

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)
 

Member Function Documentation

◆ normalize()

Kartographer\Tests\MockSimpleStyleParser::normalize ( array &  $json)
protected

Normalizes JSON.

Parameters
array&$json
Returns
Status

Reimplemented from Kartographer\SimpleStyleParser.

◆ sanitize()

Kartographer\Tests\MockSimpleStyleParser::sanitize ( $json)
protected

Performs recursive sanitizaton.

Does not attempt to be smart, just recurses through everything that can be dangerous even if not a valid GeoJSON.

Parameters
object | array&$json

Reimplemented from Kartographer\SimpleStyleParser.


The documentation for this class was generated from the following file: