Reset form status

@return void
767770
private function resetStatus()
    {
        $this->debug->info('resetStatus');
        $this->status = \array_merge($this->status, array(
            'currentPageName'   => $this->persist->get('currentPage.name'),
            // 'keyVerified'    => false,   // don't reset
            // 'submitted'      => false,   // don't reset
            'completed'         => false,
            'error'             => false,
            'postMaxExceeded'   => false,
            'multipart'         => false,   // multipart form (file fields)?
            'additionalPages'   => array(),
            // 'invalidFields'      => array(),
            'idCounts'          => array(),
        ));
    }
1127053
function Reset() {
    $this->error = null; # so no confusion is caused

    if(!$this->connected()) {
      $this->error = array(
      "error" => "Called Reset() without being connected");
      return false;
    }

    fputs($this->smtp_conn,"RSET" . $this->CRLF);

    $rply = $this->get_lines();
    $code = substr($rply,0,3);

    if($this->do_debug >= 2) {
      echo "SMTP -> FROM SERVER:" . $this->CRLF . $rply;
    }

    if($code != 250) {
      $this->error =
      array("error" => "RSET failed",
      "smtp_code" => $code,
      "smtp_msg" => substr($rply,4));
      if($this->do_debug >= 1) {
        echo "SMTP -> ERROR: " . $this->error["error"] .
        ": " . $rply . $this->CRLF;
      }
      return false;
    }

    return true;
  }
1146079
public function reset()
    {
        $this->page        = 1;
        $this->perPage     = null;
        $this->parsers     = [];
        $this->sorts       = [];
        $this->searchQuery = null;
        $this->rules       = [
            'page'     => 'numeric',
            'per_page' => 'numeric',
            'sort'     => 'string',
            'q'        => 'string',
        ];
    }
542157
public function reset()
    {
        $this->contentLength = 0;
        $this->data = "";
        $this->headers = [];
        $this->status = 200;

        return $this;
    }
238824
private function reset(): void
    {
        $this->label = null;
        $this->style = null;
        $this->large = false;
        $this->small = false;
        $this->extra_small = false;
        $this->block = false;
        $this->active = false;
        $this->link = null;
        $this->disabled = false;
        $this->mode = 'link';
        $this->input_type = null;
        $this->custom_classes = [];
    }
170390
private function reset(): void
    {
        $this->label = null;
        $this->outline_style = null;
        $this->large = false;
        $this->small = false;
        $this->block = false;
        $this->active = false;
        $this->disabled = false;
        $this->mode = 'link';
        $this->input_type = null;
        $this->custom_classes = [];
        $this->uri = null;

        $this->supported_bg_styles[] = 'link';
    }
515416
protected function reset()
    {
        $this->_agent = '';
        $this->_browserName = self::BROWSER_UNKNOWN;
        $this->_compatibilityViewName = '';
        $this->_compatibilityViewVer = '';
        $this->_is64bit = false;
        $this->_isMobile = false;
        $this->_isRobot = false;
        $this->_platform = self::PLATFORM_UNKNOWN;
        $this->_platformVersion = self::PLATFORM_VERSION_UNKNOWN;
        $this->_version = self::VERSION_UNKNOWN;
    }
635763
protected function resetState()
    {
        $this->notConverted = [];
        $this->skipConversion = false;
        $this->buffer = [];
        $this->indent = '';
        $this->stack = [];
        $this->lineBreaks = 0;
        $this->lastClosedTag = '';
        $this->lastWasBlockTag = false;
        $this->footnotes = [];
    }
541501
public function reset()
	{
		$this->started = $this->now();
		$this->prefix  = '';
		$this->marks   = array();
		$this->memory  = memory_get_usage(true);
	}
837225
function reset()
    {
        $this->resetVariables();
        $this->resetElements();
        $this->IsCachingAllowed = true;

        $this->resetErrorLog();

        $this->TemplatesUsageStatistics = array();
        $this->TemplateFetchList = array();
    }
727821
public function reset()
    {
        $keep = array(
            Horde_Imap_Client::STATUS_SYNCFLAGUIDS,
            Horde_Imap_Client::STATUS_SYNCMODSEQ,
            Horde_Imap_Client::STATUS_SYNCVANISHED
        );

        foreach (array_diff(array_keys($this->_status), $keep) as $val) {
            unset($this->_status[$val]);
        }

        $this->map = new Horde_Imap_Client_Ids_Map();
        $this->open = $this->sync = false;
    }
861223
protected function reset()
    {
        $this->protocolVersion = null;
        $this->headers = null;
        $this->requestTarget = null;
        $this->method = null;
        $this->uri = null;
    }
571590
public function checkStatus()
	{
		if( array_key_exists( '_status', $this->attributes ) && $this->attributes['_status'] == 'new' )
		{
			$this->attributes['_status'] = 'old';

			return;
		}

		$this->attributes = array();

		$this->clear();
	}
430907
public function reset($formName = false)
    {
        if (is_bool($formName))
            $formName = $this->currentFormName;

        if (array_key_exists($formName, $this->validationRules)) {
            $this->validationRules[$formName] = [];
        }
    }
762750
protected function resetRequest(): void
    {
        $request = Request::getInstance();

        // priority:
        //  - default values
        //  - from GET query
        //  - from path
        $request = $request->withQueryParams(
            array_merge(
                [
                    '_module' => $this->getDefaultModule(),
                    '_controller' => $this->getDefaultController()
                ],
                $request->getQueryParams(),
                $this->params
            )
        );
        Request::setInstance($request);
    }
1313135
public function reset()
    {
        $this->description   = null;
        $this->title_session = null;
        $this->metatags      = [];
        $this->keywords      = [];
    }
1290105
protected function reset()
    {
        $this->user = null;
        $this->lastAttempted = null;
        $this->viaRemember = false;
        $this->loggedOut = false;
        $this->tokenRetrievalAttempted = false;
        $this->recallAttempted  = false;
    }