Index: trunk/extensions/Maps/Services/Maps_MappingServices.php |
— | — | @@ -1,26 +1,16 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /** |
5 | | - * File holding the MapsMappingServices class. |
6 | | - * |
7 | | - * @file Maps_MappingServices.php |
8 | | - * @ingroup Maps |
9 | | - * |
10 | | - * @author Jeroen De Dauw |
11 | | - */ |
12 | | - |
13 | | -if ( !defined( 'MEDIAWIKI' ) ) { |
14 | | - die( 'Not an entry point.' ); |
15 | | -} |
16 | | - |
17 | | -/** |
18 | | - * Class serving as a factory for the MapsMappingService classes. |
| 5 | + * Class for interaction with MappingService objects. |
19 | 6 | * |
20 | 7 | * @since 0.6.6 |
21 | 8 | * |
| 9 | + * @file Maps_MappingServices.php |
| 10 | + * @ingroup Maps |
| 11 | + * |
22 | 12 | * @author Jeroen De Dauw |
23 | 13 | */ |
24 | | -class MapsMappingServices { |
| 14 | +final class MapsMappingServices { |
25 | 15 | |
26 | 16 | /** |
27 | 17 | * Accociative array containing service identifiers as keys and the names |
— | — | @@ -46,17 +36,6 @@ |
47 | 37 | */ |
48 | 38 | protected static $services = array(); |
49 | 39 | |
50 | | -/* TODO |
51 | | - // Remove all hooked in services that should not be available. |
52 | | - foreach ( $egMapsServices as $service => $data ) { |
53 | | - if ( !in_array( $service, $egMapsAvailableServices ) ) unset( $egMapsServices[$service] ); |
54 | | - } |
55 | | - $egMapsAvailableServices = array_keys( $egMapsServices ); |
56 | | - |
57 | | - // Enure that the default service is one of the enabled ones. |
58 | | - $egMapsDefaultService = in_array( $egMapsDefaultService, $egMapsAvailableServices ) ? $egMapsDefaultService : $egMapsAvailableServices[0]; |
59 | | - */ |
60 | | - |
61 | 40 | /** |
62 | 41 | * Registeres a service class linked to an identifier. |
63 | 42 | * Also allows automatic registration of a list of features for this service. |