interface TaskHandlerInterface (View source)

Methods

Response|null
handle(string $task, array $options)

Entrypoint to handle the task.

string
getViewPath()

The path of the view file (used if handle returns NULL).

Details

Response|null handle(string $task, array $options)

Entrypoint to handle the task.

Parameters

string $task

The task to be executed

array $options

Options received (for example via $_POST and/or $_GET)

Return Value

Response|null

Return NULL if the handler is a controller with a View: in this case return its path vith getViewPath()

string getViewPath()

The path of the view file (used if handle returns NULL).

Return Value

string