SchedulerModuleController

FinalYes

Scheduler backend module.

Internal

This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.

Attributes
#[AsController]

Table of Contents

Properties

$context  : Context
$currentAction  : SchedulerManagementAction
$iconFactory  : IconFactory
$moduleTemplateFactory  : ModuleTemplateFactory
$pageRenderer  : PageRenderer
$scheduler  : Scheduler
$taskRepository  : SchedulerTaskRepository
$taskSerializer  : TaskSerializer
$taskService  : TaskService
$uriBuilder  : UriBuilder

Methods

__construct()  : mixed
getCurrentAction()  : SchedulerManagementAction
This is (unfortunately) used by additional field providers to distinct between "create new task" and "edit task".
handleRequest()  : ResponseInterface
Entry dispatcher method.
setCurrentAction()  : void
This is (unfortunately) needed so getCurrentAction() used by additional field providers - it is required to distinct between "create new task" and "edit task".
addDocHeaderAddTaskButton()  : void
addDocHeaderReloadButton()  : void
addDocHeaderShortcutButton()  : void
addMessage()  : void
Add a flash message to the flash message queue of this module.
deleteTask()  : void
Mark a task as deleted.
executeTasks()  : void
Execute a list of tasks.
getLanguageService()  : LanguageService
renderListTasksView()  : ResponseInterface
Assemble a listing of scheduled tasks
scheduleCrons()  : void
Schedule selected tasks to be executed on next cron run
stopTask()  : void
Clears the registered running executions from the task.
toggleDisabledFlag()  : void
Toggle the disabled state of a task and register for next execution if a task is of type "single execution".

Properties

Methods

__construct()

public __construct(Scheduler $scheduler, TaskSerializer $taskSerializer, SchedulerTaskRepository $taskRepository, IconFactory $iconFactory, UriBuilder $uriBuilder, ModuleTemplateFactory $moduleTemplateFactory, Context $context, TaskService $taskService, PageRenderer $pageRenderer) : mixed
Parameters
$scheduler : Scheduler
$taskSerializer : TaskSerializer
$taskRepository : SchedulerTaskRepository
$iconFactory : IconFactory
$uriBuilder : UriBuilder
$moduleTemplateFactory : ModuleTemplateFactory
$context : Context
$taskService : TaskService
$pageRenderer : PageRenderer

handleRequest()

Entry dispatcher method.

public handleRequest(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

setCurrentAction()

This is (unfortunately) needed so getCurrentAction() used by additional field providers - it is required to distinct between "create new task" and "edit task".

public setCurrentAction(SchedulerManagementAction $currentAction) : void
Parameters
$currentAction : SchedulerManagementAction

addDocHeaderAddTaskButton()

protected addDocHeaderAddTaskButton(ModuleTemplate $moduleTemplate, ServerRequestInterface $request) : void
Parameters
$moduleTemplate : ModuleTemplate
$request : ServerRequestInterface

renderListTasksView()

Assemble a listing of scheduled tasks

protected renderListTasksView(ModuleTemplate $view, ModuleData $moduleData, ServerRequestInterface $request) : ResponseInterface
Parameters
$view : ModuleTemplate
$moduleData : ModuleData
$request : ServerRequestInterface
Return values
ResponseInterface

scheduleCrons()

Schedule selected tasks to be executed on next cron run

protected scheduleCrons(ModuleTemplate $view, string $taskUids) : void
Parameters
$view : ModuleTemplate
$taskUids : string

stopTask()

Clears the registered running executions from the task.

protected stopTask(ModuleTemplate $view, int $taskUid) : void

Note this doesn't actually stop the running script. It just unmarks execution.

Parameters
$view : ModuleTemplate
$taskUid : int
Tags
todo

find a way to really kill the running task.

toggleDisabledFlag()

Toggle the disabled state of a task and register for next execution if a task is of type "single execution".

protected toggleDisabledFlag(ModuleTemplate $view, int $taskUid) : void
Parameters
$view : ModuleTemplate
$taskUid : int

        
On this page

Search results