1 | <?php |
||
17 | final class SemanticMapsHooks { |
||
18 | |||
19 | /** |
||
20 | * Adds a link to Admin Links page. |
||
21 | * |
||
22 | * @since 0.7 |
||
23 | * |
||
24 | * @param ALTree $admin_links_tree |
||
25 | * |
||
26 | * @return boolean |
||
27 | */ |
||
28 | public static function addToAdminLinks( ALTree &$admin_links_tree ) { |
||
47 | |||
48 | /** |
||
49 | * Adds support for the geographical coordinates and shapes data type to Semantic MediaWiki. |
||
50 | * |
||
51 | * @since 2.0 |
||
52 | * |
||
53 | * @return boolean |
||
54 | */ |
||
55 | 1 | public static function initGeoDataTypes() { |
|
64 | |||
65 | /** |
||
66 | * Set the default format to 'map' when the requested properties are |
||
67 | * of type geographic coordinates. |
||
68 | * |
||
69 | * TODO: have a setting to turn this off and have it off by default for #show |
||
70 | * |
||
71 | * @since 1.0 |
||
72 | * |
||
73 | * @param $format Mixed: The format (string), or false when not set yet |
||
74 | * @param SMWPrintRequest[] $printRequests The print requests made |
||
75 | * |
||
76 | * @return boolean |
||
77 | */ |
||
78 | public static function addGeoCoordsDefaultFormat( &$format, array $printRequests ) { |
||
114 | |||
115 | } |
||
116 |