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

Public Member Functions

 render (array $parameters)
 
 getMessage ()
 

Protected Member Functions

 getName ()
 
 getParameterInfo ( $type)
 
 getDefaultParameters ( $type)
 

Detailed Description

Class for the 'geodistance' parser hooks, which can calculate the geographical distance between two points.

GNU GPL v2+

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

Member Function Documentation

◆ getDefaultParameters()

Maps\MediaWiki\ParserHooks\GeoDistanceFunction::getDefaultParameters (   $type)
protected

Returns the list of default parameters.

See also
ParserHook::getDefaultParameters
Parameters
$type
Returns
array

◆ getMessage()

Maps\MediaWiki\ParserHooks\GeoDistanceFunction::getMessage ( )
See also
ParserHook::getMessage

◆ getName()

Maps\MediaWiki\ParserHooks\GeoDistanceFunction::getName ( )
protected

Gets the name of the parser hook.

See also
ParserHook::getName
Returns
string

◆ getParameterInfo()

Maps\MediaWiki\ParserHooks\GeoDistanceFunction::getParameterInfo (   $type)
protected

Returns an array containing the parameter info.

See also
ParserHook::getParameterInfo
Returns
array

◆ render()

Maps\MediaWiki\ParserHooks\GeoDistanceFunction::render ( array  $parameters)

Renders and returns the output.

See also
ParserHook::render
Parameters
array$parameters
Returns
string
Exceptions
MWException

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

About | General disclaimer | Privacy policy