Renamed TDF attribute rw to access
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user