Source of file OSMPointOfInterestExtension.php
Size: 0,521 Bytes - Last Modified: 2021-12-23T10:58:59+00:00
/var/www/docs.ssmods.com/process/src/code/extensions/OSMPointOfInterestExtension.php
123456789101112131415161718192021 | <?php class OSMPointOfInterestExtension extends DataExtension { private static $db = array( // No Big Int support yet so use big decimal 'OpenStreetMapID' => 'Decimal(20,0)', ); // given millions of possible POIs an index is handy private static $indexes = array( 'OpenStreetMapID' => true, ); /* The openstreetmap id is only for scripting purposes */ public function updateCMSFields(FieldList $fields) { $fields->removeByName('OpenStreetMapID'); } } |