protected function cleanOutdatedFormErrorInformation()
    {
        $formErrorInformation = $this->getSession()->getFormErrorInformation();

        if (! empty($formErrorInformation)) {
            $now = time();

            // Cleanup obsolete form information, and try to find the form data
            foreach ($formErrorInformation as $name => $formData) {
                if ($now - $formData['timestamp'] > self::FORM_ERROR_LIFETIME_SECONDS) {
                    unset($formErrorInformation[$name]);
                }
            }

            $this->getSession()->setFormErrorInformation($formErrorInformation);
        }

        return $this;
    }
protected function cleanOutdatedFormErrorInformation()
    {
        $formErrorInformation = $this->getSession()->getFormErrorInformation();

        if (! empty($formErrorInformation)) {
            $now = time();

            // Cleanup obsolete form information, and try to find the form data
            foreach ($formErrorInformation as $name => $formData) {
                if ($now - $formData['timestamp'] > self::FORM_ERROR_LIFETIME_SECONDS) {
                    unset($formErrorInformation[$name]);
                }
            }

            $this->getSession()->setFormErrorInformation($formErrorInformation);
        }

        return $this;
    }
protected function cleanOutdatedFormErrorInformation ( ) { $ formErrorInformation = $ this -> getSession ( ) -> getFormErrorInformation ( ) ; if ( ! empty ( $ formErrorInformation ) ) { $ now = time ( ) ; // Cleanup obsolete form information, and try to find the form data foreach ( $ formErrorInformation as $ name => $ formData ) { if ( $ now - $ formData [ 'timestamp' ] > self :: FORM_ERROR_LIFETIME_SECONDS ) { unset ( $ formErrorInformation [ $ name ] ) ; } } $ this -> getSession ( ) -> setFormErrorInformation ( $ formErrorInformation ) ; } return $ this ; }
Remove obsolete form error information.
Remove obsolete form error information .