Verified Commit a2d6f380 authored by dockx thibault's avatar dockx thibault
Browse files

:hammer: Feat(Snapshots) - First step to data source

First step to data source integration upon snapshot creation.
Showing with 13 additions and 0 deletions
+13 -0
......@@ -56,12 +56,24 @@ class SnapshotCreateDialog extends ManagementDialog
),
]
],
'dataSource' => [
'name' => _('dataSource'),
'attrs' => [
new SetAttribute(
new SelectAttribute(
'Data source', _('Origin / Source of the data'),
'SnapshotSource', FALSE,
),
),
]
],
];
}
function __construct (string $dn, management $parent, string $aclCategory)
{
parent::__construct(NULL, NULL, $parent);
// The attribut will be passed to parent for later saving, dataSource might require same logic.
$this->attributesAccess['description']->setInLdap(FALSE);
$this->object_dn = $dn;
$this->aclCategory = $aclCategory;
......@@ -116,6 +128,7 @@ class SnapshotCreateDialog extends ManagementDialog
function save (): array
{
// We have to modify the createSnapshot to integrate the source Data
$this->parent->createSnapshot($this->object_dn, $this->description);
return [];
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment