From 20b9144b89d5f4b795daba345c43c5eaf64234e2 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Thu, 5 Oct 2017 16:14:46 +0200 Subject: [PATCH] Apply coding standards. --- .travis.yml | 23 +- composer.json | 5 + src/Dca/ControlCallbacks.php | 4 +- src/Dca/LayerCallbacks.php | 4 +- src/Dca/MapCallbacks.php | 2 +- src/Frontend/DataController.php | 2 +- src/Resources/contao/config/config.php | 17 +- src/Resources/contao/config/services.php | 82 +- .../contao/dca/tl_leaflet_control.php | 27 +- .../contao/dca/tl_leaflet_control_layer.php | 2 +- src/Resources/contao/dca/tl_leaflet_icon.php | 35 +- src/Resources/contao/dca/tl_leaflet_layer.php | 1046 ++++++++--------- src/Resources/contao/dca/tl_leaflet_map.php | 33 +- .../contao/dca/tl_leaflet_map_layer.php | 2 +- .../contao/dca/tl_leaflet_marker.php | 21 +- src/Resources/contao/dca/tl_leaflet_popup.php | 17 +- src/Resources/contao/dca/tl_leaflet_style.php | 16 +- .../contao/dca/tl_leaflet_vector.php | 25 +- 18 files changed, 654 insertions(+), 709 deletions(-) diff --git a/.travis.yml b/.travis.yml index a983487..bd5f744 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,29 +1,26 @@ language: php php: - - "5.4" - - "5.5" - - "5.6" - - "7.0" - - "nightly" + - "7.1" env: - - CONTAO_VERSION=~3.5.1 + - CONTAO_VERSION=contao/core-bundle ~4.4.0 + +matrix: + exclude: sudo: false install: - travis_retry composer self-update && composer --version - - travis_retry composer require contao/core $CONTAO_VERSION --no-update + - travis_retry composer require $CONTAO_VERSION --no-update - travis_retry composer update --prefer-dist --no-interaction script: ant -keep-going -matrix: - allow_failures: - - php: "7.0" - - php: "nightly" - -# Hack to make things work again - we can not use a shallow repository. git: depth: 2147483647 + +cache: + directories: + - vendor diff --git a/composer.json b/composer.json index 398371c..a785563 100644 --- a/composer.json +++ b/composer.json @@ -40,6 +40,11 @@ "Netzmacht\\Contao\\Leaflet\\": "src/" } }, + "autoload-dev": { + "files": [ + "vendor/phpcq/autoload-validation/hacks/contao-hack.php" + ] + }, "extra": { "branch-alias": { "dev-master": "2.0.x-dev", diff --git a/src/Dca/ControlCallbacks.php b/src/Dca/ControlCallbacks.php index 9e49018..99c0732 100644 --- a/src/Dca/ControlCallbacks.php +++ b/src/Dca/ControlCallbacks.php @@ -123,7 +123,7 @@ class ControlCallbacks extends Callbacks /** * Save layer relations. * - * @param $layers $layers The layer id values. + * @param mixed $layers The layer id values. * @param \DataContainer $dataContainer The dataContainer driver. * * @return null @@ -171,7 +171,7 @@ class ControlCallbacks extends Callbacks ->execute($values[$layer['layer']]['id']); $sorting += 128; - unset ($values[$layer['layer']]); + unset($values[$layer['layer']]); } } diff --git a/src/Dca/LayerCallbacks.php b/src/Dca/LayerCallbacks.php index b456c29..9f47e2d 100644 --- a/src/Dca/LayerCallbacks.php +++ b/src/Dca/LayerCallbacks.php @@ -55,7 +55,7 @@ class LayerCallbacks extends Callbacks /** * Tile providers configuration. - * + * * @var array */ private $tileProviders; @@ -134,7 +134,6 @@ class LayerCallbacks extends Callbacks { if (!empty($this->layers[$row['type']]['icon'])) { $src = $this->layers[$row['type']]['icon']; - } else { $src = 'iconPLAIN.gif'; } @@ -230,7 +229,6 @@ class LayerCallbacks extends Callbacks $this->translator->translate('pasteinto.1', $table, [$row['id']]) ) ); - } elseif ($row['id'] > 0) { $buffer .= \Image::getHtml('pasteinto_.gif'); } diff --git a/src/Dca/MapCallbacks.php b/src/Dca/MapCallbacks.php index ed186fe..c599748 100644 --- a/src/Dca/MapCallbacks.php +++ b/src/Dca/MapCallbacks.php @@ -124,7 +124,7 @@ class MapCallbacks extends Callbacks } $sorting += 128; - unset ($values[$layerId]); + unset($values[$layerId]); } } diff --git a/src/Frontend/DataController.php b/src/Frontend/DataController.php index b3c1275..abf8eca 100644 --- a/src/Frontend/DataController.php +++ b/src/Frontend/DataController.php @@ -44,7 +44,7 @@ class DataController /** * Filters configuration. - * + * * @var array */ private $filters; diff --git a/src/Resources/contao/config/config.php b/src/Resources/contao/config/config.php index 3b58620..f65811b 100644 --- a/src/Resources/contao/config/config.php +++ b/src/Resources/contao/config/config.php @@ -13,6 +13,7 @@ /* * Backend module. */ + array_insert( $GLOBALS['BE_MOD'], 1, @@ -57,18 +58,21 @@ array_insert( /* * Content elements. */ + $GLOBALS['TL_CTE']['includes']['leaflet'] = 'Netzmacht\Contao\Toolkit\Component\ContentElement\ContentElementDecorator'; /* * Frontend modules */ + $GLOBALS['FE_MOD']['includes']['leaflet'] = 'Netzmacht\Contao\Toolkit\Component\Module\ModuleDecorator'; /* * Models. */ + $GLOBALS['TL_MODELS']['tl_leaflet_control'] = 'Netzmacht\Contao\Leaflet\Model\ControlModel'; $GLOBALS['TL_MODELS']['tl_leaflet_icon'] = 'Netzmacht\Contao\Leaflet\Model\IconModel'; $GLOBALS['TL_MODELS']['tl_leaflet_layer'] = 'Netzmacht\Contao\Leaflet\Model\LayerModel'; @@ -84,6 +88,7 @@ $GLOBALS['TL_MODELS']['tl_leaflet_vector'] = 'Netzmacht\Contao\Leaflet\Model\Ve * * Mappers do the translations between the database models and the leaflet definition. */ + $GLOBALS['LEAFLET_MAPPERS'] = array(); $GLOBALS['LEAFLET_MAPPERS'][] = 'Netzmacht\Contao\Leaflet\Mapper\MapMapper'; @@ -173,6 +178,7 @@ $GLOBALS['LEAFLET_MAPPERS'][] = function () { * * @see https://github.com/contao-community-alliance/event-dispatcher#event-subscriber-per-configuration */ + $GLOBALS['LEAFLET_ENCODERS'] = array(); $GLOBALS['LEAFLET_ENCODERS'][] = 'Netzmacht\LeafletPHP\Encoder\MapEncoder'; $GLOBALS['LEAFLET_ENCODERS'][] = 'Netzmacht\LeafletPHP\Encoder\ControlEncoder'; @@ -188,6 +194,7 @@ $GLOBALS['LEAFLET_ENCODERS'][] = 'Netzmacht\Contao\Leaflet\Subscriber\EncoderSub * * The type is used for the database driven definitions. */ + $GLOBALS['LEAFLET_LAYERS'] = array ( 'provider' => array @@ -295,7 +302,8 @@ $GLOBALS['LEAFLET_LAYERS'] = array * * Supported leaflet control types. Register your type for the database driven definition here. */ -$GLOBALS['LEAFLET_CONTROLS'] = array('zoom', 'layers', 'scale', 'attribution', 'loading', 'fullscreen'); + +$GLOBALS['LEAFLET_CONTROLS'] = array('zoom', 'layers', 'scale', 'attribution', 'loading', 'fullscreen'); /* @@ -303,6 +311,7 @@ $GLOBALS['LEAFLET_CONTROLS'] = array('zoom', 'layers', 'scale', 'attribution', * * Supported leaflet icon types. Register you type for the database driven definition here. */ + $GLOBALS['LEAFLET_ICONS'] = array('image', 'div', 'extra'); @@ -313,6 +322,7 @@ $GLOBALS['LEAFLET_ICONS'] = array('image', 'div', 'extra'); * The goal is to provide different style strategies. For instance a random style chooser, one which uses a color * range and so one. */ + $GLOBALS['LEAFLET_STYLES'] = array('fixed'); /* @@ -320,6 +330,7 @@ $GLOBALS['LEAFLET_STYLES'] = array('fixed'); * * Supported leaflet vector types. Register you type for the database driven definition here. */ + $GLOBALS['LEAFLET_VECTORS'] = array ( 'polyline', @@ -335,6 +346,7 @@ $GLOBALS['LEAFLET_VECTORS'] = array /* * Leaflet tile layer providers. */ + require_once TL_ROOT . '/system/modules/leaflet/config/leaflet_providers.php'; /* @@ -351,6 +363,7 @@ require_once TL_ROOT . '/system/modules/leaflet/config/leaflet_providers.php'; * You don't have to define it as array if you simply add a file. Do not add |static and or media type flag to it. * It's getting added by default if not being in debug mode. */ + if (!isset($GLOBALS['LEAFLET_LIBRARIES'])) { $GLOBALS['LEAFLET_LIBRARIES'] = array(); } @@ -367,6 +380,7 @@ if (!isset($GLOBALS['LEAFLET_LIBRARIES'])) { * - file: Thread value a uuid and find the path. * - files: Thread values as a list of file uuids and get an array of paths. */ + $GLOBALS['LEAFLET_FEATURE_MODEL_PROPERTIES']['tl_leaflet_marker'][] = 'id'; $GLOBALS['LEAFLET_FEATURE_MODEL_PROPERTIES']['tl_leaflet_marker'][] = 'title'; $GLOBALS['LEAFLET_FEATURE_MODEL_PROPERTIES']['tl_leaflet_marker'][] = 'alias'; @@ -379,5 +393,6 @@ $GLOBALS['LEAFLET_FEATURE_MODEL_PROPERTIES']['tl_leaflet_vector'][] = 'alias'; /* * Filters can be passed to a data request to get only specific data from a layer. */ + $GLOBALS['LEAFLET_FILTERS']['bbox'] = 'Netzmacht\Contao\Leaflet\Filter\BboxFilter'; $GLOBALS['LEAFLET_FILTERS']['distance'] = 'Netzmacht\Contao\Leaflet\Filter\DistanceFilter'; diff --git a/src/Resources/contao/config/services.php b/src/Resources/contao/config/services.php index 10238dd..1680757 100644 --- a/src/Resources/contao/config/services.php +++ b/src/Resources/contao/config/services.php @@ -48,11 +48,14 @@ use Netzmacht\LeafletPHP\Leaflet; use Symfony\Component\EventDispatcher\EventDispatcher; /** @var \Pimple $container */ +// @codingStandardsIgnoreStart global $container; +// @codingStandardsIgnoreEnd /* * Leaflet map provider is a simply api entry to to get the leaflet map from the database. */ + $container[LeafletServices::MAP_PROVIDER] = $container->share(function ($container) { return new MapProvider( $container[LeafletServices::DEFINITION_MAPPER], @@ -69,6 +72,7 @@ $container[LeafletServices::MAP_PROVIDER] = $container->share(function ($contain /* * Contao assets handler. Loads Leaflet assets as contao (static) assets. */ + $container[LeafletServices::MAP_ASSETS] = $container->share(function ($container) { return new ContaoAssets($container[Services::ASSETS_MANAGER]); }); @@ -76,6 +80,7 @@ $container[LeafletServices::MAP_ASSETS] = $container->share(function ($container /* * The leaflet boot. */ + $container[LeafletServices::BOOT] = $container->share(function ($container) { return new Boot($container[Services::EVENT_DISPATCHER]); }); @@ -93,6 +98,7 @@ $container['leaflet.boot.subscriber'] = $container->share(function ($container) /* * The definition mapper. */ + $container[LeafletServices::DEFINITION_MAPPER] = $container->share(function ($container) { /** @var Boot $boot */ $boot = $container[LeafletServices::BOOT]; @@ -105,6 +111,7 @@ $container[LeafletServices::DEFINITION_MAPPER] = $container->share(function ($co /* * The local event dispatcher is used for the leaflet javascript encoding system. */ + $container[LeafletServices::DEFINITION_BUILDER_EVENT_DISPATCHER] = $container->share(function ($container) { /** @var Boot $boot */ $boot = $container[LeafletServices::BOOT]; @@ -116,6 +123,7 @@ $container[LeafletServices::DEFINITION_BUILDER_EVENT_DISPATCHER] = $container->s /* * The javascript encoder factory being used for building the map javascript. */ + $container[LeafletServices::DEFINITION_ENCODER_FACTORY] = function ($container) { $dispatcher = $container[LeafletServices::DEFINITION_BUILDER_EVENT_DISPATCHER]; @@ -133,27 +141,27 @@ $container[LeafletServices::DEFINITION_ENCODER_FACTORY] = function ($container) /* * The leaflet builder transforms the definition to javascript. */ -$container[LeafletServices::DEFINITION_BUILDER] = $container->share(function($container) { + +$container[LeafletServices::DEFINITION_BUILDER] = $container->share(function ($container) { /** @var Boot $boot */ $boot = $container[LeafletServices::BOOT]; $dispatcher = $container[LeafletServices::DEFINITION_BUILDER_EVENT_DISPATCHER]; $factory = $container[LeafletServices::DEFINITION_ENCODER_FACTORY]; $builder = new Builder($factory); - $leaflet = new Leaflet($builder, $dispatcher, array(), JSON_UNESCAPED_SLASHES ^ Flags::BUILD_STACK); + $leaflet = new Leaflet($builder, $dispatcher, array(), (JSON_UNESCAPED_SLASHES ^ Flags::BUILD_STACK)); return $boot->initializeLeafletBuilder($leaflet); }); -$container[LeafletServices::FRONTEND_VALUE_FILTER] = $container->share(function($container) { +$container[LeafletServices::FRONTEND_VALUE_FILTER] = $container->share(function ($container) { return new ValueFilter($container[Services::INSERT_TAG_REPLACER]); }); -/** +/* * Internal used leaflet cache. - * - * @var Cache */ + $container[LeafletServices::CACHE] = $container->share( function ($container) { if ($container[Services::PRODUCTION_MODE]) { @@ -164,11 +172,10 @@ $container[LeafletServices::CACHE] = $container->share( } ); -/** +/* * Leaflet alias generator. - * - * @return \Netzmacht\Contao\Toolkit\Data\Alias\AliasGenerator */ + $container[LeafletServices::ALIAS_GENERATOR] = $container->share( function ($container) { return function ($dataContainerName, $aliasField, $fields) use ($container) { @@ -190,11 +197,11 @@ $container[LeafletServices::ALIAS_GENERATOR] = $container->share( } ); -/** +/* * Leaflet alias generator. - * * @return \Netzmacht\Contao\Toolkit\Data\Alias\AliasGenerator */ + $container[LeafletServices::PARENT_ALIAS_GENERATOR] = $container->share( function ($container) { return function ($dataContainerName, $aliasField, $fields) use ($container) { @@ -217,11 +224,10 @@ $container[LeafletServices::PARENT_ALIAS_GENERATOR] = $container->share( } ); -/** +/* * Callback helper class for tl_leaflet_map. - * - * @return MapCallbacks */ + $container['leaflet.dca.map-callbacks'] = $container->share( function ($container) { return new MapCallbacks( @@ -231,11 +237,10 @@ $container['leaflet.dca.map-callbacks'] = $container->share( } ); -/** +/* * Callback helper class for tl_leaflet_layer. - * - * @return LayerCallbacks */ + $container['leaflet.dca.layer-callbacks'] = $container->share( function ($container) { return new LayerCallbacks( @@ -249,11 +254,10 @@ $container['leaflet.dca.layer-callbacks'] = $container->share( } ); -/** +/* * Callback helper class for tl_leaflet_control. - * - * @return ControlCallbacks */ + $container['leaflet.dca.control-callbacks'] = $container->share( function ($container) { return new ControlCallbacks( @@ -263,22 +267,20 @@ $container['leaflet.dca.control-callbacks'] = $container->share( } ); -/** +/* * Callback helper class for tl_leaflet_control. - * - * @return ControlCallbacks */ + $container['leaflet.dca.vector-callbacks'] = $container->share( function ($container) { return new VectorCallbacks($container[Services::DCA_MANAGER]); } ); -/** +/* * Callback helper class for frontend integration. - * - * @return FrontendIntegration */ + $container['leaflet.dca.frontend-integration'] = $container->share( function ($container) { return new FrontendIntegration( @@ -287,11 +289,10 @@ $container['leaflet.dca.frontend-integration'] = $container->share( } ); -/** +/* * Common callback helpers. - * - * @return LeafletCallbacks */ + $container['leaflet.dca.common'] = $container->share( function ($container) { return new LeafletCallbacks( @@ -300,11 +301,10 @@ $container['leaflet.dca.common'] = $container->share( } ); -/** +/* * Validator helper class. - * - * @return Validator */ + $container['leaflet.dca.validator'] = $container->share( function ($container) { return new Validator( @@ -313,15 +313,10 @@ $container['leaflet.dca.validator'] = $container->share( } ); -/** +/* * Component factory for content element. - * - * @param ContentModel $model Content model. - * @param string $column Template section. - * @param ContainerInterface $container Container. - * - * @return MapElement */ + $container[Services::CONTENT_ELEMENTS_MAP]['leaflet'] = function ($model, $column, ContainerInterface $container) { return new MapElement( $model, @@ -334,15 +329,10 @@ $container[Services::CONTENT_ELEMENTS_MAP]['leaflet'] = function ($model, $colum ); }; -/** +/* * Component factory for frontend module. - * - * @param ModuleModel $model Module model. - * @param string $column Template section. - * @param ContainerInterface $container Container. - * - * @return MapModule */ + $container[Services::MODULES_MAP]['leaflet'] = function ($model, $column, ContainerInterface $container) { return new MapModule( $model, diff --git a/src/Resources/contao/dca/tl_leaflet_control.php b/src/Resources/contao/dca/tl_leaflet_control.php index 50a671f..be6bc71 100644 --- a/src/Resources/contao/dca/tl_leaflet_control.php +++ b/src/Resources/contao/dca/tl_leaflet_control.php @@ -31,7 +31,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = array ], ), - // List + // List configuration 'list' => array ( 'sorting' => array @@ -78,14 +78,18 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = array 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['delete'], 'href' => 'act=delete', 'icon' => 'delete.gif', - 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"' + 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] + . '\'))return false;Backend.getScrollOffset()"' ), 'toggle' => array ( 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['toggle'], 'icon' => 'visible.gif', 'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleVisibility(this,%s)"', - 'button_callback' => \Netzmacht\Contao\Toolkit\Dca\Callback\CallbackFactory::stateButton('tl_leaflet_control', 'active') + 'button_callback' => \Netzmacht\Contao\Toolkit\Dca\Callback\CallbackFactory::stateButton( + 'tl_leaflet_control', + 'active' + ) ), 'show' => array ( @@ -134,7 +138,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = array ( 'id' => array ( - 'sql' => "int(10) unsigned NOT NULL auto_increment" + 'sql' => 'int(10) unsigned NOT NULL auto_increment' ), 'pid' => array ( @@ -175,8 +179,13 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = array ), \Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateAlias'), ), - 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'nullIfEmpty' => true), - 'sql' => "varchar(255) NULL" + 'eval' => array( + 'mandatory' => false, + 'maxlength' => 255, + 'tl_class' => 'w50', + 'nullIfEmpty' => true, + ), + 'sql' => 'varchar(255) NULL' ), 'type' => array ( @@ -313,7 +322,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = array ), ) ), - 'sql' => "mediumblob NULL" + 'sql' => 'mediumblob NULL' ), 'maxWidth' => array ( @@ -364,7 +373,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = array 'exclude' => true, 'inputType' => 'listWizard', 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'clr', 'allowHtml' => true), - 'sql' => "mediumblob NULL" + 'sql' => 'mediumblob NULL' ), 'separate' => array ( @@ -410,7 +419,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = array 'rte' => 'ace|json', 'tl_class' => 'clr' ), - 'sql' => "mediumtext NULL" + 'sql' => 'mediumtext NULL' ), 'simulateFullScreen' => array ( diff --git a/src/Resources/contao/dca/tl_leaflet_control_layer.php b/src/Resources/contao/dca/tl_leaflet_control_layer.php index 61f1672..d67c65b 100644 --- a/src/Resources/contao/dca/tl_leaflet_control_layer.php +++ b/src/Resources/contao/dca/tl_leaflet_control_layer.php @@ -28,7 +28,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_control_layer'] = array ( 'id' => array ( - 'sql' => "int(10) unsigned NOT NULL auto_increment" + 'sql' => 'int(10) unsigned NOT NULL auto_increment' ), 'tstamp' => array ( diff --git a/src/Resources/contao/dca/tl_leaflet_icon.php b/src/Resources/contao/dca/tl_leaflet_icon.php index d714e0a..4925ed5 100644 --- a/src/Resources/contao/dca/tl_leaflet_icon.php +++ b/src/Resources/contao/dca/tl_leaflet_icon.php @@ -93,7 +93,8 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['delete'], 'href' => 'act=delete', 'icon' => 'delete.gif', - 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"' + 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] + . '\'))return false;Backend.getScrollOffset()"' ), 'toggle' => array ( @@ -172,7 +173,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array ( 'id' => array ( - 'sql' => "int(10) unsigned NOT NULL auto_increment" + 'sql' => 'int(10) unsigned NOT NULL auto_increment' ), 'tstamp' => array ( @@ -201,7 +202,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array \Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateAlias'), ), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NULL" + 'sql' => 'varchar(255) NULL' ), 'type' => array ( @@ -242,7 +243,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array 'tl_class' => 'clr', 'extensions' => 'gif,png,svg,jpg' ), - 'sql' => "binary(16) NULL", + 'sql' => 'binary(16) NULL', ), 'iconRetinaImage' => array ( @@ -256,7 +257,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array 'tl_class' => 'clr', 'extensions' => 'gif,png,svg,jpg' ), - 'sql' => "binary(16) NULL", + 'sql' => 'binary(16) NULL', ), 'shadowImage' => array ( @@ -270,7 +271,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array 'tl_class' => 'clr', 'extensions' => 'gif,png,svg,jpg' ), - 'sql' => "binary(16) NULL", + 'sql' => 'binary(16) NULL', ), 'shadowRetinaImage' => array ( @@ -284,7 +285,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array 'tl_class' => 'clr', 'extensions' => 'gif,png,svg,jpg' ), - 'sql' => "binary(16) NULL", + 'sql' => 'binary(16) NULL', ), 'iconAnchor' => array ( @@ -299,7 +300,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array 'tl_class' => 'w50', 'nullIfEmpty' => true, ), - 'sql' => "varchar(255) NULL" + 'sql' => 'varchar(255) NULL' ), 'shadowAnchor' => array ( @@ -314,7 +315,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array 'tl_class' => 'w50', 'nullIfEmpty' => true, ), - 'sql' => "varchar(255) NULL" + 'sql' => 'varchar(255) NULL' ), 'popupAnchor' => array ( @@ -329,7 +330,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array 'tl_class' => 'w50', 'nullIfEmpty' => true, ), - 'sql' => "varchar(255) NULL" + 'sql' => 'varchar(255) NULL' ), 'className' => array ( @@ -349,7 +350,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array 'tl_class' => 'w50', 'nullIfEmpty' => true, ), - 'sql' => "varchar(64) NULL" + 'sql' => 'varchar(64) NULL' ), 'html' => array ( @@ -364,7 +365,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array 'rte' => 'ace|html', 'tl_class' => 'clr' ), - 'sql' => "mediumtext NULL" + 'sql' => 'mediumtext NULL' ), 'icon' => array ( @@ -376,7 +377,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array 'tl_class' => 'w50', 'nullIfEmpty' => true, ), - 'sql' => "varchar(64) NULL" + 'sql' => 'varchar(64) NULL' ), 'prefix' => array ( @@ -388,7 +389,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array 'tl_class' => 'w50', 'nullIfEmpty' => true, ), - 'sql' => "varchar(64) NULL" + 'sql' => 'varchar(64) NULL' ), 'shape' => array ( @@ -400,7 +401,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array 'eval' => array( 'tl_class' => 'w50', ), - 'sql' => "varchar(64) NULL" + 'sql' => 'varchar(64) NULL' ), 'iconColor' => array ( @@ -415,7 +416,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array 'tl_class' => 'w50 wizard', 'nullIfEmpty' => true, ), - 'sql' => "varchar(16) NULL" + 'sql' => 'varchar(16) NULL' ), 'markerColor' => array ( @@ -444,7 +445,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array 'tl_class' => 'w50', 'nullIfEmpty' => true, ), - 'sql' => "varchar(16) NULL" + 'sql' => 'varchar(16) NULL' ), ), ); diff --git a/src/Resources/contao/dca/tl_leaflet_layer.php b/src/Resources/contao/dca/tl_leaflet_layer.php index f6254ff..43ea9e8 100644 --- a/src/Resources/contao/dca/tl_leaflet_layer.php +++ b/src/Resources/contao/dca/tl_leaflet_layer.php @@ -10,125 +10,107 @@ * @filesource */ -$GLOBALS['TL_DCA']['tl_leaflet_layer'] = array -( - 'config' => array( +$GLOBALS['TL_DCA']['tl_leaflet_layer'] = [ + 'config' => [ 'dataContainer' => 'Table', 'enableVersioning' => true, - 'ctable' => array('tl_leaflet_vector', 'tl_leaflet_marker'), - 'ondelete_callback' => array( + 'ctable' => ['tl_leaflet_vector', 'tl_leaflet_marker'], + 'ondelete_callback' => [ \Netzmacht\Contao\Leaflet\Dca\LayerCallbacks::callback('deleteRelations'), - ), - 'sql' => array - ( - 'keys' => array - ( + ], + 'sql' => [ + 'keys' => [ 'id' => 'primary', 'pid' => 'index', 'alias' => 'unique', - ) - ), - 'onload_callback' => array( - function() { + ], + ], + 'onload_callback' => [ + function () { \Controller::loadLanguageFile('leaflet'); - } - ), + }, + ], 'onsubmit_callback' => [ \Netzmacht\Contao\Leaflet\Dca\LeafletCallbacks::callback('clearCache'), ], - ), - 'list' => array - ( - 'sorting' => array - ( - 'mode' => 5, - 'fields' => array('title'), - 'flag' => 1, - 'icon' => 'system/modules/leaflet/assets/img/layers.png', - 'panelLayout' => 'filter;search,limit', - 'paste_button_callback' => \Netzmacht\Contao\Leaflet\Dca\LayerCallbacks::callback('getPasteButtons'), - ), - 'label' => array - ( - 'fields' => array('title'), - 'format' => '%s', - 'label_callback' => \Netzmacht\Contao\Leaflet\Dca\LayerCallbacks::callback('generateRow') - ), - 'global_operations' => array - ( - 'styles' => array - ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['styles'], - 'href' => 'table=tl_leaflet_style', - 'icon' => 'system/modules/leaflet/assets/img/style.png', - 'attributes' => 'onclick="Backend.getScrollOffset();"' - ), - 'icons' => array - ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['icons'], - 'href' => 'table=tl_leaflet_icon', - 'icon' => 'system/modules/leaflet/assets/img/icons.png', - 'attributes' => 'onclick="Backend.getScrollOffset();"' - ), - 'popups' => array - ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['popups'], - 'href' => 'table=tl_leaflet_popup', - 'icon' => 'system/modules/leaflet/assets/img/popup.png', - 'attributes' => 'onclick="Backend.getScrollOffset();"' - ), - 'all' => array - ( - 'label' => &$GLOBALS['TL_LANG']['MSC']['all'], - 'href' => 'act=select', - 'class' => 'header_edit_all', - 'attributes' => 'onclick="Backend.getScrollOffset();"' - ) - ), - 'operations' => array - ( - 'markers' => array - ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['markers'], - 'href' => 'table=tl_leaflet_marker', - 'icon' => 'edit.gif', - 'button_callback' => \Netzmacht\Contao\Leaflet\Dca\LayerCallbacks::callback('generateMarkersButton') - ), - 'vectors' => array - ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['vectors'], - 'href' => 'table=tl_leaflet_vector', - 'icon' => 'edit.gif', - 'button_callback' => \Netzmacht\Contao\Leaflet\Dca\LayerCallbacks::callback('generateVectorsButton'), - ), - 'edit' => array - ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['edit'], - 'href' => 'act=edit', - 'icon' => 'header.gif' - ), - 'copy' => array - ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['copy'], - 'href' => 'act=copy', - 'icon' => 'copy.gif' - ), - 'cut' => array - ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['cut'], - 'href' => 'act=paste&mode=cut', - 'icon' => 'cut.gif', - 'attributes' => 'onclick="Backend.getScrollOffset()"', - ), - 'delete' => array - ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['delete'], - 'href' => 'act=delete', - 'icon' => 'delete.gif', - 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"' - ), - 'toggle' => array - ( + ], + 'list' => [ + 'sorting' => [ + 'mode' => 5, + 'fields' => ['title'], + 'flag' => 1, + 'icon' => 'system/modules/leaflet/assets/img/layers.png', + 'panelLayout' => 'filter;search,limit', + 'paste_button_callback' => \Netzmacht\Contao\Leaflet\Dca\LayerCallbacks::callback('getPasteButtons'), + ], + 'label' => [ + 'fields' => ['title'], + 'format' => '%s', + 'label_callback' => \Netzmacht\Contao\Leaflet\Dca\LayerCallbacks::callback('generateRow'), + ], + 'global_operations' => [ + 'styles' => [ + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['styles'], + 'href' => 'table=tl_leaflet_style', + 'icon' => 'system/modules/leaflet/assets/img/style.png', + 'attributes' => 'onclick="Backend.getScrollOffset();"', + ], + 'icons' => [ + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['icons'], + 'href' => 'table=tl_leaflet_icon', + 'icon' => 'system/modules/leaflet/assets/img/icons.png', + 'attributes' => 'onclick="Backend.getScrollOffset();"', + ], + 'popups' => [ + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['popups'], + 'href' => 'table=tl_leaflet_popup', + 'icon' => 'system/modules/leaflet/assets/img/popup.png', + 'attributes' => 'onclick="Backend.getScrollOffset();"', + ], + 'all' => [ + 'label' => &$GLOBALS['TL_LANG']['MSC']['all'], + 'href' => 'act=select', + 'class' => 'header_edit_all', + 'attributes' => 'onclick="Backend.getScrollOffset();"', + ], + ], + 'operations' => [ + 'markers' => [ + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['markers'], + 'href' => 'table=tl_leaflet_marker', + 'icon' => 'edit.gif', + 'button_callback' => \Netzmacht\Contao\Leaflet\Dca\LayerCallbacks::callback('generateMarkersButton'), + ], + 'vectors' => [ + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['vectors'], + 'href' => 'table=tl_leaflet_vector', + 'icon' => 'edit.gif', + 'button_callback' => \Netzmacht\Contao\Leaflet\Dca\LayerCallbacks::callback('generateVectorsButton'), + ], + 'edit' => [ + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['edit'], + 'href' => 'act=edit', + 'icon' => 'header.gif', + ], + 'copy' => [ + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['copy'], + 'href' => 'act=copy', + 'icon' => 'copy.gif', + ], + 'cut' => [ + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['cut'], + 'href' => 'act=paste&mode=cut', + 'icon' => 'cut.gif', + 'attributes' => 'onclick="Backend.getScrollOffset()"', + ], + 'delete' => [ + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['delete'], + 'href' => 'act=delete', + 'icon' => 'delete.gif', + 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] + . '\'))return false;Backend.getScrollOffset()"', + ], + 'toggle' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['toggle'], 'icon' => 'visible.gif', 'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleVisibility(this,%s)"', @@ -136,45 +118,44 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array 'tl_leaflet_layer', 'active' ), - ), - 'show' => array - ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['show'], - 'href' => 'act=show', - 'icon' => 'show.gif' - ) - ) - ), + ], + 'show' => [ + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['show'], + 'href' => 'act=show', + 'icon' => 'show.gif', + ], + ], + ], - 'palettes' => array( - '__selector__' => array('type'), - ), + 'palettes' => [ + '__selector__' => ['type'], + ], - 'metapalettes' => array( - 'default' => array( - 'title' => array('title', 'alias', 'type'), - 'config' => array(), - 'style' => array(), - 'expert' => array(':hide'), - 'active' => array('active'), - ), - 'markers extends default' => array( - '+expert' => array('pointToLayer'), - '+config' => array('boundsMode', 'deferred') - ), - 'group extends default' => array( - '+title' => array('groupType'), - '+active' => array('boundsMode') - ), - 'vectors extends default' => array( - '+expert' => array('onEachFeature', 'pointToLayer'), - '+config' => array('boundsMode', 'deferred'), - ), - 'reference extends default' => array( - '+title' => array('reference', 'standalone') - ), - 'markercluster extends default' => array( - 'config' => array( + 'metapalettes' => [ + 'default' => [ + 'title' => ['title', 'alias', 'type'], + 'config' => [], + 'style' => [], + 'expert' => [':hide'], + 'active' => ['active'], + ], + 'markers extends default' => [ + '+expert' => ['pointToLayer'], + '+config' => ['boundsMode', 'deferred'], + ], + 'group extends default' => [ + '+title' => ['groupType'], + '+active' => ['boundsMode'], + ], + 'vectors extends default' => [ + '+expert' => ['onEachFeature', 'pointToLayer'], + '+config' => ['boundsMode', 'deferred'], + ], + 'reference extends default' => [ + '+title' => ['reference', 'standalone'], + ], + 'markercluster extends default' => [ + 'config' => [ 'showCoverageOnHover', 'zoomToBoundsOnClick', 'removeOutsideVisibleBounds', @@ -183,22 +164,22 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array 'disableClusteringAtZoom', 'maxClusterRadius', 'singleMarkerMode', - ), - '+expert' => array( + ], + '+expert' => [ 'polygonOptions', 'iconCreateFunction', - 'disableDefaultStyle' - ) - ), - 'tile extends default' => array( - 'config' => array( + 'disableDefaultStyle', + ], + ], + 'tile extends default' => [ + 'config' => [ 'tileUrl', 'subdomains', 'attribution', 'minZoom', 'maxZoom', - ), - '+expert' => array( + ], + '+expert' => [ 'errorTileUrl', 'tileSize', 'tms', @@ -213,77 +194,70 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array 'updateWhenIdle', 'detectRetina', 'reuseTiles', - 'bounds' - ) - ), - 'overpass extends default' => array( - 'config' => array( + 'bounds', + ], + ], + 'overpass extends default' => [ + 'config' => [ 'overpassQuery', 'boundsMode', 'minZoom', 'overpassEndpoint', - 'overpassPopup' - ), - 'style' => array( - 'amenityIcons' - ), - '+expert' => array( + 'overpassPopup', + ], + 'style' => [ + 'amenityIcons', + ], + '+expert' => [ 'onEachFeature', 'pointToLayer', - ), - ), - ), + ], + ], + ], - 'metasubselectpalettes' => array( - 'type' => array( - 'provider' => array('tile_provider', 'tile_provider_variant') - ), - 'tile_provider' => array( - 'MapBox' => array('tile_provider_key'), - 'HERE' => array('tile_provider_key', 'tile_provider_code'), - ), - ), + 'metasubselectpalettes' => [ + 'type' => [ + 'provider' => ['tile_provider', 'tile_provider_variant'], + ], + 'tile_provider' => [ + 'MapBox' => ['tile_provider_key'], + 'HERE' => ['tile_provider_key', 'tile_provider_code'], + ], + ], - 'metasubpalettes' => array( - 'spiderfyOnMaxZoom' => array('spiderfyDistanceMultiplier'), - 'deferred' => array('cache'), - 'cache' => array('cacheLifeTime') - ), + 'metasubpalettes' => [ + 'spiderfyOnMaxZoom' => ['spiderfyDistanceMultiplier'], + 'deferred' => ['cache'], + 'cache' => ['cacheLifeTime'], + ], - 'fields' => array - ( - 'id' => array - ( - 'sql' => "int(10) unsigned NOT NULL auto_increment" - ), - 'pid' => array - ( - 'sql' => "int(10) unsigned NOT NULL default '0'" - ), - 'sorting' => array - ( + 'fields' => [ + 'id' => [ + 'sql' => 'int(10) unsigned NOT NULL auto_increment', + ], + 'pid' => [ 'sql' => "int(10) unsigned NOT NULL default '0'", - ), - 'tstamp' => array - ( - 'sql' => "int(10) unsigned NOT NULL default '0'" - ), - 'title' => array - ( + ], + 'sorting' => [ + 'sql' => "int(10) unsigned NOT NULL default '0'", + ], + 'tstamp' => [ + 'sql' => "int(10) unsigned NOT NULL default '0'", + ], + 'title' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['title'], 'exclude' => true, 'inputType' => 'text', 'search' => true, - 'eval' => array('mandatory' => true, 'maxlength' => 255, 'tl_class' => 'w50'), - 'sql' => "varchar(255) NOT NULL default ''" - ), - 'alias' => array - ( + 'eval' => ['mandatory' => true, 'maxlength' => 255, 'tl_class' => 'w50'], + 'sql' => "varchar(255) NOT NULL default ''", + ], + 'alias' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['alias'], 'exclude' => true, 'inputType' => 'text', 'search' => true, - 'save_callback' => array( + 'save_callback' => [ \Netzmacht\Contao\Toolkit\Dca\Callback\CallbackFactory::aliasGenerator( 'tl_leaflet_layer', 'alias', @@ -291,641 +265,587 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array \Netzmacht\Contao\Leaflet\DependencyInjection\LeafletServices::ALIAS_GENERATOR ), \Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateAlias'), - ), - 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NULL" - ), - 'type' => array - ( + ], + 'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true], + 'sql' => 'varchar(255) NULL', + ], + 'type' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['type'], 'exclude' => true, 'inputType' => 'select', 'filter' => true, - 'eval' => array( + 'eval' => [ 'mandatory' => true, 'tl_class' => 'w50', 'includeBlankOption' => true, 'submitOnChange' => true, 'chosen' => true, 'helpwizard' => true, - ), + ], 'options' => array_keys($GLOBALS['LEAFLET_LAYERS']), 'reference' => &$GLOBALS['TL_LANG']['leaflet_layer'], - 'sql' => "varchar(32) NOT NULL default ''" - ), - 'active' => array - ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['active'], - 'exclude' => true, - 'inputType' => 'checkbox', - 'filter' => true, - 'eval' => array('tl_class' => 'w50'), - 'sql' => "char(1) NOT NULL default ''", + 'sql' => "varchar(32) NOT NULL default ''", + ], + 'active' => [ + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['active'], + 'exclude' => true, + 'inputType' => 'checkbox', + 'filter' => true, + 'eval' => ['tl_class' => 'w50'], + 'sql' => "char(1) NOT NULL default ''", 'save_callback' => [ \Netzmacht\Contao\Leaflet\Dca\LeafletCallbacks::callback('clearCache'), ], - ), - 'tile_provider' => array( + ], + 'tile_provider' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['tile_provider'], 'exclude' => true, 'inputType' => 'select', - 'eval' => array( + 'eval' => [ 'mandatory' => true, 'tl_class' => 'w50 clr', 'includeBlankOption' => true, 'submitOnChange' => true, 'chosen' => true, - ), + ], 'options' => array_keys($GLOBALS['LEAFLET_TILE_PROVIDERS']), - 'sql' => "varchar(32) NOT NULL default ''" - ), - 'tile_provider_variant' => array( + 'sql' => "varchar(32) NOT NULL default ''", + ], + 'tile_provider_variant' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['tile_provider_variant'], 'exclude' => true, 'inputType' => 'select', - 'eval' => array( + 'eval' => [ 'mandatory' => false, 'tl_class' => 'w50', 'submitOnChange' => true, 'chosen' => false, - ), + ], 'options_callback' => \Netzmacht\Contao\Leaflet\Dca\LayerCallbacks::callback('getVariants'), - 'sql' => "varchar(32) NOT NULL default ''" - ), - 'tile_provider_key' => array - ( + 'sql' => "varchar(32) NOT NULL default ''", + ], + 'tile_provider_key' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['tile_provider_key'], 'exclude' => true, 'inputType' => 'text', - 'eval' => array('mandatory' => true, 'maxlength' => 255, 'tl_class' => 'clr w50'), - 'sql' => "varchar(255) NOT NULL default ''" - ), - 'tile_provider_code' => array - ( + 'eval' => ['mandatory' => true, 'maxlength' => 255, 'tl_class' => 'clr w50'], + 'sql' => "varchar(255) NOT NULL default ''", + ], + 'tile_provider_code' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['tile_provider_code'], 'exclude' => true, 'inputType' => 'text', - 'eval' => array('mandatory' => true, 'maxlength' => 255, 'tl_class' => 'w50'), - 'sql' => "varchar(255) NOT NULL default ''" - ), - 'deferred' => array - ( + 'eval' => ['mandatory' => true, 'maxlength' => 255, 'tl_class' => 'w50'], + 'sql' => "varchar(255) NOT NULL default ''", + ], + 'deferred' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['deferred'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => true, - 'eval' => array('tl_class' => 'w50 m12', 'submitOnChange' => true, 'isBoolean' => true), - 'sql' => "char(1) NOT NULL default '1'" - ), - 'groupType' => array - ( + 'eval' => ['tl_class' => 'w50 m12', 'submitOnChange' => true, 'isBoolean' => true], + 'sql' => "char(1) NOT NULL default '1'", + ], + 'groupType' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['groupType'], 'exclude' => true, 'inputType' => 'select', - 'eval' => array( - 'mandatory' => true, - 'tl_class' => 'w50', - 'submitOnChange' => true, - 'helpwizard' => true, - ), + 'eval' => [ + 'mandatory' => true, + 'tl_class' => 'w50', + 'submitOnChange' => true, + 'helpwizard' => true, + ], 'default' => 'layer', - 'options' => array('layer', 'feature'), + 'options' => ['layer', 'feature'], 'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['groupTypes'], - 'sql' => "varchar(32) NOT NULL default ''" - ), - 'reference' => array - ( + 'sql' => "varchar(32) NOT NULL default ''", + ], + 'reference' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['reference'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => \Netzmacht\Contao\Leaflet\Dca\LayerCallbacks::callback('getLayers'), - 'eval' => array( + 'eval' => [ 'mandatory' => true, 'tl_class' => 'w50', 'chosen' => true, 'includeBlankOption' => true, - ), + ], 'sql' => "int(10) unsigned NOT NULL default '0'", - ), - 'standalone' => array - ( + ], + 'standalone' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['standalone'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, - 'eval' => array('tl_class' => 'w50', 'submitOnChange' => false, 'isBoolean' => true), - 'sql' => "char(1) NOT NULL default ''" - ), - 'onEachFeature' => array - ( + 'eval' => ['tl_class' => 'w50', 'submitOnChange' => false, 'isBoolean' => true], + 'sql' => "char(1) NOT NULL default ''", + ], + 'onEachFeature' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['onEachFeature'], 'exclude' => true, 'inputType' => 'textarea', - 'eval' => array( + 'eval' => [ 'preserveTags' => true, 'decodeEntities' => true, 'allowHtml' => true, 'rte' => 'ace|javascript', - 'tl_class' => 'clr' - ), - 'sql' => "mediumtext NULL" - ), - 'pointToLayer' => array - ( + 'tl_class' => 'clr', + ], + 'sql' => 'mediumtext NULL', + ], + 'pointToLayer' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['pointToLayer'], 'exclude' => true, 'inputType' => 'textarea', - 'eval' => array( + 'eval' => [ 'preserveTags' => true, 'decodeEntities' => true, 'allowHtml' => true, 'rte' => 'ace|javascript', - 'tl_class' => 'clr' - ), - 'sql' => "mediumtext NULL" - ), - 'showCoverageOnHover' => array - ( + 'tl_class' => 'clr', + ], + 'sql' => 'mediumtext NULL', + ], + 'showCoverageOnHover' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['showCoverageOnHover'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => true, - 'eval' => array('tl_class' => 'w50', 'submitOnChange' => false, 'isBoolean' => true), - 'sql' => "char(1) NOT NULL default '1'" - ), - 'zoomToBoundsOnClick' => array - ( + 'eval' => ['tl_class' => 'w50', 'submitOnChange' => false, 'isBoolean' => true], + 'sql' => "char(1) NOT NULL default '1'", + ], + 'zoomToBoundsOnClick' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['zoomToBoundsOnClick'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => true, - 'eval' => array('tl_class' => 'w50', 'submitOnChange' => false, 'isBoolean' => true), - 'sql' => "char(1) NOT NULL default '1'" - ), - 'spiderfyOnMaxZoom' => array - ( + 'eval' => ['tl_class' => 'w50', 'submitOnChange' => false, 'isBoolean' => true], + 'sql' => "char(1) NOT NULL default '1'", + ], + 'spiderfyOnMaxZoom' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['spiderfyOnMaxZoom'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => true, - 'eval' => array('tl_class' => 'w50 m12', 'submitOnChange' => true, 'isBoolean' => true), - 'sql' => "char(1) NOT NULL default '1'" - ), - 'removeOutsideVisibleBounds' => array - ( + 'eval' => ['tl_class' => 'w50 m12', 'submitOnChange' => true, 'isBoolean' => true], + 'sql' => "char(1) NOT NULL default '1'", + ], + 'removeOutsideVisibleBounds' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['removeOutsideVisibleBounds'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => true, - 'eval' => array('tl_class' => 'w50', 'submitOnChange' => false, 'isBoolean' => true), - 'sql' => "char(1) NOT NULL default '1'" - ), - 'animateAddingMarkers' => array - ( + 'eval' => ['tl_class' => 'w50', 'submitOnChange' => false, 'isBoolean' => true], + 'sql' => "char(1) NOT NULL default '1'", + ], + 'animateAddingMarkers' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['animateAddingMarkers'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, - 'eval' => array('tl_class' => 'w50', 'submitOnChange' => false, 'isBoolean' => true), - 'sql' => "char(1) NOT NULL default ''" - ), - 'disableClusteringAtZoom' => array - ( + 'eval' => ['tl_class' => 'w50', 'submitOnChange' => false, 'isBoolean' => true], + 'sql' => "char(1) NOT NULL default ''", + ], + 'disableClusteringAtZoom' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['disableClusteringAtZoom'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => Netzmacht\Contao\Leaflet\Dca\LeafletCallbacks::callback('getZoomLevels'), 'default' => '', - 'eval' => array( + 'eval' => [ 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50', 'includeBlankOption' => true, - 'nullIfEmpty' => true - ), - 'sql' => "int(4) NULL" - ), - 'maxClusterRadius' => array - ( + 'nullIfEmpty' => true, + ], + 'sql' => 'int(4) NULL', + ], + 'maxClusterRadius' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['maxClusterRadius'], 'exclude' => true, 'inputType' => 'text', 'default' => null, - 'eval' => array('maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'w50', 'nullIfEmpty' => true), - 'sql' => "int(5) NULL" - ), - 'singleMarkerMode' => array - ( + 'eval' => ['maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'w50', 'nullIfEmpty' => true], + 'sql' => 'int(5) NULL', + ], + 'singleMarkerMode' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['singleMarkerMode'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, - 'eval' => array('tl_class' => 'w50 m12', 'submitOnChange' => false, 'isBoolean' => true), - 'sql' => "char(1) NOT NULL default ''" - ), - 'polygonOptions' => array - ( + 'eval' => ['tl_class' => 'w50 m12', 'submitOnChange' => false, 'isBoolean' => true], + 'sql' => "char(1) NOT NULL default ''", + ], + 'polygonOptions' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['polygonOptions'], 'exclude' => true, 'inputType' => 'textarea', - 'eval' => array( + 'eval' => [ 'preserveTags' => true, 'decodeEntities' => true, 'allowHtml' => true, 'rte' => 'ace|json', - 'tl_class' => 'clr' - ), - 'sql' => "mediumtext NULL" - ), - 'spiderfyDistanceMultiplier' => array - ( + 'tl_class' => 'clr', + ], + 'sql' => 'mediumtext NULL', + ], + 'spiderfyDistanceMultiplier' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['spiderfyDistanceMultiplier'], 'exclude' => true, 'inputType' => 'text', 'default' => null, - 'eval' => array('maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'w50', 'nullIfEmpty' => true), - 'sql' => "int(5) NULL" - ), - 'iconCreateFunction' => array - ( + 'eval' => ['maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'w50', 'nullIfEmpty' => true], + 'sql' => 'int(5) NULL', + ], + 'iconCreateFunction' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['iconCreateFunction'], 'exclude' => true, 'inputType' => 'textarea', - 'eval' => array( + 'eval' => [ 'preserveTags' => true, 'decodeEntities' => true, 'allowHtml' => true, 'rte' => 'ace|javascript', - 'tl_class' => 'clr' - ), - 'sql' => "mediumtext NULL" - ), - 'disableDefaultStyle' => array - ( + 'tl_class' => 'clr', + ], + 'sql' => 'mediumtext NULL', + ], + 'disableDefaultStyle' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['disableDefaultStyle'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, - 'eval' => array('tl_class' => 'w50', 'submitOnChange' => false, 'isBoolean' => true), - 'sql' => "char(1) NOT NULL default ''" - ), - 'boundsMode' => array - ( + 'eval' => ['tl_class' => 'w50', 'submitOnChange' => false, 'isBoolean' => true], + 'sql' => "char(1) NOT NULL default ''", + ], + 'boundsMode' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['boundsMode'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => \Netzmacht\Contao\Leaflet\Dca\LayerCallbacks::callback('getBoundsModes'), - 'eval' => array('tl_class' => 'w50', 'includeBlankOption' => true), - 'sql' => "varchar(6) NOT NULL default ''" - ), - 'tileUrl' => array - ( + 'eval' => ['tl_class' => 'w50', 'includeBlankOption' => true], + 'sql' => "varchar(6) NOT NULL default ''", + ], + 'tileUrl' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['tileUrl'], 'exclude' => true, 'inputType' => 'text', 'default' => '', - 'eval' => array('maxlength' => 255, 'tl_class' => 'w50', 'mandatory' => true), - 'sql' => "varchar(255) NOT NULL default ''" - ), - 'minZoom' => array - ( + 'eval' => ['maxlength' => 255, 'tl_class' => 'w50', 'mandatory' => true], + 'sql' => "varchar(255) NOT NULL default ''", + ], + 'minZoom' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['minZoom'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => Netzmacht\Contao\Leaflet\Dca\LeafletCallbacks::callback('getZoomLevels'), - 'eval' => array( + 'eval' => [ 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50', 'includeBlankOption' => true, - 'nullIfEmpty' => true - ), - 'sql' => "int(4) NULL" - ), - 'maxZoom' => array - ( + 'nullIfEmpty' => true, + ], + 'sql' => 'int(4) NULL', + ], + 'maxZoom' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['maxZoom'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => Netzmacht\Contao\Leaflet\Dca\LeafletCallbacks::callback('getZoomLevels'), - 'eval' => array( + 'eval' => [ 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50', 'includeBlankOption' => true, - 'nullIfEmpty' => true - ), - 'sql' => "int(4) NULL" - ), - 'maxNativeZoom' => array - ( + 'nullIfEmpty' => true, + ], + 'sql' => 'int(4) NULL', + ], + 'maxNativeZoom' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['maxNativeZoom'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => Netzmacht\Contao\Leaflet\Dca\LeafletCallbacks::callback('getZoomLevels'), - 'eval' => array( + 'eval' => [ 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50', 'includeBlankOption' => true, - 'nullIfEmpty' => true - ), - 'sql' => "int(4) NULL" - ), - 'tileSize' => array - ( + 'nullIfEmpty' => true, + ], + 'sql' => 'int(4) NULL', + ], + 'tileSize' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['tileSize'], 'exclude' => true, 'inputType' => 'text', 'default' => null, - 'eval' => array('maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'w50', 'nullIfEmpty' => true), - 'sql' => "int(5) NULL" - ), - 'subdomains' => array - ( + 'eval' => ['maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'w50', 'nullIfEmpty' => true], + 'sql' => 'int(5) NULL', + ], + 'subdomains' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['subdomains'], 'exclude' => true, 'inputType' => 'text', 'default' => '', - 'eval' => array('maxlength' => 16, 'tl_class' => 'w50'), - 'sql' => "varchar(16) NOT NULL default ''" - ), - 'errorTileUrl' => array - ( + 'eval' => ['maxlength' => 16, 'tl_class' => 'w50'], + 'sql' => "varchar(16) NOT NULL default ''", + ], + 'errorTileUrl' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['errorTileUrl'], 'exclude' => true, 'inputType' => 'text', 'default' => '', - 'eval' => array('maxlength' => 255, 'tl_class' => 'w50'), - 'sql' => "varchar(255) NOT NULL default ''" - ), - 'attribution' => array - ( + 'eval' => ['maxlength' => 255, 'tl_class' => 'w50'], + 'sql' => "varchar(255) NOT NULL default ''", + ], + 'attribution' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['attribution'], 'exclude' => true, 'inputType' => 'text', 'default' => '', - 'eval' => array('maxlength' => 255, 'tl_class' => 'long', 'allowHtml' => true), - 'sql' => "varchar(255) NOT NULL default ''" - ), - 'tms' => array - ( + 'eval' => ['maxlength' => 255, 'tl_class' => 'long', 'allowHtml' => true], + 'sql' => "varchar(255) NOT NULL default ''", + ], + 'tms' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['tms'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, - 'eval' => array('tl_class' => 'w50'), - 'sql' => "char(1) NOT NULL default ''" - ), - 'continuousWorld' => array - ( + 'eval' => ['tl_class' => 'w50'], + 'sql' => "char(1) NOT NULL default ''", + ], + 'continuousWorld' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['continuousWorld'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, - 'eval' => array('tl_class' => 'w50'), - 'sql' => "char(1) NOT NULL default ''" - ), - 'noWrap' => array - ( + 'eval' => ['tl_class' => 'w50'], + 'sql' => "char(1) NOT NULL default ''", + ], + 'noWrap' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['noWrap'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, - 'eval' => array('tl_class' => 'w50'), - 'sql' => "char(1) NOT NULL default ''" - ), - 'zoomOffset' => array - ( + 'eval' => ['tl_class' => 'w50'], + 'sql' => "char(1) NOT NULL default ''", + ], + 'zoomOffset' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['zoomOffset'], 'exclude' => true, 'inputType' => 'text', 'default' => null, - 'eval' => array('maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'w50', 'nullIfEmpty' => true), - 'sql' => "int(5) NULL" - ), - 'zoomReverse' => array - ( + 'eval' => ['maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'w50', 'nullIfEmpty' => true], + 'sql' => 'int(5) NULL', + ], + 'zoomReverse' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['zoomReverse'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, - 'eval' => array('tl_class' => 'w50'), - 'sql' => "char(1) NOT NULL default ''" - ), - 'opacity' => array - ( + 'eval' => ['tl_class' => 'w50'], + 'sql' => "char(1) NOT NULL default ''", + ], + 'opacity' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['opacity'], 'exclude' => true, 'inputType' => 'text', 'default' => '1.0', - 'eval' => array('mandatory' => false, 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50 clr'), - 'sql' => "varchar(4) NOT NULL default ''" - ), - 'zIndex' => array - ( + 'eval' => ['mandatory' => false, 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50 clr'], + 'sql' => "varchar(4) NOT NULL default ''", + ], + 'zIndex' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['zIndex'], 'exclude' => true, 'inputType' => 'text', 'default' => null, - 'eval' => array('maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'w50', 'nullIfEmpty' => true), - 'sql' => "int(5) NULL" - ), - 'unloadvisibleTiles' => array - ( + 'eval' => ['maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'w50', 'nullIfEmpty' => true], + 'sql' => 'int(5) NULL', + ], + 'unloadvisibleTiles' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['unloadvisibleTiles'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, - 'eval' => array('tl_class' => 'w50'), - 'sql' => "char(1) NOT NULL default ''" - ), - 'updateWhenIdle' => array - ( + 'eval' => ['tl_class' => 'w50'], + 'sql' => "char(1) NOT NULL default ''", + ], + 'updateWhenIdle' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['updateWhenIdle'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, - 'eval' => array('tl_class' => 'w50'), - 'sql' => "char(1) NOT NULL default ''" - ), - 'detectRetina' => array - ( + 'eval' => ['tl_class' => 'w50'], + 'sql' => "char(1) NOT NULL default ''", + ], + 'detectRetina' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['detectRetina'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, - 'eval' => array('tl_class' => 'w50'), - 'sql' => "char(1) NOT NULL default ''" - ), - 'reuseTiles' => array - ( + 'eval' => ['tl_class' => 'w50'], + 'sql' => "char(1) NOT NULL default ''", + ], + 'reuseTiles' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['reuseTiles'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, - 'eval' => array('tl_class' => 'w50'), - 'sql' => "char(1) NOT NULL default ''" - ), - 'bounds' => array - ( + 'eval' => ['tl_class' => 'w50'], + 'sql' => "char(1) NOT NULL default ''", + ], + 'bounds' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['bounds'], 'exclude' => true, 'inputType' => 'text', - 'save_callback' => array( - ), - 'eval' => array( + 'save_callback' => [ + ], + 'eval' => [ 'maxlength' => 255, - 'multiple'=>true, - 'size'=>2, + 'multiple' => true, + 'size' => 2, 'tl_class' => 'long clr', 'nullIfEmpty' => true, - ), - 'sql' => "mediumblob NULL" - ), - 'cache' => array - ( + ], + 'sql' => 'mediumblob NULL', + ], + 'cache' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['cache'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, - 'eval' => array('tl_class' => 'w50 m12', 'submitOnChange' => true), - 'sql' => "char(1) NOT NULL default ''" - ), - 'cacheLifeTime' => array - ( + 'eval' => ['tl_class' => 'w50 m12', 'submitOnChange' => true], + 'sql' => "char(1) NOT NULL default ''", + ], + 'cacheLifeTime' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['cacheLifeTime'], 'exclude' => true, 'inputType' => 'text', 'default' => 0, - 'eval' => array('maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'w50'), - 'sql' => "int(10) unsigned NOT NULL default '0'" - ), - 'overpassQuery' => array - ( + 'eval' => ['maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'w50'], + 'sql' => "int(10) unsigned NOT NULL default '0'", + ], + 'overpassQuery' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['overpassQuery'], 'exclude' => true, 'inputType' => 'textarea', - 'eval' => array( + 'eval' => [ 'preserveTags' => true, 'decodeEntities' => true, 'allowHtml' => true, 'rte' => 'ace', - 'tl_class' => 'clr' - ), - 'sql' => "mediumtext NULL" - ), - 'overpassEndpoint' => array - ( + 'tl_class' => 'clr', + ], + 'sql' => 'mediumtext NULL', + ], + 'overpassEndpoint' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['overpassEndpoint'], 'exclude' => true, 'inputType' => 'text', 'default' => '', - 'eval' => array('tl_class' => 'w50'), - 'sql' => "varchar(255) NOT NULL default ''" - ), - 'overpassCallback' => array - ( + 'eval' => ['tl_class' => 'w50'], + 'sql' => "varchar(255) NOT NULL default ''", + ], + 'overpassCallback' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['overpassCallback'], 'exclude' => true, 'inputType' => 'textarea', - 'eval' => array( + 'eval' => [ 'preserveTags' => true, 'decodeEntities' => true, 'allowHtml' => true, 'rte' => 'ace|javascript', - 'tl_class' => 'clr' - ), - 'sql' => "mediumtext NULL" - ), - 'minZoomIndicatorPosition' => array - ( + 'tl_class' => 'clr', + ], + 'sql' => 'mediumtext NULL', + ], + 'minZoomIndicatorPosition' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['minZoomIndicatorPosition'], 'exclude' => true, 'inputType' => 'select', 'filter' => true, 'sorting' => true, - 'options' => array('topleft', 'topright', 'bottomleft', 'bottomright'), + 'options' => ['topleft', 'topright', 'bottomleft', 'bottomright'], 'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_layer'], - 'eval' => array('mandatory' => true, 'maxlength' => 255, 'tl_class' => 'w50', 'helpwizard' => true), - 'sql' => "varchar(255) NOT NULL default ''" - ), - 'minZoomIndicatorMessage' => array - ( + 'eval' => ['mandatory' => true, 'maxlength' => 255, 'tl_class' => 'w50', 'helpwizard' => true], + 'sql' => "varchar(255) NOT NULL default ''", + ], + 'minZoomIndicatorMessage' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['minZoomIndicatorMessage'], 'exclude' => true, 'inputType' => 'text', 'default' => '', - 'eval' => array('tl_class' => 'clr w50'), - 'sql' => "varchar(255) NOT NULL default ''" - ), - 'minZoomIndicatorMessageNoLayer' => array - ( + 'eval' => ['tl_class' => 'clr w50'], + 'sql' => "varchar(255) NOT NULL default ''", + ], + 'minZoomIndicatorMessageNoLayer' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['minZoomIndicatorMessageNoLayer'], 'exclude' => true, 'inputType' => 'text', 'default' => '', - 'eval' => array('tl_class' => 'w50'), - 'sql' => "varchar(255) NOT NULL default ''" - ), - 'debug' => array - ( + 'eval' => ['tl_class' => 'w50'], + 'sql' => "varchar(255) NOT NULL default ''", + ], + 'debug' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['debug'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, - 'eval' => array('tl_class' => 'w50 m12'), - 'sql' => "char(1) NOT NULL default ''" - ), - 'amenityIcons' => array - ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['amenityIcons'], - 'exclude' => true, - 'inputType' => 'multiColumnWizard', - 'options_callback' => array('Netzmacht\Contao\Leaflet\Dca\MarkerCallbacks', 'getIcons'), - 'eval' => array( - 'columnFields' => array( - 'amenity' => array( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['amenity'], - 'exclude' => true, - 'inputType' => 'select', + 'eval' => ['tl_class' => 'w50 m12'], + 'sql' => "char(1) NOT NULL default ''", + ], + 'amenityIcons' => [ + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['amenityIcons'], + 'exclude' => true, + 'inputType' => 'multiColumnWizard', + 'options_callback' => ['Netzmacht\Contao\Leaflet\Dca\MarkerCallbacks', 'getIcons'], + 'eval' => [ + 'columnFields' => [ + 'amenity' => [ + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['amenity'], + 'exclude' => true, + 'inputType' => 'select', 'options_callback' => \Netzmacht\Contao\Leaflet\Dca\LayerCallbacks::callback('getAmenities'), - 'eval' => array( - 'mandatory' => true, - 'tl_class' => 'w50', - 'style' => 'width: 200px', - 'chosen' => true, - ), - ), - 'icon' => array( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['amenityIcon'], - 'exclude' => true, - 'inputType' => 'select', - 'options_callback' => array('Netzmacht\Contao\Leaflet\Dca\MarkerCallbacks', 'getIcons'), - 'eval' => array( - 'mandatory' => true, - 'tl_class' => 'w50', - 'style' => 'width: 200px', - 'chosen' => true, - ), - ), - ), - ), - 'sql' => "blob NULL", - ), - 'overpassPopup' => array - ( + 'eval' => [ + 'mandatory' => true, + 'tl_class' => 'w50', + 'style' => 'width: 200px', + 'chosen' => true, + ], + ], + 'icon' => [ + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['amenityIcon'], + 'exclude' => true, + 'inputType' => 'select', + 'options_callback' => ['Netzmacht\Contao\Leaflet\Dca\MarkerCallbacks', 'getIcons'], + 'eval' => [ + 'mandatory' => true, + 'tl_class' => 'w50', + 'style' => 'width: 200px', + 'chosen' => true, + ], + ], + ], + ], + 'sql' => 'blob NULL', + ], + 'overpassPopup' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['overpassPopup'], 'exclude' => true, 'inputType' => 'textarea', - 'eval' => array( + 'eval' => [ 'preserveTags' => true, 'decodeEntities' => true, 'allowHtml' => true, 'rte' => 'ace|javascript', - 'tl_class' => 'clr' - ), - 'sql' => "mediumtext NULL" - ), - ) -); + 'tl_class' => 'clr', + ], + 'sql' => 'mediumtext NULL', + ], + ], +]; diff --git a/src/Resources/contao/dca/tl_leaflet_map.php b/src/Resources/contao/dca/tl_leaflet_map.php index 8819cc5..17b4193 100644 --- a/src/Resources/contao/dca/tl_leaflet_map.php +++ b/src/Resources/contao/dca/tl_leaflet_map.php @@ -25,7 +25,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array ) ), 'onload_callback' => array( - function() { + function () { \Controller::loadLanguageFile('leaflet'); } ), @@ -84,7 +84,8 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['delete'], 'href' => 'act=delete', 'icon' => 'delete.gif', - 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"' + 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] + . '\'))return false;Backend.getScrollOffset()"' ), 'show' => array ( @@ -151,7 +152,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array ( 'id' => array ( - 'sql' => "int(10) unsigned NOT NULL auto_increment" + 'sql' => 'int(10) unsigned NOT NULL auto_increment' ), 'tstamp' => array ( @@ -182,7 +183,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array \Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateAlias') ), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NULL" + 'sql' => 'varchar(255) NULL' ), 'center' => array ( @@ -200,7 +201,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array 'tl_class' => 'long clr', 'nullIfEmpty' => true, ), - 'sql' => "varchar(255) NULL" + 'sql' => 'varchar(255) NULL' ), 'layers' => array ( @@ -235,7 +236,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array ), 'flatArray' => true ), - 'sql' => "mediumblob NULL" + 'sql' => 'mediumblob NULL' ), 'zoom' => array ( @@ -251,7 +252,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array 'includeBlankOption' => true, 'nullIfEmpty' => true ), - 'sql' => "int(4) NULL" + 'sql' => 'int(4) NULL' ), 'adjustZoomExtra' => array ( @@ -275,7 +276,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array 'includeBlankOption' => true, 'nullIfEmpty' => true ), - 'sql' => "int(4) NULL" + 'sql' => 'int(4) NULL' ), 'maxZoom' => array ( @@ -290,7 +291,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array 'includeBlankOption' => true, 'nullIfEmpty' => true ), - 'sql' => "int(4) NULL" + 'sql' => 'int(4) NULL' ), 'zoomSnap' => array ( @@ -304,7 +305,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array 'includeBlankOption' => true, 'nullIfEmpty' => true ), - 'sql' => "varchar(4) NULL" + 'sql' => 'varchar(4) NULL' ), 'zoomDelta' => array ( @@ -318,7 +319,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array 'includeBlankOption' => true, 'nullIfEmpty' => true ), - 'sql' => "varchar(4) NULL" + 'sql' => 'varchar(4) NULL' ), 'dragging' => array ( @@ -461,7 +462,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array 'style' => 'min-height: 40px;', 'rte' => 'ace|json' ), - 'sql' => "text NULL" + 'sql' => 'text NULL' ), 'adjustBounds' => array ( @@ -494,7 +495,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array 'includeBlankOption' => true, 'nullIfEmpty' => true ), - 'sql' => "varchar(32) NULL" + 'sql' => 'varchar(32) NULL' ), 'locate' => array ( @@ -529,7 +530,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array 'inputType' => 'text', 'default' => null, 'eval' => array('maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'w50', 'nullIfEmpty' => true), - 'sql' => "int(9) NULL" + 'sql' => 'int(9) NULL' ), 'locateMaximumAge' => array ( @@ -538,7 +539,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array 'inputType' => 'text', 'default' => null, 'eval' => array('maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'w50', 'nullIfEmpty' => true), - 'sql' => "int(9) NULL" + 'sql' => 'int(9) NULL' ), 'enableHighAccuracy' => array ( @@ -562,7 +563,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array 'includeBlankOption' => true, 'nullIfEmpty' => true ), - 'sql' => "int(4) NULL" + 'sql' => 'int(4) NULL' ), 'cache' => array ( diff --git a/src/Resources/contao/dca/tl_leaflet_map_layer.php b/src/Resources/contao/dca/tl_leaflet_map_layer.php index 55272ec..ab8a034 100644 --- a/src/Resources/contao/dca/tl_leaflet_map_layer.php +++ b/src/Resources/contao/dca/tl_leaflet_map_layer.php @@ -28,7 +28,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map_layer'] = array ( 'id' => array ( - 'sql' => "int(10) unsigned NOT NULL auto_increment" + 'sql' => 'int(10) unsigned NOT NULL auto_increment' ), 'tstamp' => array ( diff --git a/src/Resources/contao/dca/tl_leaflet_marker.php b/src/Resources/contao/dca/tl_leaflet_marker.php index 8a792a2..eda2571 100644 --- a/src/Resources/contao/dca/tl_leaflet_marker.php +++ b/src/Resources/contao/dca/tl_leaflet_marker.php @@ -26,7 +26,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array ) ), 'onload_callback' => array( - function() { + function () { \Controller::loadLanguageFile('leaflet'); } ), @@ -94,7 +94,8 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['delete'], 'href' => 'act=delete', 'icon' => 'delete.gif', - 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"' + 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] + . '\'))return false;Backend.getScrollOffset()"' ), 'toggle' => array ( @@ -143,7 +144,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array ( 'id' => array ( - 'sql' => "int(10) unsigned NOT NULL auto_increment" + 'sql' => 'int(10) unsigned NOT NULL auto_increment' ), 'tstamp' => array ( @@ -185,7 +186,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array \Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateAlias'), ), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NULL" + 'sql' => 'varchar(255) NULL' ), 'coordinates' => array ( @@ -215,7 +216,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50'), - 'sql' => "decimal(10,8) NULL" + 'sql' => 'decimal(10,8) NULL' ), 'longitude' => array ( @@ -223,7 +224,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50'), - 'sql' => "decimal(11,8) NULL" + 'sql' => 'decimal(11,8) NULL' ), 'altitude' => array ( @@ -231,7 +232,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50'), - 'sql' => "float NULL" + 'sql' => 'float NULL' ), 'active' => array ( @@ -293,7 +294,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array 'inputType' => 'text', 'eval' => array('mandatory' => true, 'rte' => 'tinyMCE', 'helpwizard' => true, 'tl_class' => 'clr'), 'explanation' => 'insertTags', - 'sql' => "mediumtext NULL" + 'sql' => 'mediumtext NULL' ), 'customIcon' => array ( @@ -350,7 +351,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array 'inputType' => 'text', 'default' => 0, 'eval' => array('maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'clr w50', 'nullIfEmpty' => true), - 'sql' => "int(5) NULL" + 'sql' => 'int(5) NULL' ), 'ignoreForBounds' => array ( @@ -371,7 +372,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array 'style' => 'min-height: 40px;', 'rte' => 'ace|json' ), - 'sql' => "text NULL" + 'sql' => 'text NULL' ), ), ); diff --git a/src/Resources/contao/dca/tl_leaflet_popup.php b/src/Resources/contao/dca/tl_leaflet_popup.php index 9ace839..36809b8 100644 --- a/src/Resources/contao/dca/tl_leaflet_popup.php +++ b/src/Resources/contao/dca/tl_leaflet_popup.php @@ -93,7 +93,8 @@ $GLOBALS['TL_DCA']['tl_leaflet_popup'] = array 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['delete'], 'href' => 'act=delete', 'icon' => 'delete.gif', - 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"' + 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] + . '\'))return false;Backend.getScrollOffset()"' ), 'toggle' => array ( @@ -144,7 +145,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_popup'] = array ( 'id' => array ( - 'sql' => "int(10) unsigned NOT NULL auto_increment" + 'sql' => 'int(10) unsigned NOT NULL auto_increment' ), 'tstamp' => array ( @@ -173,7 +174,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_popup'] = array \Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateAlias'), ), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NULL" + 'sql' => 'varchar(255) NULL' ), 'maxWidth' => array ( @@ -182,7 +183,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_popup'] = array 'inputType' => 'text', 'default' => null, 'eval' => array('mandatory' => false, 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50'), - 'sql' => "int(4) NULL" + 'sql' => 'int(4) NULL' ), 'minWidth' => array ( @@ -191,7 +192,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_popup'] = array 'inputType' => 'text', 'default' => null, 'eval' => array('mandatory' => false, 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50'), - 'sql' => "int(4) NULL" + 'sql' => 'int(4) NULL' ), 'maxHeight' => array ( @@ -200,7 +201,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_popup'] = array 'inputType' => 'text', 'default' => null, 'eval' => array('mandatory' => false, 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50'), - 'sql' => "int(4) NULL" + 'sql' => 'int(4) NULL' ), 'autoPan' => array ( @@ -242,7 +243,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_popup'] = array 'tl_class' => 'w50', 'nullIfEmpty' => true, ), - 'sql' => "varchar(255) NULL" + 'sql' => 'varchar(255) NULL' ), 'autoPanPadding' => array ( @@ -256,7 +257,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_popup'] = array 'multiple' => true, 'size' => 2, ), - 'sql' => "varchar(255) NULL" + 'sql' => 'varchar(255) NULL' ), 'zoomAnimation' => array ( diff --git a/src/Resources/contao/dca/tl_leaflet_style.php b/src/Resources/contao/dca/tl_leaflet_style.php index d502d3c..4b2641e 100644 --- a/src/Resources/contao/dca/tl_leaflet_style.php +++ b/src/Resources/contao/dca/tl_leaflet_style.php @@ -93,7 +93,8 @@ $GLOBALS['TL_DCA']['tl_leaflet_style'] = array 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['delete'], 'href' => 'act=delete', 'icon' => 'delete.gif', - 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"' + 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] + . '\'))return false;Backend.getScrollOffset()"' ), 'toggle' => array ( @@ -138,7 +139,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_style'] = array ( 'id' => array ( - 'sql' => "int(10) unsigned NOT NULL auto_increment" + 'sql' => 'int(10) unsigned NOT NULL auto_increment' ), 'tstamp' => array ( @@ -167,7 +168,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_style'] = array \Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateAlias'), ), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NULL" + 'sql' => 'varchar(255) NULL' ), 'type' => array ( @@ -274,8 +275,13 @@ $GLOBALS['TL_DCA']['tl_leaflet_style'] = array 'inputType' => 'select', 'options' => array('butt', 'round', 'square', 'inherit'), 'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['lineCaps'], - 'eval' => array('mandatory' => false, 'tl_class' => 'w50 clr', 'includeBlankOption' => true, 'helpwizard'), - 'sql' => "varchar(8) NOT NULL default ''" + 'eval' => array( + 'mandatory' => false, + 'tl_class' => 'w50 clr', + 'includeBlankOption' => true, + 'helpwizard' => true, + ), + 'sql' => "varchar(8) NOT NULL default ''", ), 'lineJoin' => array ( diff --git a/src/Resources/contao/dca/tl_leaflet_vector.php b/src/Resources/contao/dca/tl_leaflet_vector.php index b1e06ca..a418e98 100644 --- a/src/Resources/contao/dca/tl_leaflet_vector.php +++ b/src/Resources/contao/dca/tl_leaflet_vector.php @@ -26,7 +26,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array ) ), 'onload_callback' => array( - function() { + function () { \Controller::loadLanguageFile('leaflet'); } ), @@ -101,7 +101,8 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['delete'], 'href' => 'act=delete', 'icon' => 'delete.gif', - 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"' + 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] + . '\'))return false;Backend.getScrollOffset()"' ), 'toggle' => array ( @@ -168,7 +169,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array ( 'id' => array ( - 'sql' => "int(10) unsigned NOT NULL auto_increment" + 'sql' => 'int(10) unsigned NOT NULL auto_increment' ), 'tstamp' => array ( @@ -211,7 +212,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array \Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateAlias'), ), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NULL" + 'sql' => 'varchar(255) NULL' ), 'type' => array ( @@ -279,7 +280,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array 'inputType' => 'text', 'eval' => array('mandatory' => true, 'rte' => 'tinyMCE', 'helpwizard' => true, 'tl_class' => 'clr'), 'explanation' => 'insertTags', - 'sql' => "mediumtext NULL" + 'sql' => 'mediumtext NULL' ), 'style' => array ( @@ -329,7 +330,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array 'nullIfEmpty' => true, 'mandatory' => true, ), - 'sql' => "varchar(255) NULL" + 'sql' => 'varchar(255) NULL' ), 'radius' => array ( @@ -349,7 +350,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array 'save_callback' => array( \Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateMultipleCoordinates') ), - 'sql' => "longblob NULL" + 'sql' => 'longblob NULL' ), 'multiData' => array ( @@ -374,7 +375,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array 'save_callback' => array( \Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateMultipleCoordinateSets') ), - 'sql' => "longblob NULL" + 'sql' => 'longblob NULL' ), 'bounds' => array ( @@ -384,12 +385,12 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array 'save_callback' => array(), 'eval' => array( 'maxlength' => 255, - 'multiple'=>true, - 'size'=>2, + 'multiple' => true, + 'size' => 2, 'tl_class' => 'long clr', 'nullIfEmpty' => true, ), - 'sql' => "mediumblob NULL" + 'sql' => 'mediumblob NULL' ), 'ignoreForBounds' => array ( @@ -410,7 +411,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array 'style' => 'min-height: 40px;', 'rte' => 'ace|json' ), - 'sql' => "text NULL" + 'sql' => 'text NULL' ), ), );