AdminPageFramework_Model__FormSubmission__Validator_Base::_confirmSubmitButtonAction PHP Метод

_confirmSubmitButtonAction() защищенный Метод

protected _confirmSubmitButtonAction ( $sPressedInputName, $sSectionID, $sType = 'reset' )
    protected function _confirmSubmitButtonAction($sPressedInputName, $sSectionID, $sType = 'reset')
    {
        switch ($sType) {
            default:
            case 'reset':
                $_sFieldErrorMessage = $this->oFactory->oMsg->get('reset_options');
                $_sTransientKey = 'apf_rc_' . md5($sPressedInputName . get_current_user_id());
                break;
            case 'email':
                $_sFieldErrorMessage = $this->oFactory->oMsg->get('send_email');
                $_sTransientKey = 'apf_ec_' . md5($sPressedInputName . get_current_user_id());
                break;
        }
        $_aNameKeys = explode('|', $sPressedInputName) + array('', '', '');
        $_sFieldID = $this->getAOrB($sSectionID, $_aNameKeys[2], $_aNameKeys[1]);
        $_aErrors = array();
        if ($sSectionID && $_sFieldID) {
            $_aErrors[$sSectionID][$_sFieldID] = $_sFieldErrorMessage;
        } else {
            if ($_sFieldID) {
                $_aErrors[$_sFieldID] = $_sFieldErrorMessage;
            }
        }
        $this->oFactory->setFieldErrors($_aErrors);
        $this->setTransient($_sTransientKey, $sPressedInputName, 60 * 2);
        $this->oFactory->setSettingNotice($this->oFactory->oMsg->get('confirm_perform_task'), 'error confirmation');
        return $this->oFactory->oProp->aOptions;
    }
AdminPageFramework_Model__FormSubmission__Validator_Base