mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 23:32:17 +02:00
N°9567 - fix extension map init of installation choices
This commit is contained in:
@@ -141,4 +141,32 @@ class iTopExtension
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function __serialize(): array
|
||||
{
|
||||
return [
|
||||
'sCode' => $this->sCode,
|
||||
'sSource' => $this->sSource,
|
||||
'sVersion' => $this->sVersion,
|
||||
'aModules' => $this->aModules,
|
||||
'aModuleVersion' => $this->aModuleVersion,
|
||||
'aModuleInfo' => $this->aModuleInfo,
|
||||
];
|
||||
}
|
||||
|
||||
public function __unserialize(array $aData): void
|
||||
{
|
||||
$this->sCode = $aData['sCode'] ?? '';
|
||||
$this->sSource = $aData['sSource'] ?? '';
|
||||
$this->sVersion = $aData['sVersion'] ?? '';
|
||||
$this->aModules = $aData['aModules'] ?? '';
|
||||
$this->aModuleVersion = $aData['aModuleVersion'] ?? '';
|
||||
$this->aModuleInfo = $aData['aModuleInfo'] ?? '';
|
||||
}
|
||||
|
||||
public function __toString(): string
|
||||
{
|
||||
return json_encode($this->__serialize(), JSON_PRETTY_PRINT);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user