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

Public Member Functions

 stringParse ($value)
 

Protected Member Functions

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

Protected Attributes

 $supportGeocoding = true
 
 $metaDataSeparator = '~'
 

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

Maps\LineParser::constructShapeFromLatLongValues ( array  $locations)
protected
Maps\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
Maps\LineParser::parseCoordinates ( array  $coordinateStrings)
protected
Since
3.0
Parameters
string[]$coordinateStrings
Returns
LatLongValue[]
Maps\LineParser::setBubbleDataFromParameter ( Line $line,
$params,
  $title 
)
protected
Maps\LineParser::setLinkFromParameter ( Line $line,
  $link 
)
protected
Maps\LineParser::stringParse (   $value)
See also
StringValueParser::stringParse
Since
3.0
Parameters
string$value
Returns
Line

Member Data Documentation

Maps\LineParser::$metaDataSeparator = '~'
protected
Maps\LineParser::$supportGeocoding = true
protected

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