54e4c13b5b4bf17b35fef187bcedeca84ebf5874
[Packages/TYPO3.CMS.git] / typo3 / sysext / scheduler / ext_localconf.php
1 <?php
2
3 if (!defined ('TYPO3_MODE')) {
4 die ('Access denied.');
5 }
6
7 // Register the Scheduler as a possible key for CLI calls
8 $TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys'][$_EXTKEY] = array(
9 'EXT:' . $_EXTKEY . '/cli/scheduler_cli_dispatch.php', '_CLI_scheduler'
10 );
11
12 // Get the extensions's configuration
13 $extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['scheduler']);
14
15 // If sample tasks should be shown,
16 // register information for the test and sleep tasks
17 if (!empty($extConf['showSampleTasks'])) {
18 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_scheduler_TestTask'] = array(
19 'extension' => $_EXTKEY,
20 'title' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:testTask.name',
21 'description' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:testTask.description',
22 'additionalFields' => 'tx_scheduler_TestTask_AdditionalFieldProvider'
23 );
24 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_scheduler_SleepTask'] = array(
25 'extension' => $_EXTKEY,
26 'title' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:sleepTask.name',
27 'description' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:sleepTask.description',
28 'additionalFields' => 'tx_scheduler_SleepTask_AdditionalFieldProvider'
29 );
30 }
31
32 // Add caching framework garbage collection task
33 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_scheduler_CachingFrameworkGarbageCollection'] = array(
34 'extension' => $_EXTKEY,
35 'title' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:cachingFrameworkGarbageCollection.name',
36 'description' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:cachingFrameworkGarbageCollection.description',
37 'additionalFields' => 'tx_scheduler_CachingFrameworkGarbageCollection_AdditionalFieldProvider',
38 );
39
40 ?>