TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Saltedpasswords\Task\BulkUpdateFieldProvider Class Reference
Inheritance diagram for TYPO3\CMS\Saltedpasswords\Task\BulkUpdateFieldProvider:
TYPO3\CMS\Scheduler\AdditionalFieldProviderInterface tx_saltedpasswords_Tasks_BulkUpdate_AdditionalFieldProvider

Public Member Functions

 getAdditionalFields (array &$taskInfo, $task, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $parentObject)
 
 validateAdditionalFields (array &$submittedData, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $parentObject)
 
 saveAdditionalFields (array $submittedData, \TYPO3\CMS\Scheduler\Task\AbstractTask $task)
 
- Public Member Functions inherited from TYPO3\CMS\Scheduler\AdditionalFieldProviderInterface
 getAdditionalFields (array &$taskInfo, $task, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $schedulerModule)
 
 validateAdditionalFields (array &$submittedData, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $schedulerModule)
 
 saveAdditionalFields (array $submittedData, \TYPO3\CMS\Scheduler\Task\AbstractTask $task)
 

Protected Attributes

 $defaultCanDeactivateSelf = TRUE
 
 $defaultNumberOfRecords = 250
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Additional field for salted passwords bulk update task

Author
Philipp Gampe typo3.nosp@m.@phi.nosp@m.lippg.nosp@m.ampe.nosp@m..info

Definition at line 21 of file BulkUpdateFieldProvider.php.

Member Function Documentation

◆ getAdditionalFields()

TYPO3\CMS\Saltedpasswords\Task\BulkUpdateFieldProvider::getAdditionalFields ( array &  $taskInfo,
  $task,
\TYPO3\CMS\Scheduler\Controller\SchedulerModuleController  $parentObject 
)

Add a field for the number of records and if the task should deactivate itself after processing all records

Parameters
array$taskInfoReference to the array containing the info used in the add/edit form
\TYPO3\CMS\Saltedpasswords\Task\BulkUpdateTask$taskWhen editing, reference to the current task object. Null when adding.
\TYPO3\CMS\Scheduler\Controller\SchedulerModuleController$parentObjectReference to the calling object (Scheduler's BE module)
Returns
array Array containing all the information pertaining to the additional fields

Definition at line 46 of file BulkUpdateFieldProvider.php.

References TYPO3\CMS\Saltedpasswords\Task\BulkUpdateFieldProvider\$defaultCanDeactivateSelf, and TYPO3\CMS\Saltedpasswords\Task\BulkUpdateFieldProvider\$defaultNumberOfRecords.

◆ saveAdditionalFields()

TYPO3\CMS\Saltedpasswords\Task\BulkUpdateFieldProvider::saveAdditionalFields ( array  $submittedData,
\TYPO3\CMS\Scheduler\Task\AbstractTask  $task 
)

Saves given values in task object

Parameters
array$submittedDataContains data submitted by the user
\TYPO3\CMS\Scheduler\Task\AbstractTask | \TYPO3\CMS\Saltedpasswords\Task\BulkUpdateTask$taskReference to the current task object
Returns
void

Definition at line 111 of file BulkUpdateFieldProvider.php.

◆ validateAdditionalFields()

TYPO3\CMS\Saltedpasswords\Task\BulkUpdateFieldProvider::validateAdditionalFields ( array &  $submittedData,
\TYPO3\CMS\Scheduler\Controller\SchedulerModuleController  $parentObject 
)

Checks if the given values are boolean and integer

Parameters
array$submittedDataReference to the array containing the data submitted by the user
\TYPO3\CMS\Scheduler\Controller\SchedulerModuleController$parentObjectReference to the calling object (Scheduler's BE module)
Returns
boolean TRUE if validation was ok (or selected class is not relevant), FALSE otherwise

Definition at line 93 of file BulkUpdateFieldProvider.php.

References $GLOBALS, and $result.

Member Data Documentation

◆ $defaultCanDeactivateSelf

TYPO3\CMS\Saltedpasswords\Task\BulkUpdateFieldProvider::$defaultCanDeactivateSelf = TRUE
protected

◆ $defaultNumberOfRecords

TYPO3\CMS\Saltedpasswords\Task\BulkUpdateFieldProvider::$defaultNumberOfRecords = 250
protected