public function generate()
 {
     if (TL_MODE == 'BE') {
         $objTemplate = new \BackendTemplate('be_listgrid_news');
         $objTemplate->wildcard = '### ' . utf8_strtoupper($GLOBALS['TL_LANG']['FMD'][$this->type][0]) . ' ###';
         $objTemplate->setData($this->objModel->row());
         if ($this->size = !'') {
             $arrImageSizes = \System::getImageSizes();
             $arrSize = deserialize($this->objModel->size);
             if (isset($arrSize[2]) && isset($arrImageSizes['image_sizes'][$arrSize[2]])) {
                 $objTemplate->imgSize = $arrImageSizes['image_sizes'][$arrSize[2]];
             }
         }
         $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id;
         return $objTemplate->parse();
     }
     return parent::generate();
 }
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_imagePosition'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_imagePosition'], 'exclude' => true, 'inputType' => 'select', 'options' => array('center', 'top', 'right', 'bottom', 'left', 'top-left', 'top-right', 'bottom-left', 'bottom-right'), 'reference' => &$GLOBALS['TL_LANG']['tl_module']['rsts_imagePositions'], 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''");
// URL hash prefix or false to disable deep linking, e.g. "slider-"
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_deepLinkPrefix'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_deepLinkPrefix'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''");
// true to enable keyboard arrow navigation
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_keyboard'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_keyboard'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default '1'");
// true to enable keyboard arrow navigation
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_captions'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_captions'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default '1'");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_thumbs'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true, 'tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_width'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_width'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'clr w50', 'decodeEntities' => true), 'sql' => "varchar(64) NOT NULL default '100%'");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_height'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_height'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50', 'decodeEntities' => true), 'sql' => "varchar(64) NOT NULL default '1x1'");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_gapSize'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_gapSize'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_duration'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_duration'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "int(10) unsigned NOT NULL default '0'");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_scaleMode'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_scaleMode'], 'exclude' => true, 'inputType' => 'select', 'options' => array('fit' => $GLOBALS['TL_LANG']['tl_module']['rsts_scaleMode_fit'], 'crop' => $GLOBALS['TL_LANG']['tl_module']['rsts_scaleMode_crop'], 'scale' => $GLOBALS['TL_LANG']['tl_module']['rsts_scaleMode_scale'], 'none' => $GLOBALS['TL_LANG']['tl_module']['rsts_scaleMode_none']), 'eval' => array('tl_class' => 'w50 clr', 'includeBlankOption' => true), 'sql' => "varchar(64) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_imagePosition'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_imagePosition'], 'exclude' => true, 'inputType' => 'select', 'options' => array('center', 'top', 'right', 'bottom', 'left', 'top-left', 'top-right', 'bottom-left', 'bottom-right'), 'reference' => &$GLOBALS['TL_LANG']['tl_module']['rsts_imagePositions'], 'eval' => array('tl_class' => 'w50', 'includeBlankOption' => true), 'sql' => "varchar(64) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_controls'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_controls'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default '1'");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_imgSize'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['imgSize'], 'exclude' => true, 'inputType' => 'imageSize', 'options' => version_compare(VERSION, '3.4', '<') ? $GLOBALS['TL_CROP'] : System::getImageSizes(), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('rgxp' => 'natural', 'includeBlankOption' => true, 'nospace' => true, 'helpwizard' => true, 'tl_class' => 'w50'), 'sql' => version_compare(VERSION, '4', '<') ? "varchar(64) NOT NULL default 'a:3:{i:0;s:2:\"50\";i:1;s:2:\"50\";i:2;s:4:\"crop\";}'" : "varchar(64) NOT NULL default 'a:3:{i:0;s:2:\\\"50\\\";i:1;s:2:\\\"50\\\";i:2;s:4:\\\"crop\\\";}'");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_slideMaxCount'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_slideMaxCount'], 'exclude' => true, 'inputType' => 'select', 'options' => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20), 'eval' => array('tl_class' => 'w50 clr', 'includeBlankOption' => true), 'sql' => "int(10) unsigned NOT NULL default '0'");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_prevNextSteps'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_prevNextSteps'], 'exclude' => true, 'inputType' => 'select', 'options' => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20), 'eval' => array('tl_class' => 'w50 clr', 'includeBlankOption' => true), 'sql' => "int(10) unsigned NOT NULL default '0'");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_visibleArea'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_visibleArea'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50 clr'), 'sql' => "double unsigned NOT NULL default '0'");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_visibleAreaMax'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaMax'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "double unsigned NOT NULL default '0'");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_slideMinSize'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_slideMinSize'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'clr w50'), 'sql' => "int(10) unsigned NOT NULL default '50'");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_slideMaxSize'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_slideMaxSize'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "int(10) unsigned NOT NULL default '50'");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_rowMaxCount'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_rowMaxCount'], 'exclude' => true, 'inputType' => 'select', 'options' => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20), 'eval' => array('tl_class' => 'clr w50', 'includeBlankOption' => true), 'sql' => "int(10) unsigned NOT NULL default '0'");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_rowMinSize'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_rowMinSize'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "int(10) unsigned NOT NULL default '0'");
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_rowSlideRatio'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_rowSlideRatio'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''");
// maximum number of visible slides
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_slideMaxCount'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_slideMaxCount'], 'exclude' => true, 'inputType' => 'select', 'options' => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20), 'eval' => array('tl_class' => 'w50', 'includeBlankOption' => true), 'sql' => "int(10) unsigned NOT NULL default '0'");
// number of slides to navigate by clicking prev or next
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_prevNextSteps'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_prevNextSteps'], 'exclude' => true, 'inputType' => 'select', 'options' => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20), 'eval' => array('tl_class' => 'w50 clr', 'includeBlankOption' => true), 'sql' => "int(10) unsigned NOT NULL default '0'");
// the size of the area for the visible slide (0 = 0%, 1 = 100%)
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_visibleArea'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_visibleArea'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50 clr'), 'sql' => "double unsigned NOT NULL default '0'");
/**
 * Contao Open Source CMS
 *
 * Copyright (c) 2005-2016 Leo Feyer
 *
 * @license LGPL-3.0+
 */
/**
 * Load tl_content language file
 */
System::loadLanguageFile('tl_content');
/**
 * Table tl_calendar_events
 */
