当前位置: 首页>>代码示例>>PHP>>正文


PHP System::getImageSizes方法代码示例

本文整理汇总了PHP中System::getImageSizes方法的典型用法代码示例。如果您正苦于以下问题:PHP System::getImageSizes方法的具体用法?PHP System::getImageSizes怎么用?PHP System::getImageSizes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System的用法示例。


在下文中一共展示了System::getImageSizes方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: generate

 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();
 }
开发者ID:heimrichhannot,项目名称:contao-listgrid,代码行数:18,代码来源:ContentListGridNews.php

示例2: array

$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'");
开发者ID:madeyourday,项目名称:contao-rocksolid-slider,代码行数:31,代码来源:tl_content.php

示例3: array

/**
 * 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');
    }
开发者ID:bytehead,项目名称:contao-core,代码行数:30,代码来源:tl_calendar_events.php

示例4: array

/**
 * 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
开发者ID:markocupic,项目名称:gallery_creator,代码行数:31,代码来源:tl_content.php

示例5: array

	{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'));
开发者ID:heimrichhannot,项目名称:contao-member_plus,代码行数:31,代码来源:tl_module.php

示例6: array

/**
 * 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');
    }
开发者ID:juergen83,项目名称:contao,代码行数:30,代码来源:tl_faq.php

示例7: array

<?php

/*
 * Copyright MADE/YOUR/DAY OG <mail@madeyourday.net>
 *
 * 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 <martin@madeyourday.net>
 */
$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 ''")));
开发者ID:GerqEV,项目名称:cdemo2,代码行数:14,代码来源:tl_rocksolid_slide.php

示例8: array

<?php

/*
 * Copyright MADE/YOUR/DAY OG <mail@madeyourday.net>
 *
 * 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 <martin@madeyourday.net>
 */
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 ''")));
开发者ID:madeyourday,项目名称:contao-rocksolid-mega-menu,代码行数:19,代码来源:tl_rocksolid_mega_menu.php

示例9: array

$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 . ')';
        }
开发者ID:respinar,项目名称:contao-portfolio,代码行数:31,代码来源:tl_module.php

示例10: foreach

<?php

/**
 * Contao Open Source CMS
 *
 * Copyright (c) 2015 Heimrich & Hannot GmbH
 *
 * @package banner_plus
 * @author  Rico Kaltofen <r.kaltofen@heimrich-hannot.de>
 * @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']);
开发者ID:heimrichhannot,项目名称:contao-banner_plus,代码行数:31,代码来源:tl_banner.php

示例11: array

<?php

/*
 * Copyright MADE/YOUR/DAY OG <mail@madeyourday.net>
 *
 * 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 <martin@madeyourday.net>
 */
$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 ''")));
开发者ID:madeyourday,项目名称:contao-rocksolid-mega-menu,代码行数:14,代码来源:tl_rocksolid_mega_menu_column.php


注:本文中的System::getImageSizes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。