<?php

/**
 * @package    dev
 * @author     David Molineus <*****@*****.**>
 * @copyright  2015 netzmacht creative David Molineus
 * @license    LGPL 3.0
 * @filesource
 *
 */
$GLOBALS['TL_DCA']['tl_leaflet_mm_renderer'] = array('config' => array('dataContainer' => 'Table', 'ptable' => 'tl_leaflet_layer', 'enableVersioning' => true, 'sql' => array('keys' => array('id' => 'primary', 'pid' => 'index', 'alias' => 'unique'))), 'list' => array('sorting' => array('mode' => 4, 'fields' => array('title'), 'flag' => 1, 'panelLayout' => 'limit', 'headerFields' => array('title', 'type', 'metamodel'), 'child_record_callback' => array('Netzmacht\\Contao\\Leaflet\\MetaModels\\Dca\\Renderer', 'generateRow')), 'label' => array('fields' => array('title', 'type'), 'format' => '%s <span class="tl_gray">[%s]</span>'), 'global_operations' => array('all' => array('label' => &$GLOBALS['TL_LANG']['MSC']['all'], 'href' => 'act=select', 'class' => 'header_edit_all', 'attributes' => 'onclick="Backend.getScrollOffset();" accesskey="e"')), 'operations' => array('edit' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['edit'], 'href' => 'act=edit', 'icon' => 'edit.gif'), 'copy' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['copy'], 'href' => 'act=copy', 'icon' => 'copy.gif'), 'delete' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['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_mm_renderer']['toggle'], 'icon' => 'visible.gif', 'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleVisibility(this,%s)"', 'button_callback' => \Netzmacht\Contao\Toolkit\Dca::createToggleIconCallback('tl_leaflet_mm_renderer', 'active')), 'show' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['show'], 'href' => 'act=show', 'icon' => 'show.gif'))), 'palettes' => array('__selector__' => array('type', 'referenceType', 'standalone')), 'metapalettes' => array('default' => array('title' => array('title', 'alias', 'type'), 'config' => array(), 'active' => array('active')), 'marker extends default' => array('config' => array('coordinates'), 'popup before active' => array('addPopup', 'renderSettings'), 'icon before active' => array('icon', 'iconAttribute'), '+active' => array('deferred', 'ignoreForBounds')), 'geojson extends default' => array('+title' => array('geojsonAttribute'), '+active' => array('deferred')), 'reference extends default' => array('config' => array('referenceType', 'referenceAttribute', 'standalone'), '+active' => array('deferred', 'ignoreForBounds')), 'referencereflayer extends reference' => array('-active' => array('deferred', 'ignoreForBounds')), 'referencerefmarkerstandalone extends reference' => array('popup before active' => array('addPopup', 'renderSettings'), 'icon before active' => array('icon', 'iconAttribute'), 'style before active' => array('style', 'styleAttribute')), 'referencerefvectorstandalone extends reference' => array('popup before active' => array('addPopup', 'renderSettings'), 'icon before active' => array('icon', 'iconAttribute'), 'style before active' => array('style', 'styleAttribute'))), 'metasubselectpalettes' => array('coordinates' => array('single' => array('coordinatesAttribute'), 'separate' => array('latitudeAttribute', 'longitudeAttribute')), 'addPopup' => array('attribute' => array('popupAttribute'))), 'fields' => array('id' => array('sql' => "int(10) unsigned NOT NULL auto_increment"), 'tstamp' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'pid' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'sorting' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'title' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['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_mm_renderer']['alias'], 'exclude' => true, 'inputType' => 'text', 'save_callback' => array(\Netzmacht\Contao\Toolkit\Dca::createGenerateAliasCallback('tl_leaflet_mm_renderer', 'title')), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), 'sql' => "varchar(255) NOT NULL default ''"), 'type' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['type'], 'exclude' => true, 'inputType' => 'select', 'eval' => array('mandatory' => true, 'tl_class' => 'w50', 'includeBlankOption' => true, 'submitOnChange' => true, 'chosen' => true), 'options' => array_keys($GLOBALS['LEAFLET_MM_RENDERER']), 'reference' => &$GLOBALS['TL_LANG']['leaflet_mm_renderer'], 'sql' => "varchar(32) NOT NULL default ''"), 'coordinates' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['coordinates'], 'exclude' => true, 'inputType' => 'select', 'eval' => array('mandatory' => true, 'tl_class' => 'w50', 'includeBlankOption' => true, 'submitOnChange' => true, 'chosen' => true), 'options' => array('single', 'separate'), 'reference' => &$GLOBALS['TL_LANG']['leaflet_mm_renderer'], 'sql' => "varchar(8) NOT NULL default ''"), 'coordinatesAttribute' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['coordinatesAttribute'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\MetaModels\\Dca\\Renderer', 'getAttributes'), 'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['longitudeAttribute'], 'eval' => array('mandatory' => false, 'tl_class' => 'w50', 'includeBlankOption' => true, 'chosen' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'latitudeAttribute' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['latitudeAttribute'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\MetaModels\\Dca\\Renderer', 'getAttributes'), 'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['latitudeAttribute'], 'eval' => array('mandatory' => true, 'tl_class' => 'w50 clr', 'includeBlankOption' => true, 'chosen' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'longitudeAttribute' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['longitudeAttribute'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\MetaModels\\Dca\\Renderer', 'getAttributes'), 'eval' => array('mandatory' => true, 'tl_class' => 'w50', 'includeBlankOption' => true, 'chosen' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'geojsonAttribute' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['geojsonAttribute'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\MetaModels\\Dca\\Renderer', 'getAttributes'), 'eval' => array('mandatory' => true, 'tl_class' => 'w50', 'includeBlankOption' => true, 'chosen' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'renderSettings' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['renderSettings'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\MetaModels\\Dca\\Renderer', 'getRenderSettings'), 'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['renderSettings'], 'eval' => array('mandatory' => false, 'tl_class' => 'w50', 'includeBlankOption' => true, 'chosen' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'active' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['active'], 'exclude' => true, 'inputType' => 'checkbox', 'filter' => true, 'sorting' => true, 'search' => false, 'flag' => 12, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'deferred' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['deferred'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => true, 'eval' => array('tl_class' => 'w50', 'submitOnChange' => false, 'isBoolean' => true), 'sql' => "char(1) NOT NULL default '1'"), 'addPopup' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['addPopup'], 'exclude' => true, 'inputType' => 'select', 'filter' => true, 'sorting' => true, 'search' => false, 'options' => array('attribute', 'render'), 'flag' => 12, 'eval' => array('tl_class' => 'w50', 'includeBlankOption' => true, 'submitOnChange' => true), 'sql' => "varchar(16) NOT NULL default ''"), 'popupAttribute' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['popupAttribute'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\MetaModels\\Dca\\Renderer', 'getAttributes'), 'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['latitudeAttribute'], 'eval' => array('mandatory' => true, 'tl_class' => 'w50', 'includeBlankOption' => true, 'chosen' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'customIcon' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['customIcon'], 'exclude' => true, 'inputType' => 'select', 'eval' => array('mandatory' => false, 'tl_class' => 'w50', 'includeBlankOption' => true, 'submitOnChange' => true, 'chosen' => true), 'options' => array('attribute', 'icon'), 'sql' => "varchar(10) NOT NULL default ''"), 'icon' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['icon'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\Dca\\Marker', 'getIcons'), 'eval' => array('mandatory' => false, 'tl_class' => 'w50 clr', 'chosen' => true, 'includeBlankOption' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'iconAttribute' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['iconAttribute'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\MetaModels\\Dca\\Renderer', 'getAttributes'), 'eval' => array('mandatory' => false, 'tl_class' => 'w50', 'includeBlankOption' => true, 'chosen' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'referenceType' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['referenceType'], 'exclude' => true, 'inputType' => 'select', 'options' => array('reflayer', 'refmarker', 'refvector'), 'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['referenceTypes'], 'eval' => array('mandatory' => true, 'tl_class' => 'w50', 'includeBlankOption' => true, 'submitOnChange' => true, 'chosen' => true), 'sql' => "varchar(32) NOT NULL default ''"), 'referenceAttribute' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['referenceAttribute'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\MetaModels\\Dca\\Renderer', 'getAttributes'), 'eval' => array('mandatory' => true, 'tl_class' => 'w50', 'includeBlankOption' => true, 'chosen' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'standalone' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['standalone'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, 'eval' => array('tl_class' => 'w50', 'submitOnChange' => true, 'isBoolean' => true), 'sql' => "char(1) NOT NULL default ''"), 'style' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['style'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\Dca\\Vector', 'getStyles'), 'eval' => array('mandatory' => false, 'tl_class' => 'w50 clr', 'chosen' => true, 'includeBlankOption' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'styleAttribute' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['styleAttribute'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\MetaModels\\Dca\\Renderer', 'getAttributes'), 'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['longitudeAttribute'], 'eval' => array('mandatory' => false, 'tl_class' => 'w50', 'includeBlankOption' => true, 'chosen' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'ignoreForBounds' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_mm_renderer']['ignoreForBounds'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''")));
<?php

/**
 * @package    dev
 * @author     David Molineus <*****@*****.**>
 * @copyright  2014 netzmacht creative David Molineus
 * @license    LGPL 3.0
 * @filesource
 *
 */
$GLOBALS['TL_DCA']['tl_leaflet_layer'] = array('config' => array('dataContainer' => 'Table', 'enableVersioning' => true, 'ctable' => array('tl_leaflet_vector', 'tl_leaflet_marker'), 'ondelete_callback' => array(array('Netzmacht\\Contao\\Leaflet\\Dca\\Layer', 'deleteRelations')), 'sql' => array('keys' => array('id' => 'primary', 'pid' => 'index', 'alias' => 'unique')), 'onload_callback' => array(function () {
    \Controller::loadLanguageFile('leaflet');
})), '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' => 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('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' => 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&amp;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\Toolkit\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'), 'config' => array(), 'expert' => array(':hide'), 'active' => array('active')), 'markers extends default' => array('+expert' => array('pointToLayer'), '+config' => array('deferred', 'boundsMode')), 'group extends default' => array('+title' => array('groupType'), '+active' => array('boundsMode')), 'vectors extends default' => array('+expert' => array('onEachFeature', 'pointToLayer'), '+config' => array('deferred', 'boundsMode')), 'reference extends default' => array('+title' => array('reference', 'standalone')), 'markercluster extends default' => array('config' => array('showCoverageOnHover', 'zoomToBoundsOnClick', 'removeOutsideVisibleBounds', 'animateAddingMarkers', 'spiderfyOnMaxZoom', 'disableClusteringAtZoom', 'maxClusterRadius', 'singleMarkerMode'), '+expert' => array('polygonOptions', 'iconCreateFunction', 'disableDefaultStyle')), 'tile extends default' => array('config' => array('tileUrl', 'subdomains', 'attribution', 'minZoom', 'maxZoom'), '+expert' => array('errorTileUrl', 'tileSize', 'tms', 'continuousWorld', 'noWrap', 'zoomReverse', 'zoomOffset', 'maxNativeZoom', 'opacity', 'zIndex', 'unloadvisibleTiles', 'updateWhenIdle', 'detectRetina', 'reuseTiles', 'bounds'))), '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'))), 'metasubpalettes' => array('spiderfyOnMaxZoom' => array('spiderfyDistanceMultiplier')), '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', 'search' => true, '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', 'search' => true, 'save_callback' => array(\Netzmacht\Contao\Leaflet\Dca\Helper::createGenerateAliasCallback('tl_leaflet_layer', 'title')), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), 'sql' => "varchar(255) NOT NULL default ''"), 'type' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['type'], 'exclude' => true, 'inputType' => 'select', 'filter' => true, 'eval' => array('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 ''"), '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 ''"), 'deferred' => array('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('label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['groupType'], 'exclude' => true, 'inputType' => 'select', 'eval' => array('mandatory' => true, 'tl_class' => 'w50', 'submitOnChange' => true, 'helpwizard' => true), 'default' => 'layer', 'options' => array('layer', 'feature'), 'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['groupTypes'], 'sql' => "varchar(32) NOT NULL default ''"), 'reference' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['reference'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\Dca\\Layer', 'getLayers'), 'eval' => array('mandatory' => true, 'tl_class' => 'w50', 'chosen' => true, 'includeBlankOption' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'standalone' => array('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('label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['onEachFeature'], 'exclude' => true, 'inputType' => 'textarea', 'eval' => array('preserveTags' => true, 'decodeEntities' => true, 'allowHtml' => true, 'rte' => 'ace|javascript', 'tl_class' => 'clr'), 'sql' => "mediumtext NULL"), 'pointToLayer' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['pointToLayer'], 'exclude' => true, 'inputType' => 'textarea', 'eval' => array('preserveTags' => true, 'decodeEntities' => true, 'allowHtml' => true, 'rte' => 'ace|javascript', 'tl_class' => 'clr'), 'sql' => "mediumtext NULL"), 'showCoverageOnHover' => array('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('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('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('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('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('label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['disableClusteringAtZoom'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\Dca\\Leaflet', 'getZoomLevels'), 'default' => '', 'eval' => array('maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50', 'includeBlankOption' => true, 'nullIfEmpty' => true), 'sql' => "int(4) NULL"), 'maxClusterRadius' => array('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('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('label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['polygonOptions'], 'exclude' => true, 'inputType' => 'textarea', 'eval' => array('preserveTags' => true, 'decodeEntities' => true, 'allowHtml' => true, 'rte' => 'ace|json', 'tl_class' => 'clr'), 'sql' => "mediumtext NULL"), 'spiderfyDistanceMultiplier' => array('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('label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['iconCreateFunction'], 'exclude' => true, 'inputType' => 'textarea', 'eval' => array('preserveTags' => true, 'decodeEntities' => true, 'allowHtml' => true, 'rte' => 'ace|javascript', 'tl_class' => 'clr'), 'sql' => "mediumtext NULL"), 'disableDefaultStyle' => array('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('label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['boundsMode'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\Dca\\Layer', 'getBoundsModes'), 'eval' => array('tl_class' => 'w50', 'includeBlankOption' => true), 'sql' => "varchar(6) NOT NULL default ''"), 'tileUrl' => array('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('label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['minZoom'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\Dca\\Leaflet', 'getZoomLevels'), 'eval' => array('maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50', 'includeBlankOption' => true, 'nullIfEmpty' => true), 'sql' => "int(4) NULL"), 'maxZoom' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['maxZoom'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\Dca\\Leaflet', 'getZoomLevels'), 'eval' => array('maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50', 'includeBlankOption' => true, 'nullIfEmpty' => true), 'sql' => "int(4) NULL"), 'maxNativeZoom' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['maxNativeZoom'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\Dca\\Leaflet', 'getZoomLevels'), 'eval' => array('maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50', 'includeBlankOption' => true, 'nullIfEmpty' => true), 'sql' => "int(4) NULL"), 'tileSize' => array('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('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('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('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('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('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('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('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('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('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('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('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('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('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('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('label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['bounds'], 'exclude' => true, 'inputType' => 'text', 'save_callback' => array(), 'eval' => array('maxlength' => 255, 'multiple' => true, 'size' => 2, 'tl_class' => 'long clr', 'nullIfEmpty' => true), 'sql' => "mediumblob NULL")));
示例#3
0
<?php

/**
 * This Contao-Workflow extension allows the definition of workflow process for entities from different providers. This
 * extension is a workflow framework which can be used from other extensions to provide their custom workflow handling.
 *
 * @package    workflow
 * @author     David Molineus <*****@*****.**>
 * @copyright  2014 netzmacht creative David Molineus
 * @license    LGPL 3.0
 * @filesource
 */
$GLOBALS['TL_DCA']['tl_workflow'] = array('config' => array('dataContainer' => 'Table', 'ctable' => array('tl_workflow_step', 'tl_workflow_transition'), 'sql' => array('keys' => array('id' => 'primary'))), 'list' => array('sorting' => array('mode' => 1, 'fields' => array('type', 'name'), 'panelLayout' => 'sorting,filter,search'), 'label' => array('fields' => array('name', 'type', 'description'), 'label_callback' => array('Netzmacht\\Workflow\\Contao\\Backend\\Common', 'generateRow')), 'operations' => array('edit' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['edit'], 'href' => 'act=edit', 'icon' => 'edit.gif'), 'steps' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['steps'], 'href' => 'table=tl_workflow_step', 'icon' => 'system/modules/workflow/assets/img/step.png'), 'transitions' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['transitions'], 'href' => 'table=tl_workflow_transition', 'icon' => 'system/modules/workflow/assets/img/transition.png'), 'delete' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['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_workflow']['toggle'], 'icon' => 'visible.gif', 'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleVisibility(this,%s)"', 'button_callback' => \Netzmacht\Contao\Toolkit\Dca::createToggleIconCallback('tl_workflow', 'active')), 'show' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['show'], 'href' => 'act=show', 'icon' => 'show.gif'))), 'palettes' => array('__selector__' => array('type')), 'metapalettes' => array('default' => array('name' => array('label', 'name', 'type', 'providerName'), 'description' => array(':hide', 'description'), 'permissions' => array('permissions'), 'process' => array('process', 'logChanges'), 'config' => array(), 'activation' => array('active'))), 'fields' => array('id' => array('sql' => "int(10) unsigned NOT NULL auto_increment"), 'tstamp' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'name' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['name'], 'inputType' => 'text', 'search' => true, 'exclude' => true, 'save_callback' => array(array('Netzmacht\\Workflow\\Contao\\Backend\\Common', 'createName')), 'eval' => array('tl_class' => 'w50', 'mandatory' => true), 'sql' => "varchar(64) NOT NULL default ''"), 'label' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['label'], 'inputType' => 'text', 'exclude' => true, 'eval' => array('tl_class' => 'w50', 'maxlength' => 64), 'sql' => "varchar(64) NOT NULL default ''"), 'type' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['type'], 'inputType' => 'select', 'filter' => true, 'reference' => &$GLOBALS['TL_LANG']['workflow']['types'], 'options_callback' => array('Netzmacht\\Workflow\\Contao\\Backend\\Dca\\Workflow', 'getTypes'), 'exclude' => true, 'eval' => array('tl_class' => 'w50', 'mandatory' => true, 'submitOnChange' => true), 'sql' => "varchar(64) NOT NULL default ''"), 'providerName' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['providerName'], 'inputType' => 'select', 'search' => true, 'exclude' => true, 'options_callback' => array('Netzmacht\\Workflow\\Contao\\Backend\\Dca\\Workflow', 'getProviderNames'), 'eval' => array('tl_class' => 'w50', 'mandatory' => true), 'sql' => "varchar(64) NOT NULL default ''"), 'description' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['description'], 'inputType' => 'text', 'exclude' => true, 'eval' => array('tl_class' => 'clr long'), 'sql' => "varchar(255) NOT NULL default ''"), 'process' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['process'], 'inputType' => 'multiColumnWizard', 'exclude' => true, 'save_callback' => array(array('Netzmacht\\Workflow\\Contao\\Backend\\Dca\\Workflow', 'validateProcess')), 'eval' => array('tl_class' => 'clr', 'columnFields' => array('step' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['step'], 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Workflow\\Contao\\Backend\\Dca\\Workflow', 'getStartSteps'), 'reference' => &$GLOBALS['TL_LANG']['tl_workflow']['process'], 'eval' => array('style' => 'width:200px', 'includeBlankOption' => true, 'chosen' => true)), 'transition' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['transition'], 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Workflow\\Contao\\Backend\\Dca\\Workflow', 'getTransitions'), 'eval' => array('style' => 'width:400px', 'includeBlankOption' => true, 'chosen' => true)))), 'sql' => "mediumblob NULL"), 'permissions' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['permissions'], 'inputType' => 'multiColumnWizard', 'exclude' => true, 'save_callback' => array(array('Netzmacht\\Workflow\\Contao\\Backend\\Dca\\Workflow', 'validatePermissions')), 'eval' => array('tl_class' => 'clr', 'columnFields' => array('label' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['permission_label'], 'inputType' => 'text', 'options_callback' => array('Netzmacht\\Workflow\\Contao\\Backend\\Dca\\Workflow', 'getStartSteps'), 'eval' => array('style' => 'width:350px')), 'name' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['permission_name'], 'inputType' => 'text', 'options_callback' => array('Netzmacht\\Workflow\\Contao\\Backend\\Dca\\Workflow', 'getStartSteps'), 'eval' => array('style' => 'width:230px')))), 'sql' => "mediumblob NULL"), 'logChanges' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['logChanges'], 'inputType' => 'checkbox', 'default' => '1', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(8) NOT NULL default '1'"), 'active' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow']['active'], 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'clr w50', 'submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''")));
<?php

/**
 * @package    dev
 * @author     David Molineus <*****@*****.**>
 * @copyright  2014 netzmacht creative David Molineus
 * @license    LGPL 3.0
 * @filesource
 *
 */
$GLOBALS['TL_DCA']['tl_leaflet_marker'] = array('config' => array('dataContainer' => 'Table', 'enableVersioning' => true, 'ptable' => 'tl_leaflet_layer', 'sql' => array('keys' => array('id' => 'primary', 'pid' => 'index', 'alias' => 'unique')), 'onload_callback' => array(function () {
    \Controller::loadLanguageFile('leaflet');
})), 'list' => array('sorting' => array('mode' => 4, 'fields' => array('sorting'), 'flag' => 1, 'panelLayout' => 'sort,filter;search,limit', 'headerFields' => array('title', 'type'), 'child_record_callback' => array('Netzmacht\\Contao\\Leaflet\\Dca\\Marker', 'generateRow')), 'label' => array('fields' => array('title'), 'format' => '%s'), 'global_operations' => array('icons' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['icons'], 'href' => 'table=tl_leaflet_icon&id=', 'icon' => 'system/modules/leaflet/assets/img/icons.png', 'attributes' => 'onclick="Backend.getScrollOffset();" accesskey="e"'), 'popups' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['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();" accesskey="e"')), 'operations' => array('edit' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['edit'], 'href' => 'act=edit', 'icon' => 'edit.gif'), 'copy' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['copy'], 'href' => 'act=copy', 'icon' => 'copy.gif'), 'delete' => 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()"'), 'toggle' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['toggle'], 'icon' => 'visible.gif', 'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleVisibility(this,%s)"', 'button_callback' => \Netzmacht\Contao\Toolkit\Dca::createToggleIconCallback('tl_leaflet_marker', 'active')), 'show' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['show'], 'href' => 'act=show', 'icon' => 'show.gif'))), 'metapalettes' => array('default' => array('title' => array('title', 'alias', 'coordinates'), 'content' => array('tooltip', 'alt', 'addPopup'), 'config' => array(':hide', 'clickable', 'draggable', 'keyboard', 'zIndexOffset', 'opacity', 'riseOnHover', 'riseOffset', 'customIcon'), 'expert' => array(':hide', 'featureData'), 'active' => array('active', 'ignoreForBounds'))), 'metasubpalettes' => array('addPopup' => array('popup', 'popupContent'), 'customIcon' => array('icon')), 'fields' => array('id' => array('sql' => "int(10) unsigned NOT NULL auto_increment"), 'tstamp' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'sorting' => array('sql' => "int(10) unsigned NOT NULL default '0'", 'sorting' => true), 'pid' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'title' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['title'], 'exclude' => true, 'search' => true, 'sorting' => true, 'flag' => 1, '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_marker']['alias'], 'exclude' => true, 'inputType' => 'text', 'search' => true, 'save_callback' => array(\Netzmacht\Contao\Leaflet\Dca\Helper::createGenerateAliasCallback('tl_leaflet_marker', 'title')), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), 'sql' => "varchar(255) NOT NULL default ''"), 'coordinates' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['coordinates'], 'exclude' => true, 'inputType' => 'text', 'save_callback' => array(array('Netzmacht\\Contao\\Leaflet\\Dca\\Leaflet', 'validateCoordinate'), array('Netzmacht\\Contao\\Leaflet\\Dca\\Marker', 'saveCoordinates')), 'load_callback' => array(array('Netzmacht\\Contao\\Leaflet\\Dca\\Marker', 'loadCoordinates')), 'wizard' => array(array('Netzmacht\\Contao\\Leaflet\\Dca\\Leaflet', 'getGeocoder')), 'eval' => array('maxlength' => 255, 'tl_class' => 'long clr', 'nullIfEmpty' => true, 'doNotSaveEmpty' => true)), 'latitude' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['latitude'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "decimal(10,8) NULL"), 'longitude' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['longitude'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "decimal(11,8) NULL"), 'altitude' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['altitude'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "float NULL"), 'active' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['active'], 'exclude' => true, 'filter' => true, 'sorting' => true, 'flag' => 12, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'tooltip' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['tooltip'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'alt' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['alt'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'addPopup' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['addPopup'], 'exclude' => true, 'inputType' => 'checkbox', 'filter' => true, 'eval' => array('tl_class' => 'w50 m12', 'submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'popup' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['popup'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\Dca\\Marker', 'getPopups'), 'eval' => array('mandatory' => false, 'tl_class' => 'w50', 'chosen' => true, 'includeBlankOption' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'popupContent' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['popupContent'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => true, 'rte' => 'tinyMCE', 'helpwizard' => true, 'tl_class' => 'clr'), 'explanation' => 'insertTags', 'sql' => "mediumtext NULL"), 'customIcon' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['customIcon'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'clr w50 m12', 'submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'icon' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['icon'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\Dca\\Marker', 'getIcons'), 'eval' => array('mandatory' => true, 'tl_class' => 'w50', 'chosen' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'draggable' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['draggable'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'clickable' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['clickable'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'keyboard' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['keyboard'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'zIndexOffset' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['zIndexOffset'], 'exclude' => true, 'inputType' => 'text', 'default' => 0, 'eval' => array('maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'clr w50', 'nullIfEmpty' => true), 'sql' => "int(5) NULL"), 'ignoreForBounds' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['ignoreForBounds'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'featureData' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['featureData'], 'exclude' => true, 'inputType' => 'textarea', 'eval' => array('tl_class' => 'clr lng', 'allowHtml' => true, 'style' => 'min-height: 40px;', 'rte' => 'ace|json'), 'sql' => "text NULL")));
<?php

