Kartographer
Extension that adds maps to wiki pages
Loading...
Searching...
No Matches
Kartographer\Tag\LegacyTagHandler Class Reference

Base class for all <map...> tags. More...

+ Inheritance diagram for Kartographer\Tag\LegacyTagHandler:
+ Collaboration diagram for Kartographer\Tag\LegacyTagHandler:

Public Member Functions

 __construct (Config $config, LanguageNameUtils $languageCodeValidator)
 
 handle (?string $input, array $args, Parser $parser, PPFrame $frame)
 Entry point for all tags.
 

Static Public Member Functions

static finalParseStep (State $state, ContentMetadataCollector $parserOutput, bool $outputAllLiveData, ParserFunctionTracker $tracker)
 Handles the last step of parse process.
 

Public Attributes

const TAG = ''
 Lower case name of the XML-style parser tag, e.g.
 

Protected Member Functions

 render (PartialWikitextParser $parser, bool $serverMayRenderOverlays)
 When overridden in a descendant class, returns tag HTML.
 
 saveData (State $state, array $geometries)
 
 getTargetLanguageCode ()
 
 getOutput ()
 

Protected Attributes

MapTagArgumentValidator $args
 
Config $config
 
Parser $parser
 

Detailed Description

Base class for all <map...> tags.

@license MIT

Member Function Documentation

◆ finalParseStep()

static Kartographer\Tag\LegacyTagHandler::finalParseStep ( State $state,
ContentMetadataCollector $parserOutput,
bool $outputAllLiveData,
ParserFunctionTracker $tracker )
static

Handles the last step of parse process.

Parameters
State$state
ContentMetadataCollector$parserOutput
bool$outputAllLiveData
ParserFunctionTracker$tracker

◆ handle()

Kartographer\Tag\LegacyTagHandler::handle ( ?string $input,
array $args,
Parser $parser,
PPFrame $frame )

Entry point for all tags.

Parameters
string | null$input
array<string,string>$args
Parser$parser
PPFrame$frame
Returns
string

◆ render()

Kartographer\Tag\LegacyTagHandler::render ( PartialWikitextParser $parser,
bool $serverMayRenderOverlays )
abstractprotected

When overridden in a descendant class, returns tag HTML.

Parameters
PartialWikitextParser$parser
bool$serverMayRenderOverlaysIf the map server should attempt to render GeoJSON overlays via their group id
Returns
string

Reimplemented in Kartographer\Tag\LegacyMapFrame, and Kartographer\Tag\LegacyMapLink.

Member Data Documentation

◆ TAG

const Kartographer\Tag\LegacyTagHandler::TAG = ''

Lower case name of the XML-style parser tag, e.g.

"mapframe". Currently expected to start with "map…" by the {

See also
State} class.

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