$GLOBALS['TL_DCA']['tl_calendar_events'] = array('config' => array('dataContainer' => 'Table', 'ptable' => 'tl_calendar', 'ctable' => array('tl_content'), 'switchToEdit' => true, 'enableVersioning' => true, 'onload_callback' => array(array('tl_calendar_events', 'checkPermission'), array('tl_calendar_events', 'generateFeed')), 'oncut_callback' => array(array('tl_calendar_events', 'scheduleUpdate')), 'ondelete_callback' => array(array('tl_calendar_events', 'scheduleUpdate')), 'onsubmit_callback' => array(array('tl_calendar_events', 'adjustTime'), array('tl_calendar_events', 'scheduleUpdate')), 'sql' => array('keys' => array('id' => 'primary', 'alias' => 'index', 'pid,start,stop,published' => 'index'))), 'list' => array('sorting' => array('mode' => 4, 'fields' => array('startTime DESC'), 'headerFields' => array('title', 'jumpTo', 'tstamp', 'protected', 'allowComments'), 'panelLayout' => 'filter;sort,search,limit', 'child_record_callback' => array('tl_calendar_events', 'listEvents'), 'child_record_class' => 'no_padding'), '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_calendar_events']['edit'], 'href' => 'table=tl_content', 'icon' => 'edit.gif'), 'editheader' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['editmeta'], 'href' => 'act=edit', 'icon' => 'header.gif'), 'copy' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['copy'], 'href' => 'act=paste&amp;mode=copy', 'icon' => 'copy.gif'), 'cut' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['cut'], 'href' => 'act=paste&amp;mode=cut', 'icon' => 'cut.gif'), 'delete' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['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_calendar_events']['toggle'], 'icon' => 'visible.gif', 'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleVisibility(this,%s)"', 'button_callback' => array('tl_calendar_events', 'toggleIcon')), 'show' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['show'], 'href' => 'act=show', 'icon' => 'show.gif'))), 'palettes' => array('__selector__' => array('addTime', 'addImage', 'recurring', 'addEnclosure', 'source', 'published'), 'default' => '{title_legend},title,alias,author;{date_legend},addTime,startDate,endDate;{details_legend},location,teaser;{image_legend},addImage;{recurring_legend},recurring;{enclosure_legend:hide},addEnclosure;{source_legend:hide},source;{expert_legend:hide},cssClass,noComments;{publish_legend},published'), 'subpalettes' => array('addTime' => 'startTime,endTime', 'addImage' => 'singleSRC,alt,size,imagemargin,imageUrl,fullsize,caption,floating', 'recurring' => 'repeatEach,recurrences', 'addEnclosure' => 'enclosure', 'source_internal' => 'jumpTo', 'source_article' => 'articleId', 'source_external' => 'url,target', 'published' => 'start,stop'), 'fields' => array('id' => array('sql' => "int(10) unsigned NOT NULL auto_increment"), 'pid' => array('foreignKey' => 'tl_calendar.title', 'sql' => "int(10) unsigned NOT NULL default '0'", 'relation' => array('type' => 'belongsTo', 'load' => 'eager')), 'tstamp' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'title' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['title'], 'exclude' => true, 'search' => true, 'sorting' => true, 'flag' => 1, 'inputType' => 'text', 'eval' => array('mandatory' => true, 'maxlength' => 255), 'sql' => "varchar(255) NOT NULL default ''"), 'alias' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['alias'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'alias', 'unique' => true, 'maxlength' => 128, 'tl_class' => 'w50'), 'save_callback' => array(array('tl_calendar_events', 'generateAlias')), 'sql' => "varchar(128) COLLATE utf8_bin NOT NULL default ''"), 'author' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['author'], 'default' => BackendUser::getInstance()->id, 'exclude' => true, 'search' => true, 'filter' => true, 'sorting' => true, 'flag' => 11, 'inputType' => 'select', 'foreignKey' => 'tl_user.name', 'eval' => array('doNotCopy' => true, 'chosen' => true, 'mandatory' => true, 'includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "int(10) unsigned NOT NULL default '0'", 'relation' => array('type' => 'hasOne', 'load' => 'eager')), 'addTime' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['addTime'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true, 'doNotCopy' => true), 'sql' => "char(1) NOT NULL default ''"), 'startTime' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['startTime'], 'default' => time(), 'exclude' => true, 'filter' => true, 'sorting' => true, 'flag' => 8, 'inputType' => 'text', 'eval' => array('rgxp' => 'time', 'mandatory' => true, 'doNotCopy' => true, 'tl_class' => 'w50'), 'sql' => "int(10) unsigned NULL"), 'endTime' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['endTime'], 'default' => time(), 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'time', 'doNotCopy' => true, 'tl_class' => 'w50'), 'save_callback' => array(array('tl_calendar_events', 'setEmptyEndTime')), 'sql' => "int(10) unsigned NULL"), 'startDate' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['startDate'], 'default' => time(), 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'date', 'mandatory' => true, 'doNotCopy' => true, 'datepicker' => true, 'tl_class' => 'w50 wizard'), 'sql' => "int(10) unsigned NULL"), 'endDate' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['endDate'], 'default' => null, 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'date', 'doNotCopy' => true, 'datepicker' => true, 'tl_class' => 'w50 wizard'), 'save_callback' => array(array('tl_calendar_events', 'setEmptyEndDate')), 'sql' => "int(10) unsigned NULL"), 'location' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['location'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'tl_class' => 'long'), 'sql' => "varchar(255) NOT NULL default ''"), 'teaser' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['teaser'], 'exclude' => true, 'search' => true, 'inputType' => 'textarea', 'eval' => array('rte' => 'tinyMCE', 'tl_class' => 'clr'), 'sql' => "text NULL"), 'addImage' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['addImage'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'singleSRC' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['singleSRC'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('filesOnly' => true, 'extensions' => Config::get('validImageTypes'), 'fieldType' => 'radio', 'mandatory' => true), 'save_callback' => array(array('tl_calendar_events', 'storeFileMetaInformation')), 'sql' => "binary(16) NULL"), 'alt' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['alt'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'tl_class' => 'long'), 'sql' => "varchar(255) NOT NULL default ''"), 'size' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['size'], 'exclude' => true, 'inputType' => 'imageSize', 'options' => System::getImageSizes(), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('rgxp' => 'natural', 'includeBlankOption' => true, 'nospace' => true, 'helpwizard' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'imagemargin' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['imagemargin'], 'exclude' => true, 'inputType' => 'trbl', 'options' => $GLOBALS['TL_CSS_UNITS'], 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "varchar(128) NOT NULL default ''"), 'imageUrl' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['imageUrl'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'url', 'decodeEntities' => true, 'maxlength' => 255, 'fieldType' => 'radio', 'filesOnly' => true, 'tl_class' => 'w50 wizard'), 'wizard' => array(array('tl_calendar_events', 'pagePicker')), 'sql' => "varchar(255) NOT NULL default ''"), 'fullsize' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['fullsize'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'caption' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['caption'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'allowHtml' => true, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'floating' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['floating'], 'default' => 'above', 'exclude' => true, 'inputType' => 'radioTable', 'options' => array('above', 'left', 'right', 'below'), 'eval' => array('cols' => 4, 'tl_class' => 'w50'), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'sql' => "varchar(32) NOT NULL default ''"), 'recurring' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['recurring'], 'exclude' => true, 'filter' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'repeatEach' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['repeatEach'], 'exclude' => true, 'inputType' => 'timePeriod', 'options' => array('days', 'weeks', 'months', 'years'), 'reference' => &$GLOBALS['TL_LANG']['tl_calendar_events'], 'eval' => array('mandatory' => true, 'rgxp' => 'natural', 'minval' => 1, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'repeatEnd' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['repeatEnd'], 'sql' => "int(10) unsigned NOT NULL default '0'"), 'recurrences' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['recurrences'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => true, 'rgxp' => 'natural', 'tl_class' => 'w50'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'addEnclosure' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['addEnclosure'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'enclosure' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['enclosure'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('multiple' => true, 'fieldType' => 'checkbox', 'filesOnly' => true, 'isDownloads' => true, 'extensions' => Config::get('allowedDownload'), 'mandatory' => true), 'sql' => "blob NULL"), 'source' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['source'], 'default' => 'default', 'exclude' => true, 'filter' => true, 'inputType' => 'radio', 'options_callback' => array('tl_calendar_events', 'getSourceOptions'), 'reference' => &$GLOBALS['TL_LANG']['tl_calendar_events'], 'eval' => array('submitOnChange' => true, 'helpwizard' => true), 'sql' => "varchar(32) NOT NULL default ''"), 'jumpTo' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['jumpTo'], 'exclude' => true, 'inputType' => 'pageTree', 'foreignKey' => 'tl_page.title', 'eval' => array('mandatory' => true, 'fieldType' => 'radio'), 'sql' => "int(10) unsigned NOT NULL default '0'", 'relation' => array('type' => 'belongsTo', 'load' => 'lazy')), 'articleId' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['articleId'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_calendar_events', 'getArticleAlias'), 'eval' => array('chosen' => true, 'mandatory' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'url' => array('label' => &$GLOBALS['TL_LANG']['MSC']['url'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('mandatory' => true, 'decodeEntities' => true, 'maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'target' => array('label' => &$GLOBALS['TL_LANG']['MSC']['target'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'cssClass' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['cssClass'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'noComments' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['noComments'], 'exclude' => true, 'filter' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'published' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['published'], 'exclude' => true, 'filter' => true, 'flag' => 2, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true, 'doNotCopy' => true), 'sql' => "char(1) NOT NULL default ''"), 'start' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['start'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'datim', 'datepicker' => true, 'tl_class' => 'w50 wizard'), 'sql' => "varchar(10) NOT NULL default ''"), 'stop' => array('label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['stop'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'datim', 'datepicker' => true, 'tl_class' => 'w50 wizard'), 'sql' => "varchar(10) NOT NULL default ''")));
/**
 * Provide miscellaneous methods that are used by the data configuration array.
 *
 * @author Leo Feyer <https://github.com/leofeyer>
 */
class tl_calendar_events extends Backend
{
    /**
     * Import the back end user object
     */
    public function __construct()
    {
        parent::__construct();
        $this->import('BackendUser', 'User');
    }
示例#4
0
<?php

/**
 * Contao Open Source CMS
 *
 * Copyright (c) 2005-2015 Leo Feyer
 *
 * @license LGPL-3.0+
 */
/**
 * Table tl_content
 */
$GLOBALS['TL_DCA']['tl_content'] = array('config' => array('dataContainer' => 'Table', 'enableVersioning' => true, 'ptable' => '', 'dynamicPtable' => true, 'onload_callback' => array(array('tl_content', 'showJsLibraryHint')), 'sql' => array('keys' => array('id' => 'primary', 'pid,ptable,invisible,sorting' => 'index'))), 'list' => array('sorting' => array('mode' => 4, 'fields' => array('sorting'), 'panelLayout' => 'filter;search,limit', 'headerFields' => array('title', 'headline', 'author', 'inColumn', 'tstamp', 'showTeaser', 'published', 'start', 'stop'), 'child_record_callback' => array('tl_content', 'addCteType')), '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_content']['edit'], 'href' => 'act=edit', 'icon' => 'edit.gif'), 'copy' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['copy'], 'href' => 'act=paste&amp;mode=copy', 'icon' => 'copy.gif', 'attributes' => 'onclick="Backend.getScrollOffset()"'), 'cut' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['cut'], 'href' => 'act=paste&amp;mode=cut', 'icon' => 'cut.gif', 'attributes' => 'onclick="Backend.getScrollOffset()"'), 'delete' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['delete'], 'href' => 'act=delete', 'icon' => 'delete.gif', 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"', 'button_callback' => array('tl_content', 'deleteElement')), 'toggle' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['toggle'], 'icon' => 'visible.gif', 'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleVisibility(this,%s)"', 'button_callback' => array('tl_content', 'toggleIcon')), 'show' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['show'], 'href' => 'act=show', 'icon' => 'show.gif'))), 'palettes' => array('__selector__' => array('type', 'addImage', 'sortable', 'useImage', 'protected'), 'default' => '{type_legend},type', 'headline' => '{type_legend},type,headline;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'text' => '{type_legend},type,headline;{text_legend},text;{image_legend},addImage;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'html' => '{type_legend},type;{text_legend},html;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests;{invisible_legend:hide},invisible,start,stop', 'list' => '{type_legend},type,headline;{list_legend},listtype,listitems;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'table' => '{type_legend},type,headline;{table_legend},tableitems;{tconfig_legend},summary,thead,tfoot,tleft;{sortable_legend:hide},sortable;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'accordionStart' => '{type_legend},type;{moo_legend},mooHeadline,mooStyle,mooClasses;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'accordionStop' => '{type_legend},type;{moo_legend},mooClasses;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests;{invisible_legend:hide},invisible,start,stop', 'accordionSingle' => '{type_legend},type;{moo_legend},mooHeadline,mooStyle,mooClasses;{text_legend},text;{image_legend},addImage;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'sliderStart' => '{type_legend},type,headline;{slider_legend},sliderDelay,sliderSpeed,sliderStartSlide,sliderContinuous;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'sliderStop' => '{type_legend},type,headline;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests;{invisible_legend:hide},invisible,start,stop', 'code' => '{type_legend},type,headline;{text_legend},highlight,shClass,code;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'markdown' => '{type_legend},type,headline;{text_legend},code;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'hyperlink' => '{type_legend},type,headline;{link_legend},url,target,linkTitle,embed,titleText,rel;{imglink_legend:hide},useImage;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'toplink' => '{type_legend},type,linkTitle;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'image' => '{type_legend},type,headline;{source_legend},singleSRC;{image_legend},alt,title,size,imagemargin,imageUrl,fullsize,caption;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'gallery' => '{type_legend},type,headline;{source_legend},multiSRC,sortBy,metaIgnore;{image_legend},size,imagemargin,perRow,fullsize,perPage,numberOfItems;{template_legend:hide},galleryTpl,customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,useHomeDir,cssID,space;{invisible_legend:hide},invisible,start,stop', 'player' => '{type_legend},type,headline;{source_legend},playerSRC;{poster_legend:hide},posterSRC;{player_legend},playerSize,autoplay;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'youtube' => '{type_legend},type,headline;{source_legend},youtube;{poster_legend:hide},posterSRC;{player_legend},playerSize,autoplay;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'download' => '{type_legend},type,headline;{source_legend},singleSRC;{dwnconfig_legend},linkTitle,titleText;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'downloads' => '{type_legend},type,headline;{source_legend},multiSRC,sortBy,metaIgnore;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,useHomeDir,cssID,space;{invisible_legend:hide},invisible,start,stop', 'alias' => '{type_legend},type;{include_legend},cteAlias;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'article' => '{type_legend},type;{include_legend},articleAlias;{protected_legend:hide},protected;{invisible_legend:hide},invisible,start,stop', 'teaser' => '{type_legend},type;{include_legend},article;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'form' => '{type_legend},type,headline;{include_legend},form;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop', 'module' => '{type_legend},type;{include_legend},module;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop'), 'subpalettes' => array('addImage' => 'singleSRC,alt,title,size,imagemargin,imageUrl,fullsize,caption,floating', 'sortable' => 'sortIndex,sortOrder', 'useImage' => 'singleSRC,alt,title,size,caption', 'protected' => 'groups'), 'fields' => array('id' => array('sql' => "int(10) unsigned NOT NULL auto_increment"), 'pid' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'ptable' => array('sql' => "varchar(64) NOT NULL default ''"), 'sorting' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'tstamp' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'type' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['type'], 'default' => 'text', 'exclude' => true, 'filter' => true, 'inputType' => 'select', 'options_callback' => array('tl_content', 'getContentElements'), 'reference' => &$GLOBALS['TL_LANG']['CTE'], 'eval' => array('helpwizard' => true, 'chosen' => true, 'submitOnChange' => true), 'sql' => "varchar(32) NOT NULL default ''"), 'headline' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['headline'], 'exclude' => true, 'search' => true, 'inputType' => 'inputUnit', 'options' => array('h1', 'h2', 'h3', 'h4', 'h5', 'h6'), 'eval' => array('maxlength' => 200), 'sql' => "varchar(255) NOT NULL default ''"), 'text' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['text'], 'exclude' => true, 'search' => true, 'inputType' => 'textarea', 'eval' => array('mandatory' => true, 'rte' => 'tinyMCE', 'helpwizard' => true), 'explanation' => 'insertTags', 'sql' => "mediumtext NULL"), 'addImage' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['addImage'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'singleSRC' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['singleSRC'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('filesOnly' => true, 'fieldType' => 'radio', 'mandatory' => true, 'tl_class' => 'clr'), 'sql' => "binary(16) NULL", 'load_callback' => array(array('tl_content', 'setSingleSrcFlags')), 'save_callback' => array(array('tl_content', 'storeFileMetaInformation'))), 'alt' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['alt'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'title' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['title'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'size' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['size'], 'exclude' => true, 'inputType' => 'imageSize', 'options' => System::getImageSizes(), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('rgxp' => 'natural', 'includeBlankOption' => true, 'nospace' => true, 'helpwizard' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'imagemargin' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['imagemargin'], 'exclude' => true, 'inputType' => 'trbl', 'options' => $GLOBALS['TL_CSS_UNITS'], 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "varchar(128) NOT NULL default ''"), 'imageUrl' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['imageUrl'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'url', 'decodeEntities' => true, 'maxlength' => 255, 'fieldType' => 'radio', 'filesOnly' => true, 'tl_class' => 'w50 wizard'), 'wizard' => array(array('tl_content', 'pagePicker')), 'sql' => "varchar(255) NOT NULL default ''"), 'fullsize' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['fullsize'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'caption' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['caption'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'allowHtml' => true, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'floating' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['floating'], 'default' => 'above', 'exclude' => true, 'inputType' => 'radioTable', 'options' => array('above', 'left', 'right', 'below'), 'eval' => array('cols' => 4, 'tl_class' => 'w50'), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'sql' => "varchar(32) NOT NULL default ''"), 'html' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['html'], 'exclude' => true, 'search' => true, 'inputType' => 'textarea', 'eval' => array('mandatory' => true, 'allowHtml' => true, 'class' => 'monospace', 'rte' => 'ace|html', 'helpwizard' => true), 'explanation' => 'insertTags', 'sql' => "mediumtext NULL"), 'listtype' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['listtype'], 'exclude' => true, 'inputType' => 'select', 'options' => array('ordered', 'unordered'), 'reference' => &$GLOBALS['TL_LANG']['tl_content'], 'sql' => "varchar(32) NOT NULL default ''"), 'listitems' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['listitems'], 'exclude' => true, 'inputType' => 'listWizard', 'eval' => array('allowHtml' => true), 'xlabel' => array(array('tl_content', 'listImportWizard')), 'sql' => "blob NULL"), 'tableitems' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['tableitems'], 'exclude' => true, 'inputType' => 'tableWizard', 'eval' => array('allowHtml' => true, 'doNotSaveEmpty' => true, 'style' => 'width:142px;height:66px'), 'xlabel' => array(array('tl_content', 'tableImportWizard')), 'sql' => "mediumblob NULL"), 'summary' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['summary'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'thead' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['thead'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'tfoot' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['tfoot'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'tleft' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['tleft'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'sortable' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['sortable'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'sortIndex' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['sortIndex'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'natural', 'tl_class' => 'w50'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'sortOrder' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['sortOrder'], 'default' => 'ascending', 'exclude' => true, 'inputType' => 'select', 'options' => array('ascending', 'descending'), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(32) NOT NULL default ''"), 'mooHeadline' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['mooHeadline'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'allowHtml' => true), 'sql' => "varchar(255) NOT NULL default ''"), 'mooStyle' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['mooStyle'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'decodeEntities' => true, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'mooClasses' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['mooClasses'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('multiple' => true, 'size' => 2, 'rgxp' => 'alnum', 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'highlight' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['highlight'], 'exclude' => true, 'inputType' => 'select', 'options' => array('ApacheConf', 'AS3', 'Bash', 'C', 'CSharp', 'CSS', 'Delphi', 'Diff', 'Groovy', 'HTML', 'Java', 'JavaFx', 'JavaScript', 'Perl', 'PHP', 'PowerShell', 'Python', 'Ruby', 'Scala', 'SQL', 'Text', 'VB', 'XHTML', 'XML'), 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "varchar(32) NOT NULL default ''"), 'shClass' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['shClass'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50', 'helpwizard' => true), 'explanation' => 'highlighter', 'sql' => "varchar(255) NOT NULL default ''"), 'code' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['code'], 'exclude' => true, 'search' => true, 'inputType' => 'textarea', 'eval' => array('mandatory' => true, 'preserveTags' => true, 'decodeEntities' => true, 'class' => 'monospace', 'rte' => 'ace', 'helpwizard' => true, 'tl_class' => 'clr'), 'explanation' => 'insertTags', 'load_callback' => array(array('tl_content', 'setRteSyntax')), 'sql' => "text NULL"), 'url' => array('label' => &$GLOBALS['TL_LANG']['MSC']['url'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('mandatory' => true, 'rgxp' => 'url', 'decodeEntities' => true, 'maxlength' => 255, 'fieldType' => 'radio', 'filesOnly' => true, 'tl_class' => 'w50 wizard'), 'wizard' => array(array('tl_content', 'pagePicker')), 'sql' => "varchar(255) NOT NULL default ''"), 'target' => array('label' => &$GLOBALS['TL_LANG']['MSC']['target'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'titleText' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['titleText'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'linkTitle' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['linkTitle'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'embed' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['embed'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'rel' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['rel'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 64, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'useImage' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['useImage'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'multiSRC' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['multiSRC'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('multiple' => true, 'fieldType' => 'checkbox', 'orderField' => 'orderSRC', 'files' => true, 'mandatory' => true), 'sql' => "blob NULL", 'load_callback' => array(array('tl_content', 'setMultiSrcFlags'))), 'orderSRC' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['orderSRC'], 'sql' => "blob NULL"), 'useHomeDir' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['useHomeDir'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'perRow' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['perRow'], 'default' => 4, 'exclude' => true, 'inputType' => 'select', 'options' => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12), 'eval' => array('tl_class' => 'w50'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'perPage' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['perPage'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'natural', 'tl_class' => 'w50'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'numberOfItems' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['numberOfItems'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'natural', 'tl_class' => 'w50'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'sortBy' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['sortBy'], 'exclude' => true, 'inputType' => 'select', 'options' => array('custom', 'name_asc', 'name_desc', 'date_asc', 'date_desc', 'random'), 'reference' => &$GLOBALS['TL_LANG']['tl_content'], 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(32) NOT NULL default ''"), 'metaIgnore' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['metaIgnore'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'galleryTpl' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['galleryTpl'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_content', 'getGalleryTemplates'), 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'customTpl' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['customTpl'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_content', 'getElementTemplates'), 'eval' => array('includeBlankOption' => true, 'chosen' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'playerSRC' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['playerSRC'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('multiple' => true, 'fieldType' => 'checkbox', 'files' => true, 'mandatory' => true), 'sql' => "blob NULL"), 'youtube' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['youtube'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'url', 'mandatory' => true), 'sql' => "varchar(16) NOT NULL default ''"), 'posterSRC' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['posterSRC'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('filesOnly' => true, 'fieldType' => 'radio'), 'sql' => "binary(16) NULL"), 'playerSize' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['playerSize'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('multiple' => true, 'size' => 2, 'rgxp' => 'natural', 'nospace' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'autoplay' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['autoplay'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'sliderDelay' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['sliderDelay'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'sliderSpeed' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['sliderSpeed'], 'default' => 300, 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "int(10) unsigned NOT NULL default '300'"), 'sliderStartSlide' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['sliderStartSlide'], 'default' => 0, 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'sliderContinuous' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['sliderContinuous'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'cteAlias' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['cteAlias'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_content', 'getAlias'), 'eval' => array('mandatory' => true, 'chosen' => true, 'submitOnChange' => true), 'wizard' => array(array('tl_content', 'editAlias')), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'articleAlias' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['articleAlias'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_content', 'getArticleAlias'), 'eval' => array('mandatory' => true, 'chosen' => true, 'submitOnChange' => true), 'wizard' => array(array('tl_content', 'editArticleAlias')), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'article' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['article'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_content', 'getArticles'), 'eval' => array('mandatory' => true, 'chosen' => true, 'submitOnChange' => true), 'wizard' => array(array('tl_content', 'editArticle')), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'form' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['form'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_content', 'getForms'), 'eval' => array('mandatory' => true, 'chosen' => true, 'submitOnChange' => true), 'wizard' => array(array('tl_content', 'editForm')), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'module' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['module'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_content', 'getModules'), 'eval' => array('mandatory' => true, 'chosen' => true, 'submitOnChange' => true), 'wizard' => array(array('tl_content', 'editModule')), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'protected' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['protected'], 'exclude' => true, 'filter' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'groups' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['groups'], 'exclude' => true, 'inputType' => 'checkbox', 'foreignKey' => 'tl_member_group.name', 'eval' => array('mandatory' => true, 'multiple' => true), 'sql' => "blob NULL", 'relation' => array('type' => 'hasMany', 'load' => 'lazy')), 'guests' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['guests'], 'exclude' => true, 'filter' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'cssID' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['cssID'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('multiple' => true, 'size' => 2, 'tl_class' => 'w50 clr'), 'sql' => "varchar(255) NOT NULL default ''"), 'space' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['space'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('multiple' => true, 'size' => 2, 'rgxp' => 'digit', 'nospace' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'invisible' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['invisible'], 'exclude' => true, 'filter' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default ''"), 'start' => array('exclude' => true, 'label' => &$GLOBALS['TL_LANG']['tl_content']['start'], 'inputType' => 'text', 'eval' => array('rgxp' => 'datim', 'datepicker' => true, 'tl_class' => 'w50 wizard'), 'sql' => "varchar(10) NOT NULL default ''"), 'stop' => array('exclude' => true, 'label' => &$GLOBALS['TL_LANG']['tl_content']['stop'], 'inputType' => 'text', 'eval' => array('rgxp' => 'datim', 'datepicker' => true, 'tl_class' => 'w50 wizard'), 'sql' => "varchar(10) NOT NULL default ''")));
/**
 * Dynamically add the permission check and parent table (see #5241)
 */
if (Input::get('do') == 'article' || Input::get('do') == 'page') {
    $GLOBALS['TL_DCA']['tl_content']['config']['ptable'] = 'tl_article';
    $GLOBALS['TL_DCA']['tl_content']['config']['onload_callback'][] = array('tl_content', 'checkPermission');
}
/**
 * Provide miscellaneous methods that are used by the data configuration array.
 *
 * @author Leo Feyer <https://github.com/leofeyer>
 */
class tl_content extends Backend
{
    /**
     * Import the back end user object
     */
    public function __construct()
示例#5
0
/**
 * Add fields to tl_content
 */
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_rows'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_rows'], 'exclude' => true, 'default' => '4', 'inputType' => 'select', 'options' => range(0, 30), 'eval' => array('tl_class' => 'clr'), 'sql' => "smallint(5) unsigned NOT NULL default '4'");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_template'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_template'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('ce_gallery_creator', 'getGalleryCreatorTemplates'), 'eval' => array('tl_class' => 'clr'), 'sql' => "varchar(64) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_hierarchicalOutput'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_hierarchicalOutput'], 'exclude' => true, 'default' => false, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true, 'tl_class' => 'clr'), 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_sorting'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_sorting'], 'exclude' => true, 'options' => explode(',', 'date,sorting,id,tstamp,name,alias,comment,visitors'), 'reference' => &$GLOBALS['TL_LANG']['tl_content']['gc_sortingField'], 'default' => 'date', 'inputType' => 'select', 'eval' => array('tl_class' => 'w50', 'submitOnChange' => true), 'sql' => "varchar(64) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_sorting_direction'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_sorting_direction'], 'exclude' => true, 'options' => explode(',', 'DESC,ASC'), 'reference' => &$GLOBALS['TL_LANG']['tl_content']['gc_sortingDirection'], 'default' => 'DESC', 'inputType' => 'select', 'eval' => array('tl_class' => 'w50', 'submitOnChange' => true), 'sql' => "varchar(64) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_picture_sorting'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_picture_sorting'], 'exclude' => true, 'options' => explode(',', 'sorting,id,date,name,owner,comment,title'), 'reference' => &$GLOBALS['TL_LANG']['tl_content']['gc_sortingField'], 'default' => 'date', 'inputType' => 'select', 'eval' => array('tl_class' => 'w50', 'submitOnChange' => false), 'sql' => "varchar(64) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_picture_sorting_direction'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_picture_sorting_direction'], 'exclude' => true, 'reference' => &$GLOBALS['TL_LANG']['tl_content']['gc_sortingDirection'], 'options' => explode(',', 'DESC,ASC'), 'default' => 'DESC', 'inputType' => 'select', 'eval' => array('tl_class' => 'w50', 'submitOnChange' => false), 'sql' => "varchar(64) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_redirectSingleAlb'] = array('exclude' => true, 'label' => &$GLOBALS['TL_LANG']['tl_content']['gc_redirectSingleAlb'], 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'clr'), 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_AlbumsPerPage'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_AlbumsPerPage'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'digit', 'tl_class' => 'clr'), 'sql' => "smallint(5) unsigned NOT NULL default '0'");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_PaginationNumberOfLinks'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_PaginationNumberOfLinks'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'digit', 'tl_class' => 'clr'), 'sql' => "smallint(5) unsigned NOT NULL default '7'");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_size_detailview'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_size_detailview'], 'exclude' => true, 'inputType' => 'imageSize', 'options' => System::getImageSizes(), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('rgxp' => 'natural', 'includeBlankOption' => true, 'nospace' => true, 'helpwizard' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_imagemargin_detailview'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_imagemargin_detailview'], 'exclude' => true, 'inputType' => 'trbl', 'options' => $GLOBALS['TL_CSS_UNITS'], 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "varchar(128) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_size_albumlisting'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_size_albumlisting'], 'exclude' => true, 'inputType' => 'imageSize', 'options' => System::getImageSizes(), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('rgxp' => 'natural', 'includeBlankOption' => true, 'nospace' => true, 'helpwizard' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_imagemargin_albumlisting'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_imagemargin_albumlisting'], 'exclude' => true, 'inputType' => 'trbl', 'options' => $GLOBALS['TL_CSS_UNITS'], 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "varchar(128) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_fullsize'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_fullsize'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'clr'), 'sql' => "char(1) NOT NULL default '1'");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_ThumbsPerPage'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_ThumbsPerPage'], 'default' => 0, 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'digit', 'tl_class' => 'clr'), 'sql' => "smallint(5) unsigned NOT NULL default '0'");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_publish_albums'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_publish_albums'], 'inputType' => 'checkbox', 'exclude' => true, 'input_field_callback' => array('ce_gallery_creator', 'inputFieldCallbackListAlbums'), 'eval' => array('multiple' => true, 'mandatory' => false, 'tl_class' => 'clr'), 'sql' => "blob NULL");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_publish_single_album'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_publish_single_album'], 'inputType' => 'radio', 'exclude' => true, 'options_callback' => array('ce_gallery_creator', 'optionsCallbackListAlbums'), 'eval' => array('mandatory' => false, 'multiple' => false, 'tl_class' => 'clr'), 'sql' => "blob NULL");
$GLOBALS['TL_DCA']['tl_content']['fields']['gc_publish_all_albums'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['gc_publish_all_albums'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'clr', 'submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''");
/**
 * Class ce_gallery_creator
 *
 * Provide miscellaneous methods that are used by the data configuration array.
 *
 * @copyright  Marko Cupic
 * @author     Marko Cupic
 */
class ce_gallery_creator extends Backend
	{expert_legend:hide},guests';
$dc['palettes']['member_messages'] = '{title_legend},name,headline,type;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space';
/**
 * Subpalettes
 */
$dc['subpalettes']['mlAddCustomDummyImages'] = 'mlDummyImageMale,mlDummyImageFemale';
$dc['subpalettes']['mlSkipFields'] = 'mlFields';
$dc['subpalettes']['reg_activate_plus'] = 'formHybridConfirmationMailRecipientField,formHybridConfirmationAvisotaMessage,formHybridConfirmationMailSender,formHybridConfirmationMailSubject,formHybridConfirmationMailText,formHybridConfirmationMailTemplate,formHybridConfirmationMailAttachment';
/**
 * Callbacks
 */
$dc['config']['onload_callback'][] = array('tl_module_member_plus', 'modifyPalette');
/**
 * Fields
 */
$arrFields = array('mlGroups' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['mlGroups'], 'exclude' => true, 'inputType' => 'checkboxWizard', 'foreignKey' => 'tl_member_group.name', 'eval' => array('mandatory' => true, 'multiple' => true), 'sql' => "blob NULL", 'relation' => array('type' => 'hasMany', 'load' => 'lazy')), 'mlTemplate' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['mlTemplate'], 'default' => 'memberlist_full', 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_module_member_plus', 'getMemberlistTemplates'), 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'mlImgSize' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['mlImgSize'], 'exclude' => true, 'inputType' => 'imageSize', 'options' => System::getImageSizes(), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('rgxp' => 'natural', 'includeBlankOption' => true, 'nospace' => true, 'helpwizard' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'mlLoadContent' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['mlLoadContent'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'mlDisableImages' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['mlDisableImages'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'mlDisableDummyImages' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['mlDisableDummyImages'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'mlAddCustomDummyImages' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['mlAddCustomDummyImages'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12', 'submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'mlDummyImageMale' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['mlDummyImageMale'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('filesOnly' => true, 'fieldType' => 'radio', 'tl_class' => 'clr w50'), 'sql' => "binary(16) NULL"), 'mlDummyImageFemale' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['mlDummyImageFemale'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('filesOnly' => true, 'fieldType' => 'radio', 'tl_class' => 'w50'), 'sql' => "binary(16) NULL"), 'mlSkipFields' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['mlSkipFields'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50', 'submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'mlFields' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['mlFields'], 'exclude' => true, 'inputType' => 'checkbox', 'options_callback' => array('tl_content_member_plus', 'getViewableMemberFields'), 'eval' => array('multiple' => true, 'tl_class' => 'clr'), 'sql' => "blob NULL"), 'allowedMailDomains' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['allowedMailDomains'], 'exclude' => true, 'inputType' => 'multiColumnWizard', 'eval' => array('columnFields' => array('domain' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['allowedMailDomains']['domain'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('style' => 'width: 600px')), 'hide' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['allowedMailDomains']['hide'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('style' => 'width: 100px;')))), 'sql' => "blob NULL"), 'showAllowedDomains' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['showAllowedDomains'], 'exclude' => true, 'default' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'long'), 'sql' => "char(1) NOT NULL default ''"), 'reg_activate_login' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['reg_activate_login'], 'exclude' => true, 'default' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'long'), 'sql' => "char(1) NOT NULL default ''"), 'redirectPermanent' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['redirectPermanent'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'long'), 'sql' => "char(1) NOT NULL default ''"), 'reg_activate_plus' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['reg_activate'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true, 'tl_class' => 'w50 clr'), 'sql' => "char(1) NOT NULL default ''"));
$dc['fields'] = array_merge($dc['fields'], $arrFields);
class tl_module_member_plus extends \Backend
{
    /**
     * Return all news templates as array
     *
     * @return array
     */
    public function getMemberlistTemplates()
    {
        return $this->getTemplateGroup('memberlist_');
    }
    public function modifyPalette()
    {
        $objModule = \ModuleModel::findByPk(\Input::get('id'));
示例#7
0
<?php

/**
 * Contao Open Source CMS
 *
 * Copyright (c) 2005-2015 Leo Feyer
 *
 * @license LGPL-3.0+
 */
/**
 * Table tl_module
 */
$GLOBALS['TL_DCA']['tl_module'] = array('config' => array('dataContainer' => 'Table', 'ptable' => 'tl_theme', 'enableVersioning' => true, 'onload_callback' => array(array('tl_module', 'checkPermission')), 'sql' => array('keys' => array('id' => 'primary'))), 'list' => array('sorting' => array('mode' => 4, 'fields' => array('name'), 'panelLayout' => 'filter;sort,search,limit', 'headerFields' => array('name', 'author', 'tstamp'), 'child_record_callback' => array('tl_module', 'listModule'), 'child_record_class' => 'no_padding'), '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_module']['edit'], 'href' => 'act=edit', 'icon' => 'edit.gif'), 'copy' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['copy'], 'href' => 'act=paste&amp;mode=copy', 'icon' => 'copy.gif', 'attributes' => 'onclick="Backend.getScrollOffset()"'), 'cut' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['cut'], 'href' => 'act=paste&amp;mode=cut', 'icon' => 'cut.gif', 'attributes' => 'onclick="Backend.getScrollOffset()"'), 'delete' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['delete'], 'href' => 'act=delete', 'icon' => 'delete.gif', 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"'), 'show' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['show'], 'href' => 'act=show', 'icon' => 'show.gif'))), 'palettes' => array('__selector__' => array('type', 'defineRoot', 'source', 'interactive', 'protected', 'reg_assignDir', 'reg_activate'), 'default' => '{title_legend},name,type', 'navigation' => '{title_legend},name,headline,type;{nav_legend},levelOffset,showLevel,hardLimit,showProtected,showHidden;{reference_legend:hide},defineRoot;{template_legend:hide},navigationTpl,customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'customnav' => '{title_legend},name,headline,type;{nav_legend},pages,showProtected;{template_legend:hide},navigationTpl,customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'breadcrumb' => '{title_legend},name,headline,type;{nav_legend},showHidden;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'quicknav' => '{title_legend},name,headline,type;{nav_legend},customLabel,showLevel,hardLimit,showProtected,showHidden;{reference_legend:hide},rootPage;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'quicklink' => '{title_legend},name,headline,type;{nav_legend},pages,customLabel;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'booknav' => '{title_legend},name,headline,type;{nav_legend},showProtected,showHidden,rootPage;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'articlenav' => '{title_legend},name,headline,type;{config_legend},loadFirst;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'sitemap' => '{title_legend},name,headline,type;{nav_legend},showProtected,showHidden;{reference_legend:hide},rootPage;{template_legend:hide},navigationTpl,customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'login' => '{title_legend},name,headline,type;{config_legend},autologin;{redirect_legend},jumpTo,redirectBack;{template_legend:hide},cols;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'logout' => '{title_legend},name,headline,type;{redirect_legend},jumpTo,redirectBack;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'personalData' => '{title_legend},name,headline,type;{config_legend},editable;{redirect_legend},jumpTo;{template_legend:hide},memberTpl,tableless;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'registration' => '{title_legend},name,headline,type;{config_legend},editable,newsletters,disableCaptcha;{account_legend},reg_groups,reg_allowLogin,reg_assignDir;{redirect_legend},jumpTo;{email_legend:hide},reg_activate;{template_legend:hide},memberTpl,tableless;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'changePassword' => '{title_legend},name,headline,type;{redirect_legend},jumpTo;{template_legend:hide},customTpl,tableless;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'lostPassword' => '{title_legend},name,headline,type;{config_legend},reg_skipName,disableCaptcha;{redirect_legend},jumpTo;{email_legend:hide},reg_jumpTo,reg_password;{template_legend:hide},customTpl,tableless;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'closeAccount' => '{title_legend},name,headline,type;{config_legend},reg_close;{redirect_legend},jumpTo;{template_legend:hide},customTpl,tableless;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'form' => '{title_legend},name,headline,type;{include_legend},form;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'search' => '{title_legend},name,headline,type;{config_legend},queryType,fuzzy,contextLength,totalLength,perPage,searchType;{redirect_legend:hide},jumpTo;{reference_legend:hide},rootPage;{template_legend:hide},searchTpl,customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'articleList' => '{title_legend},name,headline,type;{config_legend},skipFirst,inColumn;{reference_legend:hide},defineRoot;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'flash' => '{title_legend},name,headline,type;{config_legend},size,transparent,flashvars,altContent;{source_legend},source;{interact_legend:hide},interactive;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'randomImage' => '{title_legend},name,headline,type;{config_legend},imgSize,useCaption,fullsize;{source_legend},multiSRC;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space', 'html' => '{title_legend},name,type;{html_legend},html;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests', 'rss_reader' => '{title_legend},name,headline,type;{config_legend},rss_feed,numberOfItems,perPage,skipFirst,rss_cache;{template_legend:hide},rss_template,customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space'), 'subpalettes' => array('defineRoot' => 'rootPage', 'source_internal' => 'singleSRC', 'source_external' => 'url', 'interactive' => 'flashID,flashJS', 'protected' => 'groups', 'reg_assignDir' => 'reg_homeDir', 'reg_activate' => 'reg_jumpTo,reg_text'), 'fields' => array('id' => array('sql' => "int(10) unsigned NOT NULL auto_increment"), 'pid' => array('foreignKey' => 'tl_theme.name', 'sql' => "int(10) unsigned NOT NULL default '0'", 'relation' => array('type' => 'belongsTo', 'load' => 'lazy')), 'tstamp' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'name' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['name'], 'exclude' => true, 'sorting' => true, 'flag' => 1, 'search' => true, 'inputType' => 'text', 'eval' => array('mandatory' => true, 'maxlength' => 255), 'sql' => "varchar(255) NOT NULL default ''"), 'headline' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['headline'], 'exclude' => true, 'search' => true, 'inputType' => 'inputUnit', 'options' => array('h1', 'h2', 'h3', 'h4', 'h5', 'h6'), 'eval' => array('maxlength' => 200, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'type' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['type'], 'default' => 'navigation', 'exclude' => true, 'sorting' => true, 'flag' => 11, 'filter' => true, 'inputType' => 'select', 'options_callback' => array('tl_module', 'getModules'), 'reference' => &$GLOBALS['TL_LANG']['FMD'], 'eval' => array('helpwizard' => true, 'chosen' => true, 'submitOnChange' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'levelOffset' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['levelOffset'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 5, 'rgxp' => 'natural', 'tl_class' => 'w50'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'showLevel' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['showLevel'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 5, 'rgxp' => 'natural', 'tl_class' => 'w50'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'hardLimit' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['hardLimit'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'showProtected' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['showProtected'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'defineRoot' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['defineRoot'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'rootPage' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['rootPage'], 'exclude' => true, 'inputType' => 'pageTree', 'foreignKey' => 'tl_page.title', 'eval' => array('fieldType' => 'radio', 'tl_class' => 'clr'), 'sql' => "int(10) unsigned NOT NULL default '0'", 'relation' => array('type' => 'hasOne', 'load' => 'lazy')), 'navigationTpl' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['navigationTpl'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_module', 'getNavigationTemplates'), 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'customTpl' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['customTpl'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_module', 'getModuleTemplates'), 'eval' => array('includeBlankOption' => true, 'chosen' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'pages' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['pages'], 'exclude' => true, 'inputType' => 'pageTree', 'foreignKey' => 'tl_page.title', 'eval' => array('multiple' => true, 'fieldType' => 'checkbox', 'files' => true, 'orderField' => 'orderPages', 'mandatory' => true), 'sql' => "blob NULL", 'relation' => array('type' => 'hasMany', 'load' => 'lazy')), 'orderPages' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['orderSRC'], 'sql' => "blob NULL"), 'showHidden' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['showHidden'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'customLabel' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['customLabel'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 64, 'rgxp' => 'extnd', 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'autologin' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['autologin'], 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default ''"), 'jumpTo' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['jumpTo'], 'exclude' => true, 'inputType' => 'pageTree', 'foreignKey' => 'tl_page.title', 'eval' => array('fieldType' => 'radio'), 'sql' => "int(10) unsigned NOT NULL default '0'", 'relation' => array('type' => 'hasOne', 'load' => 'eager')), 'redirectBack' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['redirectBack'], 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default ''"), 'cols' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['cols'], 'default' => '2cl', 'exclude' => true, 'inputType' => 'select', 'options' => array('1cl', '2cl'), 'reference' => &$GLOBALS['TL_LANG']['tl_module'], 'eval' => array('helpwizard' => true, 'tl_class' => 'w50'), 'sql' => "varchar(32) NOT NULL default ''"), 'editable' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['editable'], 'exclude' => true, 'inputType' => 'checkboxWizard', 'options_callback' => array('tl_module', 'getEditableMemberProperties'), 'eval' => array('multiple' => true), 'sql' => "blob NULL"), 'memberTpl' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['memberTpl'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_module', 'getMemberTemplates'), 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'tableless' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['tableless'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'form' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['form'], 'exclude' => true, 'inputType' => 'select', 'foreignKey' => 'tl_form.title', 'options_callback' => array('tl_module', 'getForms'), 'eval' => array('chosen' => true, 'tl_class' => 'w50'), 'sql' => "int(10) unsigned NOT NULL default '0'", 'relation' => array('type' => 'hasOne', 'load' => 'lazy')), 'queryType' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['queryType'], 'default' => 'and', 'exclude' => true, 'inputType' => 'select', 'options' => array('and', 'or'), 'reference' => &$GLOBALS['TL_LANG']['tl_module'], 'eval' => array('helpwizard' => true, 'tl_class' => 'w50'), 'sql' => "varchar(32) NOT NULL default ''"), 'fuzzy' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['fuzzy'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'contextLength' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['contextLength'], 'default' => 48, 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'natural', 'tl_class' => 'w50'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'totalLength' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['totalLength'], 'default' => 1000, 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'natural', 'tl_class' => 'w50'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'perPage' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['perPage'], 'default' => 0, 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'natural', 'tl_class' => 'w50'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'searchType' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['searchType'], 'default' => 'simple', 'exclude' => true, 'inputType' => 'select', 'options' => array('simple', 'advanced'), 'reference' => &$GLOBALS['TL_LANG']['tl_module'], 'eval' => array('helpwizard' => true, 'tl_class' => 'w50'), 'sql' => "varchar(32) NOT NULL default ''"), 'searchTpl' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['searchTpl'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_module', 'getSearchTemplates'), 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'inColumn' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['inColumn'], 'default' => 'main', 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_module', 'getLayoutSections'), 'reference' => &$GLOBALS['TL_LANG']['COLS'], 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(32) NOT NULL default ''"), 'skipFirst' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['skipFirst'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'natural', 'tl_class' => 'w50'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'loadFirst' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['loadFirst'], 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default ''"), 'size' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['size'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => true, 'multiple' => true, 'size' => 2, 'rgxp' => 'natural', 'nospace' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'transparent' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['transparent'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'flashvars' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['flashvars'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('nospace' => true, 'maxlength' => 255, 'tl_class' => 'long clr'), 'sql' => "varchar(255) NOT NULL default ''"), 'altContent' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['altContent'], 'exclude' => true, 'search' => true, 'inputType' => 'textarea', 'eval' => array('mandatory' => true, 'allowHtml' => true, 'style' => 'height:60px', 'tl_class' => 'clr'), 'sql' => "text NULL"), 'source' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['source'], 'default' => 'internal', 'exclude' => true, 'inputType' => 'select', 'options' => array('internal', 'external'), 'reference' => &$GLOBALS['TL_LANG']['tl_module'], 'eval' => array('submitOnChange' => true), 'sql' => "varchar(32) NOT NULL default ''"), 'singleSRC' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['singleSRC'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('fieldType' => 'radio', 'filesOnly' => true, 'mandatory' => true, 'tl_class' => 'clr'), 'sql' => "binary(16) NULL"), 'url' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['url'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => true, 'rgxp' => 'url', 'decodeEntities' => true, 'maxlength' => 255), 'sql' => "varchar(255) NOT NULL default ''"), 'interactive' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['interactive'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'flashID' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['flashID'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => true, 'rgxp' => 'extnd', 'nospace' => true, 'unique' => true, 'maxlength' => 64), 'sql' => "varchar(64) NOT NULL default ''"), 'flashJS' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['flashJS'], 'exclude' => true, 'inputType' => 'textarea', 'eval' => array('class' => 'monospace', 'rte' => 'ace|js'), 'sql' => "text NULL"), 'imgSize' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['imgSize'], 'exclude' => true, 'inputType' => 'imageSize', 'options' => System::getImageSizes(), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('rgxp' => 'natural', 'includeBlankOption' => true, 'nospace' => true, 'helpwizard' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'useCaption' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['useCaption'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 clr'), 'sql' => "char(1) NOT NULL default ''"), 'fullsize' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['fullsize'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'multiSRC' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['multiSRC'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('multiple' => true, 'fieldType' => 'checkbox', 'orderField' => 'orderSRC', 'files' => true, 'mandatory' => true), 'sql' => "blob NULL"), 'orderSRC' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['orderSRC'], 'sql' => "blob NULL"), 'html' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['html'], 'exclude' => true, 'search' => true, 'inputType' => 'textarea', 'eval' => array('allowHtml' => true, 'class' => 'monospace', 'rte' => 'ace|html', 'helpwizard' => true), 'explanation' => 'insertTags', 'sql' => "text NULL"), 'rss_cache' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['rss_cache'], 'default' => 3600, 'exclude' => true, 'inputType' => 'select', 'options' => array(0, 5, 15, 30, 60, 300, 900, 1800, 3600, 10800, 21600, 43200, 86400), 'eval' => array('tl_class' => 'w50'), 'reference' => &$GLOBALS['TL_LANG']['CACHE'], 'sql' => "int(10) unsigned NOT NULL default '0'"), 'rss_feed' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['rss_feed'], 'exclude' => true, 'inputType' => 'textarea', 'eval' => array('mandatory' => true, 'decodeEntities' => true, 'style' => 'height:60px'), 'sql' => "text NULL"), 'rss_template' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['rss_template'], 'default' => 'rss_default', 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_module', 'getRssTemplates'), 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(32) NOT NULL default ''"), 'numberOfItems' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['numberOfItems'], 'default' => 3, 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => true, 'rgxp' => 'natural', 'tl_class' => 'w50'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'disableCaptcha' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['disableCaptcha'], 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default ''"), 'reg_groups' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['reg_groups'], 'exclude' => true, 'inputType' => 'checkbox', 'foreignKey' => 'tl_member_group.name', 'eval' => array('multiple' => true), 'sql' => "blob NULL", 'relation' => array('type' => 'hasMany', 'load' => 'lazy')), 'reg_allowLogin' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['reg_allowLogin'], 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default ''"), 'reg_skipName' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['reg_skipName'], 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default ''"), 'reg_close' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['reg_close'], 'exclude' => true, 'inputType' => 'select', 'options' => array('close_deactivate', 'close_delete'), 'reference' => &$GLOBALS['TL_LANG']['tl_module'], 'sql' => "varchar(32) NOT NULL default ''"), 'reg_assignDir' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['reg_assignDir'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'reg_homeDir' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['reg_homeDir'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('fieldType' => 'radio', 'tl_class' => 'clr'), 'sql' => "binary(16) NULL"), 'reg_activate' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['reg_activate'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'reg_jumpTo' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['reg_jumpTo'], 'exclude' => true, 'inputType' => 'pageTree', 'foreignKey' => 'tl_page.title', 'eval' => array('fieldType' => 'radio'), 'sql' => "int(10) unsigned NOT NULL default '0'", 'relation' => array('type' => 'hasOne', 'load' => 'lazy')), 'reg_text' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['reg_text'], 'exclude' => true, 'inputType' => 'textarea', 'eval' => array('style' => 'height:120px', 'decodeEntities' => true, 'alwaysSave' => true), 'load_callback' => array(array('tl_module', 'getActivationDefault')), 'sql' => "text NULL"), 'reg_password' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['reg_password'], 'exclude' => true, 'inputType' => 'textarea', 'eval' => array('style' => 'height:120px', 'decodeEntities' => true, 'alwaysSave' => true), 'load_callback' => array(array('tl_module', 'getPasswordDefault')), 'sql' => "text NULL"), 'protected' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['protected'], 'exclude' => true, 'filter' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'groups' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['groups'], 'exclude' => true, 'inputType' => 'checkbox', 'foreignKey' => 'tl_member_group.name', 'eval' => array('mandatory' => true, 'multiple' => true), 'sql' => "blob NULL", 'relation' => array('type' => 'hasMany', 'load' => 'lazy')), 'guests' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['guests'], 'exclude' => true, 'filter' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default ''"), 'cssID' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['cssID'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('multiple' => true, 'size' => 2, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'space' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['space'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('multiple' => true, 'size' => 2, 'rgxp' => 'digit', 'nospace' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''")));
/**
 * Provide miscellaneous methods that are used by the data configuration array.
 *
 * @author Leo Feyer <https://github.com/leofeyer>
 */
class tl_module extends Backend
{
    /**
     * Import the back end user object
     */
    public function __construct()
    {
        parent::__construct();
        $this->import('BackendUser', 'User');
    }
    /**
     * Check permissions to edit the table
     */
							slick_touchMove,
							slick_touchThreshold,
							slick_useCSS,
							slick_useTransform,
							slick_variableWidth,
							slick_vertical,
							slick_verticalSwiping,
							slick_rtl,
							slick_waitForAnimate,
							slick_shuffleOrder,
							slick_zIndex,
							slick_unslick,
							initCallback,
							afterInitCallback,
							cssClass
							', 'addGallery' => 'slickMultiSRC,slickSortBy,slickUseHomeDir,slickSize,slickFullsize,slickNumberOfItems,slickgalleryTpl,slickCustomTpl'), 'fields' => array('slickConfig' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slickConfig'], 'inputType' => 'select', 'exclude' => true, 'foreignKey' => 'tl_slick_config.title', 'sql' => "int(10) unsigned NOT NULL", 'eval' => array('tl_class' => 'w50'), 'wizard' => array(array('tl_slick_spread', 'editSlickConfig'))), 'addSlick' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['addSlick'], 'inputType' => 'checkbox', 'exclude' => true, 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'addGallery' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['addGallery'], 'inputType' => 'checkbox', 'exclude' => true, 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'slickMultiSRC' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slickMultiSRC'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('multiple' => true, 'fieldType' => 'checkbox', 'orderField' => 'orderSRC', 'files' => true, 'mandatory' => true), 'sql' => "blob NULL", 'load_callback' => array(array('tl_content', 'setMultiSrcFlags'))), 'slickOrderSRC' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slickOrderSRC'], 'sql' => "blob NULL"), 'slickSortBy' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slickSortBy'], 'exclude' => true, 'inputType' => 'select', 'options' => array('custom', 'name_asc', 'name_desc', 'date_asc', 'date_desc', 'random'), 'reference' => &$GLOBALS['TL_LANG']['tl_content'], 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(32) NOT NULL default ''"), 'slickUseHomeDir' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slickUseHomeDir'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slickSize' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slickSize'], 'exclude' => true, 'inputType' => 'imageSize', 'options' => System::getImageSizes(), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('rgxp' => 'natural', 'includeBlankOption' => true, 'nospace' => true, 'helpwizard' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'slickFullsize' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slickFullsize'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'slickNumberOfItems' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slickNumberOfItems'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'natural', 'tl_class' => 'w50'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'slickCustomTpl' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slickCustomTpl'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_content', 'getElementTemplates'), 'eval' => array('includeBlankOption' => true, 'chosen' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'slickgalleryTpl' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['galleryTpl'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_slick_spread', 'getGalleryTemplates'), 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'slick_accessibility' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_accessibility'], 'inputType' => 'checkbox', 'exclude' => true, 'default' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_adaptiveHeight' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_adaptiveHeight'], 'inputType' => 'checkbox', 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_arrows' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_arrows'], 'inputType' => 'checkbox', 'exclude' => true, 'default' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_asNavFor' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_asNavFor'], 'inputType' => 'select', 'options_callback' => array('tl_slick_spread', 'getConfigurations'), 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "int(10) unsigned NOT NULL"), 'slick_prevArrow' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_prevArrow'], 'inputType' => 'text', 'exclude' => true, 'default' => '<button type="button" data-role="none" class="slick-prev">Previous</button>', 'eval' => array('tl_class' => 'clr long', 'allowHtml' => true), 'sql' => "varchar(255) NOT NULL default ''"), 'slick_nextArrow' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_nextArrow'], 'inputType' => 'text', 'exclude' => true, 'default' => '<button type="button" data-role="none" class="slick-next">Next</button>', 'eval' => array('tl_class' => 'long', 'allowHtml' => true), 'sql' => "varchar(255) NOT NULL default ''"), 'slick_autoplay' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_autoplay'], 'inputType' => 'checkbox', 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_autoplaySpeed' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_autoplaySpeed'], 'inputType' => 'text', 'default' => 3000, 'exclude' => true, 'eval' => array('tl_class' => 'w50', 'rgxp' => 'digit'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'slick_centerMode' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_centerMode'], 'inputType' => 'checkbox', 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_centerPadding' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_centerPadding'], 'inputType' => 'text', 'default' => '50px', 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'slick_cssEase' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_cssEase'], 'inputType' => 'text', 'default' => 'ease', 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'slick_customPaging' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_customPaging'], 'inputType' => 'text', 'exclude' => true, 'eval' => array('tl_class' => 'long clr', 'isJsObject' => true), 'sql' => "varchar(255) NOT NULL default ''"), 'slick_dots' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_dots'], 'inputType' => 'checkbox', 'exclude' => true, 'eval' => array('tl_class' => 'clr w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_dotsClass' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_dotsClass'], 'inputType' => 'text', 'default' => 'slick-dots', 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'slick_draggable' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_draggable'], 'inputType' => 'checkbox', 'default' => true, 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_easing' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_easing'], 'inputType' => 'text', 'default' => 'linear', 'exclude' => true, 'eval' => array('tl_class' => 'w50 clr'), 'sql' => "varchar(255) NOT NULL default ''"), 'slick_edgeFriction' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_edgeFriction'], 'inputType' => 'text', 'default' => 0.15, 'exclude' => true, 'eval' => array('tl_class' => 'w50', 'rgxp' => 'digit'), 'sql' => "float(9,2) unsigned NOT NULL default '0.00'"), 'slick_fade' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_fade'], 'inputType' => 'checkbox', 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_focusOnSelect' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_focusOnSelect'], 'inputType' => 'checkbox', 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_infinite' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_infinite'], 'inputType' => 'checkbox', 'default' => true, 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_initialSlide' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_initialSlide'], 'inputType' => 'text', 'default' => 0, 'exclude' => true, 'eval' => array('tl_class' => 'clr w50', 'rgxp' => 'digit'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'slick_lazyLoad' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_lazyLoad'], 'inputType' => 'select', 'default' => 'ondemand', 'options' => array('ondemand', 'progressive'), 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'slick_mobileFirst' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_mobileFirst'], 'inputType' => 'checkbox', 'default' => true, 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_pauseOnHover' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_pauseOnHover'], 'inputType' => 'checkbox', 'default' => true, 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_pauseOnFocus' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_pauseOnFocus'], 'inputType' => 'checkbox', 'default' => true, 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_pauseOnDotsHover' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_pauseOnDotsHover'], 'inputType' => 'checkbox', 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_respondTo' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_respondTo'], 'inputType' => 'text', 'default' => 'window', 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'slick_responsive' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_responsive'], 'inputType' => 'multiColumnWizard', 'exclude' => true, 'eval' => array('tl_class' => 'clr', 'columnFields' => array('slick_breakpoint' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_breakpoint'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('style' => 'width:100px', 'rgxp' => 'digit')), 'slick_settings' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_settings'], 'inputType' => 'select', 'options_callback' => array('tl_slick_spread', 'getConfigurations'), 'eval' => array('style' => 'width:400px', 'includeBlankOption' => true)))), 'sql' => "blob NULL"), 'slick_rows' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_rows'], 'inputType' => 'text', 'default' => 1, 'exclude' => true, 'eval' => array('tl_class' => 'w50', 'rgxp' => 'digit'), 'sql' => "smallint(5) unsigned NOT NULL default '1'"), 'slick_rtl' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_rtl'], 'inputType' => 'checkbox', 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_slide' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_slide'], 'inputType' => 'text', 'default' => 'div', 'exclude' => true, 'eval' => array('tl_class' => 'w50 clr'), 'sql' => "varchar(255) NOT NULL default ''"), 'slick_slidesPerRow' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_slidesPerRow'], 'inputType' => 'text', 'default' => 1, 'exclude' => true, 'eval' => array('tl_class' => 'w50', 'rgxp' => 'digit'), 'sql' => "smallint(5) unsigned NOT NULL default '1'"), 'slick_slidesToShow' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_slidesToShow'], 'inputType' => 'text', 'default' => 1, 'exclude' => true, 'eval' => array('tl_class' => 'w50', 'rgxp' => 'digit'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'slick_slidesToScroll' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_slidesToScroll'], 'inputType' => 'text', 'default' => 1, 'exclude' => true, 'eval' => array('tl_class' => 'w50', 'rgxp' => 'digit'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'slick_speed' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_speed'], 'inputType' => 'text', 'default' => 3000, 'exclude' => true, 'eval' => array('tl_class' => 'w50', 'rgxp' => 'digit'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'slick_swipe' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_swipe'], 'inputType' => 'checkbox', 'exclude' => true, 'default' => true, 'eval' => array('tl_class' => 'w50 clr'), 'sql' => "char(1) NOT NULL default ''"), 'slick_swipeToSlide' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_swipeToSlide'], 'inputType' => 'checkbox', 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_touchMove' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_touchMove'], 'inputType' => 'checkbox', 'exclude' => true, 'default' => true, 'eval' => array('tl_class' => 'clr w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_touchThreshold' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_touchThreshold'], 'inputType' => 'text', 'default' => 5, 'exclude' => true, 'eval' => array('tl_class' => 'clr w50', 'rgxp' => 'digit'), 'sql' => "smallint(5) unsigned NOT NULL default '0'"), 'slick_useCSS' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_useCSS'], 'inputType' => 'checkbox', 'exclude' => true, 'default' => true, 'eval' => array('tl_class' => 'clr w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_useTransform' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_useTransform'], 'inputType' => 'checkbox', 'exclude' => true, 'default' => true, 'eval' => array('tl_class' => 'clr w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_variableWidth' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_variableWidth'], 'inputType' => 'checkbox', 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_vertical' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_vertical'], 'inputType' => 'checkbox', 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_verticalSwiping' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_verticalSwiping'], 'inputType' => 'checkbox', 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_waitForAnimate' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_waitForAnimate'], 'inputType' => 'checkbox', 'exclude' => true, 'default' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''"), 'slick_zIndex' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_zIndex'], 'inputType' => 'text', 'default' => 1000, 'exclude' => true, 'eval' => array('tl_class' => 'clr w50', 'rgxp' => 'digit'), 'sql' => "smallint(5) unsigned NOT NULL default '1000'"), 'slick_unslick' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_unslick'], 'inputType' => 'checkbox', 'exclude' => true, 'eval' => array('tl_class' => 'w50', 'isJsObject' => true), 'sql' => "char(1) NOT NULL default ''"), 'slick_shuffleOrder' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['slick_shuffleOrder'], 'inputType' => 'checkbox', 'exclude' => true, 'eval' => array('tl_class' => 'w50', 'isJsObject' => true), 'sql' => "char(1) NOT NULL default ''"), 'initCallback' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['initCallback'], 'inputType' => 'text', 'exclude' => true, 'eval' => array('tl_class' => 'w50 clr'), 'sql' => "varchar(255) NOT NULL default ''"), 'afterInitCallback' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['afterInitCallback'], 'inputType' => 'text', 'exclude' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'cssClass' => array('label' => &$GLOBALS['TL_LANG']['tl_slick_spread']['cssClass'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''")));
