77 if ($this->isNewProcess)
79 $this->processedItems = 0;
80 $this->totalItems = 0;
90 if ($action instanceof \Closure)
92 $result = $action->call($this, $params);
94 elseif (\is_callable($action))
96 $result = \call_user_func($action, $params);
98 elseif (\is_string($action) && \is_callable([$this, $action]))
100 $result = \call_user_func([$this, $action], $params);
109 $result[
'STATUS'] = Translate\Controller\STATUS_COMPLETED;
113 $result[
'STATUS'] = Translate\Controller\STATUS_COMPLETED;
117 $result[
'STATUS'] = Translate\Controller\STATUS_PROGRESS;