BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
MapsDisplayMapRenderer Class Reference

Public Member Functions

 __construct (iMappingService $service)
 
 renderMap (array $params, Parser $parser)
 

Static Public Member Functions

static evilOpenLayersHack ($layers)
 

Protected Member Functions

 getMapHTML (array $params, Parser $parser, $mapName)
 
 getJSONObject (array $params, Parser $parser)
 
 handleShapeData (array &$params, Parser $parserClone)
 

Protected Attributes

 $service
 

Detailed Description

Class handling the #display_map rendering.

GNU GPL v2+

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
Kim Eik

Constructor & Destructor Documentation

MapsDisplayMapRenderer::__construct ( iMappingService  $service)

Constructor.

Parameters
iMappingService$service

Member Function Documentation

static MapsDisplayMapRenderer::evilOpenLayersHack (   $layers)
static

FIXME

Temporary hack until the mapping service handling gets a proper refactor This kind of JS construction is also rather evil and should not be done at this point

Since
3.0
Deprecated:
Parameters
string[]$layers
Returns
string[]
MapsDisplayMapRenderer::getJSONObject ( array  $params,
Parser  $parser 
)
protected

Returns a PHP object to encode to JSON with the map data.

Since
2.0
Parameters
array$params
Parser$parser
Returns
mixed
MapsDisplayMapRenderer::getMapHTML ( array  $params,
Parser  $parser,
  $mapName 
)
protected

Returns the HTML to display the map.

Since
2.0
Parameters
array$params
Parser$parser
string$mapName
Returns
string
MapsDisplayMapRenderer::renderMap ( array  $params,
Parser  $parser 
)
final

Handles the request from the parser hook by doing the work that's common for all mapping services, calling the specific methods and finally returning the resulting output.

Parameters
array$params
Parser$parser
Returns
string

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