![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct () | |
execute () | |
getAdditionalInformation () | |
setCanDeactivateSelf ($canDeactivateSelf) | |
getCanDeactivateSelf () | |
setNumberOfRecords ($numberOfRecords) | |
getNumberOfRecords () | |
![]() | |
__construct () | |
execute () | |
getAdditionalInformation () | |
setTaskUid ($id) | |
getTaskUid () | |
getTaskTitle () | |
getTaskDescription () | |
getTaskClassName () | |
isDisabled () | |
setDisabled ($flag) | |
setExecutionTime ($timestamp) | |
getTaskGroup () | |
setTaskGroup ($taskGroup) | |
getExecutionTime () | |
setDescription ($description) | |
getDescription () | |
setScheduler () | |
unsetScheduler () | |
setExecution (\TYPO3\CMS\Scheduler\Execution $execution) | |
getExecution () | |
getNextDueExecution () | |
areMultipleExecutionsAllowed () | |
isExecutionRunning () | |
markExecution () | |
unmarkExecution ($executionID,\Exception $failure=null) | |
unmarkAllExecutions () | |
save () | |
stop () | |
remove () | |
Protected Member Functions | |
findUsersToUpdate ($mode) | |
convertPasswords ($mode, array $users) | |
isSaltedHash ($password) | |
isMd5Password ($password) | |
incrementUserRecordPointer ($mode, $number) | |
activateSelf () | |
deactivateSelf () | |
Protected Attributes | |
$canDeactivateSelf = true | |
$numberOfRecords = 250 | |
$userRecordPointer = array() | |
![]() | |
$scheduler | |
$taskUid | |
$disabled = false | |
$execution | |
$executionTime = 0 | |
$description = '' | |
$taskGroup | |
Update plaintext and hashed passwords of existing users to salted passwords.
Definition at line 20 of file BulkUpdateTask.php.
__construct | ( | ) |
Constructor initializes user record pointer
Definition at line 45 of file BulkUpdateTask.php.
|
protected |
Activates this task instance. Uses setDisabled() method of parent
Definition at line 218 of file BulkUpdateTask.php.
References AbstractTask\setDisabled().
Referenced by BulkUpdateTask\execute().
|
protected |
Iterates over given user records and update password if needed.
string | $mode | 'FE' for frontend, 'BE' for backend user records |
array | $users | With user uids and passwords |
Definition at line 122 of file BulkUpdateTask.php.
References BulkUpdateTask\isSaltedHash().
Referenced by BulkUpdateTask\execute().
|
protected |
Deactivates this task instance. Uses setDisabled() method of parent
Definition at line 229 of file BulkUpdateTask.php.
References AbstractTask\setDisabled().
Referenced by BulkUpdateTask\execute().
execute | ( | ) |
Execute task
Definition at line 59 of file BulkUpdateTask.php.
References BulkUpdateTask\activateSelf(), BulkUpdateTask\convertPasswords(), BulkUpdateTask\deactivateSelf(), BulkUpdateTask\findUsersToUpdate(), BulkUpdateTask\incrementUserRecordPointer(), and AbstractTask\save().
|
protected |
Finds next set of frontend or backend users to update.
string | $mode | 'FE' for frontend, 'BE' for backend user records |
Definition at line 109 of file BulkUpdateTask.php.
References $GLOBALS.
Referenced by BulkUpdateTask\execute().
getAdditionalInformation | ( | ) |
Get additional information
Definition at line 97 of file BulkUpdateTask.php.
References $GLOBALS, BulkUpdateTask\getCanDeactivateSelf(), and BulkUpdateTask\getNumberOfRecords().
getCanDeactivateSelf | ( | ) |
Get if it can deactivate self
Definition at line 250 of file BulkUpdateTask.php.
References BulkUpdateTask\$canDeactivateSelf.
Referenced by BulkUpdateTask\getAdditionalInformation().
getNumberOfRecords | ( | ) |
Get number of records
Definition at line 271 of file BulkUpdateTask.php.
References BulkUpdateTask\$numberOfRecords.
Referenced by BulkUpdateTask\getAdditionalInformation().
|
protected |
Increments current user record counter by number of handled rows.
string | $mode | 'FE' for frontend, 'BE' for backend user records |
int | $number | Number of handled rows |
Definition at line 207 of file BulkUpdateTask.php.
Referenced by BulkUpdateTask\execute().
|
protected |
Checks if a given password is a md5 hash, the default for be_user records before saltedpasswords.
string | $password | The password to test |
Definition at line 195 of file BulkUpdateTask.php.
|
protected |
Passwords prefixed with M or C might be salted passwords: M means: originally a md5 hash before it was salted (eg. default be_users). C means: originally a cleartext password with lower hash looping count generated by t3sec_saltedpw. Both M and C will be updated to usual salted hashes on first login of user.
If a password does not start with M or C determine if a password is already a usual salted hash.
string | $password | Password |
Definition at line 175 of file BulkUpdateTask.php.
Referenced by BulkUpdateTask\convertPasswords().
setCanDeactivateSelf | ( | $canDeactivateSelf | ) |
Set if it can deactivate self
bool | $canDeactivateSelf |
Definition at line 240 of file BulkUpdateTask.php.
References BulkUpdateTask\$canDeactivateSelf.
setNumberOfRecords | ( | $numberOfRecords | ) |
Set number of records
int | $numberOfRecords |
Definition at line 261 of file BulkUpdateTask.php.
References BulkUpdateTask\$numberOfRecords.
|
protected |
Definition at line 25 of file BulkUpdateTask.php.
Referenced by BulkUpdateTask\getCanDeactivateSelf(), and BulkUpdateTask\setCanDeactivateSelf().
|
protected |
Definition at line 35 of file BulkUpdateTask.php.
Referenced by BulkUpdateTask\getNumberOfRecords(), and BulkUpdateTask\setNumberOfRecords().
|
protected |
Definition at line 40 of file BulkUpdateTask.php.