wip: continue implemntation

This commit is contained in:
Björn Fromme committed 2024-11-22 17:30:20 +01:00
1 parent bd13ae6537
commit d3786795e4
26 files changed
+798 -494

No files matched your search

+5 -5
View File
@@ -4,7 +4,7 @@ namespace App\BusProNet\Model;
class CrmAttributes
{
public ?array $attributeGroups = null;
public ?array $selectionGroups = null;
public bool $admin = false;
public bool $manager = false;
public bool $houseManager = false;
@@ -15,13 +15,13 @@ class CrmAttributes
{
$crmSelections = [];
foreach ($this->attributeGroups as $group) {
/** @var CrmAttributeGroup $group */
foreach ($this->selectionGroups as $group) {
/** @var CrmSelectionGroup $group */
if (false === isset($crmSelections[$group->label])) {
$crmSelections[$group->label] = [];
}
foreach ($group->attributes as $attribute) {
/** @var CrmAttribute $attribute */
foreach ($group->selections as $attribute) {
/** @var CrmSelection $attribute */
if (false === $attribute->selected) {
continue;
}