FOF30\Controller\Controller::registerTask PHP Method

registerTask() public method

Register (map) a task to a method in the class.
public registerTask ( string $task, string $method ) : Controller
$task string The task.
$method string The name of the method in the derived class to perform for this task.
return Controller This object to support chaining.
    public function registerTask($task, $method)
    {
        if (in_array($method, $this->methods)) {
            $this->taskMap[$task] = $method;
        }
        return $this;
    }