Semantic MediaWiki and related extensions
Static Public Member Functions | List of all members
Maps\MapsHooks Class Reference

Static Public Member Functions

static addToAdminLinks (ALTree &$admin_links_tree)
 
static onMakeGlobalVariablesScript (array &$vars)
 
static onSkinTemplateNavigation (SkinTemplate $skinTemplate, array &$links)
 
static onBeforeDisplayNoArticleText (\Article $article)
 
static onShowMissingArticle (\Article $article)
 
static onRegisterTags (array &$tags)
 
static onChangeTagsAllowedAdd (array &$allowedTags, array $tags, \User $user=null)
 
static onResourceLoaderTestModules (array &$modules, $resourceLoader)
 
static addGeoCoordsDefaultFormat (&$format, array $printRequests)
 
static addSmwSettings (array &$settings)
 

Detailed Description

Static class for hooks handled by the Maps extension.

Since
0.7

GNU GPL v2+

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

Member Function Documentation

◆ addGeoCoordsDefaultFormat()

static Maps\MapsHooks::addGeoCoordsDefaultFormat ( $format,
array  $printRequests 
)
static

Set the default format to 'map' when the requested properties are of type geographic coordinates.

TODO: have a setting to turn this off and have it off by default for #show

Since
1.0
Parameters
$formatMixed: The format (string), or false when not set yet
SMWPrintRequest[]$printRequests The print requests made
Returns
boolean

◆ addToAdminLinks()

static Maps\MapsHooks::addToAdminLinks ( ALTree &  $admin_links_tree)
static

Adds a link to Admin Links page.

Since
0.7
Parameters
ALTree$admin_links_tree
Returns
boolean

◆ onMakeGlobalVariablesScript()

static Maps\MapsHooks::onMakeGlobalVariablesScript ( array &  $vars)
static

Adds global JavaScript variables.

Since
1.0
See also
http://www.mediawiki.org/wiki/Manual:Hooks/MakeGlobalVariablesScript
Parameters
array&$varsVariables to be added into the output
Returns
boolean true in all cases

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

About | General disclaimer | Privacy policy