vendor/isotope/isotope-core/system/modules/isotope/dca/tl_iso_label.php line 107

Open in your IDE?
  1. <?php
  2. /*
  3.  * Isotope eCommerce for Contao Open Source CMS
  4.  *
  5.  * Copyright (C) 2009 - 2019 terminal42 gmbh & Isotope eCommerce Workgroup
  6.  *
  7.  * @link       https://isotopeecommerce.org
  8.  * @license    https://opensource.org/licenses/lgpl-3.0.html
  9.  */
  10. /**
  11.  * Table tl_iso_label
  12.  */
  13. $GLOBALS['TL_DCA']['tl_iso_label'] = array
  14. (
  15.     // Config
  16.     'config' => array
  17.     (
  18.         'dataContainer'               => 'Table',
  19.         'enableVersioning'            => true,
  20.         'backlink'                    => 'do=iso_setup',
  21.         'sql' => array
  22.         (
  23.             'keys' => array
  24.             (
  25.                 'id'        => 'primary',
  26.                 'language'  => 'index'
  27.             )
  28.         )
  29.     ),
  30.     // List
  31.     'list' => array
  32.     (
  33.         'sorting' => array
  34.         (
  35.             'mode'                      => 1,
  36.             'fields'                    => array('language''label'),
  37.             'flag'                      => 1,
  38.             'panelLayout'               => 'filter,search,limit',
  39.         ),
  40.         'label' => array
  41.         (
  42.             'fields'                    => array('language''label''replacement'),
  43.             'showColumns'               => true,
  44.         ),
  45.         'global_operations' => array
  46.         (
  47.             'all' => array
  48.             (
  49.                 'href'                  => 'act=select',
  50.                 'class'                 => 'header_edit_all',
  51.                 'attributes'            => 'onclick="Backend.getScrollOffset();"'
  52.             )
  53.         ),
  54.         'operations' => array
  55.         (
  56.             'edit' => array
  57.             (
  58.                 'href'                  => 'act=edit',
  59.                 'icon'                  => 'edit.svg'
  60.             ),
  61.             'copy' => array
  62.             (
  63.                 'href'                  => 'act=copy',
  64.                 'icon'                  => 'copy.svg'
  65.             ),
  66.             'delete' => array
  67.             (
  68.                 'href'                  => 'act=delete',
  69.                 'icon'                  => 'delete.svg',
  70.                 'attributes'            => 'onclick="if (!confirm(\'' . ($GLOBALS['TL_LANG']['MSC']['deleteConfirm'] ?? '') . '\')) return false; Backend.getScrollOffset();"'
  71.             ),
  72.             'show' => array
  73.             (
  74.                 'href'                  => 'act=show',
  75.                 'icon'                  => 'show.svg'
  76.             ),
  77.         )
  78.     ),
  79.     // Palettes
  80.     'palettes' => array
  81.     (
  82.         'default'                       => '{label_legend},language,label,replacement'
  83.     ),
  84.     // Fields
  85.     'fields' => array
  86.     (
  87.         'id' => array
  88.         (
  89.             'sql'                       => "int(10) unsigned NOT NULL auto_increment"
  90.         ),
  91.         'tstamp' => array
  92.         (
  93.             'sql'                       => "int(10) unsigned NOT NULL default '0'"
  94.         ),
  95.         'language' => array
  96.         (
  97.             'filter'                    => true,
  98.             'inputType'                 => 'select',
  99.             'options_callback'          => function() {
  100.                 return \Contao\System::getLanguages();
  101.             },
  102.             'default'                   => \Contao\BackendUser::getInstance()->language,
  103.             'eval'                      => array('mandatory'=>true'tl_class'=>'clr'),
  104.             'sql'                       => "varchar(5) NOT NULL default ''"
  105.         ),
  106.         'label' => array
  107.         (
  108.             'search'                    => true,
  109.             'inputType'                 => 'text',
  110.             'eval'                      => array('mandatory'=>true'maxlength'=>255'decodeEntities'=>true'tl_class'=>'long'),
  111.             'sql'                       => "varchar(255) NOT NULL default ''"
  112.         ),
  113.         'replacement' => array
  114.         (
  115.             'search'                    => true,
  116.             'inputType'                 => 'text',
  117.             'eval'                      => array('mandatory'=>true'maxlength'=>255'tl_class'=>'long'),
  118.             'sql'                       => "varchar(255) NOT NULL default ''"
  119.         )
  120.     )
  121. );