1 | <?php |
||
3 | class PointsOfInterestLayerExtension extends DataExtension |
||
4 | { |
||
5 | public static $many_many = array( |
||
6 | 'PointsOfInterestLayers' => 'PointsOfInterestLayer', |
||
7 | ); |
||
8 | |||
9 | public static $belongs_many_many_extraFields = array( |
||
10 | 'PointsOfInterestLayers' => array( |
||
11 | 'SortOrder' => 'Int', |
||
12 | ), |
||
13 | ); |
||
14 | |||
15 | /** |
||
16 | * Only set has geo to true if layers exist |
||
17 | * @param boolean &$hasGeo will be set to true if any layers |
||
18 | */ |
||
19 | public function updateHasGeo(&$hasGeo) { |
||
24 | 2 | ||
25 | 2 | /** |
|
26 | 2 | * Update cms fields - add list of POIs. |
|
27 | 2 | * |
|
28 | 2 | * @param FieldList $fields list of existing fields on the object |
|
29 | 2 | */ |
|
30 | public function updateCMSFields(FieldList $fields) |
||
44 | |||
45 | /** |
||
46 | * Use extension point to add the markers |
||
47 | * @param MapAPI &$map reference to object representing the map |
||
48 | * @param $autozoom will be altered to true for autozoom, false not to |
||
49 | */ |
||
50 | public function updateBasicMap(&$map, &$autozoom) { |
||
72 | } |
||
73 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.