// flat palette, renders widtout submitOnChange Field
$GLOBALS['TL_DCA']['tl_slick_spread']['palettes'][SLICK_PALETTE_FLAT] = str_replace('addSlick', $GLOBALS['TL_DCA']['tl_slick_spread']['subpalettes']['addSlick'], $GLOBALS['TL_DCA']['tl_slick_spread']['palettes']['default']);
// Gallery Support -- not tl_content type present, set isGallery as default for multiSRC
$GLOBALS['TL_DCA']['tl_slick_spread']['fields']['slickMultiSRC']['eval']['orderField'] = 'slickOrderSRC';
$GLOBALS['TL_DCA']['tl_slick_spread']['fields']['slickMultiSRC']['eval']['isGallery'] = true;
// Content Support -- set isGallery by type
$GLOBALS['TL_DCA']['tl_content']['fields']['multiSRC']['load_callback'][] = array('tl_slick_spread', 'setFileTreeFlags');
class tl_slick_spread extends Backend
{
    /**
     * Return all gallery templates as array
     *
     * @return array
     */
    public function getGalleryTemplates()
示例#9
0
/**
 * Contao Open Source CMS
 *
 * Copyright (c) 2005-2015 Leo Feyer
 *
 * @license LGPL-3.0+
 */
/**
 * Load tl_content language file
 */
System::loadLanguageFile('tl_content');
/**
 * Table tl_faq
 */
$GLOBALS['TL_DCA']['tl_faq'] = array('config' => array('dataContainer' => 'Table', 'ptable' => 'tl_faq_category', 'enableVersioning' => true, 'onload_callback' => array(array('tl_faq', 'checkPermission')), 'sql' => array('keys' => array('id' => 'primary', 'pid,published,sorting' => 'index'))), 'list' => array('sorting' => array('mode' => 4, 'fields' => array('sorting'), 'panelLayout' => 'filter;sort,search,limit', 'headerFields' => array('title', 'headline', 'jumpTo', 'tstamp', 'allowComments'), 'child_record_callback' => array('tl_faq', 'listQuestions')), '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_faq']['edit'], 'href' => 'act=edit', 'icon' => 'edit.gif'), 'copy' => array('label' => &$GLOBALS['TL_LANG']['tl_faq']['copy'], 'href' => 'act=paste&amp;mode=copy', 'icon' => 'copy.gif'), 'cut' => array('label' => &$GLOBALS['TL_LANG']['tl_faq']['cut'], 'href' => 'act=paste&amp;mode=cut', 'icon' => 'cut.gif'), 'delete' => array('label' => &$GLOBALS['TL_LANG']['tl_faq']['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_faq']['toggle'], 'icon' => 'visible.gif', 'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleVisibility(this,%s)"', 'button_callback' => array('tl_faq', 'toggleIcon')), 'show' => array('label' => &$GLOBALS['TL_LANG']['tl_faq']['show'], 'href' => 'act=show', 'icon' => 'show.gif'))), 'palettes' => array('__selector__' => array('addImage', 'addEnclosure'), 'default' => '{title_legend},question,alias,author;{answer_legend},answer;{image_legend},addImage;{enclosure_legend:hide},addEnclosure;{expert_legend:hide},noComments;{publish_legend},published'), 'subpalettes' => array('addImage' => 'singleSRC,alt,size,imagemargin,imageUrl,fullsize,caption,floating', 'addEnclosure' => 'enclosure'), 'fields' => array('id' => array('sql' => "int(10) unsigned NOT NULL auto_increment"), 'pid' => array('foreignKey' => 'tl_faq_category.title', 'sql' => "int(10) unsigned NOT NULL default '0'", 'relation' => array('type' => 'belongsTo', 'load' => 'eager')), 'sorting' => array('label' => &$GLOBALS['TL_LANG']['MSC']['sorting'], 'sorting' => true, 'flag' => 11, 'sql' => "int(10) unsigned NOT NULL default '0'"), 'tstamp' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'question' => array('label' => &$GLOBALS['TL_LANG']['tl_faq']['question'], 'exclude' => true, 'search' => true, 'sorting' => true, 'flag' => 1, 'inputType' => 'text', 'eval' => array('mandatory' => true, 'maxlength' => 255), 'sql' => "varchar(255) NOT NULL default ''"), 'alias' => array('label' => &$GLOBALS['TL_LANG']['tl_faq']['alias'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'alias', 'unique' => true, 'maxlength' => 128, 'tl_class' => 'w50'), 'save_callback' => array(array('tl_faq', 'generateAlias')), 'sql' => "varchar(128) COLLATE utf8_bin NOT NULL default ''"), 'author' => array('label' => &$GLOBALS['TL_LANG']['tl_faq']['author'], 'default' => BackendUser::getInstance()->id, 'exclude' => true, 'search' => true, 'filter' => true, 'sorting' => true, 'flag' => 11, 'inputType' => 'select', 'foreignKey' => 'tl_user.name', 'eval' => array('doNotCopy' => true, 'chosen' => true, 'mandatory' => true, 'includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "int(10) unsigned NOT NULL default '0'", 'relation' => array('type' => 'belongsTo', 'load' => 'eager')), 'answer' => array('label' => &$GLOBALS['TL_LANG']['tl_faq']['answer'], 'exclude' => true, 'search' => true, 'inputType' => 'textarea', 'eval' => array('mandatory' => true, 'rte' => 'tinyMCE', 'helpwizard' => true), 'explanation' => 'insertTags', 'sql' => "text NULL"), 'addImage' => array('label' => &$GLOBALS['TL_LANG']['tl_faq']['addImage'], 'exclude' => true, 'filter' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'singleSRC' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['singleSRC'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('filesOnly' => true, 'extensions' => Config::get('validImageTypes'), 'fieldType' => 'radio', 'mandatory' => true), 'sql' => "binary(16) NULL"), 'alt' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['alt'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'tl_class' => 'long'), 'sql' => "varchar(255) NOT NULL default ''"), 'size' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['size'], 'exclude' => true, 'inputType' => 'imageSize', 'options' => System::getImageSizes(), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('rgxp' => 'natural', 'includeBlankOption' => true, 'nospace' => true, 'helpwizard' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'imagemargin' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['imagemargin'], 'exclude' => true, 'inputType' => 'trbl', 'options' => $GLOBALS['TL_CSS_UNITS'], 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "varchar(128) NOT NULL default ''"), 'imageUrl' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['imageUrl'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'url', 'decodeEntities' => true, 'maxlength' => 255, 'fieldType' => 'radio', 'filesOnly' => true, 'tl_class' => 'w50 wizard'), 'wizard' => array(array('tl_faq', 'pagePicker')), 'sql' => "varchar(255) NOT NULL default ''"), 'fullsize' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['fullsize'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'caption' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['caption'], 'exclude' => true, 'search' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'allowHtml' => true, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'floating' => array('label' => &$GLOBALS['TL_LANG']['tl_content']['floating'], 'default' => 'above', 'exclude' => true, 'inputType' => 'radioTable', 'options' => array('above', 'left', 'right', 'below'), 'eval' => array('cols' => 4, 'tl_class' => 'w50'), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'sql' => "varchar(12) NOT NULL default ''"), 'addEnclosure' => array('label' => &$GLOBALS['TL_LANG']['tl_faq']['addEnclosure'], 'exclude' => true, 'filter' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''"), 'enclosure' => array('label' => &$GLOBALS['TL_LANG']['tl_faq']['enclosure'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('multiple' => true, 'fieldType' => 'checkbox', 'filesOnly' => true, 'isDownloads' => true, 'extensions' => Config::get('allowedDownload'), 'mandatory' => true), 'sql' => "blob NULL"), 'noComments' => array('label' => &$GLOBALS['TL_LANG']['tl_faq']['noComments'], 'exclude' => true, 'filter' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default ''"), 'published' => array('label' => &$GLOBALS['TL_LANG']['tl_faq']['published'], 'exclude' => true, 'filter' => true, 'flag' => 2, 'inputType' => 'checkbox', 'eval' => array('doNotCopy' => true), 'sql' => "char(1) NOT NULL default ''")));
/**
 * Provide miscellaneous methods that are used by the data configuration array.
 *
 * @author Leo Feyer <https://github.com/leofeyer>
 */
class tl_faq extends Backend
{
    /**
     * Import the back end user object
     */
    public function __construct()
    {
        parent::__construct();
        $this->import('BackendUser', 'User');
    }
示例#10
0
<?php

/*
 * Copyright MADE/YOUR/DAY OG <*****@*****.**>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
/**
 * RockSolid Slide DCA
 *
 * @author Martin Auswöger <*****@*****.**>
 */
$GLOBALS['TL_DCA']['tl_rocksolid_slide'] = array('config' => array('dataContainer' => 'Table', 'ptable' => 'tl_rocksolid_slider', 'ctable' => array('tl_content'), 'switchToEdit' => true, 'enableVersioning' => true, 'onload_callback' => array(array('MadeYourDay\\Contao\\Slider', 'slideOnloadCallback')), 'sql' => array('keys' => array('id' => 'primary', 'pid' => 'index'))), 'list' => array('sorting' => array('mode' => 4, 'fields' => array('sorting'), 'headerFields' => array('name'), 'panelLayout' => 'limit', 'header_callback' => array('MadeYourDay\\Contao\\Slider', 'headerCallback'), 'child_record_callback' => array('MadeYourDay\\Contao\\Slider', 'listSlides'), 'child_record_class' => 'no_padding'), '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_rocksolid_slide']['edit'], 'href' => 'table=tl_content', 'icon' => 'edit.gif', 'attributes' => 'class="contextmenu"', 'button_callback' => array('MadeYourDay\\Contao\\Slider', 'editSlideIcon')), 'editheader' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['editheader'], 'href' => 'act=edit', 'icon' => 'header.gif', 'attributes' => 'class="edit-header"'), 'copy' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['copy'], 'href' => 'act=paste&amp;mode=copy', 'icon' => 'copy.gif'), 'cut' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['cut'], 'href' => 'act=paste&amp;mode=cut', 'icon' => 'cut.gif'), 'delete' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['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_rocksolid_slide']['toggle'], 'icon' => 'visible.gif', 'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleVisibility(this,%s)"', 'button_callback' => array('MadeYourDay\\Contao\\Slider', 'toggleSlideIcon')), 'show' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['show'], 'href' => 'act=show', 'icon' => 'show.gif'))), 'palettes' => array('default' => '{title_legend},title,videoURL,videos,singleSRC,thumbImage,scaleMode,imagePosition,centerContent,invertControls,autoplay,linkUrl,linkNewWindow;{background_legend},backgroundImage,backgroundVideos,backgroundImageSize,backgroundScaleMode,backgroundPosition;{expert_legend},slideClass,sliderClass;{publish_legend},published,start,stop'), 'fields' => array('id' => array('sql' => "int(10) unsigned NOT NULL auto_increment"), 'pid' => array('foreignKey' => 'tl_rocksolid_slider.name', 'sql' => "int(10) unsigned NOT NULL default '0'", 'relation' => array('type' => 'belongsTo', 'load' => 'eager')), 'tstamp' => 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_rocksolid_slide']['title'], 'exclude' => true, 'search' => true, 'flag' => 1, 'inputType' => 'text', 'eval' => array('maxlength' => 255), 'sql' => "varchar(255) NOT NULL default ''"), 'videoURL' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['videoURL'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255), 'sql' => "varchar(255) NOT NULL default ''"), 'videos' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['videos'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('multiple' => true, 'fieldType' => 'checkbox', 'orderField' => 'videosOrder', 'files' => true, 'filesOnly' => true, 'extensions' => 'mp4,m4v,mov,wmv,webm,ogv'), 'sql' => "blob NULL"), 'videosOrder' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['videosOrder'], 'sql' => "blob NULL"), 'singleSRC' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['singleSRC'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('fieldType' => 'radio', 'files' => true, 'filesOnly' => true, 'extensions' => \Config::get('validImageTypes')), 'sql' => version_compare(VERSION, '3.2', '<') ? "varchar(255) NOT NULL default ''" : "binary(16) NULL"), 'thumbImage' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['thumbImage'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('fieldType' => 'radio', 'files' => true, 'filesOnly' => true, 'extensions' => \Config::get('validImageTypes')), 'sql' => version_compare(VERSION, '3.2', '<') ? "varchar(255) NOT NULL default ''" : "binary(16) NULL"), 'scaleMode' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['scaleMode'], 'exclude' => true, 'inputType' => 'select', 'options' => array('fit', 'crop', 'scale', 'none'), 'reference' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['scaleModes'], 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'imagePosition' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['imagePosition'], 'exclude' => true, 'inputType' => 'select', 'options' => array('center', 'top', 'right', 'bottom', 'left', 'top-left', 'top-right', 'bottom-left', 'bottom-right'), 'reference' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['imagePositions'], 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'centerContent' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['centerContent'], 'exclude' => true, 'inputType' => 'select', 'options' => array('false', 'true', 'x', 'y'), 'reference' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['centerContents'], 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'invertControls' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['invertControls'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'autoplay' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['autoplay'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'clr w50'), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'linkUrl' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['linkUrl'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'url', 'decodeEntities' => true, 'maxlength' => 255, 'tl_class' => 'clr w50 wizard'), 'wizard' => array(array('MadeYourDay\\Contao\\Slider', 'pagePickerWizard')), 'sql' => "varchar(255) NOT NULL default ''"), 'linkNewWindow' => array('label' => &$GLOBALS['TL_LANG']['MSC']['target'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'backgroundImage' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['backgroundImage'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('fieldType' => 'radio', 'files' => true, 'filesOnly' => true, 'extensions' => \Config::get('validImageTypes')), 'sql' => version_compare(VERSION, '3.2', '<') ? "varchar(255) NOT NULL default ''" : "binary(16) NULL"), 'backgroundVideos' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['backgroundVideos'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('multiple' => true, 'fieldType' => 'checkbox', 'orderField' => 'backgroundVideosOrder', 'files' => true, 'filesOnly' => true, 'extensions' => 'mp4,m4v,mov,wmv,webm,ogv,ogg'), 'sql' => "blob NULL"), 'backgroundVideosOrder' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['backgroundVideosOrder'], 'sql' => "blob NULL"), 'backgroundImageSize' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['backgroundImageSize'], 'exclude' => true, 'inputType' => 'imageSize', 'options' => version_compare(VERSION, '3.4', '<') ? $GLOBALS['TL_CROP'] : System::getImageSizes(), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('rgxp' => 'digit', 'nospace' => true, 'helpwizard' => true, 'tl_class' => 'w50', 'includeBlankOption' => true), 'sql' => "varchar(64) NOT NULL default ''"), 'backgroundScaleMode' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['backgroundScaleMode'], 'exclude' => true, 'inputType' => 'select', 'options' => array('fit', 'crop', 'scale', 'none'), 'reference' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['scaleModes'], 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50 clr'), 'sql' => "varchar(64) NOT NULL default ''"), 'backgroundPosition' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['backgroundPosition'], 'exclude' => true, 'inputType' => 'select', 'options' => array('center', 'top', 'right', 'bottom', 'left', 'top-left', 'top-right', 'bottom-left', 'bottom-right'), 'reference' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['imagePositions'], 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'slideClass' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['slideClass'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'tl_class' => 'w50 clr'), 'sql' => "varchar(255) NOT NULL default ''"), 'sliderClass' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['sliderClass'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 255, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'published' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['published'], 'exclude' => true, 'filter' => true, 'flag' => 1, 'inputType' => 'checkbox', 'eval' => array('doNotCopy' => true), 'sql' => "char(1) NOT NULL default ''"), 'start' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['start'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'datim', 'datepicker' => true, 'tl_class' => 'w50 wizard'), 'sql' => "varchar(10) NOT NULL default ''"), 'stop' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_slide']['stop'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'datim', 'datepicker' => true, 'tl_class' => 'w50 wizard'), 'sql' => "varchar(10) NOT NULL default ''")));
<?php

