/**
  * @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  \TYPO3\CMS\Scheduler\Controller\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, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $schedulerModule)
 {
     $additionalFields = array();
     if ($schedulerModule->CMD == 'add') {
         $taskInfo['SessionResetter_userPid'] = 1337;
     }
     if ($schedulerModule->CMD == 'edit') {
         $taskInfo['SessionResetter_userPid'] = $task->getUserPid();
     }
     $additionalFields['SessionResetter_userPid'] = array('code' => '<input type="text" name="tx_scheduler[SessionResetter_userPid]" value="' . (int) $taskInfo['SessionResetter_userPid'] . '" />', 'label' => 'LLL:EXT:typo3_forum/Resources/Private/Language/locallang.xml:tx_typo3forum_scheduler_sessionResetter_userPid', 'cshKey' => '', 'cshLabel' => '');
     return $additionalFields;
 }
 /**
  * Lorem
  *
  * @param array $taskInfo : reference to the array containing the info used in the add/edit form
  * @param 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.
  */
 public function getAdditionalFields(array &$taskInfo, $task, SchedulerModuleController $schedulerModule)
 {
     $additionalFields = [];
     if ($schedulerModule->CMD == 'add') {
         $taskInfo['Counter_forumPid'] = 1337;
         $taskInfo['Counter_userPid'] = 1337;
     }
     if ($schedulerModule->CMD == 'edit') {
         $taskInfo['Counter_forumPid'] = $task->getForumPid();
         $taskInfo['Counter_userPid'] = $task->getUserPid();
     }
     $additionalFields['Counter_forumPid'] = ['code' => '<input type="text" name="tx_scheduler[Counter_forumPid]" value="' . (int) $taskInfo['Counter_forumPid'] . '" />', 'label' => 'LLL:EXT:typo3_forum/Resources/Private/Language/locallang.xml:tx_typo3forum_scheduler_counter_forumPid', 'cshKey' => '', 'cshLabel' => ''];
     $additionalFields['Counter_userPid'] = ['code' => '<input type="text" name="tx_scheduler[Counter_userPid]" value="' . (int) $taskInfo['Counter_userPid'] . '" />', 'label' => 'LLL:EXT:typo3_forum/Resources/Private/Language/locallang.xml:tx_typo3forum_scheduler_counter_userPid', 'cshKey' => '', 'cshLabel' => ''];
     return $additionalFields;
 }