1 | <?php |
||
3 | class MapLayerExtension extends DataExtension |
||
4 | { |
||
5 | public static $many_many = array( |
||
6 | 'MapLayers' => 'MapLayer', |
||
7 | ); |
||
8 | |||
9 | public static $belongs_many_many_extraFields = array( |
||
10 | 'MapLayers' => array( |
||
11 | 'SortOrder' => 'Int', |
||
12 | ), |
||
13 | ); |
||
14 | |||
15 | 1 | public function updateCMSFields(FieldList $fields) |
|
30 | |||
31 | 1 | /** |
|
32 | * Only set has geo to true if layers exist |
||
33 | * @param boolean &$hasGeo will be set to true if any layers |
||
34 | */ |
||
35 | public function updateHasGeo(&$hasGeo) |
||
41 | |||
42 | /** |
||
43 | * Add layers if the exist to a map from the MapExtension |
||
44 | * @param MapAPI &$map object representing the map |
||
45 | * @param boolean &$autozoom true to auto zoom, false not to |
||
46 | */ |
||
47 | public function updateBasicMap(&$map, &$autozoom) |
||
56 | } |
||
57 |