Set what to do when the form is 'finished'.

@return self
328836
protected function setAfterSaveRoute()
    {
        // Default is just go to the index
        if ($this->routeAction && ($this->request->getActionName() !== $this->routeAction)) {
            $this->afterSaveRouteUrl = array(
                $this->request->getControllerKey() => 'track',
                $this->request->getActionKey()     => $this->routeAction,
                \MUtil_Model::REQUEST_ID           => $this->token->getTokenId(),
                );
        }

        return $this;
    }
561663
protected function InitForm()
    {
        $this->repeater = $this->LoadElement();
        $this->AddCssClassField();
        $this->AddCssIDField();
        $this->AddTemplateField();
        $this->AddSubmit();
    }
161382
protected function onInputEnd()
    {
        foreach ($this->container[0]["data"] as $key => $rows) {
            if (isset($this->container[1]["data"][$key])) {
                foreach ($rows as $first) {
                    foreach ($this->container[1]["data"][$key] as $second) {
                        $this->next(array_merge($first, $second));
                    }
                }
            }
        }
    }
624672
public function setCompletedOn($completed_on) {
        
        $this -> completed_on = $completed_on !== null ? new \DateTime($completed_on) : null;
        return $this;
    }
51250
public function refresh() : self {
      $newCode = $this->collection->assemble();
      $tokens = Helper::getTokensFromString($newCode);

      $this->collection->setItems($tokens);
      return $this;
    }
508834
public function finalize()
    {
        $this->query = array_filter($this->query, function ($value) {
            return !empty($value) || is_bool($value) || is_numeric($value);
        });

        return $this;
    }
1354675
public function on() : self
    {
        $this->handler->setErrorHandler();
        $this->handler->setExceptionHandler();
        $this->handler->setFatalHandler();

        return $this;
    }
188518
protected function setAfterSaveRoute()
    {
        $this->routeAction = 'show';

        if ($this->request->getActionName() !== $this->routeAction) {
            $this->afterSaveRouteUrl = array(
                $this->request->getControllerKey() => $this->request->getControllerName(),
                $this->request->getActionKey() => $this->routeAction,
                );

            if ($this->afterSaveRouteKeys) {
                $this->afterSaveRouteUrl[\MUtil_Model::REQUEST_ID1] = $this->formData['gr2o_patient_nr'];
                $this->afterSaveRouteUrl[\MUtil_Model::REQUEST_ID2] = $this->formData['gr2o_id_organization'];
            }
        }

        return $this;
    }
366761
protected function updatesAfterUnset()
    {
        $this->updateHelpers();
        foreach ($this->rendererAdapters->all() as $ra) {
            $ra->onRestorePreviousRenderer($this);
        }

        return $this;
    }
747943
public function finalize(): self
    {
        if (!$this->isFinalized) {
            $this->normalizeDefinition();
            $this->isFinalized = true;
            $this->definition = new MockDefinition(
                $this->types,
                $this->customMethods,
                $this->customProperties,
                $this->customStaticMethods,
                $this->customStaticProperties,
                $this->customConstants,
                $this->className
            );
        }

        return $this;
    }
1231696
public function finish()
    {
        $this->end = microtime(true);
        $this->duration = $this->end - $this->start;
        DBA::addLog($this);
    }
1298774
def _set(self):
        """"""
        self.__event.set()
        if self._complete_func:
            self.__run_completion_func(self._complete_func, self.id_)
625520
public function processForm()
	{
		$current_state = $this->getCurrent();
		$executed_process = $current_state->processForm();
		// set next state
		$executed_next_state = $this->setNextState($current_state,$executed_process);
		// return success
		return ( $executed_process && $executed_next_state );
	}
521457
protected function SaveElement()
    {
        $this->form->SetMethod($this->Value('Method'));
        $this->form->SetSaveTo($this->Value('SaveTo'));
        $this->form->SetSendFrom($this->Value('SendFrom'));
        $this->form->SetSendTo($this->Value('SendTo'));
        $this->form->SetRedirectUrl($this->selector->Save($this->form->GetRedirectUrl()));
        return $this->form;
    }
971962
public function withTrashed()
    {
        $this->withTrashed = true;

        $this->query = $this->useWithTrashed($this->query);

        return $this;
    }
333013
def _SetCompleted(self):
    
    with self._lock:
      if self._completed:
        return False
      self._completed = True
      return True
1285387
protected function invokeFinishers()
    {
        $finisherContext = new FinisherContext($this);
        foreach ($this->formDefinition->getFinishers() as $finisher) {
            $finisher->execute($finisherContext);
            if ($finisherContext->isCancelled()) {
                break;
            }
        }
    }