Пример #1
0
            echo json_encode($helper->getBrakeSets());
        } else {
            if ($_GET['req'] == 'distance') {
                echo json_encode($helper->getDistanceSets());
            } else {
                if ($_GET['req'] == 'throttle') {
                    echo '{"records": ' . json_encode($helper->getThrottleSets());
                }
            }
        }
    }
} else {
    if (isset($_GET['data'])) {
        header("Access-Control-Allow-Origin: *");
        if ($_GET['data'] == 'speedSet') {
            return $fuzzy->getData('speedSet');
        } else {
            if ($_GET['data'] == 'distanceSet') {
                return $fuzzy->getData('distanceSet');
            } else {
                if ($_GET['data'] == 'SpFuzzyValue') {
                    return $fuzzy->getData('SpFuzzyValue');
                } else {
                    if ($_GET['data'] == 'DistFuzzyValue') {
                        return $fuzzy->getData('DistFuzzyValue');
                    } else {
                        if ($_GET['data'] == 'DistLinguisticSet') {
                            return $fuzzy->getData('DistLinguisticSet');
                        } else {
                            if ($_GET['data'] == 'SpLinguisticSet') {
                                return $fuzzy->getData('SpLinguisticSet');