/**
  * @param  array $taskInfo : reference to the array containing the info used in the add/edit form
  * @param  \TYPO3\CMS\Scheduler\Task\AbstractTask $task : when editing, reference to the current task object. Null when adding.
  * @param  SchedulerModuleController $schedulerModule : reference to the calling object (Scheduler's BE module)
  * @return  array                            Array containg all the information pertaining to the additional fields
  *                                    The array is multidimensional, keyed to the task class name and each field's id
  *                                    For each field it provides an associative sub-array with the following:
  */
 public function getAdditionalFields(array &$taskInfo, $task, SchedulerModuleController $schedulerModule)
 {
     $additionalFields = array();
     if ($schedulerModule->CMD == 'add') {
         $taskInfo['StatsSummary_forumPids'] = 1337;
         $taskInfo['StatsSummary_userPids'] = 1337;
         $taskInfo['StatsSummary_statsPid'] = 1337;
     }
     if ($schedulerModule->CMD == 'edit') {
         $taskInfo['StatsSummary_forumPids'] = $task->getForumPids();
         $taskInfo['StatsSummary_userPids'] = $task->getUserPids();
         $taskInfo['StatsSummary_statsPid'] = $task->getStatsPid();
     }
     $additionalFields['StatsSummary_forumPids'] = array('code' => '<input type="text" name="tx_scheduler[StatsSummary_forumPids]" value="' . htmlspecialchars($taskInfo['StatsSummary_forumPids']) . '" />', 'label' => 'LLL:EXT:typo3_forum/Resources/Private/Language/locallang.xml:tx_typo3forum_scheduler_statsSummary_forumPid', 'cshKey' => '', 'cshLabel' => '');
     $additionalFields['StatsSummary_userPids'] = array('code' => '<input type="text" name="tx_scheduler[StatsSummary_userPids]" value="' . htmlspecialchars($taskInfo['StatsSummary_userPids']) . '" />', 'label' => 'LLL:EXT:typo3_forum/Resources/Private/Language/locallang.xml:tx_typo3forum_scheduler_statsSummary_userPid', 'cshKey' => '', 'cshLabel' => '');
     $additionalFields['StatsSummary_statsPid'] = array('code' => '<input type="text" name="tx_scheduler[StatsSummary_statsPid]" value="' . htmlspecialchars($taskInfo['StatsSummary_statsPid']) . '" />', 'label' => 'LLL:EXT:typo3_forum/Resources/Private/Language/locallang.xml:tx_typo3forum_scheduler_statsSummary_statsPid', 'cshKey' => '', 'cshLabel' => '');
     return $additionalFields;
 }