Files
contao-leaflet-maps/src/Bundle/Resources/contao/dca/tl_leaflet_map.php

545 lines
22 KiB
PHP
Raw Normal View History

2014-12-27 22:58:58 +01:00
<?php
2015-01-12 19:03:29 +01:00
/**
2017-10-05 15:45:43 +02:00
* Leaflet maps for Contao CMS.
*
2016-10-11 10:40:15 +02:00
* @package contao-leaflet-maps
2015-01-12 19:03:29 +01:00
* @author David Molineus <david.molineus@netzmacht.de>
2017-10-11 15:00:48 +02:00
* @copyright 2014-2017 netzmacht David Molineus. All rights reserved.
2017-10-05 15:45:43 +02:00
* @license LGPL-3.0 https://github.com/netzmacht/contao-leaflet-maps/blob/master/LICENSE
2015-01-12 19:03:29 +01:00
* @filesource
*/
2017-10-09 16:54:32 +02:00
$GLOBALS['TL_DCA']['tl_leaflet_map'] = [
'config' => [
'dataContainer' => 'Table',
'enableVersioning' => true,
'ctable' => ['tl_leaflet_control'],
'sql' => [
'keys' => [
2015-01-09 17:40:50 +01:00
'id' => 'primary',
'alias' => 'unique',
2017-10-09 16:54:32 +02:00
],
],
'onload_callback' => [
['netzmacht.contao_leaflet.listeners.dca.leaflet', 'loadLanguageFile'],
['netzmacht.contao_leaflet.listeners.dca.map', 'addIncompleteConfigurationWarning'],
2017-10-09 16:54:32 +02:00
],
'onsubmit_callback' => [
['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
],
2020-08-28 16:56:11 +02:00
'oncopy_callback' => [
['netzmacht.contao_leaflet.listeners.dca.map', 'copyLayerRelations'],
],
2017-10-09 16:54:32 +02:00
],
2014-12-27 22:58:58 +01:00
2017-10-09 16:54:32 +02:00
'list' => [
'sorting' => [
'mode' => 1,
'fields' => ['title'],
'panelLayout' => 'search,limit',
'flag' => 1,
],
'label' => [
'fields' => ['title', 'alias'],
'format' => '%s <span class="tl_gray">[%s]</span>',
],
'global_operations' => [
'all' => [
'label' => &$GLOBALS['TL_LANG']['MSC']['all'],
'href' => 'act=select',
'class' => 'header_edit_all',
'attributes' => 'onclick="Backend.getScrollOffset();" accesskey="e"',
],
],
'operations' => [
'edit' => [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['edit'],
'href' => 'act=edit',
'icon' => 'header.gif',
],
'controls' => [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['controls'],
'href' => 'table=tl_leaflet_control',
'icon' => 'bundles/netzmachtcontaoleaflet/img/control.png',
'attributes' => 'onclick="Backend.getScrollOffset();" accesskey="e"',
],
'copy' => [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['copy'],
'href' => 'act=copy',
'icon' => 'copy.gif',
],
'delete' => [
'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()"',
],
'show' => [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['show'],
'href' => 'act=show',
'icon' => 'show.gif',
],
],
],
2014-12-27 22:58:58 +01:00
2017-10-09 16:54:32 +02:00
'metapalettes' => [
'default' => [
'title' => ['title', 'alias'],
'zoom' => ['center', 'zoom', 'adjustZoomExtra', 'adjustBounds', 'dynamicLoad', 'boundsPadding'],
'locate' => ['locate'],
'layers' => ['layers'],
'interaction' => [
2014-12-27 22:58:58 +01:00
'dragging',
'touchZoom',
'scrollWheelZoom',
'doubleClickZoom',
'boxZoom',
'tap',
2017-10-09 16:54:32 +02:00
'keyboard',
],
'behaviour' => [
2015-01-24 11:38:15 +01:00
'zoomControl',
2014-12-27 22:58:58 +01:00
'trackResize',
2014-12-29 12:17:40 +01:00
'closeOnClick',
2017-10-09 16:54:32 +02:00
'bounceAtZoomLimits',
],
'expert' => [
2014-12-29 12:17:40 +01:00
'options',
'cache',
2017-10-09 16:54:32 +02:00
],
],
],
'metasubpalettes' => [
'keyboard' => [
2015-01-24 11:38:15 +01:00
'keyboardPanOffset',
2017-10-09 16:54:32 +02:00
'keyboardZoomOffset',
],
'adjustZoomExtra' => [
2015-01-24 11:38:15 +01:00
'minZoom',
2016-10-11 10:25:28 +02:00
'maxZoom',
'zoomSnap',
'zoomDelta',
2017-10-09 16:54:32 +02:00
],
'locate' => [
2015-02-01 17:02:54 +01:00
':hide',
2015-01-24 11:38:15 +01:00
'locateWatch',
'locateSetView',
'locateMaxZoom',
'locateTimeout',
'locateMaximumAge',
2017-10-09 16:54:32 +02:00
'enableHighAccuracy',
],
'cache' => [
'cacheLifeTime',
],
],
2015-01-24 11:38:15 +01:00
2017-10-09 16:54:32 +02:00
'fields' => [
'id' => [
'sql' => 'int(10) unsigned NOT NULL auto_increment',
],
'tstamp' => [
'sql' => "int(10) unsigned NOT NULL default '0'",
],
'title' => [
2014-12-27 22:58:58 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['title'],
'exclude' => true,
'inputType' => 'text',
2015-01-08 16:27:55 +01:00
'search' => true,
2017-10-09 16:54:32 +02:00
'eval' => ['mandatory' => true, 'maxlength' => 255, 'tl_class' => 'w50'],
'sql' => "varchar(255) NOT NULL default ''",
],
'alias' => [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['alias'],
'exclude' => true,
'inputType' => 'text',
'search' => true,
'save_callback' => [
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
['netzmacht.contao_leaflet.listeners.dca.validator', 'validateAlias'],
2017-10-09 16:54:32 +02:00
],
'eval' => [
'mandatory' => false,
'maxlength' => 255,
'tl_class' => 'w50',
'unique' => true,
'doNotCopy' => true,
'nullIfEmpty' => true,
],
2017-10-09 16:54:32 +02:00
'toolkit' => [
'alias_generator' => [
'factory' => 'netzmacht.contao_leaflet.definition.alias_generator.factory_default',
2017-10-09 16:54:32 +02:00
'fields' => ['title'],
],
],
2017-10-09 16:54:32 +02:00
'sql' => 'varchar(255) NULL',
],
'center' => [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['center'],
'exclude' => true,
'inputType' => 'text',
'save_callback' => [
['netzmacht.contao_leaflet.listeners.dca.validator', 'validateCoordinates'],
2017-10-09 16:54:32 +02:00
],
'wizard' => [
['netzmacht.contao_leaflet.listeners.dca.leaflet', 'getGeocoder'],
2017-10-09 16:54:32 +02:00
],
'eval' => [
'maxlength' => 255,
'tl_class' => 'long clr',
2014-12-29 12:17:40 +01:00
'nullIfEmpty' => true,
2017-10-09 16:54:32 +02:00
],
'sql' => 'varchar(255) NULL',
],
'layers' => [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['layers'],
'exclude' => true,
'inputType' => 'multiColumnWizard',
'load_callback' => [
['netzmacht.contao_leaflet.listeners.dca.map', 'loadLayerRelations'],
2017-10-09 16:54:32 +02:00
],
'save_callback' => [
['netzmacht.contao_leaflet.listeners.dca.map', 'saveLayerRelations'],
2017-10-09 16:54:32 +02:00
],
'eval' => [
'multiple' => true,
'doNotSaveEmpty' => true,
2017-10-16 16:58:17 +02:00
'tl_class' => 'leaflet-mcw leaflet-mcw-map-layers',
2017-10-09 16:54:32 +02:00
'columnFields' => [
'reference' => [
2015-01-24 11:38:15 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['reference'],
'exclude' => true,
'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.map', 'getLayers'],
2017-10-09 16:54:32 +02:00
'eval' => [
2017-10-09 14:19:47 +02:00
'mandatory' => false,
2015-01-24 11:38:15 +01:00
'tl_class' => 'w50',
'chosen' => true,
'includeBlankOption' => true,
2017-10-09 16:54:32 +02:00
],
2015-01-24 11:38:15 +01:00
'sql' => "int(10) unsigned NOT NULL default '0'",
2017-10-09 16:54:32 +02:00
],
],
'flatArray' => true,
],
'sql' => 'mediumblob NULL',
],
'zoom' => [
2014-12-29 12:17:40 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['zoom'],
'exclude' => true,
'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'getZoomLevels'],
2017-10-09 14:18:24 +02:00
'default' => null,
2017-10-09 16:54:32 +02:00
'eval' => [
2014-12-29 12:17:40 +01:00
'maxlength' => 4,
'rgxp' => 'digit',
'tl_class' => 'w50',
'includeBlankOption' => true,
2017-10-09 16:54:32 +02:00
'nullIfEmpty' => true,
],
'sql' => 'int(4) NULL',
],
'adjustZoomExtra' => [
2014-12-29 12:17:40 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['adjustZoomExtra'],
'exclude' => true,
'inputType' => 'checkbox',
2015-02-01 17:02:14 +01:00
'default' => false,
2017-10-09 16:54:32 +02:00
'eval' => ['tl_class' => 'w50 m12', 'submitOnChange' => true],
'sql' => "char(1) NOT NULL default ''",
],
'minZoom' => [
2014-12-29 12:17:40 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['minZoom'],
'exclude' => true,
'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'getZoomLevels'],
2017-10-09 16:54:32 +02:00
'eval' => [
2014-12-29 12:17:40 +01:00
'maxlength' => 4,
'rgxp' => 'digit',
'tl_class' => 'w50',
'includeBlankOption' => true,
2017-10-09 16:54:32 +02:00
'nullIfEmpty' => true,
],
'sql' => 'int(4) NULL',
],
'maxZoom' => [
2014-12-29 12:17:40 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['maxZoom'],
'exclude' => true,
'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'getZoomLevels'],
2017-10-09 16:54:32 +02:00
'eval' => [
2014-12-29 12:17:40 +01:00
'maxlength' => 4,
'rgxp' => 'digit',
'tl_class' => 'w50',
'includeBlankOption' => true,
2017-10-09 16:54:32 +02:00
'nullIfEmpty' => true,
],
'sql' => 'int(4) NULL',
],
'zoomSnap' => [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomSnap'],
'exclude' => true,
'inputType' => 'text',
'eval' => [
2016-10-11 10:25:28 +02:00
'maxlength' => 4,
'rgxp' => 'digit',
'tl_class' => 'w50',
'includeBlankOption' => true,
2017-10-09 16:54:32 +02:00
'nullIfEmpty' => true,
],
'sql' => 'varchar(4) NULL',
],
'zoomDelta' => [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomDelta'],
'exclude' => true,
'inputType' => 'text',
'eval' => [
2016-10-11 10:25:28 +02:00
'maxlength' => 4,
'rgxp' => 'digit',
'tl_class' => 'w50',
'includeBlankOption' => true,
2017-10-09 16:54:32 +02:00
'nullIfEmpty' => true,
],
'sql' => 'varchar(4) NULL',
],
'dragging' => [
2014-12-27 22:58:58 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['dragging'],
'exclude' => true,
'inputType' => 'checkbox',
'default' => true,
2017-10-09 16:54:32 +02:00
'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default ''",
],
'touchZoom' => [
2014-12-27 22:58:58 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['touchZoom'],
'exclude' => true,
'inputType' => 'checkbox',
'default' => true,
2017-10-09 16:54:32 +02:00
'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default ''",
],
'scrollWheelZoom' => [
2014-12-27 22:58:58 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['scrollWheelZoom'],
'exclude' => true,
2014-12-29 12:17:40 +01:00
'inputType' => 'select',
2017-10-09 16:54:32 +02:00
'options' => ['1', 'center'],
2014-12-29 12:17:40 +01:00
'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomValues'],
2014-12-27 22:58:58 +01:00
'default' => true,
2017-10-09 16:54:32 +02:00
'eval' => [
2015-09-20 19:48:23 +02:00
'tl_class' => 'w50',
'helpwizard' => true,
'includeBlankOption' => true,
2017-10-09 16:54:32 +02:00
'blankOptionLabel' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomValues'][''][0],
],
'sql' => "char(6) NOT NULL default ''",
],
'doubleClickZoom' => [
2014-12-27 22:58:58 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['doubleClickZoom'],
'exclude' => true,
2014-12-29 12:17:40 +01:00
'inputType' => 'select',
2017-10-09 16:54:32 +02:00
'options' => ['1', 'center'],
2014-12-29 12:17:40 +01:00
'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomValues'],
2014-12-27 22:58:58 +01:00
'default' => true,
2017-10-09 16:54:32 +02:00
'eval' => [
2015-09-20 19:48:23 +02:00
'tl_class' => 'w50',
'helpwizard' => true,
'includeBlankOption' => true,
2017-10-09 16:54:32 +02:00
'blankOptionLabel' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomValues'][''][0],
],
'sql' => "char(6) NOT NULL default ''",
],
'boxZoom' => [
2014-12-27 22:58:58 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['boxZoom'],
'exclude' => true,
'inputType' => 'checkbox',
'default' => true,
2017-10-09 16:54:32 +02:00
'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default ''",
],
'tap' => [
2014-12-27 22:58:58 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['tap'],
'exclude' => true,
'inputType' => 'checkbox',
'default' => true,
2017-10-09 16:54:32 +02:00
'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default ''",
],
'trackResize' => [
2014-12-29 12:17:40 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['trackResize'],
'exclude' => true,
'inputType' => 'checkbox',
'default' => true,
2017-10-09 16:54:32 +02:00
'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default '1'",
],
'bounceAtZoomLimits' => [
2014-12-29 12:17:40 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['bounceAtZoomLimits'],
'exclude' => true,
'inputType' => 'checkbox',
'default' => true,
2017-10-09 16:54:32 +02:00
'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default '1'",
],
'closeOnClick' => [
2014-12-29 12:17:40 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['closeOnClick'],
'exclude' => true,
'inputType' => 'checkbox',
'default' => true,
2017-10-09 16:54:32 +02:00
'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default '1'",
],
'keyboard' => [
2014-12-29 12:17:40 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['keyboard'],
'exclude' => true,
'inputType' => 'checkbox',
'default' => true,
2017-10-09 16:54:32 +02:00
'eval' => ['tl_class' => 'w50', 'submitOnChange' => true],
'sql' => "char(1) NOT NULL default ''",
],
'keyboardPanOffset' => [
2014-12-29 12:17:40 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['keyboardPanOffset'],
'exclude' => true,
'inputType' => 'text',
'default' => 80,
2017-10-09 16:54:32 +02:00
'eval' => ['mandatory' => true, 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'clr w50'],
'sql' => "int(4) NOT NULL default '80'",
],
'keyboardZoomOffset' => [
2014-12-29 12:17:40 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['keyboardZoomOffset'],
'exclude' => true,
'inputType' => 'text',
'default' => 1,
2017-10-09 16:54:32 +02:00
'eval' => ['mandatory' => true, 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50'],
'sql' => "int(4) NOT NULL default '1'",
],
'zoomControl' => [
2014-12-29 12:17:40 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomControl'],
2014-12-27 22:58:58 +01:00
'exclude' => true,
'inputType' => 'checkbox',
'default' => true,
2017-10-09 16:54:32 +02:00
'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default '1'",
],
'options' => [
2014-12-29 12:17:40 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['options'],
'exclude' => true,
'inputType' => 'textarea',
2017-10-09 16:54:32 +02:00
'eval' => [
'tl_class' => 'clr lng',
'allowHtml' => true,
'style' => 'min-height: 40px;',
'rte' => 'ace|json',
],
'sql' => 'text NULL',
],
'adjustBounds' => [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['adjustBounds'],
'exclude' => true,
'inputType' => 'checkbox',
'default' => false,
2017-10-09 16:54:32 +02:00
'options' => ['load', 'deferred'],
'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['adjustBoundsOptions'],
2017-10-09 16:54:32 +02:00
'eval' => ['tl_class' => 'clr w50', 'multiple' => true, 'helpwizard' => true],
'sql' => "varchar(255) NOT NULL default ''",
],
'dynamicLoad' => [
2015-01-27 00:02:17 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['dynamicLoad'],
'exclude' => true,
'inputType' => 'checkbox',
2015-02-01 17:02:14 +01:00
'default' => false,
2017-10-09 16:54:32 +02:00
'eval' => ['tl_class' => 'clr w50', 'submitOnChange' => false],
'sql' => "char(1) NOT NULL default ''",
],
'boundsPadding' => [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['boundsPadding'],
'exclude' => true,
'inputType' => 'text',
'eval' => [
2016-10-11 14:32:43 +02:00
'maxlength' => 32,
'tl_class' => 'w50',
'includeBlankOption' => true,
2017-10-09 16:54:32 +02:00
'nullIfEmpty' => true,
],
'sql' => 'varchar(32) NULL',
],
'locate' => [
2015-01-24 11:38:15 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['locate'],
'exclude' => true,
'inputType' => 'checkbox',
'default' => false,
2017-10-09 16:54:32 +02:00
'eval' => ['tl_class' => 'w50', 'submitOnChange' => true],
'sql' => "char(1) NOT NULL default ''",
],
'locateWatch' => [
2015-01-24 11:38:15 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['locateWatch'],
'exclude' => true,
'inputType' => 'checkbox',
'default' => false,
2017-10-09 16:54:32 +02:00
'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default ''",
],
'locateSetView' => [
2015-01-24 11:38:15 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['locateSetView'],
'exclude' => true,
'inputType' => 'checkbox',
2017-10-09 16:54:32 +02:00
'eval' => ['tl_class' => 'w50', 'submitOnChange' => false],
'sql' => "char(1) NOT NULL default ''",
],
'locateTimeout' => [
2015-01-24 11:38:15 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['locateTimeout'],
'exclude' => true,
'inputType' => 'text',
'default' => null,
2017-10-09 16:54:32 +02:00
'eval' => ['maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'w50', 'nullIfEmpty' => true],
'sql' => 'int(9) NULL',
],
'locateMaximumAge' => [
2015-01-24 11:38:15 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['locateMaximumAge'],
'exclude' => true,
'inputType' => 'text',
'default' => null,
2017-10-09 16:54:32 +02:00
'eval' => ['maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'w50', 'nullIfEmpty' => true],
'sql' => 'int(9) NULL',
],
'enableHighAccuracy' => [
2015-01-24 11:38:15 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['enableHighAccuracy'],
'exclude' => true,
'inputType' => 'checkbox',
'default' => false,
2017-10-09 16:54:32 +02:00
'eval' => ['tl_class' => 'w50 m12'],
'sql' => "char(1) NOT NULL default ''",
],
'locateMaxZoom' => [
2015-01-24 11:38:15 +01:00
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['locateMaxZoom'],
'exclude' => true,
'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'getZoomLevels'],
2017-10-09 16:54:32 +02:00
'eval' => [
2015-01-24 11:38:15 +01:00
'maxlength' => 4,
'rgxp' => 'digit',
'tl_class' => 'clr w50',
'includeBlankOption' => true,
2017-10-09 16:54:32 +02:00
'nullIfEmpty' => true,
],
'sql' => 'int(4) NULL',
],
'cache' => [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['cache'],
'exclude' => true,
'inputType' => 'checkbox',
'default' => false,
2017-10-09 16:54:32 +02:00
'eval' => ['tl_class' => 'w50 m12', 'submitOnChange' => true],
'sql' => "char(1) NOT NULL default ''",
],
'cacheLifeTime' => [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['cacheLifeTime'],
'exclude' => true,
'inputType' => 'text',
2017-03-20 10:56:04 +01:00
'default' => 0,
2017-10-09 16:54:32 +02:00
'eval' => ['maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'w50'],
'sql' => "int(9) NOT NULL default '0'",
],
],
];