src/components/FormComponent.php
protected function setFormId()
    {
        if (isset($_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID])) {
            $this->formId = $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID];
        } else {
            $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID] = (string)microtime(true);
            $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName]['submitted'] = false;
            $this->formId = $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID];
        }
    }
protected function setFormId()
    {
        if (isset($_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID])) {
            $this->formId = $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID];
        } else {
            $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID] = (string)microtime(true);
            $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName]['submitted'] = false;
            $this->formId = $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID];
        }
    }
protected function setFormId ( ) { if ( isset ( $ _SESSION [ self :: SESSION_PARAMETER_FORM_COMPONENT ] [ $ this -> formParameterName ] [ self :: PARAMETER_FORM_ID ] ) ) { $ this -> formId = $ _SESSION [ self :: SESSION_PARAMETER_FORM_COMPONENT ] [ $ this -> formParameterName ] [ self :: PARAMETER_FORM_ID ] ; } else { $ _SESSION [ self :: SESSION_PARAMETER_FORM_COMPONENT ] [ $ this -> formParameterName ] [ self :: PARAMETER_FORM_ID ] = ( string ) microtime ( true ) ; $ _SESSION [ self :: SESSION_PARAMETER_FORM_COMPONENT ] [ $ this -> formParameterName ] [ 'submitted' ] = false ; $ this -> formId = $ _SESSION [ self :: SESSION_PARAMETER_FORM_COMPONENT ] [ $ this -> formParameterName ] [ self :: PARAMETER_FORM_ID ] ; } }
Sets a unique id for this particular form, so it can recognize
it when a submit occurs
Sets a unique id for this particular form so it can recognize it when a submit occurs