MCPcopy Create free account
hub / github.com/Rello/analytics / requireLegacy

Method requireLegacy

lib/Service/StorageService.php:297–302  ·  view source on GitHub ↗
(int $datasetId)

Source from the content-addressed store, hash-verified

295 }
296
297 private function requireLegacy(int $datasetId): void {
298 $mode = $this->DatasetStorageResolver->resolve($datasetId)['mode'];
299 if ($mode !== DatasetStorageResolver::LEGACY) {
300 throw new FlexibleStorageException('legacy_write_not_supported', 'The fixed-field write API cannot modify a flexible dataset.', ['datasetId' => $datasetId, 'storageMode' => $mode], 409);
301 }
302 }
303
304 private function floatvalue($val) {
305 // if value is a 3 digit comma number with one leading zero like 0,111, it should not go through the 1000 separator removal

Callers 3

updateMethod · 0.95
deleteMethod · 0.95
deleteSimulateMethod · 0.95

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected