Skip to content

Commit 928e9a2

Browse files
author
Vítězslav Dvořák
committed
Update for AbraFlexi 2024.7.1
1 parent a4e23fc commit 928e9a2

File tree

252 files changed

+730
-314
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+730
-314
lines changed

src/AbraFlexi/Actions.php

Lines changed: 332 additions & 1 deletion
Large diffs are not rendered by default.

src/AbraFlexi/EvidenceList.php

Lines changed: 92 additions & 29 deletions
Large diffs are not rendered by default.

src/AbraFlexi/Formats.php

Lines changed: 57 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Formats
1919
*
2020
* @var string
2121
*/
22-
static public $version = '2024.6.8';
22+
static public $version = '2024.7.1';
2323

2424

2525
/**
@@ -189,7 +189,6 @@ static public function contentTypeToSuffix($contentType)
189189
return isset($types[$contentType]) ? $types[$contentType]['suffix'] : null;
190190
}
191191

192-
193192
/**
194193
* Obtain json for application/json.
195194
*/
@@ -199,39 +198,7 @@ public static function contentTypeToResponseFormat(string $contentType, string $
199198
$url = parse_url($url, \PHP_URL_PATH);
200199
}
201200

202-
$contentTypeClean = strstr($contentType, ';') ? substr(
203-
$contentType,
204-
0,
205-
strpos($contentType, ';'),
206-
) : $contentType;
207-
208-
switch ($url) {
209-
case '/login-logout/login':
210-
$responseFormat = 'json';
211-
212-
break;
213-
214-
default:
215-
switch ($contentTypeClean) {
216-
case 'text/javascript':
217-
$responseFormat = 'js';
218-
219-
break;
220-
221-
default:
222-
$responseFormat = self::contentTypeToSuffix($contentTypeClean);
223-
224-
break;
225-
}
226-
227-
break;
228-
}
229-
230-
return (string)$responseFormat;
231-
}
232-
233-
234-
/**
201+
$contentTypeClean = strstr($contentType, /**
235202
* Evidence adresar (Adresy firem) Formats.
236203
*
237204
* @var array
@@ -324,6 +291,17 @@ public static function contentTypeToResponseFormat(string $contentType, string $
324291
'XML' => 'xml',
325292
'JSON' => 'json',
326293
'CSV' => 'csv',
294+
];
295+
/**
296+
* Evidence format-elektronickeho-prikazu (Bankovní formáty) Formats.
297+
*
298+
* @var array
299+
*/
300+
static public $formatElektronickehoPrikazu = [
301+
'HTML' => 'html',
302+
'XML' => 'xml',
303+
'JSON' => 'json',
304+
'CSV' => 'csv',
327305
];
328306
/**
329307
* Evidence adresar-bankovni-ucet (Bankovní spojení) Formats.
@@ -456,6 +434,17 @@ public static function contentTypeToResponseFormat(string $contentType, string $
456434
'XML' => 'xml',
457435
'JSON' => 'json',
458436
'CSV' => 'csv',
437+
];
438+
/**
439+
* Evidence definice-ucelu (Definice účelu) Formats.
440+
*
441+
* @var array
442+
*/
443+
static public $definiceUcelu = [
444+
'HTML' => 'html',
445+
'XML' => 'xml',
446+
'JSON' => 'json',
447+
'CSV' => 'csv',
459448
];
460449
/**
461450
* Evidence intrastat-dodaci-podminky (Dodací podmínky) Formats.
@@ -1688,6 +1677,17 @@ public static function contentTypeToResponseFormat(string $contentType, string $
16881677
'XML' => 'xml',
16891678
'JSON' => 'json',
16901679
'CSV' => 'csv',
1680+
];
1681+
/**
1682+
* Evidence region (Region) Formats.
1683+
*
1684+
* @var array
1685+
*/
1686+
static public $region = [
1687+
'HTML' => 'html',
1688+
'XML' => 'xml',
1689+
'JSON' => 'json',
1690+
'CSV' => 'csv',
16911691
];
16921692
/**
16931693
* Evidence rezervace (Rezervace) Formats.
@@ -2084,6 +2084,17 @@ public static function contentTypeToResponseFormat(string $contentType, string $
20842084
'XML' => 'xml',
20852085
'JSON' => 'json',
20862086
'CSV' => 'csv',
2087+
];
2088+
/**
2089+
* Evidence stat-dph (Státy DPH) Formats.
2090+
*
2091+
* @var array
2092+
*/
2093+
static public $statDph = [
2094+
'HTML' => 'html',
2095+
'XML' => 'xml',
2096+
'JSON' => 'json',
2097+
'CSV' => 'csv',
20872098
];
20882099
/**
20892100
* Evidence stredisko (Střediska) Formats.
@@ -2898,6 +2909,17 @@ public static function contentTypeToResponseFormat(string $contentType, string $
28982909
'XML' => 'xml',
28992910
'JSON' => 'json',
29002911
'CSV' => 'csv',
2912+
];
2913+
/**
2914+
* Evidence ucel (Účely) Formats.
2915+
*
2916+
* @var array
2917+
*/
2918+
static public $ucel = [
2919+
'HTML' => 'html',
2920+
'XML' => 'xml',
2921+
'JSON' => 'json',
2922+
'CSV' => 'csv',
29012923
];
29022924
/**
29032925
* Evidence analyza-zakazky (Účetní analýza zakázky) Formats.

static/Actions.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

static/EvidenceFullList.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

static/EvidenceList.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

static/Formats.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

static/Properties.adresar-bankovni-ucet.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

static/Properties.adresar.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

static/Properties.analyza-nakupu.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)