Changed whole Input Objects

they now lives by themselves when before
they where highly connected to Form.php
This commit is contained in:
2019-04-25 16:14:25 +02:00
parent 90a69fd16c
commit cacdc2c3d6
6 changed files with 190 additions and 55 deletions

View File

@ -2,12 +2,25 @@
namespace AdminPanel\Form;
use AdminPanel\AdminPanel;
class ChoiceInput extends AbstractInput
{
public function getOptions(): array
public function getOptionsList(): array
{
return array_merge(
parent::getOptionsList(),
array(
'choices'
)
);
}
public function getAttributesList(): array
{
return array(
'choices'
'name',
'id'
);
}
}