Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | List of all members
Maps\SemanticMW\ResultPrinters\MapPrinter Class Reference
Inheritance diagram for Maps\SemanticMW\ResultPrinters\MapPrinter:
Inheritance graph
[legend]
Collaboration diagram for Maps\SemanticMW\ResultPrinters\MapPrinter:
Collaboration graph
[legend]

Public Member Functions

 __construct ( $format, $inline=true)
 
 getResultText (SMWQueryResult $res, $outputMode)
 
 getName ()
 
 getParameters ()
 
- Public Member Functions inherited from SMW\Query\ResultPrinters\ResultPrinter
 __construct ( $format, $inline=true)
 
 msg ()
 
 setRecursiveTextProcessor (RecursiveTextProcessor $recursiveTextProcessor)
 
 isEnabledFeature ( $feature)
 
 copyParser ()
 
 registerResources (array $modules=[], array $styleModules=[])
 
 getQueryMode ( $context)
 
 getName ()
 
 setShowErrors ( $show)
 
 getParameters ()
 
 getParamDefinitions (array $definitions)
 
 isExportFormat ()
 
 isDeferrable ()
 
 supportsRecursiveAnnotation ()
 
 getDefaultSort ()
 
- Public Member Functions inherited from SMW\Query\ResultPrinter
 getResult (QueryResult $results, array $fullParams, $outputMode)
 

Static Public Member Functions

static registerService (MappingService $service)
 
static registerDefaultService ( $serviceName)
 

Additional Inherited Members

- Public Attributes inherited from SMW\Query\ResultPrinters\ResultPrinter
const DEFERRED_DATA = 'deferred.data'
 
- Static Public Attributes inherited from SMW\Query\ResultPrinters\ResultPrinter
static $maxRecursionDepth = 2
 
- Protected Member Functions inherited from SMW\Query\ResultPrinters\ResultPrinter
 getResultText (QueryResult $res, $outputMode)
 
 buildResult (QueryResult $results)
 
 handleNonFileResult ( $result, QueryResult $results, $outputmode)
 
 handleParameters (array $params, $outputMode)
 
 postProcessParameters ()
 
 getLinker ( $firstcol=false)
 
 getLink (QueryResult $res, $outputMode, $classAffix='')
 
 getFurtherResultsLink (QueryResult $res, $outputMode)
 
 getErrorString (QueryResult $res)
 
 getResources ()
 
 escapeText ( $text, $outputmode)
 
 getSearchLabel ( $outputmode)
 
 linkFurtherResults (QueryResult $results)
 
 addError ( $errorMessage)
 
- Protected Attributes inherited from SMW\Query\ResultPrinters\ResultPrinter
 $params
 
 $fullParams
 
 $outputMode
 
 $results
 
 $mIntro = ''
 
 $mOutro = ''
 
 $mSearchlabel = null
 
 $mDefault = ''
 
 $mFormat
 
 $mLinkFirst
 
 $mLinkOthers
 
 $mShowHeaders = SMW_HEADERS_SHOW
 
 $mShowErrors = true
 
 $mInline
 
 $mLinker
 
 $mErrors = []
 
 $isHTML = false
 
 $hasTemplates = false
 
 $recursiveTextProcessor
 
 $transcludeAnnotation = true
 

Detailed Description

GNU GPL v2+

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
Peter Grassberger < peter.nosp@m.theo.nosp@m.ne@gm.nosp@m.ail..nosp@m.com >

Constructor & Destructor Documentation

◆ __construct()

Maps\SemanticMW\ResultPrinters\MapPrinter::__construct (   $format,
  $inline = true 
)
Parameters
string$format
bool$inline

Member Function Documentation

◆ getName()

Maps\SemanticMW\ResultPrinters\MapPrinter::getName ( )
final

Returns the internationalized name of the mapping service.

Returns
string

Implements SMW\Query\ResultPrinter.

◆ getParameters()

Maps\SemanticMW\ResultPrinters\MapPrinter::getParameters ( )

Returns a list of parameter information, for usage by Special:Ask and others.

Returns
array

◆ getResultText()

Maps\SemanticMW\ResultPrinters\MapPrinter::getResultText ( SMWQueryResult  $res,
  $outputMode 
)
final

Builds up and returns the HTML for the map, with the queried coordinate data on it.

Parameters
SMWQueryResult$res
int$outputMode
Returns
string

◆ registerService()

static Maps\SemanticMW\ResultPrinters\MapPrinter::registerService ( MappingService  $service)
static
Since
3.4 FIXME: this is a temporary hack that should be replaced when SMW allows for dependency injection in query printers.
Parameters
MappingService$service

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

About | General disclaimer | Privacy policy