source/Application/Controller/FrontendController.php
public function canAcceptFormData()
    {
        if ($this->_blCanAcceptFormData === null) {
            $this->_blCanAcceptFormData = false;

            $formId = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("uformid");
            $sessionFormId = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable("sessionuformid");

            // testing if form and session ids matches
            if ($formId && $formId === $sessionFormId) {
                $this->_blCanAcceptFormData = true;
            }

            // regenerating form data
            $this->getFormId();
        }

        return $this->_blCanAcceptFormData;
    }
public function canAcceptFormData()
    {
        if ($this->_blCanAcceptFormData === null) {
            $this->_blCanAcceptFormData = false;

            $formId = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("uformid");
            $sessionFormId = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable("sessionuformid");

            // testing if form and session ids matches
            if ($formId && $formId === $sessionFormId) {
                $this->_blCanAcceptFormData = true;
            }

            // regenerating form data
            $this->getFormId();
        }

        return $this->_blCanAcceptFormData;
    }
public function canAcceptFormData ( ) { if ( $ this -> _blCanAcceptFormData === null ) { $ this -> _blCanAcceptFormData = false ; $ formId = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( "uformid" ) ; $ sessionFormId = \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> getVariable ( "sessionuformid" ) ; // testing if form and session ids matches if ( $ formId && $ formId === $ sessionFormId ) { $ this -> _blCanAcceptFormData = true ; } // regenerating form data $ this -> getFormId ( ) ; } return $ this -> _blCanAcceptFormData ; }
Checks if session form id matches with request form id

@return bool
Checks if session form id matches with request form id