Stores information about map tags on page in ParserOutput.
More...
|
static | getState (ParserOutput $output) |
| Retrieves an instance of self from ParserOutput, if present.
|
|
static | getOrCreate (ParserOutput $output) |
| Retrieves an instance of self from ParserOutput.
|
|
Stores information about map tags on page in ParserOutput.
◆ addData()
Kartographer\State::addData |
( |
|
$key, |
|
|
array |
$data |
|
) |
| |
◆ addInteractiveGroups()
Kartographer\State::addInteractiveGroups |
( |
array |
$groups | ) |
|
◆ addRequestedGroups()
Kartographer\State::addRequestedGroups |
( |
array |
$groups | ) |
|
◆ getCounters()
Kartographer\State::getCounters |
( |
| ) |
|
◆ getData()
Kartographer\State::getData |
( |
| ) |
|
- Returns
- array[] Associative key-value array, build up by {
- See also
- addData}
◆ getInteractiveGroups()
Kartographer\State::getInteractiveGroups |
( |
| ) |
|
◆ getMapframes()
Kartographer\State::getMapframes |
( |
| ) |
|
- Returns
- int Number of mapframes.
◆ getMaplinks()
Kartographer\State::getMaplinks |
( |
| ) |
|
- Returns
- int Number of maplinks.
◆ getOrCreate()
static Kartographer\State::getOrCreate |
( |
ParserOutput |
$output | ) |
|
|
static |
Retrieves an instance of self from ParserOutput.
Creates a new instances and saves it into the ParserOutput, if needed.
- Parameters
-
- Returns
- State
◆ getRequestedGroups()
Kartographer\State::getRequestedGroups |
( |
| ) |
|
- Returns
- int[] Group name => original index map (flipped version of addRequestedGroups)
◆ getState()
static Kartographer\State::getState |
( |
ParserOutput |
$output | ) |
|
|
static |
Retrieves an instance of self from ParserOutput, if present.
- Parameters
-
- Returns
- self|null
◆ hasBrokenTags()
Kartographer\State::hasBrokenTags |
( |
| ) |
|
◆ hasValidTags()
Kartographer\State::hasValidTags |
( |
| ) |
|
◆ setCounters()
Kartographer\State::setCounters |
( |
stdClass |
$counters | ) |
|
The documentation for this class was generated from the following file: