Renamed TDF attribute rw to access

This commit is contained in:
Nav
2024-03-14 23:59:15 +00:00
parent 289d1cd3b4
commit df0e74ea74
262 changed files with 61601 additions and 61601 deletions

View File

@@ -143,7 +143,7 @@ class FromXmlService
$this->stringService->tryStringToInt($attributes['start'] ?? null),
$this->stringService->tryStringToInt($attributes['size'] ?? null),
$this->stringService->tryStringToInt($attributes['page-size'] ?? null),
$attributes['rw'] ?? null,
$attributes['access'] ?? null,
[]
);
@@ -278,7 +278,7 @@ class FromXmlService
$this->stringService->tryStringToInt($attributes['offset'] ?? null),
$this->stringService->tryStringToInt($attributes['size'] ?? null),
$this->stringService->tryStringToInt($attributes['initial-value'] ?? null),
$attributes['rw'] ?? null,
$attributes['access'] ?? null,
isset($attributes['alternative']) ? trim($attributes['alternative']) === 'true' : null,
[]
);
@@ -305,7 +305,7 @@ class FromXmlService
$attributes['name'] ?? null,
$attributes['description'] ?? null,
$this->stringService->tryStringToInt($attributes['mask'] ?? null),
$attributes['rw'] ?? null
$attributes['access'] ?? null
);
}

View File

@@ -95,7 +95,7 @@ class ToXmlService
}
if (!empty($memorySegment->access)) {
$element->setAttribute('rw', $memorySegment->access);
$element->setAttribute('access', $memorySegment->access);
}
foreach ($memorySegment->sections as $segmentSection) {
@@ -299,7 +299,7 @@ class ToXmlService
}
if (!empty($register->access)) {
$element->setAttribute('rw', $register->access);
$element->setAttribute('access', $register->access);
}
if ($register->alternative !== null) {
@@ -326,7 +326,7 @@ class ToXmlService
$element->setAttribute('mask', $this->stringService->tryIntToHex($bitField->mask));
if (!empty($bitField->access)) {
$element->setAttribute('rw', $bitField->access);
$element->setAttribute('access', $bitField->access);
}
return $element;