/*
 * Copyright MADE/YOUR/DAY OG <*****@*****.**>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
/**
 * RockSolid Mega Menu DCA
 *
 * @author Martin Auswöger <*****@*****.**>
 */
if (TL_MODE === 'BE') {
    $GLOBALS['TL_CSS'][] = (version_compare(VERSION, '4.0', '>=') ? 'bundles/rocksolidcolumns' : 'system/modules/rocksolid-columns/assets') . '/css/be_main.css';
    // Load module language file
    $this->loadLanguageFile('tl_module');
}
$GLOBALS['TL_DCA']['tl_rocksolid_mega_menu'] = array('config' => array('dataContainer' => 'Table', 'ctable' => array('tl_rocksolid_mega_menu_column'), 'switchToEdit' => true, 'enableVersioning' => true, 'sql' => array('keys' => array('id' => 'primary')), 'onload_callback' => array(array('MadeYourDay\\Contao\\MegaMenu\\MegaMenu', 'dcaOnloadCallback'))), 'list' => array('sorting' => array('mode' => 1, 'fields' => array('name'), 'flag' => 1, 'panelLayout' => 'filter;search,limit'), 'label' => array('fields' => array('name'), 'format' => '%s'), 'global_operations' => array('license' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['editLicense'], 'href' => 'table=tl_rocksolid_mega_menu_license', 'class' => 'header_icon', 'icon' => 'system/themes/' . \Controller::getTheme() . '/images/settings.gif'), '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_rocksolid_mega_menu']['edit'], 'href' => 'table=tl_rocksolid_mega_menu_column', 'icon' => 'edit.gif', 'attributes' => 'class="contextmenu"'), 'editheader' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['editheader'], 'href' => 'act=edit', 'icon' => 'header.gif', 'attributes' => 'class="edit-header"'), 'copy' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['copy'], 'href' => 'act=copy', 'icon' => 'copy.gif'), 'delete' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['delete'], 'href' => 'act=delete', 'icon' => 'delete.gif', 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"'), 'show' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['show'], 'href' => 'act=show', 'icon' => 'show.gif'))), 'palettes' => array('__selector__' => array('type'), 'default' => '{type_legend},name,type', 'auto' => '{type_legend},name,type;{rs_columns_legend},rs_columns_large,rs_columns_medium,rs_columns_small;{slider_legend},slider,sliderNavType,sliderControls,sliderSkin,sliderGapSize,sliderMaxCount,sliderMinSize,sliderPrevNextSteps,sliderLoop;{settings_legend},imageSize;{background_legend},backgroundImage,backgroundImageSize,backgroundSize,backgroundPosition,backgroundRepeat;{expert_legend},cssClass,cssId', 'auto_images' => '{type_legend},name,type;{rs_columns_legend},rs_columns_large,rs_columns_medium,rs_columns_small;{slider_legend},slider,sliderNavType,sliderControls,sliderSkin,sliderGapSize,sliderMaxCount,sliderMinSize,sliderPrevNextSteps,sliderLoop;{settings_legend},imageSize;{background_legend},backgroundImage,backgroundImageSize,backgroundSize,backgroundPosition,backgroundRepeat;{expert_legend},cssClass,cssId', 'manual' => '{type_legend},name,type;{rs_columns_legend},rs_columns_large,rs_columns_medium,rs_columns_small;{slider_legend},slider,sliderNavType,sliderControls,sliderSkin,sliderGapSize,sliderMaxCount,sliderMinSize,sliderPrevNextSteps,sliderLoop;{background_legend},backgroundImage,backgroundImageSize,backgroundSize,backgroundPosition,backgroundRepeat;{expert_legend},cssClass,cssId', 'html' => '{type_legend},name,type;{html_legend},html;{background_legend},backgroundImage,backgroundImageSize,backgroundSize,backgroundPosition,backgroundRepeat;{expert_legend},cssClass,cssId'), '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_rocksolid_mega_menu']['name'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => true, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'type' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['type'], 'exclude' => true, 'inputType' => 'select', 'options' => array('auto', 'auto_images', 'manual', 'html'), 'reference' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['types'], 'eval' => array('mandatory' => true, 'chosen' => true, 'submitOnChange' => true, 'includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "varchar(32) NOT NULL default ''"), 'rs_columns_large' => array('inputType' => 'text', 'exclude' => true, 'label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['rs_columns_large'], 'eval' => array('mandatory' => true, 'tl_class' => 'rs_columns_w33'), 'sql' => "varchar(255) NOT NULL default ''"), 'rs_columns_medium' => array('inputType' => 'text', 'exclude' => true, 'label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['rs_columns_medium'], 'eval' => array('tl_class' => 'rs_columns_w33'), 'sql' => "varchar(255) NOT NULL default ''"), 'rs_columns_small' => array('inputType' => 'text', 'exclude' => true, 'label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['rs_columns_small'], 'eval' => array('tl_class' => 'rs_columns_w33'), 'sql' => "varchar(255) NOT NULL default ''"), 'slider' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['slider'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'clr'), 'sql' => "char(1) NOT NULL default ''"), 'sliderNavType' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_navType'], 'exclude' => true, 'inputType' => 'select', 'options' => array('bullets' => $GLOBALS['TL_LANG']['tl_module']['rsts_navType_bullets'], 'numbers' => $GLOBALS['TL_LANG']['tl_module']['rsts_navType_numbers'], 'tabs' => $GLOBALS['TL_LANG']['tl_module']['rsts_navType_tabs'], 'none' => $GLOBALS['TL_LANG']['tl_module']['rsts_navType_none']), 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'sliderControls' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_controls'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default '1'"), 'sliderSkin' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_customSkin'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'sliderGapSize' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_gapSize'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default '0%'"), 'sliderMaxCount' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_slideMaxCount'], 'exclude' => true, 'inputType' => 'select', 'options' => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20), 'eval' => array('tl_class' => 'w50', 'includeBlankOption' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'sliderMinSize' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_slideMinSize'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'sliderPrevNextSteps' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_prevNextSteps'], 'exclude' => true, 'inputType' => 'select', 'options' => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20), 'eval' => array('tl_class' => 'w50', 'includeBlankOption' => true), 'sql' => "int(10) unsigned NOT NULL default '0'"), 'sliderLoop' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_loop'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50 m12'), 'sql' => "char(1) NOT NULL default ''"), 'imageSize' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['imageSize'], 'exclude' => true, 'inputType' => 'imageSize', 'options' => version_compare(VERSION, '3.4', '<') ? $GLOBALS['TL_CROP'] : System::getImageSizes(), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('rgxp' => 'digit', 'nospace' => true, 'helpwizard' => true, 'includeBlankOption' => true), 'sql' => "varchar(64) NOT NULL default ''"), 'html' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['html'], 'exclude' => true, 'inputType' => 'textarea', 'eval' => array('mandatory' => true, 'allowHtml' => true, 'class' => 'monospace', 'rte' => 'ace|html'), 'explanation' => 'insertTags', 'sql' => "mediumtext NULL"), 'backgroundImage' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['backgroundImage'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('fieldType' => 'radio', 'files' => true, 'filesOnly' => true, 'tl_class' => 'clr', 'extensions' => \Config::get('validImageTypes')), 'sql' => version_compare(VERSION, '3.2', '<') ? "varchar(255) NOT NULL default ''" : "binary(16) NULL"), 'backgroundImageSize' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['backgroundImageSize'], 'exclude' => true, 'inputType' => 'imageSize', 'options' => version_compare(VERSION, '3.4', '<') ? $GLOBALS['TL_CROP'] : System::getImageSizes(), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('rgxp' => 'digit', 'nospace' => true, 'helpwizard' => true, 'tl_class' => 'w50', 'includeBlankOption' => true), 'sql' => "varchar(64) NOT NULL default ''"), 'backgroundSize' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['backgroundSize'], 'exclude' => true, 'inputType' => 'select', 'options' => array('auto', 'cover', 'contain'), 'reference' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['backgroundSizes'], 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'backgroundPosition' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['backgroundPosition'], 'exclude' => true, 'inputType' => 'select', 'options' => array('left top', 'left center', 'left bottom', 'center top', 'center center', 'center bottom', 'right top', 'right center', 'right bottom'), 'reference' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['backgroundPositions'], 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'backgroundRepeat' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['backgroundRepeat'], 'exclude' => true, 'inputType' => 'select', 'options' => array('no-repeat', 'repeat-x', 'repeat-y', 'repeat'), 'reference' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['backgroundRepeats'], 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''"), 'cssClass' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['cssClass'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50 clr'), 'sql' => "varchar(255) NOT NULL default ''"), 'cssId' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu']['cssId'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''")));
示例#12
0
$GLOBALS['TL_DCA']['tl_module']['fields']['portfolio_project_categories'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['portfolio_project_categories'], 'exclude' => true, 'inputType' => 'checkbox', 'foreignKey' => 'tl_portfolio_project_category.title', 'eval' => array('multiple' => true, 'mandatory' => true), 'sql' => "blob NULL");
$GLOBALS['TL_DCA']['tl_module']['fields']['portfolio_sortBy'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['portfolio_sortBy'], 'default' => 'custom', 'exclude' => true, 'inputType' => 'select', 'options' => array('custom', 'title_asc', 'title_desc', 'date_asc', 'date_desc'), 'reference' => &$GLOBALS['TL_LANG']['tl_module'], 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(16) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['client_featured'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['client_featured'], 'default' => 'all_clients', 'exclude' => true, 'inputType' => 'select', 'options' => array('all_clients', 'feature_clients', 'unfeature_clients'), 'reference' => &$GLOBALS['TL_LANG']['tl_module'], 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(20) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['client_detailModule'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['client_detailModule'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_module_portfolio', 'getClientDetailModules'), 'reference' => &$GLOBALS['TL_LANG']['tl_module'], 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "int(10) unsigned NOT NULL default '0'");
$GLOBALS['TL_DCA']['tl_module']['fields']['client_class'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['client_class'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 128, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['client_imgSize'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['client_imgSize'], 'exclude' => true, 'inputType' => 'imageSize', 'options' => System::getImageSizes(), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('rgxp' => 'digit', 'nospace' => true, 'helpwizard' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['client_template'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['client_template'], 'default' => 'client_full', 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_module_portfolio', 'getClientTemplates'), 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(32) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['client_perRow'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['client_perRow'], 'default' => '4', 'exclude' => true, 'inputType' => 'select', 'options' => array('1', '2', '3', '4', '6', '12'), 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['client_show'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['client_show'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array(), 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['show_title'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['show_title'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array(), 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['project_featured'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['project_featured'], 'default' => 'all_projects', 'exclude' => true, 'inputType' => 'select', 'options' => array('all_projects', 'feature_projects', 'unfeature_projects'), 'reference' => &$GLOBALS['TL_LANG']['tl_module'], 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(20) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['project_status'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['project_status'], 'default' => 'all', 'exclude' => true, 'inputType' => 'select', 'options' => array('all', 'planed', 'started', 'completed'), 'reference' => &$GLOBALS['TL_LANG']['tl_module'], 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(20) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['project_detailModule'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['project_detailModule'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_module_portfolio', 'getProjectDetailModules'), 'reference' => &$GLOBALS['TL_LANG']['tl_module'], 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "int(10) unsigned NOT NULL default '0'");
$GLOBALS['TL_DCA']['tl_module']['fields']['project_class'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['project_class'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('maxlength' => 128, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['project_template'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['project_template'], 'default' => 'client_full', 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_module_portfolio', 'getProjectTemplates'), 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(32) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['project_imgSize'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['project_imgSize'], 'exclude' => true, 'inputType' => 'imageSize', 'options' => System::getImageSizes(), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('rgxp' => 'digit', 'nospace' => true, 'helpwizard' => true, 'tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['project_perRow'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['project_perRow'], 'default' => '4', 'exclude' => true, 'inputType' => 'select', 'options' => array('1', '2', '3', '4', '6', '12'), 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(64) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['project_show'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['project_show'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array(), 'sql' => "char(1) NOT NULL default ''");
class tl_module_portfolio extends Backend
{
    /**
     * Get all client detail modules and return them as array
     * @return array
     */
    public function getClientDetailModules()
    {
        $arrModules = array();
        $objModules = $this->Database->execute("SELECT m.id, m.name, t.name AS theme FROM tl_module m LEFT JOIN tl_theme t ON m.pid=t.id WHERE m.type='portfolio_client_detail' ORDER BY t.name, m.name");
        while ($objModules->next()) {
            $arrModules[$objModules->theme][$objModules->id] = $objModules->name . ' (ID ' . $objModules->id . ')';
        }
<?php

/**
 * Contao Open Source CMS
 *
 * Copyright (c) 2015 Heimrich & Hannot GmbH
 *
 * @package banner_plus
 * @author  Rico Kaltofen <*****@*****.**>
 * @license http://www.gnu.org/licences/lgpl-3.0.html LGPL
 */
$dc =& $GLOBALS['TL_DCA']['tl_banner'];
/**
 * Palettes
 */
//$dc['palettes']['banner_image_fireplace'] = str_replace('banner_image', 'banner_image,banner_image_left,banner_image_right',$dc['palettes']['banner_image']);
/**
 * Palettes : add multiple fields
 */
foreach ($dc['palettes'] as $strName => $strPalette) {
    if ($strName == '__selector__') {
        continue;
    }
    $dc['palettes'][$strName] = str_replace('banner_domain', 'addVisibility,pages,addPageDepth', $dc['palettes'][$strName]);
}
/**
 * Fields
 */
$arrFields = array('addVisibility' => array('label' => &$GLOBALS['TL_LANG']['tl_banner']['addVisibility'], 'exclude' => true, 'inputType' => 'radio', 'options' => array('exclude', 'include'), 'default' => 'exclude', 'reference' => &$GLOBALS['TL_LANG']['tl_banner'], 'eval' => array('submitOnChange' => true), 'sql' => "varchar(32) NOT NULL default ''"), 'pages' => array('label' => &$GLOBALS['TL_LANG']['tl_banner']['pages'], 'exclude' => true, 'inputType' => 'pageTree', 'eval' => array('fieldType' => 'checkbox', 'multiple' => true), 'sql' => "blob NULL"), 'addPageDepth' => array('label' => &$GLOBALS['TL_LANG']['tl_banner']['addPageDepth'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => true, 'eval' => array('tl_class' => 'm12'), 'sql' => "char(1) NOT NULL default ''"), 'banner_image_left' => array('label' => &$GLOBALS['TL_LANG']['tl_banner']['banner_image_left'], 'explanation' => 'banner_help', 'inputType' => 'fileTree', 'sql' => "binary(16) NULL", 'eval' => array('files' => true, 'filesOnly' => true, 'fieldType' => 'radio', 'extensions' => 'jpg,jpe,gif,png,swf', 'maxlength' => 255, 'helpwizard' => true)), 'banner_imgSize_left' => array('label' => &$GLOBALS['TL_LANG']['tl_banner']['banner_imgSize_left'], 'exclude' => true, 'inputType' => 'imageSize', 'options' => System::getImageSizes(), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'sql' => "varchar(255) NOT NULL default ''", 'eval' => array('rgxp' => 'digit', 'nospace' => true)), 'banner_image_right' => array('label' => &$GLOBALS['TL_LANG']['tl_banner']['banner_image_right'], 'explanation' => 'banner_help', 'inputType' => 'fileTree', 'sql' => "binary(16) NULL", 'eval' => array('files' => true, 'filesOnly' => true, 'fieldType' => 'radio', 'extensions' => 'jpg,jpe,gif,png,swf', 'maxlength' => 255, 'helpwizard' => true)), 'banner_imgSize_right' => array('label' => &$GLOBALS['TL_LANG']['tl_banner']['banner_imgSize_right'], 'exclude' => true, 'inputType' => 'imageSize', 'options' => System::getImageSizes(), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'sql' => "varchar(255) NOT NULL default ''", 'eval' => array('rgxp' => 'digit', 'nospace' => true)));
$dc['fields'] = array_merge($dc['fields'], $arrFields);
$dc['palettes']['banner_image'] = str_replace('banner_imgSize', 'banner_imgSize,banner_image_left,banner_imgSize_left,banner_image_right,banner_imgSize_right', $dc['palettes']['banner_image']);
<?php

/*
 * Copyright MADE/YOUR/DAY OG <*****@*****.**>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
/**
 * RockSolid Mega Menu column DCA
 *
 * @author Martin Auswöger <*****@*****.**>
 */
$GLOBALS['TL_DCA']['tl_rocksolid_mega_menu_column'] = array('config' => array('dataContainer' => 'Table', 'ptable' => 'tl_rocksolid_mega_menu', 'enableVersioning' => true, 'sql' => array('keys' => array('id' => 'primary', 'pid' => 'index')), 'onload_callback' => array(array('MadeYourDay\\Contao\\MegaMenu\\MegaMenu', 'dcaOnloadCallback'))), 'list' => array('sorting' => array('mode' => 4, 'fields' => array('sorting'), 'headerFields' => array('name', 'type', 'columnCount'), 'header_callback' => array('MadeYourDay\\Contao\\MegaMenu\\MegaMenu', 'headerCallback'), 'panelLayout' => 'limit', 'child_record_callback' => array('MadeYourDay\\Contao\\MegaMenu\\MegaMenu', 'listColumns'), 'child_record_class' => 'no_padding'), '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_rocksolid_mega_menu_column']['edit'], 'href' => 'act=edit', 'icon' => 'edit.gif'), 'copy' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['copy'], 'href' => 'act=paste&amp;mode=copy', 'icon' => 'copy.gif'), 'cut' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['cut'], 'href' => 'act=paste&amp;mode=cut', 'icon' => 'cut.gif'), 'delete' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['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_rocksolid_mega_menu_column']['toggle'], 'icon' => 'visible.gif', 'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleVisibility(this,%s)"', 'button_callback' => array('MadeYourDay\\Contao\\MegaMenu\\MegaMenu', 'toggleColumnIcon')), 'show' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['show'], 'href' => 'act=show', 'icon' => 'show.gif'))), 'palettes' => array('__selector__' => array('type'), 'default' => '{type_legend},name,type', 'auto' => '{type_legend},name,type,displayName;{settings_legend},image,imageSize,text;{navigation_legend},page;{expert_legend},cssClass,cssId;{publish_legend},published,start,stop', 'auto_image' => '{type_legend},name,type,displayName;{settings_legend},image,imageSize,text;{navigation_legend},page;{expert_legend},cssClass,cssId;{publish_legend},published,start,stop', 'manual' => '{type_legend},name,type,displayName;{settings_legend},image,imageSize,text;{navigation_legend},page,pages;{expert_legend},cssClass,cssId;{publish_legend},published,start,stop', 'manual_image' => '{type_legend},name,type,displayName;{settings_legend},image,imageSize,text;{navigation_legend},page,pages;{expert_legend},cssClass,cssId;{publish_legend},published,start,stop', 'image' => '{type_legend},name,type,displayName;{settings_legend},image,imageSize,text;{navigation_legend},page;{expert_legend},cssClass,cssId;{publish_legend},published,start,stop', 'link' => '{type_legend},name,type;{navigation_legend},page;{expert_legend},cssClass,cssId;{publish_legend},published,start,stop', 'html' => '{type_legend},name,type,displayName;{settings_legend},html;{expert_legend},cssClass,cssId;{publish_legend},published,start,stop'), 'fields' => array('id' => array('sql' => "int(10) unsigned NOT NULL auto_increment"), 'pid' => array('foreignKey' => 'tl_rocksolid_mega_menu.name', 'sql' => "int(10) unsigned NOT NULL default '0'", 'relation' => array('type' => 'belongsTo', 'load' => 'eager')), 'tstamp' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'sorting' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'name' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['name'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory' => true, 'tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'type' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['type'], 'exclude' => true, 'inputType' => 'select', 'options' => array('auto', 'auto_image', 'manual', 'manual_image', 'image', 'link', 'html'), 'reference' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['types'], 'eval' => array('mandatory' => true, 'chosen' => true, 'submitOnChange' => true, 'includeBlankOption' => true, 'tl_class' => 'w50'), 'sql' => "varchar(32) NOT NULL default ''"), 'displayName' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['displayName'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'clr'), 'sql' => "char(1) NOT NULL default ''"), 'image' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['image'], 'exclude' => true, 'inputType' => 'fileTree', 'eval' => array('fieldType' => 'radio', 'files' => true, 'filesOnly' => true, 'tl_class' => 'clr', 'extensions' => \Config::get('validImageTypes')), 'sql' => version_compare(VERSION, '3.2', '<') ? "varchar(255) NOT NULL default ''" : "binary(16) NULL"), 'imageSize' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['imageSize'], 'exclude' => true, 'inputType' => 'imageSize', 'options' => version_compare(VERSION, '3.4', '<') ? $GLOBALS['TL_CROP'] : System::getImageSizes(), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('rgxp' => 'digit', 'nospace' => true, 'helpwizard' => true, 'includeBlankOption' => true), 'sql' => "varchar(64) NOT NULL default ''"), 'text' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['text'], 'exclude' => true, 'inputType' => 'textarea', 'eval' => array('rte' => 'tinyMCE', 'helpwizard' => true), 'explanation' => 'insertTags', 'sql' => "mediumtext NULL"), 'page' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['page'], 'exclude' => true, 'inputType' => 'pageTree', 'foreignKey' => 'tl_page.title', 'eval' => array('fieldType' => 'radio'), 'sql' => "int(10) unsigned NOT NULL default '0'", 'relation' => array('type' => 'hasOne', 'load' => 'eager')), 'pages' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['pages'], 'exclude' => true, 'inputType' => 'pageTree', 'foreignKey' => 'tl_page.title', 'eval' => array('multiple' => true, 'fieldType' => 'checkbox', 'files' => true, 'orderField' => 'orderPages', 'mandatory' => true), 'sql' => "blob NULL", 'relation' => array('type' => 'hasMany', 'load' => 'lazy')), 'orderPages' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['orderPages'], 'sql' => "blob NULL"), 'html' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['html'], 'exclude' => true, 'inputType' => 'textarea', 'eval' => array('mandatory' => true, 'allowHtml' => true, 'class' => 'monospace', 'rte' => 'ace|html'), 'explanation' => 'insertTags', 'sql' => "mediumtext NULL"), 'cssClass' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['cssClass'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50 clr'), 'sql' => "varchar(255) NOT NULL default ''"), 'cssId' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['cssId'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''"), 'published' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['published'], 'exclude' => true, 'filter' => true, 'flag' => 1, 'inputType' => 'checkbox', 'eval' => array('doNotCopy' => true), 'sql' => "char(1) NOT NULL default ''"), 'start' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['start'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'datim', 'datepicker' => true, 'tl_class' => 'w50 wizard'), 'sql' => "varchar(10) NOT NULL default ''"), 'stop' => array('label' => &$GLOBALS['TL_LANG']['tl_rocksolid_mega_menu_column']['stop'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'datim', 'datepicker' => true, 'tl_class' => 'w50 wizard'), 'sql' => "varchar(10) NOT NULL default ''")));