Static Public Member Functions | |
| static | addGeoCoordsDefaultFormat (&$format, array $printRequests, array $params) |
| Set the default format to 'map' when the requested properties are of type geographic coordinates. | |
| static | initGeoCoordsType () |
| Adds support for the geographical coordinate data type to Semantic MediaWiki. | |
Definition at line 14 of file SM_GeoCoordsHooks.php.
| static SMGeoCoordsHooks::addGeoCoordsDefaultFormat | ( | &$ | format, | |
| array $ | printRequests, | |||
| array $ | params | |||
| ) | [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
| $format | Mixed: The format (string), or false when not set yet | |
| $printRequests | Array: The print requests made | |
| $params | Array: The parameters for the query printer |
Definition at line 30 of file SM_GeoCoordsHooks.php.
References SMWPrintRequest::PRINT_THIS.
| static SMGeoCoordsHooks::initGeoCoordsType | ( | ) | [static] |
Adds support for the geographical coordinate data type to Semantic MediaWiki.
Definition at line 77 of file SM_GeoCoordsHooks.php.
References SMWDataValueFactory::registerDatatype(), and SMWDataItem::TYPE_GEO.
1.5.6