read the first task which need to be run by cron
public getNeedToRun ( $mode, $name = '' ) : false | ||
$mode | >0 retrieve task configured for this mode <0 retrieve task allowed for this mode (force, no time check) (default 0) | |
$name | one specify action (default '') | |
return | false | if no task to run |