From a99cc025c68f4e1d7df0a20db8f2fe80cd19ce71 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 13 May 2020 18:10:12 +0200 Subject: New API version --- http/api-inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'http/api-inc.php') diff --git a/http/api-inc.php b/http/api-inc.php index 96c9ca7..c2336af 100644 --- a/http/api-inc.php +++ b/http/api-inc.php @@ -32,7 +32,8 @@ function run($parameters) { $versionClasses = array( '1' => 'ApiPklV1', // RegKlas 2018.11.01 '2' => 'ApiPklV2', // RegKMP 2020.01.01 - '_default' => 'ApiPklV2' + '3' => 'ApiPklV3', // local BNET 2020.05.01 + '_default' => 'ApiPklV3' ); $version = isset($parameters['version']) ? $parameters['version'] : '_default'; $apiClass = isset($versionClasses[$version]) ? $versionClasses[$version] : $versionClasses['_default']; @@ -234,4 +235,6 @@ class ApiPklV2 extends ApiPklV1 { } +class ApiPklV3 extends ApiPklV2 {} + ?> -- cgit v1.2.3