TYPO3 API  SVNRelease
tca.php
Go to the documentation of this file.
00001 <?php
00002 if (!defined ('TYPO3_MODE'))     die ('Access denied.');
00003 
00004 $TCA['index_config'] = Array (
00005     'ctrl' => $TCA['index_config']['ctrl'],
00006     'interface' => Array (
00007         'showRecordFieldList' => 'hidden,starttime,title,description,type,depth,table2index,alternative_source_pid,get_params,chashcalc,filepath,extensions'
00008     ),
00009     'feInterface' => $TCA['index_config']['feInterface'],
00010     'columns' => Array (
00011         'hidden' => Array (
00012             'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
00013             'config' => Array (
00014                 'type' => 'check',
00015                 'default' => '1'
00016             )
00017         ),
00018         'starttime' => Array (
00019             'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
00020             'config' => Array (
00021                 'type' => 'input',
00022                 'size' => '8',
00023                 'max' => '20',
00024                 'eval' => 'date',
00025                 'default' => '0',
00026                 'checkbox' => '0'
00027             )
00028         ),
00029         'title' => Array (
00030             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.title',
00031             'config' => Array (
00032                 'type' => 'input',
00033                 'size' => '30',
00034                 'eval' => 'required',
00035             )
00036         ),
00037         'description' => Array (
00038             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.description',
00039             'config' => Array (
00040                 'type' => 'text',
00041                 'cols' => '30',
00042                 'rows' => '2',
00043             )
00044         ),
00045         'type' => Array (
00046             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.type',
00047             'config' => Array (
00048                 'type' => 'select',
00049                 'items' => Array (
00050                     Array('LLL:EXT:indexed_search/locallang_db.php:index_config.type.I.0', '0'),
00051                     Array('LLL:EXT:indexed_search/locallang_db.php:index_config.type.I.1', '1'),
00052                     Array('LLL:EXT:indexed_search/locallang_db.php:index_config.type.I.2', '2'),
00053                     Array('LLL:EXT:indexed_search/locallang_db.php:index_config.type.I.3', '3'),
00054                     Array('LLL:EXT:indexed_search/locallang_db.php:index_config.type.I.4', '4'),
00055                     Array('LLL:EXT:indexed_search/locallang_db.php:index_config.type.I.5', '5'),
00056                 ),
00057                 'size' => 1,
00058                 'maxitems' => 1,
00059             )
00060         ),
00061         'depth' => Array (
00062             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.depth',
00063             'config' => Array (
00064                 'type' => 'select',
00065                 'items' => Array (
00066                     Array('LLL:EXT:indexed_search/locallang_db.php:index_config.depth.I.0', '0'),
00067                     Array('LLL:EXT:indexed_search/locallang_db.php:index_config.depth.I.1', '1'),
00068                     Array('LLL:EXT:indexed_search/locallang_db.php:index_config.depth.I.2', '2'),
00069                     Array('LLL:EXT:indexed_search/locallang_db.php:index_config.depth.I.3', '3'),
00070                 ),
00071                 'size' => 1,
00072                 'maxitems' => 1,
00073             )
00074         ),
00075         'table2index' => Array (
00076             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.table2index',
00077             'config' => Array (
00078                 'type' => 'select',
00079                 'items' => Array (
00080                     Array('LLL:EXT:indexed_search/locallang_db.php:index_config.table2index.I.0', '0'),
00081                 ),
00082                 'special' => 'tables',
00083                 'size' => 1,
00084                 'maxitems' => 1,
00085             )
00086         ),
00087         'alternative_source_pid' => Array (
00088             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.alternative_source_pid',
00089             'config' => Array (
00090                 'type' => 'group',
00091                 'internal_type' => 'db',
00092                 'allowed' => 'pages',
00093                 'size' => 1,
00094                 'minitems' => 0,
00095                 'maxitems' => 1,
00096                 'wizards' => array(
00097                     'suggest' => array(
00098                         'type' => 'suggest',
00099                     )
00100                 )
00101             )
00102         ),
00103         'indexcfgs' => Array (
00104             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.indexcfgs',
00105             'config' => Array (
00106                 'type' => 'group',
00107                 'internal_type' => 'db',
00108                 'allowed' => 'index_config,pages',
00109                 'size' => 5,
00110                 'minitems' => 0,
00111                 'maxitems' => 200,
00112                 'wizards' => array(
00113                     'suggest' => array(
00114                         'type' => 'suggest',
00115                     )
00116                 )
00117             )
00118         ),
00119         'get_params' => Array (
00120             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.get_params',
00121             'config' => Array (
00122                 'type' => 'input',
00123                 'size' => '30',
00124             )
00125         ),
00126         'fieldlist' => Array (
00127             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.fields',
00128             'config' => Array (
00129                 'type' => 'input',
00130                 'size' => '30',
00131             )
00132         ),
00133         'externalUrl' => Array (
00134             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.externalUrl',
00135             'config' => Array (
00136                 'type' => 'input',
00137                 'size' => '30',
00138             )
00139         ),
00140         'chashcalc' => Array (
00141             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.chashcalc',
00142             'config' => Array (
00143                 'type' => 'check',
00144             )
00145         ),
00146         'filepath' => Array (
00147             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.filepath',
00148             'config' => Array (
00149                 'type' => 'input',
00150                 'size' => '30',
00151             )
00152         ),
00153         'extensions' => Array (
00154             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.extensions',
00155             'config' => Array (
00156                 'type' => 'input',
00157                 'size' => '30',
00158             )
00159         ),
00160         'url_deny' => Array (
00161             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.url_deny',
00162             'config' => Array (
00163                 'type' => 'text',
00164                 'cols' => '30',
00165                 'rows' => '2',
00166             )
00167         ),
00168         'records_indexonchange' => Array (
00169             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.records_indexonchange',
00170             'config' => Array (
00171                 'type' => 'check',
00172                 'default' => '0',
00173             )
00174         ),
00175         'timer_next_indexing' => Array (
00176             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.timer_next_indexing',
00177             'config' => Array (
00178                 'type' => 'input',
00179                 'size' => '12',
00180                 'max' => '20',
00181                 'eval' => 'datetime',
00182                 'default' => '0',
00183                 'checkbox' => '0'
00184             )
00185         ),
00186         'timer_offset' => Array (
00187             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.timer_offset',
00188             'config' => Array (
00189                 'type' => 'input',
00190                 'size' => '8',
00191                 'max' => '20',
00192                 'eval' => 'time',
00193                 'default' => 3600,
00194             )
00195         ),
00196         'timer_frequency' => Array (
00197             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.timer_frequency',
00198             'config' => Array (
00199                 'type' => 'select',
00200                 'items' => Array (
00201                     Array('LLL:EXT:indexed_search/locallang_db.php:index_config.timer_frequency.I.0', '3600'),
00202                     Array('LLL:EXT:indexed_search/locallang_db.php:index_config.timer_frequency.I.1', '86400'),
00203                     Array('LLL:EXT:indexed_search/locallang_db.php:index_config.timer_frequency.I.2', '604800'),
00204                 ),
00205                 'size' => 1,
00206                 'maxitems' => 1,
00207                 'default' => 86400,
00208             )
00209         ),
00210         'recordsbatch' => Array (
00211             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.recordsbatch',
00212             'config' => Array (
00213                 'type' => 'input',
00214                 'size' => '8',
00215                 'max' => '20',
00216                 'eval' => 'int',
00217                 'default' => '0',
00218                 'checkbox' => '0'
00219             )
00220         ),
00221         'set_id' => Array (
00222             'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.set_id',
00223             'config' => Array (
00224                 'type' => 'none',
00225             )
00226         ),
00227     ),
00228     'types' => Array (
00229         '0' => Array('showitem' => 'title;;1;;2-2-2, description, timer_next_indexing, timer_offset, timer_frequency, set_id, type;;;;3-3-3'),
00230         '1' => Array('showitem' => 'title;;1;;2-2-2, description, timer_next_indexing, timer_offset, timer_frequency, set_id, type;;;;3-3-3, table2index;;;;3-3-3, alternative_source_pid, fieldlist, get_params, chashcalc,recordsbatch,records_indexonchange'),
00231         '2' => Array('showitem' => 'title;;1;;2-2-2, description, timer_next_indexing, timer_offset, timer_frequency, set_id, type;;;;3-3-3, filepath;;;;3-3-3, extensions, depth'),
00232         '3' => Array('showitem' => 'title;;1;;2-2-2, description, timer_next_indexing, timer_offset, timer_frequency, set_id, type;;;;3-3-3, externalUrl;;;;3-3-3, depth, url_deny'),
00233         '4' => Array('showitem' => 'title;;1;;2-2-2, description, timer_next_indexing, timer_offset, timer_frequency, set_id, type;;;;3-3-3, alternative_source_pid;LLL:EXT:indexed_search/locallang_db.php:index_config.rootpage;;;3-3-3, depth'),
00234         '5' => Array('showitem' => 'title;;;;2-2-2, description, type;;;;3-3-3, indexcfgs;;;;3-3-3'),
00235     ),
00236     'palettes' => Array (
00237         '1' => Array('showitem' => 'starttime,hidden')
00238     )
00239 );
00240 ?>