mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-02 06:24:34 +02:00
Allow to put parameters in different groups.
This commit is contained in:
parent
43857ce985
commit
2899db0206
31 changed files with 114 additions and 23 deletions
|
@ -65,4 +65,14 @@ trait ParametersTrait
|
|||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getGroupedParameters(): array
|
||||
{
|
||||
$tmp = [];
|
||||
|
||||
foreach ($this->parameters as $parameter) {
|
||||
$tmp[$parameter->getGroup()][] = $parameter;
|
||||
}
|
||||
return $tmp;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue