phpBB API Documentation
Class

phpbb\cron\task\core\update_hashes

class update_hashes extends base

Update old hashes to the current default hashing algorithm

It is intended to gradually update all "old" style hashes to the current default hashing algorithm.

Methods

string get_name()

Returns the name of the task.

from base
set_name(string $name)

Sets the name of the task.

from base
bool is_runnable()

Returns whether this cron task can run, given current board configuration.

bool should_run()

Returns whether this cron task should run now, because enough time has passed since it was last run.

__construct(config $config, driver_interface $db, db $update_lock, manager $passwords_manager, array $hashing_algorithms, array $defaults)

Constructor.

null run()

Runs this cron task.

Details

in base at line 34
public string get_name()

Returns the name of the task.

Return Value

string Name of wrapped task.

in base at line 44
public set_name(string $name)

Sets the name of the task.

Parameters

string $name The task name

at line 70
public bool is_runnable()

Returns whether this cron task can run, given current board configuration.

For example, a cron task that prunes forums can only run when forum pruning is enabled.

Return Value

bool

at line 78
public bool should_run()

Returns whether this cron task should run now, because enough time has passed since it was last run.

Return Value

bool

at line 50
public __construct(config $config, driver_interface $db, db $update_lock, manager $passwords_manager, array $hashing_algorithms, array $defaults)

Constructor.

Parameters

config $config
driver_interface $db
db $update_lock
manager $passwords_manager
array $hashing_algorithms Hashing driver service collection
array $defaults Default password types

at line 95
public null run()

Runs this cron task.

Return Value

null