tx_terfe2_domain_model_version.php 18.2 KB
Newer Older
1
<?php
2 3 4
if (!defined('TYPO3_MODE')) {
    die ('Access denied.');
}
5

6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422
$GLOBALS['TCA']['tx_terfe2_domain_model_version'] = array(
    'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_version']['ctrl'],
    'interface' => array(
        'showRecordFieldList' => 'title,description,version_number,version_string,upload_date,upload_comment,download_counter,frontend_download_counter,state,em_category,load_order,priority,shy,internal,do_not_load_in_fe,uploadfolder,clear_cache_on_load,module,create_dirs,modify_tables,lock_type,cgl_compliance,cgl_compliance_note,review_state,manual,has_manual,media,experiences,software_relations,author,file_hash,extension_provider,has_zip_file,has_images',
    ),
    'types' => array(
        '1' => array('showitem' => 'title,description,version_number,version_string,upload_date,upload_comment,download_counter,frontend_download_counter,state,em_category,load_order,priority,shy,internal,do_not_load_in_fe,uploadfolder,clear_cache_on_load,module,create_dirs,modify_tables,lock_type,cgl_compliance,cgl_compliance_note,review_state,manual,has_manual,media,experiences,software_relations,author,file_hash,extension_provider,has_zip_file,has_images'),
    ),
    'palettes' => array(
        '1' => array('showitem' => ''),
    ),
    'columns' => array(
        'sys_language_uid' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
            'config' => array(
                'type' => 'select',
                'foreign_table' => 'sys_language',
                'foreign_table_where' => 'ORDER BY sys_language.title',
                'items' => array(
                    array('LLL:EXT:lang/locallang_general.php:LGL.allLanguages', -1),
                    array('LLL:EXT:lang/locallang_general.php:LGL.default_value', 0),
                ),
            ),
        ),
        'l18n_parent' => array(
            'displayCond' => 'FIELD:sys_language_uid:>:0',
            'exclude' => 1,
            'label' => 'LLL:EXT:lang/locallang_general.php:LGL.l18n_parent',
            'config' => array(
                'type' => 'select',
                'items' => array(
                    array('', 0),
                ),
                'foreign_table' => 'tx_terfe2_domain_model_version',
                'foreign_table_where' => 'AND tx_terfe2_domain_model_version.uid=###REC_FIELD_l18n_parent### AND tx_terfe2_domain_model_version.sys_language_uid IN (-1,0)',
            ),
        ),
        'l18n_diffsource' => array(
            'config' => array(
                'type' => 'passthrough',
            ),
        ),
        't3ver_label' => array(
            'displayCond' => 'FIELD:t3ver_label:REQ:true',
            'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
            'config' => array(
                'type' => 'none',
                'cols' => 27,
            ),
        ),
        'hidden' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
            'config' => array(
                'type' => 'check',
            ),
        ),
        'title' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.title',
            'config' => array(
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim,required',
            ),
        ),
        'description' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.description',
            'config' => array(
                'type' => 'text',
                'cols' => 30,
                'rows' => 5,
            ),
        ),
        'version_number' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.version_number',
            'config' => array(
                'type' => 'input',
                'size' => 12,
                'eval' => 'int,required',
            ),
        ),
        'version_string' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.version_string',
            'config' => array(
                'type' => 'input',
                'size' => 12,
                'eval' => 'trim,required',
            ),
        ),
        'upload_date' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.upload_date',
            'config' => array(
                'type' => 'input',
                'size' => 12,
                'max' => 20,
                'eval' => 'datetime,required',
                'default' => '0',
            ),
        ),
        'upload_comment' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.upload_comment',
            'config' => array(
                'type' => 'text',
                'rows' => 30,
                'rows' => 5,
            ),
        ),
        'download_counter' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.download_counter',
            'config' => array(
                'type' => 'none',
                'size' => 12,
            ),
        ),
        'frontend_download_counter' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.frontend_download_counter',
            'config' => array(
                'type' => 'none',
                'size' => 12,
            ),
        ),
        'state' => array(
            'exclude' => 0,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.state',
            'config' => array(
                'type' => 'select',
                'size' => 1,
                'minitems' => 1,
                'maxitems' => 1,
                'items' => array(
                    array('', ''),
                    array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.state.alpha', 'alpha'),
                    array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.state.beta', 'beta'),
                    array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.state.stable', 'stable'),
                    array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.state.experimental', 'experimental'),
                    array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.state.test', 'test'),
                    array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.state.obsolete', 'obsolete'),
                ),
            ),
        ),
        'em_category' => array(
            'exclude' => 0,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.em_category',
            'config' => array(
                'type' => 'select',
                'size' => 1,
                'minitems' => 1,
                'maxitems' => 1,
                'items' => array(
                    array('', ''),
                    array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.em_category.fe', 'fe'),
                    array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.em_category.plugin', 'plugin'),
                    array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.em_category.be', 'be'),
                    array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.em_category.module', 'module'),
                    array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.em_category.services', 'services'),
                    array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.em_category.example', 'example'),
                    array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.em_category.misc', 'misc'),
                    array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.em_category.templates', 'templates'),
                    array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.em_category.doc', 'doc'),
                ),
            ),
        ),
        'load_order' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.load_order',
            'config' => array(
                'type' => 'select',
                'size' => 1,
                'minitems' => 0,
                'maxitems' => 1,
                'items' => array(
                    array('', ''),
                    array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.load_order.top', 'top'),
                    array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.load_order.bottom', 'bottom'),
                ),
            ),
        ),
        'priority' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.priority',
            'config' => array(
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
            ),
        ),
        'shy' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.shy',
            'config' => array(
                'type' => 'check',
                'default' => 0,
            ),
        ),
        'internal' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.internal',
            'config' => array(
                'type' => 'check',
                'default' => 0,
            ),
        ),
        'do_not_load_in_fe' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.do_not_load_in_fe',
            'config' => array(
                'type' => 'check',
                'default' => 0,
            ),
        ),
        'uploadfolder' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.uploadfolder',
            'config' => array(
                'type' => 'check',
                'default' => 0,
            ),
        ),
        'clear_cache_on_load' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.clear_cache_on_load',
            'config' => array(
                'type' => 'check',
                'default' => 0,
            ),
        ),
        'module' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.module',
            'config' => array(
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
            ),
        ),
        'create_dirs' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.create_dirs',
            'config' => array(
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
            ),
        ),
        'modify_tables' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.modify_tables',
            'config' => array(
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
            ),
        ),
        'lock_type' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.lock_type',
            'config' => array(
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
            ),
        ),
        'cgl_compliance' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.cgl_compliance',
            'config' => array(
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
            ),
        ),
        'cgl_compliance_note' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.cgl_compliance_note',
            'config' => array(
                'type' => 'text',
                'cols' => 30,
                'rows' => 5,
            ),
        ),
        'review_state' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.review_state',
            'config' => array(
                'type' => 'input',
                'size' => 5,
                'eval' => 'trim',
            ),
        ),
        'manual' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.manual',
            'config' => array(
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
            ),
        ),
        'has_manual' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.has_manual',
            'config' => array(
                'type' => 'check',
            ),
        ),
        'media' => array(
            'exclude' => 0,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.media',
            'config' => array(
                'type' => 'inline',
                'foreign_table' => 'tx_terfe2_domain_model_media',
                'foreign_field' => 'version',
                'maxitems' => 9999,
                'appearance' => array(
                    'collapse' => 0,
                    'newRecordLinkPosition' => 'bottom',
                ),
            ),
        ),
        'experiences' => array(
            'exclude' => 0,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.experiences',
            'config' => array(
                'type' => 'inline',
                'foreign_table' => 'tx_terfe2_domain_model_experience',
                'foreign_field' => 'version',
                'maxitems' => 9999,
                'appearance' => array(
                    'collapse' => 0,
                    'newRecordLinkPosition' => 'bottom',
                ),
            ),
        ),
        'software_relations' => array(
            'exclude' => 0,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.software_relations',
            'config' => array(
                'type' => 'inline',
                'foreign_table' => 'tx_terfe2_domain_model_relation',
                'foreign_field' => 'version',
                'maxitems' => 9999,
                'appearance' => array(
                    'collapse' => 0,
                    'newRecordLinkPosition' => 'bottom',
                ),
            ),
        ),
        'author' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.author',
            'config' => array(
                'type' => 'inline',
                'foreign_table' => 'tx_terfe2_domain_model_author',
                'minitems' => 1,
                'maxitems' => 1
            ),
        ),
        'extension' => array(
            'config' => array(
                'type' => 'passthrough',
            ),
        ),
        'file_hash' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.file_hash',
            'config' => array(
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
            ),
        ),
        'extension_provider' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.extension_provider',
            'config' => array(
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
            ),
        ),
        'has_zip_file' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.has_zip_file',
            'config' => array(
                'type' => 'check',
                'default' => 0,
            ),
        ),
        'has_images' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.has_images',
            'config' => array(
                'type' => 'check',
                'default' => 0,
            ),
        ),
        't3x_file_size' => array(
            'config' => array(
                'type' => 'passthrough',
            ),
        ),
        'zip_file_size' => array(
            'config' => array(
                'type' => 'passthrough',
            ),
        ),
    ),
);
423
?>