SMGeoCoordsHooks Class Reference

List of all members.

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.


Detailed Description

Definition at line 14 of file SM_GeoCoordsHooks.php.


Member Function Documentation

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

Since:
1.0
Parameters:
$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
Returns:
true

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.

Since:
1.0
TODO: i18n keys still need to be moved

Returns:
true

Definition at line 77 of file SM_GeoCoordsHooks.php.

References SMWDataValueFactory::registerDatatype(), and SMWDataItem::TYPE_GEO.


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

Generated on Sun Mar 18 07:15:42 2012 for Semantic MediaWiki by  doxygen 1.5.6