98 lines
3.1 KiB
PHP
98 lines
3.1 KiB
PHP
|
<?php
|
||
|
|
||
|
return [
|
||
|
'ctrl' => [
|
||
|
'title' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.like.title',
|
||
|
'label' => 'uid',
|
||
|
'label_alt' => 'rating,fe_user,vote',
|
||
|
'label_userFunc' => 'WapplerSystems\\BookmarksLikesRatings\\Userfuncs\\Tca->getVoteRecordTitle',
|
||
|
'tstamp' => 'tstamp',
|
||
|
'crdate' => 'crdate',
|
||
|
'cruser_id' => 'cruser_id',
|
||
|
'adminOnly' => true,
|
||
|
'hideTable' => true,
|
||
|
'editlock' => 'rating',
|
||
|
'enablecolumns' => [
|
||
|
'disabled' => 'hidden',
|
||
|
],
|
||
|
'iconfile' => 'EXT:bookmarks_likes_ratings/Resources/Public/Icons/tx_bookmarkslikesratings_domain_model_vote.gif',
|
||
|
],
|
||
|
'interface' => [
|
||
|
'showRecordFieldList' => 'hidden, rating, voter, vote',
|
||
|
],
|
||
|
'columns' => [
|
||
|
'pid' => [
|
||
|
'exclude' => 1,
|
||
|
'config' => [
|
||
|
'type' => 'none',
|
||
|
],
|
||
|
],
|
||
|
'hidden' => [
|
||
|
'exclude' => 1,
|
||
|
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
|
||
|
'config' => [
|
||
|
'type' => 'check',
|
||
|
],
|
||
|
],
|
||
|
'tablename' => [
|
||
|
'exclude' => 1,
|
||
|
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.vote.tablename',
|
||
|
'config' => [
|
||
|
'type' => 'input',
|
||
|
],
|
||
|
],
|
||
|
'object_uid' => [
|
||
|
'exclude' => 1,
|
||
|
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.vote.object_uid',
|
||
|
'config' => [
|
||
|
'type' => 'input',
|
||
|
],
|
||
|
],
|
||
|
'user' => [
|
||
|
'exclude' => 1,
|
||
|
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.vote.user',
|
||
|
'config' => [
|
||
|
'type' => 'select',
|
||
|
'renderType' => 'selectSingle',
|
||
|
'foreign_table' => 'fe_users',
|
||
|
'foreign_table_where' => 'ORDER BY fe_users.username',
|
||
|
'items' => [
|
||
|
[
|
||
|
'--div--', 0
|
||
|
],
|
||
|
],
|
||
|
'fieldControl' => [
|
||
|
'editPopup' => [
|
||
|
'disabled' => false,
|
||
|
],
|
||
|
'addRecord' => [
|
||
|
'disabled' => false,
|
||
|
'options' => [
|
||
|
'setValue' => 'prepend',
|
||
|
],
|
||
|
'listModule' => [
|
||
|
'disabled' => false,
|
||
|
],
|
||
|
],
|
||
|
],
|
||
|
],
|
||
|
],
|
||
|
'uid' => [
|
||
|
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.vote.uid',
|
||
|
'config' => [
|
||
|
'type' => 'none'
|
||
|
],
|
||
|
],
|
||
|
],
|
||
|
'types' => [
|
||
|
'1' => [
|
||
|
'showitem' => 'hidden, rating, voter, vote'
|
||
|
],
|
||
|
],
|
||
|
'palettes' => [
|
||
|
'1' => [
|
||
|
'showitem' => ''
|
||
|
],
|
||
|
],
|
||
|
];
|