/**
 * @package    dev
 * @author     David Molineus <*****@*****.**>
 * @copyright  2014 netzmacht creative David Molineus
 * @license    LGPL 3.0
 * @filesource
 *
 */
$GLOBALS['TL_DCA']['tl_leaflet_vector'] = array('config' => array('dataContainer' => 'Table', 'enableVersioning' => true, 'ptable' => 'tl_leaflet_layer', 'sql' => array('keys' => array('id' => 'primary', 'pid' => 'index', 'alias' => 'unique')), 'onload_callback' => array(function () {
    \Controller::loadLanguageFile('leaflet');
})), 'list' => array('sorting' => array('mode' => 4, 'fields' => array('sorting'), 'flag' => 1, 'panelLayout' => 'sort,filter;search,limit', 'headerFields' => array('title', 'type'), 'child_record_callback' => array('Netzmacht\\Contao\\Leaflet\\Dca\\Vector', 'generateRow')), 'label' => array('fields' => array('title'), 'format' => '%s'), 'global_operations' => array('styles' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['styles'], 'href' => 'table=tl_leaflet_style', 'icon' => 'system/modules/leaflet/assets/img/style.png', 'attributes' => 'onclick="Backend.getScrollOffset();"'), 'popups' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['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();" accesskey="e"')), 'operations' => array('edit' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['edit'], 'href' => 'act=edit', 'icon' => 'edit.gif'), 'copy' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['copy'], 'href' => 'act=copy', 'icon' => 'copy.gif'), 'cut' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['cut'], 'href' => 'act=paste&amp;mode=cut', 'icon' => 'cut.gif', 'attributes' => 'onclick="Backend.getScrollOffset()"'), 'delete' => 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()"'), 'toggle' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['toggle'], 'icon' => 'visible.gif', 'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleVisibility(this,%s)"', 'button_callback' => \Netzmacht\Contao\Toolkit\Dca::createToggleIconCallback('tl_leaflet_vector', 'active')), 'show' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['show'], 'href' => 'act=show', 'icon' => 'show.gif'))), 'palettes' => array('__selector__' => array('type')), 'metapalettes' => array('default' => array('title' => array('title', 'alias', 'type'), 'data' => array(), 'popup' => array(':hide', 'addPopup'), 'config' => array(':hide', 'style', 'className', 'clickable'), 'expert' => array(':hide', 'featureData'), 'active' => array('active', 'ignoreForBounds')), 'polyline extends default' => array('+config' => array('smoothFactor', 'noClip'), 'data' => array('data')), 'multiPolyline extends polyline' => array('data' => array('multiData')), 'polygon extends polyline' => array(), 'multiPolygon extends multiPolyline' => array(), 'rectangle extends polygon' => array('data' => array('bounds')), 'circle extends default' => array('+data' => array('coordinates', 'radius')), 'circleMarker extends circle' => array()), 'metasubpalettes' => array('addPopup' => array('popup', 'popupContent')), 'fields' => array('id' => array('sql' => "int(10) unsigned NOT NULL auto_increment"), 'tstamp' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'pid' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'sorting' => array('sql' => "int(10) unsigned NOT NULL default '0'", 'sorting' => true), 'title' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['title'], 'exclude' => true, 'inputType' => 'text', 'filter' => false, 'sorting' => true, 'search' => true, 'flag' => 1, 'eval' => array('mandatory' => true, 'maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'alias' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['alias'], 'exclude' => true, 'inputType' => 'text', 'search' => true, 'save_callback' => array(\Netzmacht\Contao\Leaflet\Dca\Helper::createGenerateAliasCallback('tl_leaflet_vector', 'title')), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), 'sql' => "varchar(255) NOT NULL default ''"), 'type' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['type'], 'exclude' => true, 'inputType' => 'select', 'filter' => true, 'sorting' => true, 'search' => false, 'flag' => 1, 'eval' => array('mandatory' => true, 'tl_class' => 'w50', 'includeBlankOption' => true, 'submitOnChange' => true, 'chosen' => true, 'helpwizard' => true), 'options' => &$GLOBALS['LEAFLET_VECTORS'], 'reference' => &$GLOBALS['TL_LANG']['leaflet_vector'], 'sql' => "varchar(32) NOT NULL default ''"), 'active' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['active'], 'exclude' => true, 'inputType' => 'checkbox', 'filter' => true, 'sorting' => true, 'search' => false, 'flag' => 12, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'addPopup' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['addPopup'], 'exclude' => true, 'inputType' => 'checkbox', 'filter' => true, 'eval' => array('tl_class' => 'w50 m12', 'submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'popup' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['popup'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\Dca\\Marker', 'getPopups'), 'eval' => array('mandatory' => false, 'tl_class' => 'w50', 'chosen' => true, 'includeBlankOption' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'popupContent' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['popupContent'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => true, 'rte' => 'tinyMCE', 'helpwizard' => true, 'tl_class' => 'clr'), 'explanation' => 'insertTags', 'sql' => "mediumtext NULL"), 'style' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['style'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\Dca\\Vector', 'getStyles'), 'eval' => array('mandatory' => false, 'tl_class' => 'w50', 'chosen' => true, 'includeBlankOption' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'clickable' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['clickable'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => true, 'eval' => array('tl_class' => 'm12 w50'), 'sql' => "char(1) NOT NULL default ''"), 'className' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['className'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 64, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'coordinates' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['coordinates'], 'exclude' => true, 'inputType' => 'text', 'save_callback' => array(array('Netzmacht\\Contao\\Leaflet\\Dca\\Leaflet', 'validateCoordinate')), 'wizard' => array(array('Netzmacht\\Contao\\Leaflet\\Dca\\Leaflet', 'getGeocoder')), 'eval' => array('maxlength' => 255, 'tl_class' => 'long clr', 'nullIfEmpty' => true), 'sql' => "varchar(255) NULL"), 'radius' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['radius'], 'exclude' => true, 'inputType' => 'text', 'default' => 5, 'eval' => array('mandatory' => false, 'maxlength' => 10, 'rgxp' => 'digit', 'tl_class' => 'clr w50'), 'sql' => "int(10) NOT NULL default '5'"), 'data' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['data'], 'inputType' => 'textarea', 'search' => false, 'eval' => array('mandatory' => true, 'alwaysSave' => true), 'sql' => "longblob NULL"), 'multiData' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['multiData'], 'inputType' => 'multiColumnWizard', 'search' => false, 'eval' => array('mandatory' => true, 'alwaysSave' => true, 'flatArray' => true, 'columnFields' => array('data' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['data'], 'inputType' => 'textarea', 'search' => false, 'eval' => array('alwaysSave' => true, 'style' => 'width:600px')))), 'sql' => "longblob NULL"), 'bounds' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['bounds'], 'exclude' => true, 'inputType' => 'text', 'save_callback' => array(), 'eval' => array('maxlength' => 255, 'multiple' => true, 'size' => 2, 'tl_class' => 'long clr', 'nullIfEmpty' => true), 'sql' => "mediumblob NULL"), 'ignoreForBounds' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['ignoreForBounds'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'featureData' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['featureData'], 'exclude' => true, 'inputType' => 'textarea', 'eval' => array('tl_class' => 'clr lng', 'allowHtml' => true, 'style' => 'min-height: 40px;', 'rte' => 'ace|json'), 'sql' => "text NULL")));
<?php

/**
 * @package    dev
 * @author     David Molineus <*****@*****.**>
 * @copyright  2014 netzmacht creative David Molineus
 * @license    LGPL 3.0
 * @filesource
 *
 */
\Controller::loadLanguageFile('leaflet');
$GLOBALS['TL_DCA']['tl_leaflet_control'] = array('config' => array('dataContainer' => 'Table', 'enableVersioning' => true, 'ptable' => 'tl_leaflet_map', 'sql' => array('keys' => array('id' => 'primary', 'pid' => 'index', 'alias' => 'unique'))), 'list' => array('sorting' => array('mode' => 4, 'fields' => array('sorting'), 'headerFields' => array('title'), 'flag' => 1, 'sorting' => 2, 'panelLayout' => 'filter,sort;search,limit', 'child_record_callback' => array('Netzmacht\\Contao\\Leaflet\\Dca\\Control', 'generateRow')), 'label' => array('fields' => array('title'), 'format' => '%s'), 'global_operations' => array('all' => array('label' => &$GLOBALS['TL_LANG']['MSC']['all'], 'href' => 'act=select', 'class' => 'header_edit_all', 'attributes' => 'onclick="Backend.getScrollOffset();" accesskey="e"')), 'operations' => array('edit' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['edit'], 'href' => 'act=edit', 'icon' => 'header.gif'), 'copy' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['copy'], 'href' => 'act=copy', 'icon' => 'copy.gif'), 'delete' => 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()"'), '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::createToggleIconCallback('tl_leaflet_control', 'active')), 'show' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['show'], 'href' => 'act=show', 'icon' => 'show.gif'))), 'palettes' => array('__selector__' => array('type')), 'metapalettes' => array('default' => array('name' => array('title', 'alias', 'type', 'position'), 'config' => array(), 'active' => array('active')), 'zoom extends default' => array('config' => array('zoomInText', 'zoomOutText', 'zoomInTitle', 'zoomOutTitle')), 'layers extends default' => array('config' => array('layers', 'collapsed', 'autoZIndex')), 'scale extends default' => array('config' => array('maxWidth', 'metric', 'imperial', 'updateWhenIdle')), 'attribution extends default' => array('config' => array('attributions', 'prefix', 'disableDefault')), 'loading extends default' => array('config' => array('separate', 'zoomControl', 'spinjs')), 'fullscreen extends default' => array('config' => array('buttonTitle', 'separate', 'simulateFullScreen'))), 'metasubpalettes' => array('spinjs' => array('spin')), 'fields' => array('id' => array('sql' => "int(10) unsigned NOT NULL auto_increment"), 'pid' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'tstamp' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'sorting' => array('sql' => "int(10) unsigned NOT NULL default '0'", 'sorting' => true), 'title' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['title'], 'exclude' => true, 'inputType' => 'text', 'sorting' => true, 'search' => true, 'flag' => 1, 'eval' => array('mandatory' => true, 'maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'alias' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['alias'], 'exclude' => true, 'inputType' => 'text', 'search' => true, 'save_callback' => array(\Netzmacht\Contao\Leaflet\Dca\Helper::createGenerateAliasCallback('tl_leaflet_control', 'title')), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), 'sql' => "varchar(255) NOT NULL default ''"), 'type' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['type'], 'exclude' => true, 'inputType' => 'select', 'filter' => true, 'sorting' => true, 'eval' => array('mandatory' => true, 'tl_class' => 'w50', 'includeBlankOption' => true, 'submitOnChange' => true, 'chosen' => true, 'helpwizard' => true), 'options' => $GLOBALS['LEAFLET_CONTROLS'], 'reference' => &$GLOBALS['TL_LANG']['leaflet_control'], 'sql' => "varchar(32) NOT NULL default ''"), 'position' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['position'], 'exclude' => true, 'inputType' => 'select', 'filter' => true, 'sorting' => true, 'options' => array('topleft', 'topright', 'bottomleft', 'bottomright'), 'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_control'], 'eval' => array('mandatory' => true, 'maxlength' => 255, 'tl_class' => 'w50', 'helpwizard' => true), 'sql' => "varchar(255) NOT NULL default ''"), 'active' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['active'], 'exclude' => true, 'inputType' => 'checkbox', 'filter' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'zoomInText' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['zoomInText'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'zoomOutText' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['zoomInText'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'zoomInTitle' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['zoomInTitle'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'zoomOutTitle' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['zoomOutTitle'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'collapsed' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['collapsed'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => '1', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'autoZIndex' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['autoZIndex'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => '1', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'layers' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['layers'], 'exclude' => true, 'inputType' => 'multiColumnWizard', 'load_callback' => array(array('Netzmacht\\Contao\\Leaflet\\Dca\\Control', 'loadLayerRelations')), 'save_callback' => array(array('Netzmacht\\Contao\\Leaflet\\Dca\\Control', 'saveLayerRelations')), 'eval' => array('tl_class' => 'clr', 'columnFields' => array('layer' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['layer'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\Dca\\Layer', 'getLayers'), 'eval' => array('style' => 'width: 300px', 'chosen' => true, 'includeBlankOption' => true)), 'mode' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['layerMode'], 'exclude' => true, 'inputType' => 'select', 'options' => array('base', 'overlay'), 'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_control'], 'eval' => array('style' => 'width: 200px', 'helpwizard' => true)))), 'sql' => "mediumblob NULL"), 'maxWidth' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['maxWidth'], 'exclude' => true, 'inputType' => 'text', 'default' => 100, 'eval' => array('tl_class' => 'w50', 'rgxp' => 'digit'), 'sql' => "int(5) NOT NULL default '100'"), 'metric' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['metric'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => '1', 'eval' => array('tl_class' => 'w50 clr'), 'sql' => "char(1) NOT NULL default '1'"), 'imperial' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['imperial'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => '1', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default '1'"), 'updateWhenIdle' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['updateWhenIdle'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'prefix' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['prefix'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'attributions' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['attributions'], 'exclude' => true, 'inputType' => 'listWizard', 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'clr', 'allowHtml' => true), 'sql' => "mediumblob NULL"), 'separate' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['separate'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'zoomControl' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['zoomControl'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Contao\\Leaflet\\Dca\\Control', 'getZoomControls'), 'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_control'], 'eval' => array('mandatory' => false, 'tl_class' => 'w50', 'chosen' => true, 'includeBlankOption' => true), 'sql' => "varchar(255) NOT NULL default ''"), 'spinjs' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['spinjs'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50', 'submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'spin' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['spin'], 'exclude' => true, 'inputType' => 'textarea', 'eval' => array('style' => 'height:60px', 'preserveTags' => true, 'decodeEntities' => true, 'allowHtml' => true, 'rte' => 'ace|json', 'tl_class' => 'clr'), 'sql' => "mediumtext NULL"), 'simulateFullScreen' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['simulateFullScreen'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'buttonTitle' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['buttonTitle'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'disableDefault' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['disableDefault'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => true, 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''")));
<?php

/**
 * @package    dev
 * @author     David Molineus <*****@*****.**>
 * @copyright  2014 netzmacht creative David Molineus
 * @license    LGPL 3.0
 * @filesource
 *
 */
$GLOBALS['TL_DCA']['tl_leaflet_style'] = array('config' => array('dataContainer' => 'Table', 'enableVersioning' => true, 'sql' => array('keys' => array('id' => 'primary', 'alias' => 'unique'))), 'list' => array('sorting' => array('mode' => 1, 'fields' => array('title'), 'flag' => 1, 'panelLayout' => 'limit', 'headerFields' => array('title', 'type')), 'label' => array('fields' => array('title', 'type'), 'format' => '%s <span class="tl_gray">[%s]</span>'), 'global_operations' => array('layers' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['layersBtn'], 'href' => 'table=tl_leaflet_layer', 'icon' => 'system/modules/leaflet/assets/img/layers.png', 'attributes' => 'onclick="Backend.getScrollOffset();" accesskey="e"'), 'icons' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['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_style']['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();" accesskey="e"')), 'operations' => array('edit' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['edit'], 'href' => 'act=edit', 'icon' => 'edit.gif'), 'copy' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['copy'], 'href' => 'act=copy', 'icon' => 'copy.gif'), 'delete' => 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()"'), 'toggle' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['toggle'], 'icon' => 'visible.gif', 'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleVisibility(this,%s)"', 'button_callback' => \Netzmacht\Contao\Toolkit\Dca::createToggleIconCallback('tl_leaflet_style', 'active')), 'show' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['show'], 'href' => 'act=show', 'icon' => 'show.gif'))), 'palettes' => array('__selector__' => array('type')), 'metapalettes' => array('default' => array('title' => array('title', 'alias', 'type'), 'config' => array(), 'active' => array('active')), 'fixed extends default' => array('config' => array('stroke', 'fill'))), 'metasubpalettes' => array('stroke' => array('color', 'weight', 'opacity', 'dashArray', 'lineCap', 'lineJoin'), 'fill' => array('fillColor', 'fillOpacity')), 'fields' => array('id' => array('sql' => "int(10) unsigned NOT NULL auto_increment"), 'tstamp' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'title' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['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_style']['alias'], 'exclude' => true, 'inputType' => 'text', 'save_callback' => array(\Netzmacht\Contao\Leaflet\Dca\Helper::createGenerateAliasCallback('tl_leaflet_style', 'title')), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), 'sql' => "varchar(255) NOT NULL default ''"), 'type' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['type'], 'exclude' => true, 'inputType' => 'select', 'eval' => array('mandatory' => true, 'tl_class' => 'w50', 'includeBlankOption' => true, 'submitOnChange' => true, 'chosen' => true), 'options' => &$GLOBALS['LEAFLET_STYLES'], 'reference' => &$GLOBALS['TL_LANG']['leaflet_style'], 'sql' => "varchar(32) NOT NULL default ''"), 'stroke' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['stroke'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => true, 'eval' => array('tl_class' => 'w50', 'submitOnChange' => true), 'sql' => "char(1) NOT NULL default '1'"), 'color' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['color'], 'exclude' => true, 'inputType' => 'text', 'wizard' => array(\Netzmacht\Contao\Toolkit\Dca::createColorPickerCallback()), 'eval' => array('tl_class' => 'w50 wizard clr', 'maxlength' => 7, 'decodeEntities' => true), 'sql' => "varchar(8) NOT NULL default ''"), 'weight' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['weight'], 'exclude' => true, 'inputType' => 'text', 'default' => 5, 'eval' => array('mandatory' => false, 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50'), 'sql' => "int(4) NOT NULL default '5'"), 'opacity' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['opacity'], 'exclude' => true, 'inputType' => 'text', 'default' => '0.5', 'eval' => array('mandatory' => false, 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50'), 'sql' => "varchar(4) NOT NULL default '0.5'"), 'fill' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['fill'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'clr w50', 'submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'fillColor' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['fillColor'], 'exclude' => true, 'inputType' => 'text', 'wizard' => array(\Netzmacht\Contao\Toolkit\Dca::createColorPickerCallback()), 'eval' => array('tl_class' => 'clr w50 wizard', 'maxlength' => 7, 'decodeEntities' => true), 'sql' => "varchar(8) NOT NULL default ''"), 'fillOpacity' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['fillOpacity'], 'exclude' => true, 'inputType' => 'text', 'default' => '0.2', 'eval' => array('mandatory' => false, 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50'), 'sql' => "varchar(4) NOT NULL default '0.2'"), 'dashArray' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['dashArray'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 32, 'tl_class' => 'w50'), 'sql' => "varchar(32) NOT NULL default ''"), 'lineCap' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['lineCap'], 'exclude' => true, '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 ''"), 'lineJoin' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['lineJoin'], 'exclude' => true, 'inputType' => 'select', 'options' => array('miter', 'round', 'bevel', 'inherit'), 'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['lineJoins'], 'eval' => array('mandatory' => false, 'tl_class' => 'w50', 'includeBlankOption' => true, 'helpwizard'), 'sql' => "varchar(8) NOT NULL default ''"), 'active' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['active'], 'exclude' => true, 'inputType' => 'checkbox', 'filter' => true, 'sorting' => true, 'search' => false, 'flag' => 12, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''")));
<?php

/**
 * @package    dev
 * @author     David Molineus <*****@*****.**>
 * @copyright  2014 netzmacht creative David Molineus
 * @license    LGPL 3.0
 * @filesource
 *
 */
$GLOBALS['TL_DCA']['tl_leaflet_icon'] = array('config' => array('dataContainer' => 'Table', 'enableVersioning' => true, 'sql' => array('keys' => array('id' => 'primary', 'alias' => 'unique'))), 'list' => array('sorting' => array('mode' => 1, 'fields' => array('title'), 'flag' => 1, 'panelLayout' => 'limit', 'headerFields' => array('title', 'type')), 'label' => array('fields' => array('title', 'type'), 'format' => '%s <span class="tl_gray">[%s]</span>'), 'global_operations' => array('layers' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['layersBtn'], 'href' => 'table=tl_leaflet_layer', 'icon' => 'system/modules/leaflet/assets/img/layers.png', 'attributes' => 'onclick="Backend.getScrollOffset();" accesskey="e"'), 'styles' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['styles'], 'href' => 'table=tl_leaflet_style', 'icon' => 'system/modules/leaflet/assets/img/style.png', 'attributes' => 'onclick="Backend.getScrollOffset();"'), 'popups' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['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();" accesskey="e"')), 'operations' => array('edit' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['edit'], 'href' => 'act=edit', 'icon' => 'edit.gif'), 'copy' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['copy'], 'href' => 'act=copy', 'icon' => 'copy.gif'), 'delete' => 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()"'), 'toggle' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['toggle'], 'icon' => 'visible.gif', 'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleVisibility(this,%s)"', 'button_callback' => \Netzmacht\Contao\Toolkit\Dca::createToggleIconCallback('tl_leaflet_icon', 'active')), 'show' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['show'], 'href' => 'act=show', 'icon' => 'show.gif'))), 'palettes' => array('__selector__' => array('type')), 'metapalettes' => array('default' => array('title' => array('title', 'alias', 'type')), 'image extends default' => array('config' => array('iconImage', 'iconRetinaImage', 'iconAnchor', 'popupAnchor', 'className'), 'shadow' => array('shadowImage', 'shadowRetinaImage', 'shadowAnchor'), 'active' => array('active')), 'div extends default' => array('config' => array('html', 'iconSize', 'iconAnchor', 'popupAnchor', 'className'), 'active' => array('active'))), 'fields' => array('id' => array('sql' => "int(10) unsigned NOT NULL auto_increment"), 'tstamp' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'title' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['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_icon']['alias'], 'exclude' => true, 'inputType' => 'text', 'save_callback' => array(\Netzmacht\Contao\Leaflet\Dca\Helper::createGenerateAliasCallback('tl_leaflet_icon', 'title')), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), 'sql' => "varchar(255) NOT NULL default ''"), 'type' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['type'], 'exclude' => true, 'inputType' => 'select', 'eval' => array('mandatory' => true, 'tl_class' => 'w50', 'includeBlankOption' => true, 'submitOnChange' => true, 'chosen' => true), 'options' => &$GLOBALS['LEAFLET_ICONS'], 'reference' => &$GLOBALS['TL_LANG']['leaflet_icon'], 'sql' => "varchar(32) NOT NULL default ''"), 'active' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['active'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'iconImage' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['iconImage'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('filesOnly' => true, 'fieldType' => 'radio', 'mandatory' => true, 'tl_class' => 'clr', 'extensions' => 'gif,png,svg,jpg'), 'sql' => "binary(16) NULL"), 'iconRetinaImage' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['iconRetinaImage'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('filesOnly' => true, 'fieldType' => 'radio', 'mandatory' => false, 'tl_class' => 'clr', 'extensions' => 'gif,png,svg,jpg'), 'sql' => "binary(16) NULL"), 'shadowImage' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['shadowImage'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('filesOnly' => true, 'fieldType' => 'radio', 'mandatory' => false, 'tl_class' => 'clr', 'extensions' => 'gif,png,svg,jpg'), 'sql' => "binary(16) NULL"), 'shadowRetinaImage' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['shadowRetinaImage'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('filesOnly' => true, 'fieldType' => 'radio', 'mandatory' => false, 'tl_class' => 'clr', 'extensions' => 'gif,png,svg,jpg'), 'sql' => "binary(16) NULL"), 'iconAnchor' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['iconAnchor'], 'exclude' => true, 'inputType' => 'text', 'save_callback' => array(array('Netzmacht\\Contao\\Leaflet\\Dca\\Leaflet', 'validateCoordinate')), 'eval' => array('maxlength' => 255, 'tl_class' => 'w50', 'nullIfEmpty' => true), 'sql' => "varchar(255) NULL"), 'shadowAnchor' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['shadowAnchor'], 'exclude' => true, 'inputType' => 'text', 'save_callback' => array(array('Netzmacht\\Contao\\Leaflet\\Dca\\Leaflet', 'validateCoordinate')), 'eval' => array('maxlength' => 255, 'tl_class' => 'w50', 'nullIfEmpty' => true), 'sql' => "varchar(255) NULL"), 'popupAnchor' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['popupAnchor'], 'exclude' => true, 'inputType' => 'text', 'save_callback' => array(array('Netzmacht\\Contao\\Leaflet\\Dca\\Leaflet', 'validateCoordinate')), 'eval' => array('maxlength' => 255, 'tl_class' => 'w50', 'nullIfEmpty' => true), 'sql' => "varchar(255) NULL"), 'className' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['className'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 64, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'iconSize' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['iconSize'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 64, 'tl_class' => 'w50', 'nullIfEmpty' => true), 'sql' => "varchar(64) NULL"), 'html' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['html'], 'exclude' => true, 'inputType' => 'textarea', 'eval' => array('style' => 'height:60px', 'preserveTags' => true, 'decodeEntities' => true, 'allowHtml' => true, 'rte' => 'ace|html', 'tl_class' => 'clr'), 'sql' => "mediumtext NULL")));
<?php

