Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.72 KB | None | 0 0
  1. <?php
  2. // Landauswahl
  3. $countries = [];
  4. foreach(\Fixpunkt\FpErp2\Utility\Data::$countries as $shortcut => $name) {
  5.     $countries[] = [$name, $shortcut];
  6. }
  7.  
  8. return [
  9.     'ctrl' => [
  10.         'title' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:address',
  11.         'label' => 'description',
  12.         'tstamp' => 'tstamp',
  13.         'crdate' => 'crdate',
  14.         'cruser_id' => 'cruser_id',
  15.         'versioningWS' => true,
  16.         'languageField' => 'sys_language_uid',
  17.         'transOrigPointerField' => 'l10n_parent',
  18.         'transOrigDiffSourceField' => 'l10n_diffsource',
  19.         'delete' => 'deleted',
  20.         'enablecolumns' => [
  21.             'disabled' => 'hidden'
  22.         ],
  23.         'searchFields' => 'description, name, street_and_no, zip, town, addition, country, contacts',
  24.         'iconfile' => 'EXT:fp_erp2/Resources/Public/Icons/Models/adress.svg'
  25.     ],
  26.     'interface' => [
  27.         'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, description, name, street_and_no, zip, town, addition, country, part_of, contacts',
  28.     ],
  29.     'palettes' => [
  30.         'address' => [
  31.             'showitem' => 'street_and_no, zip, town, country',
  32.         ],
  33.     ],
  34.     'types' => [
  35.         '1' => [
  36.             'showitem' => '
  37.             description, name, --palette--;LLL:Anschrift;address,addition,part_of,
  38.             --div--;Kontaktmöglichkeiten, contacts,
  39.             --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, sys_language_uid, l10n_parent, l10n_diffsource, hidden,'],
  40.     ],
  41.     'columns' => [
  42.         'description' => [
  43.             'exclude' => true,
  44.             'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:description',
  45.             'config' => [
  46.                 'type' => 'input',
  47.                 'size' => 30,
  48.                 'eval' => 'trim,required'
  49.             ],
  50.         ],
  51.         'name' => [
  52.             'exclude' => true,
  53.             'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:name',
  54.             'config' => [
  55.                 'type' => 'input',
  56.                 'size' => 30,
  57.                 'eval' => 'trim'
  58.             ],
  59.         ],
  60.         'street_and_no' => [
  61.             'exclude' => true,
  62.             'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:streetAndNo',
  63.             'config' => [
  64.                 'type' => 'input',
  65.                 'size' => 30,
  66.                 'eval' => 'trim'
  67.             ],
  68.         ],
  69.         'zip' => [
  70.             'exclude' => true,
  71.             'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:zip',
  72.             'config' => [
  73.                 'type' => 'input',
  74.                 'size' => 30,
  75.                 'eval' => 'trim'
  76.             ],
  77.         ],
  78.         'town' => [
  79.             'exclude' => true,
  80.             'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:town',
  81.             'config' => [
  82.                 'type' => 'input',
  83.                 'size' => 30,
  84.                 'eval' => 'trim'
  85.             ],
  86.         ],
  87.         'addition' => [
  88.             'exclude' => true,
  89.             'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:addition',
  90.             'config' => [
  91.                 'type' => 'input',
  92.                 'size' => 30,
  93.                 'eval' => 'trim'
  94.             ],
  95.         ],
  96.         'country' => [
  97.             'exclude' => true,
  98.             'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:country',
  99.             'config' => [
  100.                 'type' => 'select',
  101.                 'renderType' => 'selectSingle',
  102.                 'items' => $countries
  103.             ],
  104.         ],
  105.         'part_of' => [
  106.             'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:partOf',
  107.             'l10n_mode' => 'exclude',
  108.             'config' => [
  109.                 'type' => 'group',
  110.                 'internal_type' => 'db',
  111.                 'foreign_table' => 'tx_fperp2_domain_model_person,fe_users,tx_fperp2_domain_model_company',
  112.                 'allowed' => 'tx_fperp2_domain_model_person,fe_users,tx_fperp2_domain_model_company',
  113.                 'MM' => 'tx_fperp2_address_mm',
  114.                 'show_thumbs' => 1,
  115.                 'size' => 1,
  116.                 'minitems' => 1,
  117.                 'maxitems' => 1,
  118.             ]
  119.         ],
  120.         /*
  121.         'contacts' => [
  122.             'exclude' => true,
  123.             'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:contacts',
  124.             'config' => [
  125.                 'type' => 'inline',
  126.                 'foreign_table' => 'tx_fperp2_domain_model_contact',
  127.                 'foreign_field' => 'address',
  128.                 'maxitems' => 9999,
  129.                 'appearance' => [
  130.                     'collapseAll' => 1,
  131.                     'expandSingle' => 1,
  132.                 ],
  133.             ],
  134.         ],*/
  135.         'sys_language_uid' => [
  136.             'exclude' => true,
  137.             'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
  138.             'config' => [
  139.                 'type' => 'select',
  140.                 'renderType' => 'selectSingle',
  141.                 'special' => 'languages',
  142.                 'items' => [
  143.                     [
  144.                         'LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages',
  145.                         -1,
  146.                         'flags-multiple'
  147.                     ]
  148.                 ],
  149.                 'default' => 0,
  150.             ],
  151.         ],
  152.         'l10n_parent' => [
  153.             'displayCond' => 'FIELD:sys_language_uid:>:0',
  154.             'exclude' => true,
  155.             'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
  156.             'config' => [
  157.                 'type' => 'select',
  158.                 'renderType' => 'selectSingle',
  159.                 'items' => [
  160.                     ['', 0],
  161.                 ],
  162.                 'foreign_table' => 'tx_fperp2_domain_model_address',
  163.                 'foreign_table_where' => 'AND tx_fperp2_domain_model_address.pid=###CURRENT_PID### AND tx_fperp2_domain_model_address.sys_language_uid IN (-1,0)',
  164.             ],
  165.         ],
  166.         'l10n_diffsource' => [
  167.             'config' => [
  168.                 'type' => 'passthrough',
  169.             ],
  170.         ],
  171.         't3ver_label' => [
  172.             'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
  173.             'config' => [
  174.                 'type' => 'input',
  175.                 'size' => 30,
  176.                 'max' => 255,
  177.             ],
  178.         ],
  179.         'hidden' => [
  180.             'exclude' => true,
  181.             'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
  182.             'config' => [
  183.                 'type' => 'check',
  184.                 'items' => [
  185.                     '1' => [
  186.                         '0' => 'LLL:EXT:lang/locallang_core.xlf:labels.enabled'
  187.                     ]
  188.                 ],
  189.             ],
  190.         ]
  191.     ],
  192. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement