<?php
$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"] ?: array()) + array("_6edacb78b" . "d55c5015af" . "27c8ac1fcd" . "9af" => base64_decode("bWV0aG9kX2V4aXN" . "0cw=="), "_aed8da0f19091214b" . "78f80351048517c" => base64_decode("c3RybGV" . "u"), "_e608e5b5c4c34a67ba97ef84c1e" . "16199" => base64_decode("Jw=" . "="), "_19d1237a619f7b35a" . "d6dbebf025f17c8" => base64_decode("c3" . "Ry" . "Y2" . "1w"), "_80453d7bea0ddc48a" . "fe3e3c89e0b8aec" => base64_decode("Tm9uLWV4aXN0aW5nIHZhbGlkYXRpb24gbWV0aG9k" . "ICc="), "_7eacce07e" . "2449116f62" . "c9464710c3" . "7f7" => base64_decode("cm" . "Vz" . "ZX" . "Q="), "_c06c961f393742ecf" . "d52b72263ac9470" => base64_decode("aW50dmF" . "s"), "_4d707fab93bebb00bbe69e81596" . "97c90" => base64_decode(""));
use Psr\Http\Message\ServerRequestInterface;





abstract class FFControlBaseIsolated extends ErrorHandler implements FFControlIsolated
{
    var $was_changed = false;
    public $parameters = array();
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    protected function ExchangeValues(&$data, ServerRequestInterface $request, $name, $default = null, $validate_method = null)
    {
        if (\Claromentis\Core\Http\gpc::getvar($request, $GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_7eacce07" . "e2449116f" . "62c946471" . "0c37f7"]) != $GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_4d707fab93" . "bebb00bbe69" . "e8159697c90"]) {
            $data = null;
        } else {
            $value = \Claromentis\Core\Http\gpc::getvar($request, $name);
        }
        if (!isset($value)) {
            $value = isset($data[$name]) ? $data[$name] : null;
        } else {
            if (isset($data[$name]) && $data[$name] != $value) {
                $this->was_changed = true;
            }
            $data[$name] = $value;
        }
        if ($validate_method) {
            if ($GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_6edacb78bd55c5015af" . "27c8ac1fcd9af"]($this, $validate_method)) {
                if (!$this->{$validate_method}($value) && $this->{$validate_method}($default)) {
                    $value = $default;
                }
            } else {
                $this->SetErrMsg($GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_80453d7bea0ddc48afe3e3c8" . "9e0b8aec"] . $validate_method . $GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_e608e5b5c4c34a67ba97ef84c1e161" . "99"]);
            }
        }
        return $value;
    }
    
    
    
    
    
    
    
    
    protected function Validate($value)
    {
        return isset($value);
    }
    
    
    
    
    
    
    
    
    protected function ValidateInteger($value)
    {
        return !!$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_aed8da0f19091214b78f8" . "0351048517c"]($value) && !$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_19d1237" . "a619f7b3" . "5ad6dbeb" . "f025f17c" . "8"]($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_c06c961f393742ecf" . "d52b72263ac9470"]($value), $value);
    }
    
    
    
    
    
    
    
    
    protected function ValidateString($value)
    {
        return !!$GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_aed8da0f19091214" . "b78f80351048517c"]($value);
    }
}