/**
 * This Contao-Workflow extension allows the definition of workflow process for entities from different providers. This
 * extension is a workflow framework which can be used from other extensions to provide their custom workflow handling.
 *
 * @package    workflow
 * @author     David Molineus <*****@*****.**>
 * @copyright  2014 netzmacht creative David Molineus
 * @license    LGPL 3.0
 * @filesource
 */
$GLOBALS['TL_DCA']['tl_workflow_action'] = array('config' => array('dataContainer' => 'Table', 'ptable' => 'tl_workflow_transition', 'sql' => array('keys' => array('id' => 'primary', 'pid' => 'index'))), 'list' => array('sorting' => array('mode' => 4, 'flag' => 1, 'fields' => array('postAction', 'sorting'), 'headerFields' => array('label', 'name', 'type', 'description'), 'child_record_callback' => array('Netzmacht\\Workflow\\Contao\\Backend\\Common', 'generateRow'), 'panelLayout' => 'filter;search,limit'), 'label' => array('fields' => array('name'), 'format' => '%s'), 'operations' => array('edit' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow_action']['edit'], 'href' => 'act=edit', 'icon' => 'edit.gif'), 'delete' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow_action']['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_workflow_action']['toggle'], 'icon' => 'visible.gif', 'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleVisibility(this,%s)"', 'button_callback' => \Netzmacht\Contao\Toolkit\Dca::createToggleIconCallback('tl_workflow_action', 'active')), 'show' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow_action']['show'], 'href' => 'act=show', 'icon' => 'show.gif'))), 'palettes' => array('__selector__' => array('type')), 'metapalettes' => array('default' => array('name' => array('label', 'name', 'type', 'postAction', 'logChanges', 'sorting'), 'description' => array(':hide', 'description'), 'config' => array(), 'activation' => array('active'))), 'fields' => array('id' => array('sql' => "int(10) unsigned NOT NULL auto_increment"), 'pid' => array('relation' => array('type' => 'hasOne', 'load' => 'lazy'), 'foreignKey' => 'tl_workflow_transition.name', 'sql' => "int(10) unsigned NOT NULL default '0'"), 'sorting' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow_action']['sorting'], 'inputType' => 'text', 'exclude' => true, 'eval' => array('tl_class' => 'w50', 'rgxp' => 'digit', 'maxlength' => 64), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'tstamp' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'label' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow_action']['label'], 'inputType' => 'text', 'exclude' => true, 'eval' => array('tl_class' => 'w50', 'mandatory' => true, 'maxlength' => 64), 'sql' => "varchar(64) NOT NULL default ''"), 'name' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow_action']['name'], 'inputType' => 'text', 'exclude' => true, 'save_callback' => array(array('Netzmacht\\Workflow\\Contao\\Backend\\Common', 'createName')), 'eval' => array('tl_class' => 'w50', 'maxlength' => 64), 'sql' => "varchar(64) NOT NULL default ''"), 'type' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow_action']['type'], 'inputType' => 'select', 'exclude' => true, 'options_callback' => array('Netzmacht\\Workflow\\Contao\\Backend\\Dca\\Action', 'getTypes'), 'eval' => array('tl_class' => 'w50', 'mandatory' => true, 'includeBlankOption' => true, 'submitOnChange' => true, 'chosen' => true), 'sql' => "varchar(32) NOT NULL default ''"), 'description' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow_action']['description'], 'inputType' => 'text', 'exclude' => true, 'eval' => array('tl_class' => 'clr long', 'maxlength' => 255), 'sql' => "varchar(255) NOT NULL default ''"), 'postAction' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow_action']['postAction'], 'inputType' => 'checkbox', 'exclude' => true, 'filter' => true, 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'logChanges' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow_action']['logChanges'], 'inputType' => 'select', 'default' => 'inherit', 'options' => array('inherit', 'active', 'disable'), 'eval' => array('tl_class' => 'w50', 'submitOnChange' => true), 'sql' => "char(8) NOT NULL default 'inherit'"), 'active' => array('label' => &$GLOBALS['TL_LANG']['tl_workflow_action']['active'], 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'clr w50', 'submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''")));
<?php

/**
 * @package    dev
 * @author     David Molineus <*****@*****.**>
 * @copyright  2014 netzmacht creative David Molineus
 * @license    LGPL 3.0
 * @filesource
 *
 */
$GLOBALS['TL_DCA']['tl_leaflet_popup'] = array('config' => array('dataContainer' => 'Table', 'enableVersioning' => true, 'sql' => array('keys' => array('id' => 'primary', 'alias' => 'unique'))), 'list' => array('sorting' => array('mode' => 1, 'fields' => array('title'), 'flag' => 1, 'panelLayout' => 'limit', 'headerFields' => array('title', 'type')), 'label' => array('fields' => array('title', 'type'), 'format' => '%s <span class="tl_gray">[%s]</span>'), 'global_operations' => array('layers' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['layersBtn'], 'href' => 'table=tl_leaflet_layer', 'icon' => 'system/modules/leaflet/assets/img/layers.png', 'attributes' => 'onclick="Backend.getScrollOffset();" accesskey="e"'), 'styles' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['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_popup']['icons'], 'href' => 'table=tl_leaflet_icon', 'icon' => 'system/modules/leaflet/assets/img/icons.png', 'attributes' => 'onclick="Backend.getScrollOffset();"'), 'all' => array('label' => &$GLOBALS['TL_LANG']['MSC']['all'], 'href' => 'act=select', 'class' => 'header_edit_all', 'attributes' => 'onclick="Backend.getScrollOffset();" accesskey="e"')), 'operations' => array('edit' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['edit'], 'href' => 'act=edit', 'icon' => 'edit.gif'), 'copy' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['copy'], 'href' => 'act=copy', 'icon' => 'copy.gif'), 'delete' => 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()"'), 'toggle' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['toggle'], 'icon' => 'visible.gif', 'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleVisibility(this,%s)"', 'button_callback' => \Netzmacht\Contao\Toolkit\Dca::createToggleIconCallback('tl_leaflet_popup', 'active')), 'show' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['show'], 'href' => 'act=show', 'icon' => 'show.gif'))), 'palettes' => array('__selector__' => array('type')), 'metapalettes' => array('default' => array('title' => array('title', 'alias'), 'size' => array('maxWidth', 'minWidth', 'maxHeight'), 'config' => array(':hide', 'closeButton', 'keepInView', 'closeOnClick', 'zoomAnimation', 'offset', 'className', 'autoPan'), 'active' => array('active'))), 'metasubpalettes' => array('autoPan' => array('autoPanPadding')), 'fields' => array('id' => array('sql' => "int(10) unsigned NOT NULL auto_increment"), 'tstamp' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'title' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['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_popup']['alias'], 'exclude' => true, 'inputType' => 'text', 'save_callback' => array(\Netzmacht\Contao\Leaflet\Dca\Helper::createGenerateAliasCallback('tl_leaflet_popup', 'title')), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), 'sql' => "varchar(255) NOT NULL default ''"), 'maxWidth' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['maxWidth'], 'exclude' => true, 'inputType' => 'text', 'default' => null, 'eval' => array('mandatory' => false, 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50'), 'sql' => "int(4) NULL"), 'minWidth' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['minWidth'], 'exclude' => true, 'inputType' => 'text', 'default' => null, 'eval' => array('mandatory' => false, 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50'), 'sql' => "int(4) NULL"), 'maxHeight' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['maxHeight'], 'exclude' => true, 'inputType' => 'text', 'default' => null, 'eval' => array('mandatory' => false, 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50'), 'sql' => "int(4) NULL"), 'autoPan' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['autoPan'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => true, 'eval' => array('tl_class' => 'w50 m12', 'submitOnChange' => true), 'sql' => "char(1) NOT NULL default '1'"), 'keepInView' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['keepInView'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, 'eval' => array('tl_class' => 'w50', 'submitOnChange' => false), 'sql' => "char(1) NOT NULL default ''"), 'closeButton' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['closeButton'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => true, 'eval' => array('tl_class' => 'w50', 'submitOnChange' => false), 'sql' => "char(1) NOT NULL default '1'"), 'offset' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['offset'], 'exclude' => true, 'inputType' => 'text', 'save_callback' => array(array('Netzmacht\\Contao\\Leaflet\\Dca\\Leaflet', 'validateCoordinate')), 'eval' => array('maxlength' => 255, 'tl_class' => 'w50', 'nullIfEmpty' => true), 'sql' => "varchar(255) NULL"), 'autoPanPadding' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['autoPanPadding'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'tl_class' => 'w50', 'nullIfEmpty' => true, 'multiple' => true, 'size' => 2), 'sql' => "varchar(255) NULL"), 'zoomAnimation' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['zoomAnimation'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => true, 'eval' => array('tl_class' => 'w50', 'submitOnChange' => false), 'sql' => "char(1) NOT NULL default '1'"), 'closeOnClick' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['closeOnClick'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => true, 'eval' => array('tl_class' => 'w50', 'submitOnChange' => false), 'sql' => "char(1) NOT NULL default '1'"), 'className' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['className'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => false, 'maxlength' => 64, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'active' => array('label' => &$GLOBALS['TL_LANG']['tl_leaflet_popup']['active'], 'exclude' => true, 'inputType' => 'checkbox', 'filter' => true, 'sorting' => true, 'search' => false, 'flag' => 12, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''")));