Prepare (de)normalized data for Forms

This commit is contained in:
Eric Espie
2026-01-08 17:28:48 +01:00
parent 85c1f091e2
commit d072aa05f1

View File

@@ -49,7 +49,6 @@ abstract class Dashlet
protected $aProperties; // array of {property => value}
protected $aCSSClasses;
protected $sDashletType;
private $aNormalizedProperties = null; // array of properties from serialized form
/**
* Dashlet constructor.
@@ -131,7 +130,6 @@ abstract class Dashlet
$this->aProperties[$sProperty] = $this->PropertyFromDOMNode($oPropNode, $sProperty);
}
}
$this->aNormalizedProperties = XMLNormalizer::GetInstance()->Denormalize($this->aProperties, get_class($this), 'Dashlet');
$this->OnUpdate();
}
@@ -510,7 +508,7 @@ EOF
public function GetNormalizedProperties(): ?array
{
return $this->aNormalizedProperties;
return XMLNormalizer::GetInstance()->Denormalize($this->aProperties, get_class($this), 'Dashlet');
}
}