Kartographer
Extensionthataddsmapstowikipages
Kartographer\State Class Reference

Stores information about map tags on page in ParserOutput. More...

Public Member Functions

 hasValidTags ()
 
 setValidTags ()
 
 hasBrokenTags ()
 
 setBrokenTags ()
 
 useMaplink ()
 
 getMaplinks ()
 
 useMapframe ()
 
 getMapframes ()
 
 addInteractiveGroups (array $groups)
 
 getInteractiveGroups ()
 
 addRequestedGroups (array $groups)
 
 getRequestedGroups ()
 
 getCounters ()
 
 setCounters (stdClass $counters)
 
 addData ( $key, $data)
 
 getData ()
 

Static Public Member Functions

static getState (ParserOutput $output)
 Retrieves an instance of self from ParserOutput, if present. More...
 
static getOrCreate (ParserOutput $output)
 Retrieves an instance of self from ParserOutput, initializing it anew if not present. More...
 

Public Attributes

const DATA_KEY = 'kartographer'
 
const VERSION = 1
 

Detailed Description

Stores information about map tags on page in ParserOutput.

Member Function Documentation

◆ getOrCreate()

static Kartographer\State::getOrCreate ( ParserOutput  $output)
static

Retrieves an instance of self from ParserOutput, initializing it anew if not present.

Parameters
ParserOutput$output
Returns
State

◆ getState()

static Kartographer\State::getState ( ParserOutput  $output)
static

Retrieves an instance of self from ParserOutput, if present.

Parameters
ParserOutput$output
Returns
self|null

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