array( 'dataContainer' => 'Table', 'enableVersioning' => true, 'sql' => array ( 'keys' => array ( 'id' => 'primary' ) ) ), 'list' => array ( 'sorting' => array ( 'mode' => 5, 'fields' => array('title'), 'flag' => 1, 'icon' => 'system/modules/leaflet/assets/img/layers.png', 'paste_button_callback' => array('Netzmacht\Contao\Leaflet\Dca\Layer', 'getPasteButtons'), ), 'label' => array ( 'fields' => array('title'), 'format' => '%s', 'label_callback' => array('Netzmacht\Contao\Leaflet\Dca\Layer', 'generateRow') ), 'global_operations' => array ( 'map' => array ( 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['map'], 'href' => 'table=tl_leaflet_map', 'icon' => 'system/modules/leaflet/assets/img/leaflet.png', 'attributes' => 'onclick="Backend.getScrollOffset();" accesskey="m"' ), '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();" accesskey="e"' ), 'all' => array ( 'label' => &$GLOBALS['TL_LANG']['MSC']['all'], 'href' => 'act=select', 'class' => 'header_edit_all', 'attributes' => 'onclick="Backend.getScrollOffset();" accesskey="e"' ) ), 'operations' => array ( 'markers' => array ( 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['markers'], 'href' => 'table=tl_leaflet_marker', 'icon' => 'edit.gif', 'button_callback' => array('Netzmacht\Contao\Leaflet\Dca\Layer', 'generateMarkersButton'), ), 'vectors' => array ( 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['vectors'], 'href' => 'table=tl_leaflet_vector', 'icon' => 'edit.gif', 'button_callback' => array('Netzmacht\Contao\Leaflet\Dca\Layer', '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 ( 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['toggle'], 'icon' => 'visible.gif', 'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleVisibility(this,%s)"', 'button_callback' => \Netzmacht\Contao\DevTools\Dca::createToggleIconCallback( 'tl_leaflet_layer', 'active' ) ), 'show' => array ( 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['show'], 'href' => 'act=show', 'icon' => 'show.gif' ) ) ), 'palettes' => array( '__selector__' => array('type'), ), 'metapalettes' => array( 'default' => array( 'title' => array('title', 'alias', 'type'), 'active' => array('active'), ), 'markers extends default' => array( '+title' => array('markerCluster'), '+active' => array('deferred') ), ), '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'), ), ), 'fields' => array ( 'id' => array ( 'sql' => "int(10) unsigned NOT NULL auto_increment" ), 'pid' => array ( 'sql' => "int(10) unsigned NOT NULL default '0'" ), 'sorting' => array ( 'sql' => "int(10) unsigned NOT NULL default '0'" ), 'tstamp' => array ( 'sql' => "int(10) unsigned NOT NULL default '0'" ), 'title' => array ( 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['title'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => true, 'maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''" ), 'alias' => array ( 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['alias'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''" ), 'type' => array ( 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['type'], 'exclude' => true, 'inputType' => 'select', 'eval' => array( 'mandatory' => true, 'tl_class' => 'w50', 'includeBlankOption' => true, 'submitOnChange' => true, 'chosen' => 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', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''" ), 'tile_provider' => array( 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['tile_provider'], 'exclude' => true, 'inputType' => 'select', 'eval' => array( '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( 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['tile_provider_variant'], 'exclude' => true, 'inputType' => 'select', 'eval' => array( 'mandatory' => false, 'tl_class' => 'w50', 'submitOnChange' => true, 'chosen' => false, ), 'options_callback' => array('Netzmacht\Contao\Leaflet\Dca\Layer', 'getVariants'), 'sql' => "varchar(32) NOT NULL default ''" ), 'tile_provider_key' => array ( '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 ( '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 ''" ), 'markerCluster' => array ( 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['markerCluster'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\Contao\Leaflet\Dca\Layer', 'getMarkerClusterLayers'), 'reference' => &$GLOBALS['TL_LANG']['leaflet_layer'], 'eval' => array( 'mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'chosen' => true, 'includeBlankOption' => true ), 'sql' => "varchar(255) NOT NULL default ''" ), 'deferred' => array ( 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['deferred'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50', 'submitOnChange' => false), 'sql' => "char(1) NOT NULL default ''" ), ) );