46 public function getAdditionalFields(array &$taskInfo, $task, \
TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $parentObject) {
48 if (!isset($taskInfo[
'scheduler_saltedpasswordsBulkUpdateCanDeactivateSelf'])) {
50 if ($parentObject->CMD ===
'edit') {
51 $taskInfo[
'scheduler_saltedpasswordsBulkUpdateCanDeactivateSelf'] = $task->getCanDeactivateSelf();
54 if (!isset($taskInfo[
'scheduler_saltedpasswordsBulkUpdateNumberOfRecords'])) {
56 if ($parentObject->CMD ===
'edit') {
57 $taskInfo[
'scheduler_saltedpasswordsBulkUpdateNumberOfRecords'] = $task->getNumberOfRecords();
61 $fieldName =
'tx_scheduler[scheduler_saltedpasswordsBulkUpdateCanDeactivateSelf]';
62 $fieldId =
'task_saltedpasswordsBulkUpdateCanDeactivateSelf';
63 $fieldValue =
'IsChecked';
64 $fieldChecked = (bool) $taskInfo[
'scheduler_saltedpasswordsBulkUpdateCanDeactivateSelf'];
65 $fieldHtml =
'<input type="checkbox"' .
' name="' . $fieldName .
'"' .
' id="' . $fieldId .
'"' .
' value="' . $fieldValue .
'"' . ($fieldChecked ?
' checked="checked"' :
'') .
' />';
66 $additionalFields[$fieldId] = array(
68 'label' =>
'LLL:EXT:saltedpasswords/locallang.xlf:ext.saltedpasswords.tasks.bulkupdate.label.canDeactivateSelf',
69 'cshKey' =>
'_txsaltedpasswords',
70 'cshLabel' => $fieldId
73 $fieldName =
'tx_scheduler[scheduler_saltedpasswordsBulkUpdateNumberOfRecords]';
74 $fieldId =
'task_saltedpasswordsBulkUpdateNumberOfRecords';
75 $fieldValue = (int)$taskInfo[
'scheduler_saltedpasswordsBulkUpdateNumberOfRecords'];
76 $fieldHtml =
'<input type="text" name="' . $fieldName .
'" id="' . $fieldId .
'" value="' . htmlspecialchars($fieldValue) .
'" />';
77 $additionalFields[$fieldId] = array(
79 'label' =>
'LLL:EXT:saltedpasswords/locallang.xlf:ext.saltedpasswords.tasks.bulkupdate.label.numberOfRecords',
80 'cshKey' =>
'_txsaltedpasswords',
81 'cshLabel' => $fieldId
83 return $additionalFields;
97 if (!is_numeric($submittedData[
'scheduler_saltedpasswordsBulkUpdateNumberOfRecords']) || (
int)$submittedData[
'scheduler_saltedpasswordsBulkUpdateNumberOfRecords'] < 0) {
99 $parentObject->addMessage(
$GLOBALS[
'LANG']->sL(
'LLL:EXT:saltedpasswords/locallang.xlf:ext.saltedpasswords.tasks.bulkupdate.invalidNumberOfRecords'), \
TYPO3\CMS\Core\Messaging\FlashMessage::ERROR);
112 if (isset($submittedData[
'scheduler_saltedpasswordsBulkUpdateCanDeactivateSelf']) && $submittedData[
'scheduler_saltedpasswordsBulkUpdateCanDeactivateSelf'] ===
'IsChecked') {
113 $task->setCanDeactivateSelf(TRUE);
115 $task->setCanDeactivateSelf(FALSE);
117 $task->setNumberOfRecords((
int)$submittedData[
'scheduler_saltedpasswordsBulkUpdateNumberOfRecords']);
$defaultCanDeactivateSelf
saveAdditionalFields(array $submittedData, \TYPO3\CMS\Scheduler\Task\AbstractTask $task)
validateAdditionalFields(array &$submittedData, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $parentObject)
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren't numeric.
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
getAdditionalFields(array &$taskInfo, $task, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $parentObject)