Semantic MediaWiki and related extensions
Public Member Functions | Protected Member Functions | List of all members
Maps\Presentation\WikitextParsers\LineParser Class Reference
Inheritance diagram for Maps\Presentation\WikitextParsers\LineParser:
Inheritance graph
[legend]
Collaboration diagram for Maps\Presentation\WikitextParsers\LineParser:
Collaboration graph
[legend]

Public Member Functions

 setGeocoder (Geocoder $geocoder)
 
 parse ( $value)
 

Protected Member Functions

 constructShapeFromLatLongValues (array $locations)
 
 parseCoordinates (array $coordinateStrings)
 
 handleCommonParams (array &$params, Line &$line)
 
 setLinkFromParameter (Line &$line, $link)
 
 setBubbleDataFromParameter (Line &$line, &$params, $title)
 

Detailed Description

ValueParser that parses the string representation of a line.

Since
3.0

GNU GPL v2+

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

Member Function Documentation

◆ handleCommonParams()

Maps\Presentation\WikitextParsers\LineParser::handleCommonParams ( array &  $params,
Line $line 
)
protected

This method requires that parameters are positionally correct,

  1. Link (one parameter) or bubble data (two parameters)
  2. Stroke data (three parameters)
  3. Fill data (two parameters) e.g ...title~text~strokeColor~strokeOpacity~strokeWeight~fillColor~fillOpacity
Since
3.0
Parameters
array$params
Line$line

◆ parse()

Maps\Presentation\WikitextParsers\LineParser::parse (   $value)
See also
StringValueParser::stringParse
Since
3.0
Parameters
string$value
Returns
Line

◆ parseCoordinates()

Maps\Presentation\WikitextParsers\LineParser::parseCoordinates ( array  $coordinateStrings)
protected
Since
3.0
Parameters
string[]$coordinateStrings
Returns
LatLongValue[]

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

About | General disclaimer | Privacy policy